blob: eab33f76b3b39e757d88a9f6e180693d0df982b3 (
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
94
95
96
97
98
|
# Contributor: grharry
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=coova-chilli
pkgver=1.3.0
pkgrel=3
pkgdesc="CoovaChilli is an open source access controller for wireless LAN"
url="http://www.coova.org/"
arch="all"
license="GPL3+"
depends=""
makedepends="perl openssl-dev autoconf automake libtool curl-dev"
install="$pkgname.pre-install"
pkgusers="chilli"
pkggroups="chilli"
subpackages="$pkgname-doc $pkgname-dev"
source="http://ap.coova.org/chilli/coova-chilli-$pkgver.tar.gz
automake.patch
chilli_limits.patch
posix-regex.patch
system.patch
"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd $_builddir
update_config_sub || return 1
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 \
&& aclocal && autoconf && automake --add-missing || 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-curl \
--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
rm "$pkgdir"/usr/lib/*.la || 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="dc0037e3cdebcb60508081b4e42e984a coova-chilli-1.3.0.tar.gz
b3aaf43bcdb5cfbf39d1c730d1de1a3b automake.patch
95d7550c5c29bcb3d41ec8e4b1597d23 chilli_limits.patch
42918782a1c9f377c665c89a3dcc91b6 posix-regex.patch
ba24925e6a3290a928e8ca65c5372fa1 system.patch"
sha256sums="ca24ac274340c65a8e7ff704e6866a04380a87c444f261ba84097f0bd1c162e8 coova-chilli-1.3.0.tar.gz
16f529c7deee24155bd900a3f64fc110207d435ad12bd91e71823acd6156ab25 automake.patch
e3a31714aa9395f6be01cf0cd2899dc0f6934cd2954fa16af186b527be1aa09a chilli_limits.patch
e9f989efaf07dee4cea55f1ce02a7e820cee39973031dd25a33a737ba51dfa6b posix-regex.patch
775250d76935310c68a7a7f400ec3fbbc779212a34e568acab734191a3f209ad system.patch"
sha512sums="40dd77a6fb2877f46b0d6e84cfba9507dfac0999f6aff45d3a28bb64fd044b707cfeacd06d4bd411669e3a47cdc5ec14dbf79effee235174fbbf0b88c30015b3 coova-chilli-1.3.0.tar.gz
643b99f473753881f15e8b049ae1e071a8fe6164fd92b30a54ad27a0a8b58d26727ab82d28b587defc1f28f4213c64d298bf707b9bf6a3a98013578b26a79733 automake.patch
b12f387fdce54281d134d20e1785e4a1af9fc02a532c82c955f970ab344822a20a12c6b4bed10b1adf3f4ddaa87f650048212ad25a82bfc4f6e955e23ba63c91 chilli_limits.patch
cafe0899ce95c7b75fcc54c3e70fd8b0d7962c05616c759bec45e16be41ad28a8304507dfc74fc14fe09923d7fdbd8f3c3351241256df63b06aba84ce11faffa posix-regex.patch
5d00133e48eb38995ac14e3ec136fa64cd447cc14dd93fda80c6c7ad28cc6704ce6a70561d3bb293f0c13fcef9fc4f01daa4dfed7f7ce8fa540e1fdc141041da system.patch"
|