blob: 9e7abfb90b95f34d7c9ecaebc4c5da1ed211e957 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libreswan
pkgver=3.19
pkgrel=0
pkgdesc="IPsec implementation for Linux"
url="https://libreswan.org"
arch="all"
license="GPLv2"
depends="nss-tools iproute2"
depends_dev="gmp-dev linux-pam-dev nss-dev unbound-dev libcap-ng-dev curl-dev nspr-dev bsd-compat-headers"
provides="openswan"
makedepends="$depends_dev bison flex coreutils bash xmlto"
subpackages="$pkgname-doc"
source="https://download.libreswan.org/libreswan-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
make WERROR_CFLAGS="" \
INC_RCDEFAULT=/etc/init.d \
INC_USRLOCAL=/usr \
FINALBINDIR=/usr/libexec/ipsec \
FINALLIBEXECDIR=/usr/libexec/ipsec \
programs || return 1
}
package() {
cd "$builddir"
make INC_MANDIR=share/man \
INC_RCDEFAULT=/etc/init.d \
INC_USRLOCAL=/usr \
DESTDIR="$pkgdir" \
INSTCONFFLAGS=-m644 \
FINALBINDIR=/usr/libexec/ipsec \
FINALLIBEXECDIR=/usr/libexec/ipsec \
install || return 1
}
md5sums="f2abcdcdccb2ec42f226a6dbb0528cad libreswan-3.19.tar.gz"
sha256sums="45574624dfe38aeb3e3305793a8c307ede884dc969d3af5f10e1ff72983d64aa libreswan-3.19.tar.gz"
sha512sums="fdd8fa33cd0da4c8dd2be86a5689316668041b3788b918c243a0f36f149876b14d13b3115aa203cee3885db95760bde16bee60e701e7027e412299dc2321b233 libreswan-3.19.tar.gz"
|