fix ssmtp compile
[openwrt/svn-archive/archive.git] / net / nocatsplash / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nocatsplash
12 PKG_VERSION:=0.92
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=NoCatSplash-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://wifi.rulez.org/~josephus/
17 PKG_MD5SUM:=e0fcc0effe52e63bc31070d16d0b4a81
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/NoCatSplash-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/nocatsplash
24 SUBMENU:=Captive Portals
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+glib1
28 TITLE:=Open public network gateway daemon
29 URL:=http://nocat.net
30 endef
31
32 define Package/nocatsplash/description
33 NoCatSplash is an Open Public Network Gateway Daemon.
34 It performs as a [captive/open/active] portal. When run on a gateway/router
35 on a network, all web requests are redirected until the client either logs
36 in or clicks "I Accept" to an AUP. The gateway daemon then changes the
37 firewall rules on the gateway to pass traffic for that client (based on IP
38 address and MAC address).
39 endef
40
41 define Package/nocatsplash/conffiles
42 /etc/nocat.conf
43 endef
44
45 define Build/Configure
46 $(call Build/Configure/Default, \
47 --with-firewall=iptables \
48 --with-glib-prefix="$(STAGING_DIR)/usr" \
49 )
50 endef
51
52 define Build/Compile
53 mkdir -p $(PKG_INSTALL_DIR)
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 all install
57 endef
58
59 define Package/nocatsplash/install
60 $(INSTALL_DIR) $(1)
61 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
62 endef
63
64 $(eval $(call BuildPackage,nocatsplash))