summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 976f3d84c0ffd901ebc42d227272f3a9cb5d0679 (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
# Maintainer: robertfoster

pkgname=coova-chilli-arch
pkgver=1.4
pkgrel=1
pkgdesc='An open-source software access controller'
arch=('i686' 'x86_64')
url="https://coova.github.io/"
license=('GPL')
depends=('curl' 'libpcap' 'openssl')
makedepends=('gengetopt')
optdepends=('python2')
options=(!libtool)
replaces=(coova-chilli)
source=("https://github.com/coova/coova-chilli/archive/$pkgver.tar.gz"
	chilli.service
	4149a5ddfcc666ebbca3fcc9da308e7ff9e433b7.patch
	makefile.am.patch
)
backup=('etc/chilli.conf')
install=chilli.install

prepare() {
	cd "${srcdir}/coova-chilli-${pkgver}"

	patch -Np1 -i ../4149a5ddfcc666ebbca3fcc9da308e7ff9e433b7.patch
	patch -Np1 -i ../makefile.am.patch

	./bootstrap
	./configure --prefix=/usr --sbindir=/usr/bin/ \
    --sysconfdir=/etc --localstatedir=/var \
    --enable-statusfile \
    --disable-static \
    --enable-shared \
    --enable-largelimits \
    --enable-miniportal \
    --enable-chilliredir \
    --enable-chilliproxy \
    --enable-chilliscript \
    --with-poll \
    --with-openssl \
	--enable-chilliradsec

}

build() {
	cd "${srcdir}/coova-chilli-${pkgver}"
	make
}

package() {
	cd "${srcdir}/coova-chilli-${pkgver}"
	make DESTDIR="${pkgdir}" install

	msg2 "Installing systemd unit for ${pkgname}"
	install -Dm0644 ../chilli.service $pkgdir/usr/lib/systemd/system/chilli.service

	rm -rf ${pkgdir}/etc/init.d
}

md5sums=('c322fb0c0d575993acdfb8bdbe1cc022'
	'828147e21eac257c3b700ea7f4ca3d98'
	'a185897520cdde94be784f336dd67bcc'
'986482eb732530c30cdc9e7987a53ad4')