2 # Copyright (C) 2006,2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
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
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/wifidog
26 SUBMENU
:=Captive Portals
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
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.
41 define Package
/wifidog
/conffiles
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
59 $(eval
$(call BuildPackage
,wifidog
))