From 4319f36e44d4e7c70bf010c3286bb1739c59d4de Mon Sep 17 00:00:00 2001 From: root Date: Sun, 24 Jun 2012 00:04:12 +0000 Subject: Sun Jun 24 00:04:11 UTC 2012 --- extra/ntp/PKGBUILD | 11 +++++++---- extra/ntp/ntpd.service | 12 ++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 extra/ntp/ntpd.service (limited to 'extra/ntp') diff --git a/extra/ntp/PKGBUILD b/extra/ntp/PKGBUILD index 23eff69f3..3da7795da 100644 --- a/extra/ntp/PKGBUILD +++ b/extra/ntp/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 151736 2012-03-01 21:37:06Z bisson $ +# $Id: PKGBUILD 162162 2012-06-22 12:59:21Z dreisner $ # Maintainer: Gaetan Bisson # Contributor: kevin 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 @@ source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${_realver}.tar.gz" '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 @@ package() { 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 diff --git a/extra/ntp/ntpd.service b/extra/ntp/ntpd.service new file mode 100644 index 000000000..e0cbf879e --- /dev/null +++ b/extra/ntp/ntpd.service @@ -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 -- cgit v1.2.3-54-g00ecf