2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_BUILD_DEPENDS
:=libpcap
15 include $(INCLUDE_DIR
)/package.mk
20 TITLE
:=Emergency Access Daemon
21 URL
:=http
://bridge.sourceforge.net
/
24 define Package
/ead
/description
25 Provides remote access to your device even if IP and firewall
26 configuration settings are defunct
29 CONFIGURE_PATH
= tinysrp
33 -I
$(PKG_BUILD_DIR
)/tinysrp \
37 CONFIGURE_ARGS
="$(CONFIGURE_ARGS)" \
38 LIBS
="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a" \
39 LIBS_EAD
="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a $(STAGING_DIR)/usr/lib/libpcap.a" \
40 CFLAGS
="$(TARGET_CFLAGS)"
43 mkdir
-p
$(PKG_BUILD_DIR
)
44 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
47 define Package
/ead
/install
48 $(INSTALL_DIR
) $(1)/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ead
$(1)/sbin
/
52 $(eval
$(call BuildPackage
,ead
))