[package] wifidog: update to revision 1464
[packages.git] / net / wifidog / Makefile
1 #
2 # Copyright (C) 2006,2012 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:=wifidog
11 PKG_REV:=1464
12 PKG_VERSION:=r$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://dev.wifidog.org/svn/trunk/wifidog
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=svn
20 PKG_SOURCE_MIRROR:=0
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/wifidog
28   SUBMENU:=Captive Portals
29   SECTION:=net
30   CATEGORY:=Network
31   DEPENDS:=+iptables-mod-extra +iptables-mod-ipopt +kmod-ipt-nat +iptables-mod-nat-extra +libpthread
32   TITLE:=A wireless captive portal solution
33   URL:=http://www.wifidog.org
34 endef
35
36 define Package/wifidog/description
37         The Wifidog project is a complete and embeddable captive
38         portal solution for wireless community groups or individuals
39         who wish to open a free Hotspot while still preventing abuse
40         of their Internet connection.
41 endef
42
43 define Package/wifidog/conffiles
44 /etc/wifidog.conf
45 endef
46
47 define Package/wifidog/install
48         $(INSTALL_DIR) $(1)/usr/bin
49         $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/init.d/wifidog $(1)/usr/bin/wifidog-init
50         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(1)/usr/bin/
51         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/usr/bin/
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttpd.so* $(1)/usr/lib/
54         $(INSTALL_DIR) $(1)/etc
55         $(INSTALL_DATA) ./files/wifidog.conf $(1)/etc/
56         $(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-msg.html $(1)/etc/
57         $(INSTALL_DIR) $(1)/etc/init.d
58         $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog
59 endef
60
61 $(eval $(call BuildPackage,wifidog))