diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 29 insertions, 26 deletions
@@ -1,48 +1,51 @@ -# Maintainer: Gomasy <nyan@gomasy.jp> +# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com +# Contributor: Gomasy <nyan@gomasy.jp> # Contributor: Alexandre BIQUE <bique.alexandre@gmail.com> # Contributor: Patrick Burroughs (Celti) <celti@celti.name> -pkgname=libreswan -pkgver=3.29 -pkgrel=1 -pkgdesc="IPsec implementation with IKEv1 and IKEv2 keying protocols" +pkgname='libreswan' +pkgver='3.29' +pkgrel='2' +pkgdesc='IPsec implementation with IKEv1 and IKEv2 keying protocols' arch=('i686' 'x86_64') -url="https://libreswan.org/" +url='https://libreswan.org/' license=('GPL' 'MPL') depends=('systemd' 'unbound' 'nss' 'libcap-ng' 'curl') +depends+=('python2') makedepends=('docbook-xsl' 'xmlto' 'flex' 'bison') conflicts=('freeswan' 'openswan' 'strongswan' 'ipsec-tools') backup=('etc/ipsec.conf' 'etc/ipsec.secrets' 'etc/pam.d/pluto') -source=(https://download.libreswan.org/${pkgname}-${pkgver}.tar.gz - tmpfiles.conf) +_srcdir="${pkgname}-${pkgver}" +source=( + "https://download.libreswan.org/${pkgname}-${pkgver}.tar.gz" + 'tmpfiles.conf' +) md5sums=('5b35b39a04f63a8e528b965aad515c01' '77399a739ee99f8bc54837684d7c39d5') +sha256sums=('d60e4160f43272b6307b697a13f79f56b5ec2bca61d83097ddadd8586a58ab3e' + '78265c690d58228c3bcc1a8793456172c39d493d268e9d9b1816288d0a47f573') -build() { - cd $pkgname-$pkgver +_bargs=( + USE_XAUTH=true USE_LIBCAP_NG=true USE_LEAK_DETECTIVE=false USE_LABELED_IPSEC=false USE_DNSSEC=false + INC_USRLOCAL=/usr INC_MANDIR=share/man + FINALSBINDIR=/usr/bin FINALLIBEXECDIR=/usr/lib/ipsec +) +build() { + cd "${_srcdir}" # Disable new warning introduced with GCC 6 (-Wunused-const-variable=) - export CFLAGS="$CFLAGS -Wno-error=sign-compare -Wno-error=unused-const-variable -Wno-error=implicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=pointer-compare -Wno-error=format-truncation" - - make \ - USE_XAUTH=true USE_LIBCAP_NG=true USE_LEAK_DETECTIVE=false USE_LABELED_IPSEC=false USE_DNSSEC=false \ - INC_USRLOCAL=/usr INC_MANDIR=share/man \ - FINALSBINDIR=/usr/bin FINALLIBEXECDIR=/usr/lib/ipsec \ - programs + CFLAGS="$CFLAGS -Wno-error=sign-compare -Wno-error=unused-const-variable -Wno-error=implicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=pointer-compare -Wno-error=format-truncation" \ + make -s "${_bargs[@]}" programs } package() { - cd $pkgname-$pkgver + cd "${_srcdir}" - make DESTDIR="$pkgdir/" \ - USE_XAUTH=true USE_LIBCAP_NG=true USE_LEAK_DETECTIVE=false USE_LABELED_IPSEC=false USE_DNSSEC=false \ - INC_USRLOCAL=/usr INC_MANDIR=share/man \ - FINALSBINDIR=/usr/bin FINALLIBEXECDIR=/usr/lib/ipsec \ - install + make DESTDIR="${pkgdir}/" "${_bargs[@]}" install - sed -i '1s|python|python2|' $pkgdir/usr/lib/ipsec/verify - install -D -m644 ${srcdir}/tmpfiles.conf ${pkgdir}/usr/lib/tmpfiles.d/libreswan.conf - rm -rf ${pkgdir}/var + sed -e '1s|python|python2|' -i "${pkgdir}/usr/lib/ipsec/verify" + install -Dpm644 "${srcdir}/tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/libreswan.conf" + rm -rf "${pkgdir}/var" } # vim:set ts=2 sw=2 et: |