blob: 177522f9a7ce0af0954c77458df79310fea0d71a (
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
|
# Maintainer: asamk
# Contributor: envolution
# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgname=openfortivpn-git
_pkgname=openfortivpn
pkgver=1.23.1+r0+ga011b5c
pkgrel=1
pkgdesc="An open implementation of Fortinet's proprietary PPP+SSL VPN solution"
arch=(x86_64)
url=https://github.com/adrienverge/openfortivpn
license=(GPL-3.0-only)
depends=(
glibc
openssl
ppp
)
makedepends=(
git
)
provides=('openfortivpn')
conflicts=('openfortivpn')
backup=(etc/openfortivpn/config)
# https://github.com/adrienverge/openfortivpn.git
source=(openfortivpn.tar.gz)
sha256sums=('387ad30d19eee76f1e363e3e74a75817e1eed681446a84e0216cbe6f78686c13')
prepare() {
cd openfortivpn
autoreconf -fiv
}
pkgver(){
cd "${srcdir}/openfortivpn"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/+/g;s/v//' ||
printf "r%s+%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd openfortivpn
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--with-ppp \
--with-systemdsystemunitdir=no
make
}
package() {
make DESTDIR="${pkgdir}" -C openfortivpn install
}
# vim: ts=2 sw=2 et:
|