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
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/ead
16 include $(INCLUDE_DIR
)/package.mk
17 include $(INCLUDE_DIR
)/kernel.mk
22 TITLE
:=Emergency Access Daemon
23 URL
:=http
://bridge.sourceforge.net
/
26 define Package
/ead
/description
27 Provides remote access to your device even if IP and firewall
28 configuration settings are defunct
31 CONFIGURE_PATH
= tinysrp
34 -I
$(LINUX_DIR
)/include \
36 -I
$(PKG_BUILD_DIR
)/tinysrp \
40 CONFIGURE_ARGS
="$(CONFIGURE_ARGS)" \
41 LIBS_EADCLIENT
="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a" \
42 LIBS_EAD
="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a $(STAGING_DIR)/usr/lib/libpcap.a" \
43 CFLAGS
="$(TARGET_CFLAGS)"
46 mkdir
-p
$(PKG_BUILD_DIR
)
47 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
50 define Package
/ead
/install
51 $(INSTALL_DIR
) $(1)/sbin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ead
$(1)/sbin
/
55 $(eval
$(call BuildPackage
,ead
))