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