[arch-commits] Commit in dhcp/trunk (PKGBUILD dhcpd4.service dhcpd6.service)

Jan Steffens heftig at archlinux.org
Fri Aug 17 22:53:26 UTC 2012


    Date: Friday, August 17, 2012 @ 18:53:26
  Author: heftig
Revision: 165389

Add systemd services

Added:
  dhcp/trunk/dhcpd4.service
  dhcp/trunk/dhcpd6.service
Modified:
  dhcp/trunk/PKGBUILD

----------------+
 PKGBUILD       |   11 +++++++++--
 dhcpd4.service |   13 +++++++++++++
 dhcpd6.service |   13 +++++++++++++
 3 files changed, 35 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-08-17 22:41:23 UTC (rev 165388)
+++ PKGBUILD	2012-08-17 22:53:26 UTC (rev 165389)
@@ -8,13 +8,13 @@
 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 @@
          'c49b1497837ba56c54e401a66e1bab9b'
          '12c2f3ae47ed23eb698eb7f1bfd80f20'
          '8f357e46e1efcbb746f38737a3f977a2'
+         '1076444f22e13eb5f6bff7821fd0f446'
+         '9310f2d8b1d7e97ace06d68cb41d9998'
          'fd64aeb4f399dcc41ea43089a3811094'
          '541b415a25a169eaf64b681405f79a80')
 
@@ -59,6 +61,11 @@
   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
   

Added: dhcpd4.service
===================================================================
--- dhcpd4.service	                        (rev 0)
+++ dhcpd4.service	2012-08-17 22:53:26 UTC (rev 165389)
@@ -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

Added: dhcpd6.service
===================================================================
--- dhcpd6.service	                        (rev 0)
+++ dhcpd6.service	2012-08-17 22:53:26 UTC (rev 165389)
@@ -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




More information about the arch-commits mailing list