# Maintainer: Natanael Copa pkgname=ipsec-tools pkgver=0.8_alpha20090903 _myver=0.8-alpha20090903 pkgrel=2 pkgdesc="User-space IPsec tools for various IPsec implementations" url="http://ipsec-tools.sourceforge.net/" license="BSD" depends="" makedepends="openssl-dev bison flex" subpackages="$pkgname-doc $pkgname-dev" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_myver.tar.gz racoon.initd racoon.confd 50-reverse-connect.patch 60-debug-quick.patch " build() { cd "$srcdir/$pkgname-$_myver" for i in ../*.patch; do msg "Applying $i..." patch -p1 -i $i || return 1 done sed -i 's:-Werror::g' configure ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var/lib \ --with-kernel-headers=/usr/include \ --disable-security-context \ --enable-adminport \ --enable-dpd \ --enable-frag \ --enable-hybrid \ --enable-ipv6 \ --enable-natt make || return 1 make DESTDIR="$pkgdir" install install -D -m755 ../racoon.initd "$pkgdir"/etc/init.d/racoon install -D -m644 ../racoon.confd "$pkgdir"/etc/conf.d/racoon } md5sums="8ec28d4e89c0f5e49ae2caa7463fbcfd ipsec-tools-0.8-alpha20090903.tar.gz 860e8ca1d8c793dc3055b94fd88f02a3 racoon.initd 2d00250cf72da7f2f559c91b65a48747 racoon.confd 13bda94a598aabf593280e04ea16065d 50-reverse-connect.patch baa13d7f0f48955c792f7fcd42a8587a 60-debug-quick.patch"