# Maintainer: Natanael Copa pkgname=libreswan pkgver=3.19 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="f2abcdcdccb2ec42f226a6dbb0528cad libreswan-3.19.tar.gz" sha256sums="45574624dfe38aeb3e3305793a8c307ede884dc969d3af5f10e1ff72983d64aa libreswan-3.19.tar.gz" sha512sums="fdd8fa33cd0da4c8dd2be86a5689316668041b3788b918c243a0f36f149876b14d13b3115aa203cee3885db95760bde16bee60e701e7027e412299dc2321b233 libreswan-3.19.tar.gz"