summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42f17ab135b11213cfda5fc8218e27f7f802bb83 (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
# Maintainer: M0Rf30

pkgname=coova-chilli-arch
pkgver=1.3.2
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)
backup=('etc/chilli.conf')
install=chilli.install

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

    ./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 
    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
}

md5sums=('26e02689f632ad27ad599bc0d9f5ae3d'
         '828147e21eac257c3b700ea7f4ca3d98')
md5sums=('26e02689f632ad27ad599bc0d9f5ae3d'
         '828147e21eac257c3b700ea7f4ca3d98')