source: packages/net/nocatauth/Makefile @ 16610

Last change on this file since 16610 was 16610, checked in by agb, 7 years ago

[packages] add nocatauth, thanks Russell Senior

File size: 2.1 KB
Line 
1#
2# Copyright (C) 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# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=nocatauth
12PKG_VERSION:=nightly
13PKG_RELEASE:=1
14
15PKG_SOURCE:=NoCatAuth-$(PKG_VERSION).tgz
16PKG_SOURCE_URL:=http://nocat.net/downloads/NoCatAuth/
17PKG_MD5SUM:=b3a5f8d62b322a9409806037ab8d374e
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/NoCatAuth-$(PKG_VERSION)
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/nocatauth
24  SUBMENU:=Captive Portals
25  SECTION:=net
26  CATEGORY:=Network
27  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
28  TITLE:=Open public network perl-based gateway daemon
29  URL:=http://nocat.net
30endef
31
32define Package/nocatauth/description
33        NoCatAuth is the original "catch and release" captive portal
34        implementation. It provides a simple splash screen web page for
35        clients on your network, as well as a variety of authenticated
36        modes. It is written in Perl.
37endef
38
39define Build/Configure
40endef
41
42define Build/Compile
43        mkdir -p $(PKG_INSTALL_DIR)
44        $(MAKE) -C $(PKG_BUILD_DIR) \
45                PREFIX="$(PKG_INSTALL_DIR)" \
46                gateway
47endef
48
49define Package/nocatauth/install
50        $(INSTALL_DIR) $(1)
51        $(INSTALL_DIR) $(1)/www
52        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/htdocs/{status,splash}.html $(1)/www
53        $(INSTALL_DIR) $(1)/www/images
54        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/htdocs/images/auth_logo.gif $(1)/www/images
55        $(INSTALL_DIR) $(1)/usr/nocatauth/lib
56        $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/usr/nocatauth/lib
57        $(INSTALL_DIR) $(1)/usr/nocatauth/bin
58        $(CP) $(PKG_INSTALL_DIR)/bin/* $(1)/usr/nocatauth/bin
59        $(INSTALL_DIR) $(1)/etc
60        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/nocat.conf $(1)/etc/
61        $(INSTALL_DIR) $(1)/etc/init.d
62        $(INSTALL_BIN) ./files/nocatauth-gateway $(1)/etc/init.d/nocatauth-gateway
63endef
64
65$(eval $(call BuildPackage,nocatauth))
Note: See TracBrowser for help on using the repository browser.