2 # Copyright (C) 2006,2015 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
16 # Note: Packaging is maintained upstream at
17 # https://github.com/wifidog/packages
18 PKG_MAINTAINER
:=Michael Haas
<haas@computerlinguist.org
>
19 PKG_LICENSE_FILES
:=COPYING
23 PKG_SOURCE_URL
:=git
://github.com
/wifidog
/wifidog-gateway.git
24 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
25 PKG_SOURCE_VERSION
:=1.3.0
26 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
29 # do not run make install
31 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
33 include $(INCLUDE_DIR
)/package.mk
35 define Package
/wifidog
/Default
36 SUBMENU
:=Captive Portals
39 DEPENDS
:=+iptables-mod-extra
+iptables-mod-ipopt
+iptables-mod-nat-extra
+libpthread
40 TITLE
:=A wireless captive portal solution
41 URL
:=http
://www.wifidog.org
44 define Package
/wifidog
45 $(call Package
/wifidog
/Default
)
49 define Package
/wifidog-tls
50 $(call Package
/wifidog
/Default
)
56 define Package
/wifidog
/description
57 The Wifidog project is a complete and embeddable captive
58 portal solution for wireless community groups or individuals
59 who wish to open a free Hotspot while still preventing abuse
60 of their Internet connection.
63 define Package
/wifidog-tls
/description
64 $(call Package
/wifidog
/description
)
66 This variant can talk TLS to the auth server.
69 define Package
/wifidog
/conffiles
73 Package
/wifidog-tls
/conffiles
= $(Package
/wifidog
/conffiles
)
76 define Package
/wifidog
/configure
77 $(call Build
/Configure
/Default
)
80 ifeq ($(BUILD_VARIANT
),tls
)
87 define Package
/wifidog
/install
88 $(INSTALL_DIR
) $(1)/usr
/bin
89 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/wifidog
$(1)/usr
/bin
/
90 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/wdctl
$(1)/usr
/bin
/
91 $(INSTALL_DIR
) $(1)/usr
/lib
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libhttpd.so
* $(1)/usr
/lib
/
93 $(INSTALL_DIR
) $(1)/etc
94 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/wifidog.conf
$(1)/etc
/
95 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/wifidog-msg.html
$(1)/etc
/
96 $(INSTALL_DIR
) $(1)/etc
/init.d
97 $(INSTALL_BIN
) .
/files
/wifidog.init
$(1)/etc
/init.d
/wifidog
100 Package
/wifidog-tls
/install = $(Package
/wifidog
/install)
102 $(eval
$(call BuildPackage
,wifidog
))
103 $(eval
$(call BuildPackage
,wifidog-tls
))