aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcp/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-08-30 06:51:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-08-30 06:53:45 +0000
commit08cec6cc815aff69644f96356301269627719416 (patch)
tree087e9bb12e91042663ae31d798106ce4444545ec /main/dhcp/APKBUILD
parentc75d84cc644bb19933ad2667b45556263b16a8d8 (diff)
downloadaports-08cec6cc815aff69644f96356301269627719416.tar.bz2
aports-08cec6cc815aff69644f96356301269627719416.tar.xz
main/dhcp: create /var/run/dhcp directory in subpackage
ref #1343
Diffstat (limited to 'main/dhcp/APKBUILD')
-rw-r--r--main/dhcp/APKBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/dhcp/APKBUILD b/main/dhcp/APKBUILD
index ccd7393937..360af69fcb 100644
--- a/main/dhcp/APKBUILD
+++ b/main/dhcp/APKBUILD
@@ -2,7 +2,7 @@
pkgname=dhcp
pkgver=4.2.4_p1
_realver=${pkgver/_p/-P}
-pkgrel=0
+pkgrel=1
pkgdesc="ISC Dynamic Host Configuration Protocol (DHCP)"
url="https://www.isc.org/"
arch="all"
@@ -68,11 +68,11 @@ dhclient() {
dhcrelay() {
pkgdesc="ISC dhcp relay server"
replaces="dhcp"
- install -d "$pkgdir"/var/run/dhcp
- install -d "$subpkgdir"/usr/sbin
+ install -d "$subpkgdir"/var/run/dhcp \
+ "$subpkgdir"/usr/sbin || return 1
mv "$pkgdir"/usr/sbin/dhcrelay "$subpkgdir"/usr/sbin/
install -m755 -D "$srcdir"/dhcrelay.initd \
- "$subpkgdir"/etc/init.d/dhcrelay
+ "$subpkgdir"/etc/init.d/dhcrelay
install -m644 -D "$srcdir"/dhcrelay.confd \
"$subpkgdir"/etc/conf.d/dhcrelay
}