summaryrefslogtreecommitdiff
path: root/package/wifidog/Makefile
blob: 2b38090af34498d9ce569902f8b2cbd61f23a5ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		wifidog
PKG_VERSION:=		1.1.5
PKG_RELEASE:=		1
PKG_MD5SUM:=		abe5f7123179a0f08c493ce59fb3cb31
PKG_DESCR:=		a complete and embeddable captive portal
PKG_SECTION:=		wifi
PKG_DEPENDS:=		iptables
PKG_URL:=		http://dev.wifidog.org/
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/}

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,WIFIDOG,wifidog,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ENV+=		ac_cv_func_memcmp_working=yes \
			ac_cv_lib_nsl_main=no \
			ac_cv_func_setvbuf_reversed=no

wifidog-install:
	${INSTALL_DIR} ${IDIR_WIFIDOG}/usr/{bin,lib} ${IDIR_WIFIDOG}/etc
	${INSTALL_DATA} ./files/wifidog.conf ${IDIR_WIFIDOG}/etc/
	${INSTALL_BIN} ${WRKBUILD}/scripts/init.d/wifidog \
		${IDIR_WIFIDOG}/usr/bin/wifidog-init
	${INSTALL_BIN} ${WRKINST}/usr/bin/wifidog \
		       ${WRKINST}/usr/bin/wdctl ${IDIR_WIFIDOG}/usr/bin/
	${CP} ${WRKINST}/usr/lib/libhttpd.so* ${IDIR_WIFIDOG}/usr/lib/

include ${TOPDIR}/mk/pkg-bottom.mk