diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-03-20 11:25:49 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-03-20 11:32:28 +0100 |
commit | 768de4d843729c7dcc23cbd97f8eb091d012dd71 (patch) | |
tree | b1a74965a57d6c3952255b8c9bf037c15b94ff5c /main/openvpn | |
parent | 587504f3db958e8ef0df48c6c2b6e8fccc5900d9 (diff) | |
download | aports-768de4d843729c7dcc23cbd97f8eb091d012dd71.tar.bz2 aports-768de4d843729c7dcc23cbd97f8eb091d012dd71.tar.xz |
main/openvpn: modernize APKBUILD
Diffstat (limited to 'main/openvpn')
-rw-r--r-- | main/openvpn/APKBUILD | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/main/openvpn/APKBUILD b/main/openvpn/APKBUILD index 4c9999f628..0b29168f33 100644 --- a/main/openvpn/APKBUILD +++ b/main/openvpn/APKBUILD @@ -28,19 +28,17 @@ build() { --mandir=/usr/share/man \ --sysconfdir=/etc/openvpn \ --enable-crypto \ - --enable-iproute2 \ - || return 1 - make || return 1 + --enable-iproute2 + make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install # install samples mkdir -p "$pkgdir"/usr/share/doc/$pkgname/samples - cp -a sample/sample-* "$pkgdir"/usr/share/doc/$pkgname/samples \ - || return 1 + cp -a sample/sample-* "$pkgdir"/usr/share/doc/$pkgname/samples install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING # install init.d and conf.d @@ -50,7 +48,6 @@ package() { # install up and down scripts install -Dm755 "$srcdir"/openvpn.up "$pkgdir"/etc/openvpn/up.sh install -Dm755 "$srcdir"/openvpn.down "$pkgdir"/etc/openvpn/down.sh - } pam() { |