summaryrefslogtreecommitdiff
path: root/pcr/openswan/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
commit462391357aa5e749dc9908c15f3baa0b4416f3d8 (patch)
tree11d4d3f054aae9ffd869adc634054f64a16d83b8 /pcr/openswan/PKGBUILD
parent748e32a3a886569b58a27003e85b76be5746153d (diff)
Tue Jan 28 03:22:21 UTC 2014
Diffstat (limited to 'pcr/openswan/PKGBUILD')
-rw-r--r--pcr/openswan/PKGBUILD56
1 files changed, 0 insertions, 56 deletions
diff --git a/pcr/openswan/PKGBUILD b/pcr/openswan/PKGBUILD
deleted file mode 100644
index ab7bd69f5..000000000
--- a/pcr/openswan/PKGBUILD
+++ /dev/null
@@ -1,56 +0,0 @@
-# Contributor: xjpvictor Huang <ke [AT] xjpvictor [DOT] info>
-pkgname=openswan
-pkgver=2.6.38
-pkgrel=2
-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')
-conflicts=('ipsec-tools')
-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
- openswan.service)
-
-prepare() {
- cd $srcdir/openswan-$pkgver
- # Change install paths to Arch defaults
- sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|;s|)/sbin|)/bin|' Makefile.inc
-}
-
-build() {
- cd $srcdir/openswan-$pkgver
-
- # Change install paths to Arch defaults
- sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|;s|)/sbin|)/bin|' Makefile.inc
-
- make USE_XAUTH=true USE_OBJDIR=true programs
-}
-
-package() {
- cd $srcdir/openswan-$pkgver
-
- # Create /etc/rc.d for init script, and license directory
- mkdir -p $pkgdir/{etc/rc.d,usr/share/licenses/openswan}
- make DESTDIR=$pkgdir install
-
- # Change permissions in /var
- chmod 700 $pkgdir/var/run/pluto
-
- # Copy License
- cp LICENSE $pkgdir/usr/share/licenses/openswan
-
- # Install init script
- install -Dm755 ../openswan $pkgdir/etc/rc.d/openswan
- install -Dm644 ../openswan.service $pkgdir/usr/lib/systemd/system/openswan.service
- mkdir $pkgdir/usr/lib/systemd/scripts/
- cp $pkgdir/etc/rc.d/ipsec $pkgdir/usr/lib/systemd/scripts/ipsec
- # fix manpages
- mv $pkgdir/usr/man $pkgdir/usr/share/
-}
-md5sums=('13073eb5314b83a31be88e4117e8bbcd'
- '543d84162761b9cc9ec319e938c4dd2a'
- 'd8b465c10838c72e31329d65011002b6')