Root/package/ead/Makefile

1#
2# Copyright (C) 2006-2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ead
11PKG_RELEASE:=1
12
13PKG_BUILD_DEPENDS:=libpcap
14PKG_BUILD_DIR:=$(BUILD_DIR)/ead
15
16include $(INCLUDE_DIR)/package.mk
17include $(INCLUDE_DIR)/kernel.mk
18
19define Package/ead
20  SECTION:=net
21  CATEGORY:=Base system
22  TITLE:=Emergency Access Daemon
23  URL:=http://bridge.sourceforge.net/
24endef
25
26define Package/ead/description
27  Provides remote access to your device even if IP and firewall
28  configuration settings are defunct
29endef
30
31CONFIGURE_PATH = tinysrp
32
33TARGET_CFLAGS += \
34    -I$(LINUX_DIR)/include \
35    -I$(PKG_BUILD_DIR) \
36    -I$(PKG_BUILD_DIR)/tinysrp \
37    $(TARGET_CPPFLAGS)
38
39MAKE_FLAGS += \
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)"
44
45define Build/Prepare
46    mkdir -p $(PKG_BUILD_DIR)
47    $(CP) ./src/* $(PKG_BUILD_DIR)/
48endef
49
50define Package/ead/install
51    $(INSTALL_DIR) $(1)/sbin
52    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ead $(1)/sbin/
53endef
54
55$(eval $(call BuildPackage,ead))
56

Archive Download this file



interactive