summaryrefslogtreecommitdiffstats
path: root/main/openswan/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-26 11:58:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-26 11:58:31 +0000
commita90dec223768b25ef1f2086676cbb33f7e3fb253 (patch)
tree67483d297356f3f878a9424689e97707fee4168e /main/openswan/APKBUILD
parent5ff43da0bea46ba52111889550df68fd61ce46ef (diff)
downloadaports-a90dec223768b25ef1f2086676cbb33f7e3fb253.tar.bz2
aports-a90dec223768b25ef1f2086676cbb33f7e3fb253.tar.xz
main/openswan: move to main
fixes #700
Diffstat (limited to 'main/openswan/APKBUILD')
-rw-r--r--main/openswan/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/openswan/APKBUILD b/main/openswan/APKBUILD
new file mode 100644
index 000000000..7d52d7f5d
--- /dev/null
+++ b/main/openswan/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Danilo Godec <danilo.godec@agenda.si>
+# Maintainer: Borys Zhukov <mp5@mp5.im>
+pkgname=openswan
+pkgver=2.6.38
+pkgrel=0
+pkgdesc="IPsec Implementation which Allows Building of VPNs"
+url="http://www.openswan.org/"
+arch="all"
+license="GPL"
+depends="perl lsof"
+makedepends="gmp-dev bison flex coreutils bash"
+install=""
+subpackages="$pkgname-doc"
+source="http://download.openswan.org/openswan/$pkgname-$pkgver.tar.gz
+ ipsec.initd setup.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make INC_RCDEFAULT=/etc/init.d INC_USRLOCAL=/usr programs || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INC_MANDIR=share/man INC_RCDEFAULT=/etc/init.d INC_USRLOCAL=/usr DESTDIR="$pkgdir" install || return 1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+
+ install -Dm755 "$srcdir"/ipsec.initd "$pkgdir"/etc/init.d/ipsec
+ install -Dm644 BUGS "$pkgdir"/usr/share/doc/$pkgname/BUGS
+ install -Dm644 CHANGES "$pkgdir"/usr/share/doc/$pkgname/CHANGES
+ install -Dm644 CREDITS "$pkgdir"/usr/share/doc/$pkgname/CREDITS
+ install -Dm644 INSTALL "$pkgdir"/usr/share/doc/$pkgname/INSTALL
+ install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
+ cp -aR docs/* "$pkgdir"/usr/share/doc/$pkgname/
+
+}
+md5sums="13073eb5314b83a31be88e4117e8bbcd openswan-2.6.38.tar.gz
+f019d1fa23627d54462054fedc9de03b ipsec.initd
+fd3cd27f9da9140fabd935377c3d6921 setup.patch"