source: packages/net/nufw/Makefile @ 22616

Last change on this file since 22616 was 22616, checked in by agb, 6 years ago

[packages] net/nufw: run of autogen.sh needed with recent versions of libtool

File size: 2.9 KB
Line 
1#
2# Copyright (C) 2007-2010 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:=nufw
11PKG_VERSION:=2.2.21
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://www.nufw.org/download/nufw/
16PKG_MD5SUM:=7eb500e7ddb3db622dc6c5d43b495c9a
17
18PKG_FIXUP:=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/nufw/Default
23  SECTION:=net
24  CATEGORY:=Network
25  DEPENDS:=+glib2 +libgnutls +libsasl2 +libintl +libiconv +libnetfilter-queue
26  TITLE:=nufw
27  URL:=http://www.nufw.org/
28endef
29
30define Package/nufw/description
31  NuFW adds user-based filtering to Netfilter,
32  the state of the art IP filtering layer from
33  the Linux kernel. Its exclusive algorithm allows
34  authenticated filtering even on multiuser computers.
35endef
36
37define Package/nufw
38  $(call Package/nufw/Default)
39endef
40
41define Package/nutcpc
42  $(call Package/nufw/Default)
43  TITLE:=client version
44endef
45
46define Package/nufw-python
47  $(call Package/nufw/Default)
48  TITLE:=python bindings
49endef
50
51define PyPackage/nufw-python/filespec
52+|$(PYTHON_PKG_DIR)/nuauth_command/__init__.py
53+|$(PYTHON_PKG_DIR)/nuauth_command/client.py
54+|$(PYTHON_PKG_DIR)/nuauth_command/command_dec.py
55+|$(PYTHON_PKG_DIR)/nuauth_command/version.py
56endef
57
58
59define Package/nufw-modules
60  $(call Package/nufw/Default)
61  TITLE:=NuFW modules
62endef
63
64CONFIGURE_ARGS += \
65        --enable-static \
66        --enable-shared \
67        --disable-pam-nufw \
68        --without-system-auth \
69        --with-libgnutls-prefix="$(STAGING_DIR)/usr/" \
70        --with-libgcrypt-prefix="$(STAGING_DIR)/usr/" \
71        --with-libsasl-prefix="$(STAGING_DIR)/usr/"
72
73define Build/Configure
74        (cd $(PKG_BUILD_DIR) ; ./autogen.sh )
75        $(call Build/Configure/Default)
76endef
77
78define Build/Compile
79        $(MAKE) -C $(PKG_BUILD_DIR) \
80                CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \
81                        -I$(STAGING_DIR)/usr/lib/libintl/include \
82                        -I$(STAGING_DIR)/usr/lib/libiconv/include" \
83                LDFLAGS="$(TARGET_LDFLAGS) \
84                        -L$(STAGING_DIR)/usr/lib/libintl/lib \
85                        -L$(STAGING_DIR)/usr/lib/libiconv/lib \
86                        -Wl,-rpath-link,$(STAGING_DIR)/usr/lib -liconv \
87                        -lgnutls -lnetfilter_queue -lpthread" \
88                DESTDIR="$(PKG_INSTALL_DIR)" \
89                all install
90endef
91
92
93define Package/nufw/install
94        $(INSTALL_DIR) $(1)/usr/sbin
95        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nufw $(1)/usr/sbin/
96endef
97
98define Package/nutcpc/install
99        $(INSTALL_DIR) $(1)/usr/bin/
100        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nutcpc $(1)/usr/bin/ 
101        $(INSTALL_DIR) $(1)/usr/lib/
102        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnuclient.so* $(1)/usr/lib/
103endef
104
105define Package/nufw-modules/install
106        $(INSTALL_DIR) $(1)/usr/lib/nuauth/modules/
107        $(CP) $(PKG_INSTALL_DIR)/usr/lib/nuauth/modules/*.so* $(1)/usr/lib/nuauth/modules/
108endef
109
110$(eval $(call BuildPackage,nufw))
111$(eval $(call BuildPackage,nutcpc))
112$(eval $(call BuildPackage,nufw-modules))
113$(eval $(call PyPackage,nufw-python))
114$(eval $(call BuildPackage,nufw-python))
Note: See TracBrowser for help on using the repository browser.