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