diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-31 06:14:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-31 06:23:23 +0000 |
commit | de25f1da2b2c5f49e7917971b2e324cb0773fa30 (patch) | |
tree | b54e128a26a4c6b8c7e08838fefffbdfdef15d87 /main/dhcp/APKBUILD | |
parent | 37907999d18ebba37db13bfa7415401922eb6141 (diff) | |
download | aports-de25f1da2b2c5f49e7917971b2e324cb0773fa30.tar.bz2 aports-de25f1da2b2c5f49e7917971b2e324cb0773fa30.tar.xz |
main/dhcp: fix paths to lease files and configs
also
* enable paranoia for -user/-group options
* fix install scripts
* import new init.d script
* add missing dirs
* move dhclient to a separate subpackage
Fixes #110
Diffstat (limited to 'main/dhcp/APKBUILD')
-rw-r--r-- | main/dhcp/APKBUILD | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/main/dhcp/APKBUILD b/main/dhcp/APKBUILD index 01bb25e91d..284e15eeea 100644 --- a/main/dhcp/APKBUILD +++ b/main/dhcp/APKBUILD @@ -2,14 +2,14 @@ pkgname=dhcp pkgver=4.1.0_p1 _realver=4.1.0p1 -pkgrel=0 +pkgrel=1 pkgdesc="ISC Dynamic Host Configuration Protocol (DHCP)" url="https://www.isc.org/" license="GPL" depends= makedepends= -install="dhcp.pre-upgrade dhcp.post-upgrade" -subpackages="$pkgname-doc $pkgname-dev" +install="dhcp.pre-install dhcp.pre-upgrade dhcp.post-upgrade" +subpackages="$pkgname-doc $pkgname-dev dhclient" source="http://ftp.isc.org/isc/dhcp/$pkgname-$_realver.tar.gz $install dhcpd.confd @@ -19,7 +19,14 @@ build() { cd "$srcdir/$pkgname-$_realver" ./configure --prefix=/usr \ - --sysconfdir=/etc \ + --sysconfdir=/etc/dhcp \ + --with-cli-pid-file=/var/run/dhcp/dhclient.pid \ + --with-cli-lease-file=/var/lib/dhcp/dhclient.leases \ + --with-srv-pid-file=/var/run/dhcp/dhcpd.pid \ + --with-srv-lease-file=/var/lib/dhcp/dhcpd.leases \ + --with-relay-pid-file=/var/run/dhcp/dhcrelay.pid \ + --enable-dhcpv6 \ + --enable-paranoia \ --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 @@ -27,10 +34,23 @@ build() { install -m755 -D "$srcdir"/dhcpd.initd "$pkgdir"/etc/init.d/dhcpd install -m644 -D "$srcdir"/dhcpd.confd "$pkgdir"/etc/conf.d/dhcpd + install -d "$pkgdir"/var/lib/dhcp + install -d "$pkgdir"/var/run/dhcp +} + +dhclient() { + pkgdesc="ISC dhcp client" + install -d "$subpkgdir"/var/lib/dhcp + install -d "$subpkgdir"/var/run/dhcp + install -d "$subpkgdir"/usr/sbin + install -d "$subpkgdir"/etc/dhcp + mv "$pkgdir"/usr/sbin/dhclient "$subpkgdir"/usr/sbin/ + mv "$pkgdir"/etc/dhcp/dhclient.conf "$subpkgdir"/etc/dhcp/ } md5sums="325ff8338c5a21f89d5304ac13ffebdf dhcp-4.1.0p1.tar.gz +19b28380eaae7d26027c29b623aeee07 dhcp.pre-install 6cc49497f3c30ccd37fc7c032f7810c6 dhcp.pre-upgrade -a7b81948ceab73dd10de275ebc00e7eb dhcp.post-upgrade +36d562e5b0e55a36e4224fd7cb843f6a dhcp.post-upgrade df32707f5bbe5363306420b5dc6e6b40 dhcpd.confd -5df9a87539bedc98a1cbc7e38b290928 dhcpd.initd" +6ed5ddba2b445ef60d27a8b7f5a0ee0b dhcpd.initd" |