source: branches/packages_10.03.2/net/nocatauth/Makefile @ 30109

Last change on this file since 30109 was 30109, checked in by jow, 5 years ago

[packages_10.03.2] nocatauth: merge r29199

File size: 2.2 KB
Line 
1#
2# Copyright (C) 2009-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=nocatauth
11PKG_VERSION:=nightly
12PKG_RELEASE:=2
13
14PKG_SOURCE:=NoCatAuth-$(PKG_VERSION).tgz
15PKG_SOURCE_URL:=http://nocat.net/downloads/NoCatAuth/
16PKG_MD5SUM:=b3a5f8d62b322a9409806037ab8d374e
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/NoCatAuth-$(PKG_VERSION)
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/nocatauth
23  SUBMENU:=Captive Portals
24  SECTION:=net
25  CATEGORY:=Network
26  DEPENDS:=+perl +perlbase-essential +perlbase-posix +perlbase-autoloader +perlbase-xsloader +perlbase-fcntl +perlbase-tie +perlbase-getopt +perlbase-findbin +perlbase-cwd +perlbase-config +perlbase-file +perlbase-sigtrap +perlbase-io +perlbase-symbol +perlbase-selectsaver +perlbase-socket +perlbase-errno +kmod-ipt-ipopt +kmod-ipt-nat-extra +iptables-mod-ipopt +iptables-mod-nat-extra
27  TITLE:=Open public network perl-based gateway daemon
28  URL:=http://nocat.net
29endef
30
31define Package/nocatauth/description
32        NoCatAuth is the original "catch and release" captive portal
33        implementation. It provides a simple splash screen web page for
34        clients on your network, as well as a variety of authenticated
35        modes. It is written in Perl.
36endef
37
38define Build/Configure
39endef
40
41define Build/Compile
42        mkdir -p $(PKG_INSTALL_DIR)
43        $(MAKE) -C $(PKG_BUILD_DIR) \
44                PREFIX="$(PKG_INSTALL_DIR)" \
45                gateway
46endef
47
48define Package/nocatauth/install
49        $(INSTALL_DIR) $(1)
50        $(INSTALL_DIR) $(1)/www
51        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/htdocs/{status,splash}.html $(1)/www
52        $(INSTALL_DIR) $(1)/www/images
53        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/htdocs/images/auth_logo.gif $(1)/www/images
54        $(INSTALL_DIR) $(1)/usr/nocatauth/lib
55        $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/usr/nocatauth/lib
56        $(INSTALL_DIR) $(1)/usr/nocatauth/bin
57        $(CP) $(PKG_INSTALL_DIR)/bin/* $(1)/usr/nocatauth/bin
58        $(INSTALL_DIR) $(1)/etc
59        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/nocat.conf $(1)/etc/
60        $(INSTALL_DIR) $(1)/etc/init.d
61        $(INSTALL_BIN) ./files/nocatauth-gateway $(1)/etc/init.d/nocatauth-gateway
62endef
63
64define Package/nocatauth/conffiles
65/etc/nocat.conf
66endef
67
68$(eval $(call BuildPackage,nocatauth))
Note: See TracBrowser for help on using the repository browser.