8d94454c5f5af5cf5c553de30729c790807d986b
[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 $(MAKE) -C $(PKG_BUILD_DIR) \
31 $(TARGET_CONFIGURE_OPTS) \
32 V= \
33 LDIR="$(PKG_BUILD_DIR)" \
34 AMSEL_INCLUDE="$(STAGING_DIR)/usr/include" \
35 OPT_LDFLAGS="$(TARGET_LDFLAGS)" \
36 PREFIX="/usr" \
37 CONFIG="$(PKG_BUILD_DIR)/etc/amsel" \
38 DESTDIR="$(PKG_INSTALL_DIR)" \
39 SHELL="/bin/bash" \
40 all install
41 endef
42
43 define Package/amwall/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
48 $(INSTALL_DIR) $(1)/etc/amsel
49 $(CP) $(PKG_INSTALL_DIR)/etc/amsel* $(1)/etc/
50 endef
51
52 $(eval $(call BuildPackage,amwall))