2 # Copyright (C) 2006 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
12 PKG_VERSION
:=1.1.3_rc1
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:= @SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=2df210852bace3eb740f9344b843f6c3
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/wifidog
25 SUBMENU
:=Captive Portals
28 DEPENDS
:=+iptables-mod-extra
+iptables-mod-ipopt
+iptables-mod-nat
+libgcc
+libpthread
29 TITLE
:=A wireless captive portal solution
30 URL
:=http
://www.wifidog.org
33 define Package
/wifidog
/description
34 The Wifidog project is a complete and embeddable captive
35 portal solution for wireless community groups or individuals
36 who wish to open a free Hotspot while still preventing abuse
37 of their Internet connection.
40 define Package
/wifidog
/conffiles
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 define Package
/wifidog
/install
49 $(INSTALL_DIR
) $(1)/usr
/bin
50 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/scripts
/init.d
/wifidog
$(1)/usr
/bin
/wifidog-init
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/wifidog
$(1)/usr
/bin
/
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/wdctl
$(1)/usr
/bin
/
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libhttpd.so
* $(1)/usr
/lib
/
55 $(INSTALL_DIR
) $(1)/etc
56 $(INSTALL_DATA
) .
/files
/wifidog.conf
$(1)/etc
/
57 $(INSTALL_DIR
) $(1)/etc
/init.d
58 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/wifidog
61 $(eval
$(call BuildPackage
,wifidog
))