[arch-commits] Commit in ntp/trunk (PKGBUILD ntpd.service)

Gaetan Bisson bisson at archlinux.org
Sat Jun 9 05:25:41 UTC 2012


    Date: Saturday, June 9, 2012 @ 01:25:40
  Author: bisson
Revision: 161302

merge systemd service file

Added:
  ntp/trunk/ntpd.service
Modified:
  ntp/trunk/PKGBUILD

--------------+
 PKGBUILD     |    9 ++++++---
 ntpd.service |   12 ++++++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-06-09 05:23:28 UTC (rev 161301)
+++ PKGBUILD	2012-06-09 05:25:40 UTC (rev 161302)
@@ -5,7 +5,7 @@
 pkgname=ntp
 pkgver=4.2.6.p5
 _realver=4.2.6p5
-pkgrel=6
+pkgrel=7
 pkgdesc='Network Time Protocol reference implementation'
 url='http://www.ntp.org/'
 license=('custom')
@@ -18,13 +18,15 @@
         'ntpdate'
         'ntp.conf'
         'ntpd.conf'
-        'logrotate.d')
+        'logrotate.d'
+        'ntpd.service')
 sha1sums=('4a5353a4791b6f4315a66c28d504ec6c7926b192'
           '4e324e625c1f080b5c028be5092aa71adbf9bd99'
           '01394b8a952f5edc85d19df8335eeac3980320f4'
           'eb1f63814b9adbd3d518e880fa3b38c375f0fe91'
           '4537d1f58b299d463db5048129cb264511474b0b'
-          '4f76f7f9ffc8315ff9924f793f272d4f6939b816')
+          '4f76f7f9ffc8315ff9924f793f272d4f6939b816'
+          '81df5c4d51cb69bc29363625ff49e2bd388d1fa9')
 
 install=install
 
@@ -51,6 +53,7 @@
 	install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
 	install -Dm644 ../ntpd.conf "${pkgdir}"/etc/conf.d/ntpd.conf
 	install -Dm644 ../logrotate.d "${pkgdir}"/etc/logrotate.d/ntpd
+	install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
 	install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 	
 	cd html

Added: ntpd.service
===================================================================
--- ntpd.service	                        (rev 0)
+++ ntpd.service	2012-06-09 05:25:40 UTC (rev 161302)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Network Time Service
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/ntpd.pid
+EnvironmentFile=/etc/conf.d/ntpd.conf
+ExecStart=/usr/bin/ntpd $NTPD_ARGS -p /run/ntpd.pid
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list