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.
9 include $(TOPDIR
)/rules.mk
14 PKG_BUILD_DEPENDS
:=pcap
16 include $(INCLUDE_DIR
)/package.mk
21 TITLE
:=Emergency Access Daemon
22 URL
:=http
://bridge.sourceforge.net
/
25 define Package
/ead
/description
26 Provides remote access to your device even if IP and firewall
27 configuration settings are defunct
30 CONFIGURE_PATH
= tinysrp
34 -I
$(PKG_BUILD_DIR
)/tinysrp \
35 -I
$(STAGING_DIR
)/usr
/include
38 CONFIGURE_ARGS
="$(CONFIGURE_ARGS)" \
39 LIBS
="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a" \
40 LIBS_EAD
="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a $(STAGING_DIR)/usr/lib/libpcap.a" \
41 CFLAGS
="$(TARGET_CFLAGS)"
44 mkdir
-p
$(PKG_BUILD_DIR
)
45 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
48 define Package
/ead
/install
49 $(INSTALL_DIR
) $(1)/sbin
50 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ead
$(1)/sbin
/
53 $(eval
$(call BuildPackage
,ead
))