packages: add missing conffiles define
[openwrt.org/packages.git] / net / amwall / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=amwall
PKG_VERSION:=0.1.0
PKG_RELEASE:=2
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
PKG_MD5SUM:=a8b6438e7fd9ccadc9f68824ae62349c
 
include $(INCLUDE_DIR)/package.mk
 
define Package/amwall
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libamsel
  TITLE:=PF to iptables
  URL:=http://www.amselinux.net/
  SUBMENU:=Firewall
endef
 
define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
                V= \
                LDIR="$(PKG_BUILD_DIR)" \
                AMSEL_INCLUDE="$(STAGING_DIR)/usr/include" \
                OPT_LDFLAGS="$(TARGET_LDFLAGS)" \
                PREFIX="/usr" \
                CONFIG="$(PKG_BUILD_DIR)/etc/amsel" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                SHELL="/bin/bash" \
                all install
endef
 
define Package/amwall/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc/amsel
        $(CP) $(PKG_INSTALL_DIR)/etc/amsel* $(1)/etc/
endef
 
define Package/amwall/conffiles
/etc/amsel/firewall.conf
endef
 
$(eval $(call BuildPackage,amwall))
 
comments