blob: 8a613ee4de41f94eb9a6ae3208b0d3e153d3a140 (
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.18
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="600c40e0d94c61408c7b4948971d78f4 libreswan-3.18.tar.gz"
sha256sums="2ff61178913287567ed2736287df47e7f9a822ddcded967f3af5f03e95b5f17d libreswan-3.18.tar.gz"
sha512sums="dfc831ae82814a26cac2eb7c8bef4385d8aebb1e62c63f31e0997d49fc6bbcc6e4e2bcd0e07d5c0c1347e5eaca5f6eb1fba98395bc882ab0fddb804a524b57f8 libreswan-3.18.tar.gz"
|