diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-13 18:37:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-13 18:37:10 +0000 |
commit | 61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7 (patch) | |
tree | 687d428c26a7105c2c5c71af1c6eda51bda56586 /testing/libreswan | |
parent | 0fa58f9984bf847986daad76fad7d5199a3f707b (diff) | |
download | aports-61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7.tar.bz2 aports-61c14a0399fd8c6015dfd891dbf8f4f6bb63fdb7.tar.xz |
testing/libreswan: fix installdirs, add init.d script from openswan
and split out docs
Diffstat (limited to 'testing/libreswan')
-rw-r--r-- | testing/libreswan/APKBUILD | 26 | ||||
-rw-r--r-- | testing/libreswan/ipsec.initd | 25 |
2 files changed, 44 insertions, 7 deletions
diff --git a/testing/libreswan/APKBUILD b/testing/libreswan/APKBUILD index c630cfe713..2346920159 100644 --- a/testing/libreswan/APKBUILD +++ b/testing/libreswan/APKBUILD @@ -1,6 +1,6 @@ pkgname=libreswan pkgver=3.2 -pkgrel=0 +pkgrel=1 pkgdesc='IPsec implementation for Linux' url='https://libreswan.org/' arch='all' @@ -8,7 +8,9 @@ license='GPL' depends='coreutils' depends_dev='gmp-dev linux-pam-dev nss-dev unbound-dev libcap-ng-dev curl-dev nspr-dev' makedepends="$depends_dev bison flex pkgconf coreutils bash" -source="http://download.libreswan.org/libreswan-$pkgver.tar.gz" +subpackages="$pkgname-doc" +source="http://download.libreswan.org/libreswan-$pkgver.tar.gz + ipsec.initd" build() { cd "$srcdir"/$pkgname-$pkgver @@ -17,10 +19,20 @@ build() { } package() { - cd "$srcdir"/$pkgname-$pkgver - make DESTDIR="$pkgdir/usr" install + cd "$srcdir"/$pkgname-$pkgver + make INC_MANDIR=share/man \ + INC_RCDEFAULT=/etc/init.d \ + INC_USRLOCAL=/usr \ + DESTDIR="$pkgdir" \ + INSTCONFFLAGS=-m644 \ + install || return 1 + install -Dm755 "$srcdir"/ipsec.initd "$pkgdir"/etc/init.d/ipsec \ + || return 1 } -md5sums="9917acaa9b389adf75588cbeba7279fd libreswan-3.2.tar.gz" -sha256sums="a000684f69161b2459c041aab669cbb8f2337789243ff3a4b0bf9c4201c97176 libreswan-3.2.tar.gz" -sha512sums="9b988302fda1fe82c16eb9c824975ea6ac0f27e863394f950dd681f46521981cce32336182fe7496d341bc9933a308412a8d96b05a9dba66b1a91181e21effee libreswan-3.2.tar.gz" +md5sums="9917acaa9b389adf75588cbeba7279fd libreswan-3.2.tar.gz +014d8187d22a348a04dd2fdba4fc0d46 ipsec.initd" +sha256sums="a000684f69161b2459c041aab669cbb8f2337789243ff3a4b0bf9c4201c97176 libreswan-3.2.tar.gz +f21668846fdf6d01a7d92672adf0a5dda63f827b317ab0253a7c627968656d8f ipsec.initd" +sha512sums="9b988302fda1fe82c16eb9c824975ea6ac0f27e863394f950dd681f46521981cce32336182fe7496d341bc9933a308412a8d96b05a9dba66b1a91181e21effee libreswan-3.2.tar.gz +c245b20e1ea8bd1a615f467e72ccbb3df7b63a60d1fcdb7b485a791377a0adfa75942ed73a6fb1c792eca472c92d3d524e33ba0594467738aac3aaa9123778b2 ipsec.initd" diff --git a/testing/libreswan/ipsec.initd b/testing/libreswan/ipsec.initd new file mode 100644 index 0000000000..d5bb222ef8 --- /dev/null +++ b/testing/libreswan/ipsec.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +# libreswan ipsec init.d file for alpine linux. + +name=ipsec +daemon=/usr/libexec/ipsec/setup +pidfile=/var/run/pluto/ipsec_setup.pid + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + $daemon start + eend $? +} + +stop() { + ebegin "Stopping ${name}" + $daemon stop + eend $? +} + |