2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=e0fcc0effe52e63bc31070d16d0b4a81
16 PKG_SOURCE_URL
:=http
://wifi.rulez.org
/~josephus
/
17 PKG_SOURCE
:=NoCatSplash-
$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/NoCatSplash-
$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/nocatsplash
29 TITLE
:=Open public network gateway daemon
30 DESCRIPTION
:=NoCatSplash is an Open Public Network Gateway Daemon.
\\\
31 It performs
as a
[captive
/open
/active
] portal. When run on a gateway
/router
\\\
32 on a network
, all web requests are redirected until the client either logs
\\\
33 in or clicks
"I Accept" to an AUP. The gateway daemon then changes the
\\\
34 firewall rules on the gateway to pass traffic for that client
(based on IP
\\\
35 address and MAC address
).
\\\
39 define Package
/nocatsplash
/conffiles
43 define Build
/Configure
44 $(call Build
/Configure
/Default
, --with-firewall
=iptables \
45 --with-glib-prefix
="$(STAGING_DIR)/usr")
49 mkdir
-p
$(PKG_INSTALL_DIR
)
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 DESTDIR
="$(PKG_INSTALL_DIR)" \
55 define Package
/nocatsplash
/install
57 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
60 $(eval
$(call BuildPackage
,nocatsplash
))