aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcp
diff options
context:
space:
mode:
authortcely <tcely@users.noreply.github.com>2019-05-03 12:51:18 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-03 19:05:59 +0200
commitebfe96355b4d0b48d126a7382b62089faa96a210 (patch)
tree19760d45861529b07fb45e6ffe841c21d0cef453 /main/dhcp
parent6155386b395d476ccc519538e48432f5fa213b80 (diff)
downloadaports-ebfe96355b4d0b48d126a7382b62089faa96a210.tar.bz2
aports-ebfe96355b4d0b48d126a7382b62089faa96a210.tar.xz
main/dhcp: fix install_if for -openrc subpackages
Diffstat (limited to 'main/dhcp')
-rw-r--r--main/dhcp/APKBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/main/dhcp/APKBUILD b/main/dhcp/APKBUILD
index 26d87fc608..b3d905f78e 100644
--- a/main/dhcp/APKBUILD
+++ b/main/dhcp/APKBUILD
@@ -125,18 +125,21 @@ dbg() {
}
openrc() {
+ local _name _etcdir _dir
depends="$depends_openrc"
- local dir _etcdir="$pkgdir/etc.${subpkgname%-openrc}"
- for dir in conf.d init.d; do
- if [ -d "$_etcdir/$dir" ]; then
+ _name="${subpkgname%-openrc}"
+ _etcdir="$pkgdir/etc.${_name}"
+ for _dir in conf.d init.d; do
+ if [ -d "$_etcdir/$_dir" ]; then
mkdir -p "$pkgdir"/etc
- mv "$_etcdir/$dir" "$pkgdir"/etc/
+ mv "$_etcdir/$_dir" "$pkgdir"/etc/
fi
done
rmdir "$_etcdir" || :
default_openrc
+ install_if="openrc ${_name}=$pkgver-r$pkgrel"
}
server_empty() {