summaryrefslogtreecommitdiff
path: root/testing/dhcp
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-19 00:04:07 +0000
committerroot <root@rshg054.dnsready.net>2012-08-19 00:04:07 +0000
commitc512f9eb344575ac6bce0b13729c05e1760cd094 (patch)
tree8d60a9bd559a941bba52a67170900c159d2024eb /testing/dhcp
parent948da5eabcbf8d74270e661d0730ba1c203913f5 (diff)
Sun Aug 19 00:04:07 UTC 2012
Diffstat (limited to 'testing/dhcp')
-rw-r--r--testing/dhcp/PKGBUILD13
-rw-r--r--testing/dhcp/dhcpd4.service13
-rw-r--r--testing/dhcp/dhcpd6.service13
3 files changed, 36 insertions, 3 deletions
diff --git a/testing/dhcp/PKGBUILD b/testing/dhcp/PKGBUILD
index 05b00a406..31ace7328 100644
--- a/testing/dhcp/PKGBUILD
+++ b/testing/dhcp/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 164255 2012-07-28 22:37:00Z eric $
+# $Id: PKGBUILD 165396 2012-08-17 23:27:19Z heftig $
# Maintainer: Daniel Isenmann <daniel @archlinux.org>
pkgbase=dhcp
@@ -8,13 +8,13 @@ pkgname=('dhcp' 'dhclient')
pkgver=4.2.4.1
_pkgver=4.2.4-P1
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
license=('custom:isc-dhcp')
url="https://www.isc.org/software/dhcp"
makedepends=('bash' 'iproute2' 'net-tools')
source=(ftp://ftp.isc.org/isc/${pkgbase}/${_pkgver}/${pkgbase}-${_pkgver}.tar.gz{,.asc}
- dhcp4 dhcp6 dhcp
+ dhcp4 dhcp6 dhcp dhcpd4.service dhcpd6.service
dhcp-4.1.1-missing-ipv6-not-fatal.patch
dhclient-script-pathFixes.patch)
md5sums=('0ca7181024651f6323951d5498c8020b'
@@ -22,6 +22,8 @@ md5sums=('0ca7181024651f6323951d5498c8020b'
'c49b1497837ba56c54e401a66e1bab9b'
'12c2f3ae47ed23eb698eb7f1bfd80f20'
'8f357e46e1efcbb746f38737a3f977a2'
+ '1076444f22e13eb5f6bff7821fd0f446'
+ '9310f2d8b1d7e97ace06d68cb41d9998'
'fd64aeb4f399dcc41ea43089a3811094'
'541b415a25a169eaf64b681405f79a80')
@@ -59,6 +61,11 @@ package_dhcp(){
install -D -m644 "${srcdir}/dhcp" "${pkgdir}/etc/conf.d/${pkgbase}"
install -d "${pkgdir}/var/state/dhcp"
+ install -D -m644 "${srcdir}/dhcpd4.service" "${pkgdir}/usr/lib/systemd/system/dhcpd4.service"
+ install -D -m644 "${srcdir}/dhcpd6.service" "${pkgdir}/usr/lib/systemd/system/dhcpd6.service"
+ ln -s dhcpd4.service "${pkgdir}/usr/lib/systemd/system/dhcp4.service"
+ ln -s dhcpd6.service "${pkgdir}/usr/lib/systemd/system/dhcp6.service"
+
# Remove dhclient
make -C client DESTDIR="${pkgdir}" uninstall
diff --git a/testing/dhcp/dhcpd4.service b/testing/dhcp/dhcpd4.service
new file mode 100644
index 000000000..2ef4a9f26
--- /dev/null
+++ b/testing/dhcp/dhcpd4.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=IPv4 DHCP server
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/dhcpd4.pid
+ExecStart=/usr/sbin/dhcpd -4 -q -pf /run/dhcpd4.pid
+ExecReload=/bin/kill -TERM $MAINPID
+KillSignal=SIGINT
+
+[Install]
+WantedBy=multi-user.target
diff --git a/testing/dhcp/dhcpd6.service b/testing/dhcp/dhcpd6.service
new file mode 100644
index 000000000..eb3b337c6
--- /dev/null
+++ b/testing/dhcp/dhcpd6.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=IPv6 DHCP server
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/dhcpd6.pid
+ExecStart=/usr/sbin/dhcpd -6 -q -pf /run/dhcpd6.pid
+ExecReload=/bin/kill -TERM $MAINPID
+KillSignal=SIGINT
+
+[Install]
+WantedBy=multi-user.target