[packages] massive change: replace occurences of -I$(STAGING_DIR)/{include,usr/includ...
[openwrt/svn-archive/archive.git] / net / amwall / Makefile
1 #
2 # Copyright (C) 2006 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:=amwall
11 PKG_VERSION:=0.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
16 PKG_MD5SUM:=a8b6438e7fd9ccadc9f68824ae62349c
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/amwall
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libamsel
24 TITLE:=PF to iptables
25 URL:=http://www.amselinux.net/
26 SUBMENU:=firewall
27 endef
28
29 define Build/Compile
30 rm -rf $(PKG_INSTALL_DIR)
31 mkdir -p $(PKG_INSTALL_DIR)
32 $(MAKE) -C $(PKG_BUILD_DIR) \
33 $(TARGET_CONFIGURE_OPTS) \
34 V= \
35 LDIR="$(PKG_BUILD_DIR)" \
36 AMSEL_INCLUDE="$(STAGING_DIR)/usr/include" \
37 OPT_LDFLAGS="$(TARGET_LDFLAGS)" \
38 PREFIX="/usr" \
39 CONFIG="$(PKG_BUILD_DIR)/etc/amsel" \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 SHELL="/bin/bash" \
42 all install
43 endef
44
45 define Package/amwall/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc/amsel
51 $(CP) $(PKG_INSTALL_DIR)/etc/amsel* $(1)/etc/
52 endef
53
54 $(eval $(call BuildPackage,amwall))