aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcp/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-16 17:33:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-16 17:33:21 +0000
commit669e19155dc8d1649d48fa4a2ee8c972f2ff453d (patch)
tree0d9bb04a96a4355921b7906a93e20a3841946c85 /main/dhcp/APKBUILD
parent88047fba6a5acc2eb88a55990fb06c6ac1d80001 (diff)
downloadaports-669e19155dc8d1649d48fa4a2ee8c972f2ff453d.tar.bz2
aports-669e19155dc8d1649d48fa4a2ee8c972f2ff453d.tar.xz
main/dhcp: create dhcrelay subpackage with init.d script
fixes #281
Diffstat (limited to 'main/dhcp/APKBUILD')
-rw-r--r--main/dhcp/APKBUILD17
1 files changed, 15 insertions, 2 deletions
diff --git a/main/dhcp/APKBUILD b/main/dhcp/APKBUILD
index c2177e5a8c..e78065233e 100644
--- a/main/dhcp/APKBUILD
+++ b/main/dhcp/APKBUILD
@@ -2,17 +2,19 @@
pkgname=dhcp
pkgver=4.1.0_p1
_realver=4.1.0p1
-pkgrel=5
+pkgrel=6
pkgdesc="ISC Dynamic Host Configuration Protocol (DHCP)"
url="https://www.isc.org/"
license="GPL"
depends=
makedepends=
install="dhcp.pre-install dhcp.post-install dhcp.pre-upgrade dhcp.post-upgrade"
-subpackages="$pkgname-doc $pkgname-dev dhclient"
+subpackages="$pkgname-doc $pkgname-dev dhclient dhcrelay"
source="http://ftp.isc.org/isc/dhcp/$pkgname-$_realver.tar.gz
linux_ipv6_discover.patch
dhcp-3.0-fix-perms.patch
+ dhcrelay.initd
+ dhcrelay.confd
dhcpd.confd
dhcpd.initd"
@@ -58,8 +60,19 @@ dhclient() {
mv "$pkgdir"/etc/dhcp/dhclient.conf "$subpkgdir"/etc/dhcp/
}
+dhcrelay() {
+ pkgdesc="ISC dhcp relay server"
+ install -d "$pkgdir"/var/run/dhcp
+ install -d "$subpkgdir"/usr/sbin
+ mv "$pkgdir"/usr/sbin/dhcrelay "$subpkgdir"/usr/sbin/
+ install -m755 -D "$srcdir"/dhcrelay.initd "$pkgdir"/etc/init.d/dhcrelay
+ install -m644 -D "$srcdir"/dhcrelay.confd "$pkgdir"/etc/conf.d/dhcrelay
+}
+
md5sums="325ff8338c5a21f89d5304ac13ffebdf dhcp-4.1.0p1.tar.gz
37abf1fb047a353e91b022fafdabf39a linux_ipv6_discover.patch
a9eaf182dae3984670da52f20ae10fba dhcp-3.0-fix-perms.patch
+ce18f48dff6ef20c6efa2a052584b536 dhcrelay.initd
+db84514fe15fd7d81136afbaae738f55 dhcrelay.confd
df32707f5bbe5363306420b5dc6e6b40 dhcpd.confd
be2259371681bd4ab8a577b1b1a989ae dhcpd.initd"