2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.nufw.org/download/nufw/
16 PKG_MD5SUM:=7eb500e7ddb3db622dc6c5d43b495c9a
18 include $(INCLUDE_DIR)/package.mk
20 define Package/nufw/Default
23 DEPENDS:=+glib2 +libgnutls +libsasl2 +libintl +libiconv +libnetfilter-queue
25 URL:=http://www.nufw.org/
28 define Package/nufw/description
29 NuFW adds user-based filtering to Netfilter,
30 the state of the art IP filtering layer from
31 the Linux kernel. Its exclusive algorithm allows
32 authenticated filtering even on multiuser computers.
36 $(call Package/nufw/Default)
40 $(call Package/nufw/Default)
44 define Package/nufw-python
45 $(call Package/nufw/Default)
46 TITLE:=python bindings
49 define PyPackage/nufw-python/filespec
50 +|$(PYTHON_PKG_DIR)/nuauth_command/__init__.py
51 +|$(PYTHON_PKG_DIR)/nuauth_command/client.py
52 +|$(PYTHON_PKG_DIR)/nuauth_command/command_dec.py
53 +|$(PYTHON_PKG_DIR)/nuauth_command/version.py
57 define Package/nufw-modules
58 $(call Package/nufw/Default)
66 --without-system-auth \
67 --with-libgnutls-prefix="$(STAGING_DIR)/usr/" \
68 --with-libgcrypt-prefix="$(STAGING_DIR)/usr/" \
69 --with-libsasl-prefix="$(STAGING_DIR)/usr/"
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \
74 -I$(STAGING_DIR)/usr/lib/libintl/include \
75 -I$(STAGING_DIR)/usr/lib/libiconv/include" \
76 LDFLAGS="$(TARGET_LDFLAGS) \
77 -L$(STAGING_DIR)/usr/lib/libintl/lib \
78 -L$(STAGING_DIR)/usr/lib/libiconv/lib \
79 -Wl,-rpath-link,$(STAGING_DIR)/usr/lib -liconv \
80 -lgnutls -lnetfilter_queue -lpthread" \
81 DESTDIR="$(PKG_INSTALL_DIR)" \
86 define Package/nufw/install
87 $(INSTALL_DIR) $(1)/usr/sbin
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nufw $(1)/usr/sbin/
91 define Package/nutcpc/install
92 $(INSTALL_DIR) $(1)/usr/bin/
93 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nutcpc $(1)/usr/bin/
94 $(INSTALL_DIR) $(1)/usr/lib/
95 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnuclient.so* $(1)/usr/lib/
98 define Package/nufw-modules/install
99 $(INSTALL_DIR) $(1)/usr/lib/nuauth/modules/
100 $(CP) $(PKG_INSTALL_DIR)/usr/lib/nuauth/modules/*.so* $(1)/usr/lib/nuauth/modules/
103 $(eval $(call BuildPackage,nufw))
104 $(eval $(call BuildPackage,nutcpc))
105 $(eval $(call BuildPackage,nufw-modules))
106 $(eval $(call PyPackage,nufw-python))
107 $(eval $(call BuildPackage,nufw-python))