2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # This Makefile is a skeleton
11 include $(TOPDIR
)/rules.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=http
://www.nufw.org
/download
/nufw
/
18 PKG_MD5SUM
:=f25ef486b0fc71cd03a3913a26515029
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/nufw
/Default
25 DEPENDS
:=+glib2
+libgnutls
+libsasl2
+libintl
+libiconv
+libnetfilter-queue
27 URL
:=http
://www.nufw.org
/
30 define 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.
38 $(call Package
/nufw
/Default
)
42 $(call Package
/nufw
/Default
)
46 define Package
/nufw-python
47 $(call Package
/nufw
/Default
)
48 TITLE
:=python bindings
51 define 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
59 define Package
/nufw-modules
60 $(call Package
/nufw
/Default
)
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/"
74 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
75 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/lib/libintl/include/ \
76 -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include \
77 -I$(STAGING_DIR)/usr/lib/libiconv/include" \
78 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib \
79 -L$(STAGING_DIR)/usr/lib/libintl/lib \
80 -L$(STAGING_DIR)/usr/lib/libiconv/lib \
81 -Wl,-rpath-link,$(STAGING_DIR)/usr/lib -liconv \
82 -lgnutls -lnetfilter_queue -lpthread" \
83 DESTDIR
="$(PKG_INSTALL_DIR)" \
88 define Package
/nufw
/install
89 $(INSTALL_DIR
) $(1)/usr
/sbin
90 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/nufw
$(1)/usr
/sbin
/
93 define Package
/nutcpc
/install
94 $(INSTALL_DIR
) $(1)/usr
/bin
/
95 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nutcpc
$(1)/usr
/bin
/
96 $(INSTALL_DIR
) $(1)/usr
/lib
/
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnuclient.so
* $(1)/usr
/lib
/
100 define Package
/nufw-modules
/install
101 $(INSTALL_DIR
) $(1)/usr
/lib
/nuauth
/modules
/
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/nuauth
/modules
/*.so
* $(1)/usr
/lib
/nuauth
/modules
/
105 $(eval
$(call BuildPackage
,nufw
))
106 $(eval
$(call BuildPackage
,nutcpc
))
107 $(eval
$(call BuildPackage
,nufw-modules
))
108 $(eval
$(call PyPackage
,nufw-python
))
109 $(eval
$(call BuildPackage
,nufw-python
))