# Maintainer: Natanael Copa pkgname=libreswan pkgver=3.27 pkgrel=0 pkgdesc="IPsec implementation for Linux" url="https://libreswan.org" arch="all" license="GPL-2.0" 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 ldns-dev " subpackages="$pkgname-doc" source="https://download.libreswan.org/libreswan-$pkgver.tar.gz fix-includes.patch Makefile.inc.local" builddir="$srcdir"/$pkgname-$pkgver build() { cp $srcdir/Makefile.inc.local $builddir 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="b92ecfd08b9d19dc801032176eff3dd07f625223d4f0dd07ff10f639644573430a55f7aebfcc8b9d2424e194ca9d06b17ad5a13dad5dc6f659d19bc5d32520f5 libreswan-3.27.tar.gz df503e349661a029f8f6569ea65b4ecceb67f18c0a133d4818d390c0e6e719c2c793c483881778685f1eedaa210ea815ae4f77a94fa84a1acb63a9ad5e8db501 fix-includes.patch 8c80e5dc8b1b9ac2cd9c3441da2a4253d23328a065655d85f7958ec0678bd42fc74b418524a4787075872c0f545e8fb0394ff168cd25d1dc49010248155ddaef Makefile.inc.local"