summaryrefslogtreecommitdiff
path: root/community/libreswan/APKBUILD
blob: 5f134090d2dccf6aedcc3663bede1f3123fb8555 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

pkgname=libreswan
pkgver=3.21
pkgrel=1
pkgdesc="IPsec implementation for Linux"
url="https://libreswan.org"
arch="all"
license="GPLv2"
depends="nss-tools iproute2"
provides="openswan"
makedepends="bison flex coreutils bash xmlto
	gmp-dev linux-pam-dev nss-dev unbound-dev libcap-ng-dev
	curl-dev nspr-dev bsd-compat-headers
	"
subpackages="$pkgname-doc"
source="https://download.libreswan.org/libreswan-$pkgver.tar.gz
	0001-posix-use-HOST_NAME_MAX-consitently-from-limits.h.patch
	"

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
30f1db63eb4df5d56d81f241ff15dece5b2fe1c3dea93e692e709bab67f95e8afacd534aea0e368d26fda02da7e551c03871bf793e5cf756ee8f75c3e9ef9c44  0001-posix-use-HOST_NAME_MAX-consitently-from-limits.h.patch"