kernel: reorganize 2.6.38 patches, clean up block2mtd patches
[openwrt.git] / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ead
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DEPENDS:=libpcap
14 PKG_BUILD_DIR:=$(BUILD_DIR)/ead
15
16 include $(INCLUDE_DIR)/package.mk
17 include $(INCLUDE_DIR)/kernel.mk
18
19 define Package/ead
20 SECTION:=net
21 CATEGORY:=Base system
22 TITLE:=Emergency Access Daemon
23 URL:=http://bridge.sourceforge.net/
24 endef
25
26 define Package/ead/description
27 Provides remote access to your device even if IP and firewall
28 configuration settings are defunct
29 endef
30
31 CONFIGURE_PATH = tinysrp
32
33 TARGET_CFLAGS += \
34 -I$(LINUX_DIR)/include \
35 -I$(PKG_BUILD_DIR) \
36 -I$(PKG_BUILD_DIR)/tinysrp \
37 $(TARGET_CPPFLAGS)
38
39 MAKE_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
45 define Build/Prepare
46 mkdir -p $(PKG_BUILD_DIR)
47 $(CP) ./src/* $(PKG_BUILD_DIR)/
48 endef
49
50 define Package/ead/install
51 $(INSTALL_DIR) $(1)/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ead $(1)/sbin/
53 endef
54
55 $(eval $(call BuildPackage,ead))
This page took 0.041904 seconds and 5 git commands to generate.