diff options
Diffstat (limited to 'main/dhcp')
-rw-r--r-- | main/dhcp/APKBUILD | 11 |
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() { |