diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-15 12:10:24 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-15 12:15:32 +0000 |
commit | 6d9a3c784420caa46945d1ee635d8ed506337982 (patch) | |
tree | 345c5d8438f7135711f5e44aaad2484b0a8c71a1 /main/strongswan | |
parent | f80b3c10803eec74d1196b5c2b4925f1fffe6edf (diff) | |
download | aports-6d9a3c784420caa46945d1ee635d8ed506337982.tar.bz2 aports-6d9a3c784420caa46945d1ee635d8ed506337982.tar.xz |
main/strongswan: add secinfo, modernize APKBUILD
Diffstat (limited to 'main/strongswan')
-rw-r--r-- | main/strongswan/APKBUILD | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/main/strongswan/APKBUILD b/main/strongswan/APKBUILD index ae7ab6a6b2..a61b2d5755 100644 --- a/main/strongswan/APKBUILD +++ b/main/strongswan/APKBUILD @@ -3,7 +3,7 @@ pkgname=strongswan pkgver=5.5.3 _pkgver=${pkgver//_rc/rc} -pkgrel=0 +pkgrel=1 pkgdesc="IPsec-based VPN solution focused on security and ease of use, supporting IKEv1/IKEv2 and MOBIKE" url="http://www.strongswan.org/" arch="all" @@ -25,12 +25,18 @@ source="http://download.strongswan.org/$pkgname-$_pkgver.tar.bz2 libressl.patch strongswan.initd - charon.initd" + charon.initd + " +builddir="$srcdir/$pkgname-$_pkgver" + +# secfixes: +# 5.5.3-r0: +# - CVE-2017-9022 +# - CVE-2017-9023 -_builddir="$srcdir/$pkgname-$_pkgver" prepare() { local i - cd "$srcdir/$pkgname-$_pkgver" + cd "$builddir" for i in $source; do case $i in *.patch) msg $i; patch -Np1 -i "$srcdir"/$i || _err="$_err $i" ;; @@ -50,7 +56,7 @@ prepare() { } build() { - cd "$_builddir" + cd "$builddir" # notes about configuration: # - try to keep options in ./configure --help order @@ -100,16 +106,15 @@ build() { --enable-cmd \ --enable-swanctl \ --enable-shared \ - --disable-static \ - || return 1 - make || return 1 + --disable-static + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 - install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname" || return 1 - install -m755 -D "$srcdir/charon.initd" "$pkgdir/etc/init.d/charon" || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install + install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname" + install -m755 -D "$srcdir/charon.initd" "$pkgdir/etc/init.d/charon" } sha512sums="0b0b25d2102c98cda54300dc8c3c3a49a55e64f7c695dda65a24f2194f19bce0b7aab9e4f7486c243b552f9d1a94867d6a8782ee504aad1c9973809706d599ac strongswan-5.5.3.tar.bz2 |