Category reorganization
[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_rc1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:= @SF/$(PKG_NAME)
17 PKG_MD5SUM:=2df210852bace3eb740f9344b843f6c3
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 SUBMENU:=Captive Portals
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=+iptables-mod-extra +iptables-mod-ipopt +iptables-mod-nat +libgcc +libpthread
30 TITLE:=A wireless captive portal solution
31 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 URL:=http://www.wifidog.org
37 endef
38
39 define Package/wifidog/conffiles
40 /etc/wifidog.conf
41 endef
42
43 MAKE_FLAGS += \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
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 $(CP) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(1)/usr/bin/
51 $(CP) $(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_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog
58 endef
59
60 $(eval $(call BuildPackage,wifidog))