Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: Diogo Leal <diogo@diogoleal.com>
- # Contributor: Jan Fader <jan.fader@web.de>
- pkgname=openswan
- pkgver=2.6.38
- pkgrel=1
- pkgdesc="Open Source implementation of IPsec for the Linux operating system"
- url="http://www.openswan.org"
- license=('GPL' 'custom')
- arch=('i686' 'x86_64')
- depends=('iproute2>=2.6.8' 'gmp' 'perl')
- makedepends=('flex' 'bison')
- backup=(etc/ipsec.conf \
- etc/ipsec.d/policies/{block,clear,clear-or-private,private,private-or-clear})
- source=(http://download.openswan.org/openswan/openswan-$pkgver.tar.gz
- openswan.rc.d)
- build() {
- # Create /etc/rc.d for init script, and license directory
- mkdir -p $pkgdir/{etc/rc.d,usr/share/licenses/openswan}
- cd $srcdir/openswan-$pkgver
- # Change install paths to Arch defaults
- sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|' Makefile.inc
- make USE_XAUTH=true USE_OBJDIR=true programs || return 1
- make DESTDIR=$pkgdir install
- # Change permissions in /var
- chmod 755 $pkgdir/var/run/pluto
- # Copy License
- cp LICENSE $pkgdir/usr/share/licenses/openswan
- # Install init script
- install -Dm755 ../openswan.rc.d $pkgdir/etc/rc.d/openswan
- # fix manpages
- mv $pkgdir/usr/man $pkgdir/usr/share/
- }
- md5sums=('13073eb5314b83a31be88e4117e8bbcd'
- '543d84162761b9cc9ec319e938c4dd2a')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement