blob: 7710994cce0afa67aec9c2321ead1d0cd06c0dff (
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
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=ocserv
pkgver=0.11.4
pkgrel=1
pkgdesc="OpenConnect VPN Server"
arch=('i686' 'x86_64')
url="https://gitlab.com/ocserv/ocserv"
license=('GPL2')
depends=('autogen' 'libpcl' 'gnutls' 'http-parser' 'libnl' 'libsystemd' 'pam' 'protobuf-c' 'talloc' 'libseccomp' 'freeradius-client' 'libev' 'oath-toolkit')
makedepends=('freeradius' 'gperf')
backup=('etc/ocserv.config' 'etc/ocserv-passwd')
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/ocserv/ocserv/repository/archive.tar.gz?ref=ocserv_0_11_4")
sha256sums=('9481858501a72dcb07f64a863d9ef97e31a1c29cfffa25547ee6d87759c9f05d')
prepare() {
cd ${pkgname}-${pkgname}_*
autoreconf -fi
}
build() {
cd ${pkgname}-${pkgname}_*
./configure --prefix=/usr --sbindir=/usr/bin
make
}
package() {
cd ${pkgname}-${pkgname}_*
make DESTDIR="$pkgdir" install
install -Dm0644 doc/sample.config "$pkgdir/etc/ocserv.config"
install -Dm0600 doc/sample.passwd "$pkgdir/etc/ocserv-passwd"
install -Dm0644 doc/systemd/standalone/ocserv.service "$pkgdir/usr/lib/systemd/system/ocserv.service"
}
|