blob: a471ebc82049e95f2209f1b68f7f2442ea27565e (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vpnc
pkgver=0.5.3
_commit=fa0689cc9a67d02a614c7a2406dfe2e794825a31
pkgrel=6
pkgdesc="IPSec VPN client compatible with Cisco equipment"
url="https://github.com/streambinder/vpnc"
arch="all"
license="GPL-3.0-or-later"
makedepends="gnutls-dev libgcrypt-dev openssl-dev perl linux-headers"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.zip::https://github.com/streambinder/vpnc/archive/$_commit.zip
vpnc.initd
vpnc.confd"
builddir="$srcdir/$pkgname-$_commit"
build() {
sed 's|^#OPENSSL|OPENSSL|g' -i Makefile
make PREFIX=/usr
}
check() {
make test
}
package() {
make PREFIX=/usr DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/vpnc.initd \
"$pkgdir"/etc/init.d/vpnc
install -m644 -D "$srcdir"/vpnc.confd \
"$pkgdir"/etc/conf.d/vpnc
}
sha512sums="b78a0e9689b743bcda002e1b8b1f924757477c07899b2b6e5d6b4d3a82399f7cc5daaf9f5d10cb337a0a9b082053f9e083f9a9848a6d01481e8846a1d4ad4165 vpnc-0.5.3.zip
d20091a67ccd3b8e9f31ca47c49577ff3cd5bf6ba9ef7bcd9f03231d87fa64d978c60ab69c67bbafdc18d6474d932d6ec68de02d13bea41ae6a7d31b845635e9 vpnc.initd
1254f687dcd9822becfcccabbb34d8343d715d70247dbf4b5e018835fff24b33f5272368f77199d697c8d11d913182b1f756d5e08a46b2057849779f09b19633 vpnc.confd"
|