aboutsummaryrefslogtreecommitdiffstats
path: root/main/coova-chilli/APKBUILD
blob: fa092c8940fd94591b67bf858323ed6d881a3319 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Contributor: grharry
# Maintainer:
pkgname=coova-chilli
pkgver=1.3.2
pkgrel=1
pkgdesc="CoovaChilli is an open source access controller for wireless LAN"
url="http://www.coova.org/"
arch="all"
license="GPL3+"
depends=""
makedepends="perl libressl-dev autoconf automake libtool curl-dev
	linux-headers gengetopt-dev"
install="$pkgname.pre-install"
pkgusers="chilli"
pkggroups="chilli"
subpackages="$pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/coova/coova-chilli/archive/$pkgver.tar.gz
	posix-regex.patch
	system.patch
	des.patch
	"
options="suid"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd $_builddir
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i 's/-Werror//g' src/Makefile.am || return 1
	sed -i 's%(localstatedir)/run%(localstatedir)%' src/Makefile.am || return 1
	libtoolize --force \
		&& autoreconf -vif || return 1
}

build() {
	cd $_builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var/run/chilli \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--with-openssl \
		--with-poll \
		--enable-binstatusfile \
		--enable-statusfile \
		--enable-chillixml \
		--enable-ipwhitelist \
		--enable-redirinject \
		--enable-redirdnsreq \
		--enable-redirinject \
		--enable-debug \
		--enable-debug2 \
		--enable-sessgarden \
		--enable-shared \
		--enable-chilliredir \
		--enable-chilliscript \
		--enable-layer3 \
		--enable-dhcpopt \
		--enable-largelimits \
		|| return 1
	export CFLAGS="$CFLAGS -Wno-error=unused-but-set-variable"
	make -j1 || return 1
}

package() {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
	install -D -m755 ../../chilli.initd $pkgdir/etc/init.d/chilli || return 1
	install -D -m755 ../../chilli.confd $pkgdir/etc/conf.d/chilli || return 1
	mkdir -p $pkgdir/var/run/chilli
	chown -R chilli:chilli $pkgdir/var/run/chilli
}

md5sums="26e02689f632ad27ad599bc0d9f5ae3d  coova-chilli-1.3.2.tar.gz
ed92f843b016386373cf75ef103e0c52  posix-regex.patch
f5362ff39e5f8aebded93600445b33e3  system.patch
096390f1ad301e3e31343a060acfea9f  des.patch"
sha256sums="dae4f91a0f735292bf65e2abd2761f83ce1c3f56286165265633fdec8e9e800e  coova-chilli-1.3.2.tar.gz
4784df2b94fd659699f853a24ed54a74926313d02f6704f3f6d7160c210df895  posix-regex.patch
89cae49e154e0d4990378c0a3277214a297c86df292ede146781f04f4c98caab  system.patch
7a6e18bd1d2ee7ff391da1bf1f36c65e44aca1aeaf816a78f85783184882f83b  des.patch"
sha512sums="03fc50c1c206419b1d785c2b23dab7ebde72e49b5656ee3be6b6110d075ebc91a832d4bdf337f8f446f3c899d75655a7503bbfd4e7aca7889cff1edde596d5ae  coova-chilli-1.3.2.tar.gz
d47d176d01eda436b04700bb4404fe2a3c17e00bd8c2e4ed08149841c3e692435fee4f7dc22135d07b95556dd2f2d08b540a345bb7d5bdff3266bfcc46dcda76  posix-regex.patch
7dbfa571f5eb7065a3a6c2f7c14e2d33cec52771e0236f29837d28cc216ca5a12eb31e1f3d3a780964c8e0f65eb057a9c040b14c65d84cd8483858f757240d6b  system.patch
b2dce18c72808e58dd97a235191e9b843f0bfa06805b12c39488bf4464d055c0734248c89c571cc8069e0f06856f7fcf8458aac84f895da4ed2b0ceb7cbd6f82  des.patch"