Update wifidog to 1.1.3-beta6, (#1206)
[openwrt/svn-archive/archive.git] / net / wifidog / Makefile
1 #
2 # Copyright (C) 2006 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wifidog
12 PKG_VERSION:=1.1.3_beta6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:= @SF/$(PKG_NAME)
17 PKG_MD5SUM:=842b21e1b02d0a90677b289d794e0e21
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/wifidog
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+iptables-mod-extra +iptables-mod-ipopt +iptables-mod-nat +libgcc
29 TITLE:=A wireless captive portal solution
30 DESCRIPTION:=\
31 The Wifidog project is a complete and embeddable captive \\\
32 portal solution for wireless community groups or individuals \\\
33 who wish to open a free Hotspot while still preventing abuse \\\
34 of their Internet connection.
35 URL:=http://www.wifidog.org
36 endef
37
38 define Package/wifidog/conffiles
39 /etc/wifidog.conf
40 endef
41
42 # uses GNU configure
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Package/wifidog/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/init.d/wifidog $(1)/usr/bin/wifidog-init
53 $(CP) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(1)/usr/bin/
54 $(CP) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttpd.so* $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/etc
58 $(INSTALL_DATA) ./files/wifidog.conf $(1)/etc/
59 $(INSTALL_DIR) $(1)/etc/init.d
60 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog
61 endef
62
63 $(eval $(call BuildPackage,wifidog))