aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-10-10 20:58:07 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-10-10 20:58:41 +0300
commitdb00a3ff619a59dac787fcb017904212bc18f9a7 (patch)
tree1d2712d4229c92778d7c95c2e6b72b449db2b886
parent0850e331924938016912ac3360858519688de56d (diff)
downloadaports-db00a3ff619a59dac787fcb017904212bc18f9a7.tar.bz2
aports-db00a3ff619a59dac787fcb017904212bc18f9a7.tar.xz
community/libreswan: revive from unmaintained, upgrade to 3.18
-rw-r--r--community/libreswan/APKBUILD (renamed from unmaintained/libreswan/APKBUILD)30
1 files changed, 12 insertions, 18 deletions
diff --git a/unmaintained/libreswan/APKBUILD b/community/libreswan/APKBUILD
index 08c063aab0..8a613ee4de 100644
--- a/unmaintained/libreswan/APKBUILD
+++ b/community/libreswan/APKBUILD
@@ -1,31 +1,25 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libreswan
-pkgver=3.11
+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"
-makedepends="$depends_dev bison flex coreutils bash"
+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
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
- make INC_RCDEFAULT=/etc/init.d \
+ cd "$builddir"
+ make WERROR_CFLAGS="" \
+ INC_RCDEFAULT=/etc/init.d \
INC_USRLOCAL=/usr \
FINALBINDIR=/usr/libexec/ipsec \
FINALLIBEXECDIR=/usr/libexec/ipsec \
@@ -33,7 +27,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make INC_MANDIR=share/man \
INC_RCDEFAULT=/etc/init.d \
INC_USRLOCAL=/usr \
@@ -43,6 +37,6 @@ package() {
FINALLIBEXECDIR=/usr/libexec/ipsec \
install || return 1
}
-md5sums="d8ffd012eb6933ff0f069334a85f81e1 libreswan-3.11.tar.gz"
-sha256sums="f2837f0ab380671844359fca397357e3045137ba31fabcef5abdb1d613939fc2 libreswan-3.11.tar.gz"
-sha512sums="40b91f05ca1156e33a3d6e2ee2932a65936392ae762b64bd20639bbb9a63269ae24d349f377d8b77743c84fbdfe0290bf581aa17e8634777147a5642995a1c7c libreswan-3.11.tar.gz"
+md5sums="600c40e0d94c61408c7b4948971d78f4 libreswan-3.18.tar.gz"
+sha256sums="2ff61178913287567ed2736287df47e7f9a822ddcded967f3af5f03e95b5f17d libreswan-3.18.tar.gz"
+sha512sums="dfc831ae82814a26cac2eb7c8bef4385d8aebb1e62c63f31e0997d49fc6bbcc6e4e2bcd0e07d5c0c1347e5eaca5f6eb1fba98395bc882ab0fddb804a524b57f8 libreswan-3.18.tar.gz"