You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.1 KiB

# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=ocserv
pkgver=0.11.6
pkgrel=2
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_${pkgver//./_}")
sha256sums=('975f5f5f785c5a21c8c10cdf11c71c8446f6c2cef88440cbd539a649867d0801')
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"
}