SHOW:
|
|
- or go back to the newest paste.
1 | # Contributor: Diogo Leal <diogo@diogoleal.com> | |
2 | # Contributor: Jan Fader <jan.fader@web.de> | |
3 | - | pkgname=openswan-android |
3 | + | pkgname=openswan |
4 | pkgver=2.6.38 | |
5 | pkgrel=1 | |
6 | pkgdesc="Open Source implementation of IPsec for the Linux operating system" | |
7 | url="http://www.openswan.org" | |
8 | license=('GPL' 'custom') | |
9 | arch=('i686' 'x86_64') | |
10 | depends=('iproute2>=2.6.8' 'gmp' 'perl') | |
11 | makedepends=('flex' 'bison') | |
12 | backup=(etc/ipsec.conf \ | |
13 | etc/ipsec.d/policies/{block,clear,clear-or-private,private,private-or-clear}) | |
14 | source=(http://download.openswan.org/openswan/openswan-$pkgver.tar.gz | |
15 | openswan.rc.d) | |
16 | ||
17 | build() { | |
18 | # Create /etc/rc.d for init script, and license directory | |
19 | mkdir -p $pkgdir/{etc/rc.d,usr/share/licenses/openswan} | |
20 | ||
21 | cd $srcdir/openswan-$pkgver | |
22 | ||
23 | # Change install paths to Arch defaults | |
24 | sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|' Makefile.inc | |
25 | ||
26 | make USE_XAUTH=true USE_OBJDIR=true programs || return 1 | |
27 | make DESTDIR=$pkgdir install | |
28 | ||
29 | # Change permissions in /var | |
30 | chmod 755 $pkgdir/var/run/pluto | |
31 | ||
32 | # Copy License | |
33 | cp LICENSE $pkgdir/usr/share/licenses/openswan | |
34 | ||
35 | # Install init script | |
36 | install -Dm755 ../openswan.rc.d $pkgdir/etc/rc.d/openswan | |
37 | # fix manpages | |
38 | mv $pkgdir/usr/man $pkgdir/usr/share/ | |
39 | } | |
40 | md5sums=('13073eb5314b83a31be88e4117e8bbcd' | |
41 | '543d84162761b9cc9ec319e938c4dd2a') |