blob: 17fa27613ca427bc56b84e479b2addd2a0e76702 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libreswan
pkgver=3.21
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
}
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
}
sha512sums="f1ef002b3e0869920edfebfc8efd73d9a9f84f64a77ad4832f46b12dfdd3c31cdf48c1473522b63f155058592c46af05995756af5440ca3e9c0fa5207436e0fc libreswan-3.21.tar.gz"
|