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