Commit 768de4d8 authored by Sören Tempel's avatar Sören Tempel

main/openvpn: modernize APKBUILD

parent 587504f3
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment