2 # Copyright (C) 2006,2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:= @SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=daa4f492dd6acafe0a7127d07633aca5
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/wifidog
24 SUBMENU
:=Captive Portals
27 DEPENDS
:=+iptables-mod-extra
+iptables-mod-ipopt
+iptables-mod-nat
+libpthread
28 TITLE
:=A wireless captive portal solution
29 URL
:=http
://www.wifidog.org
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.
39 define Package
/wifidog
/conffiles
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
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 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/wifidog
$(1)/usr
/bin
/
51 $(INSTALL_BIN
) $(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
60 $(eval
$(call BuildPackage
,wifidog
))