# Maintainer: Natanael Copa pkgname=ipsec-tools pkgver=0.8_alpha20101022 _myver=0.8-alpha20101022 pkgrel=3 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 70-defer-isakmp-ident-handling.patch 75-racoonctl-rcvbuf.patch 80-admin-big-reply-fix.patch 90-dpd-window-fix.patch 95-purge-on-delete-notify.patch 99-purge-on-delete-fix.patch " _builddir="$srcdir"/$pkgname-$_myver prepare() { cd "$_builddir" for i in ../*.patch; do msg "Applying $i..." patch -p1 -i $i || return 1 done sed -i 's:-Werror::g' configure } build() { cd "$_builddir" ./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 } package() { cd "$_builddir" 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="1492b83edc944b5d32d2eff51e33399e ipsec-tools-0.8-alpha20101022.tar.gz 74f12ed04ed273a738229c0bfbf829cc racoon.initd 2d00250cf72da7f2f559c91b65a48747 racoon.confd 13bda94a598aabf593280e04ea16065d 50-reverse-connect.patch 94773c94233e14cdce0fa02ff780a43e 70-defer-isakmp-ident-handling.patch 2d5d24c4a3684a38584f88720f71c7d6 75-racoonctl-rcvbuf.patch c3898b162d284bc163f99cc52925b52a 80-admin-big-reply-fix.patch 0391a6967ad19673588302bc8b17e0e2 90-dpd-window-fix.patch 8bc73a15407564321c8f571b5656b28d 95-purge-on-delete-notify.patch e8bee665227335d75880cf3753d2279e 99-purge-on-delete-fix.patch"