[patchteam] - updates nocatsplash to a functional version
[openwrt/svn-archive/archive.git] / net / nocatsplash / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=nocatsplash
11 PKG_VERSION:=0.93pre2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=NoCatSplash-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://wifi.rulez.org/~josephus/
16 PKG_MD5SUM:=b0aa5cc33a3bbdd8e65726ff3cfe3cd1
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/NoCatSplash-$(PKG_VERSION)
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/nocatsplash
25 SUBMENU:=Captive Portals
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+glib1 +iptables-mod-ipopt +iptables-mod-nat-extra
29 TITLE:=Open public network gateway daemon
30 URL:=http://nocat.net
31 endef
32
33 define Package/nocatsplash/description
34 NoCatSplash is an Open Public Network Gateway Daemon.
35 It performs as a [captive/open/active] portal. When run on a gateway/router
36 on a network, all web requests are redirected until the client either logs
37 in or clicks "I Accept" to an AUP. The gateway daemon then changes the
38 firewall rules on the gateway to pass traffic for that client (based on IP
39 address and MAC address).
40 endef
41
42 define Package/nocatsplash/conffiles
43 /etc/nocat.conf
44 endef
45
46 define Build/Configure
47 $(call Build/Configure/Default, \
48 --with-firewall=iptables \
49 --with-glib-prefix="$(STAGING_DIR)/usr" \
50 )
51 endef
52
53 define Package/nocatsplash/install
54 $(INSTALL_DIR) $(1)
55 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
56 endef
57
58 $(eval $(call BuildPackage,nocatsplash))