summaryrefslogtreecommitdiff
path: root/extra/ntp
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-21 23:15:10 +0000
committerroot <root@rshg054.dnsready.net>2012-02-21 23:15:10 +0000
commit1f55cedf5ea357497d2a98eb2be78d8dab4a9665 (patch)
tree5e44ad19f2672ee92283377c9fe6eab3c8a815d7 /extra/ntp
parent11484c032f8c236b2044e715a9a3b28e33f65598 (diff)
Tue Feb 21 23:15:10 UTC 2012
Diffstat (limited to 'extra/ntp')
-rw-r--r--extra/ntp/PKGBUILD25
-rw-r--r--extra/ntp/logrotate.d4
2 files changed, 16 insertions, 13 deletions
diff --git a/extra/ntp/PKGBUILD b/extra/ntp/PKGBUILD
index 8da3f4178..d928156f3 100644
--- a/extra/ntp/PKGBUILD
+++ b/extra/ntp/PKGBUILD
@@ -1,28 +1,30 @@
-# $Id: PKGBUILD 145791 2012-01-01 01:38:19Z bisson $
+# $Id: PKGBUILD 150713 2012-02-21 01:06:35Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
pkgname=ntp
pkgver=4.2.6.p5
_realver=4.2.6p5
-pkgrel=2
+pkgrel=3
pkgdesc='Network Time Protocol reference implementation'
url='http://www.ntp.org/'
license=('custom')
arch=('i686' 'x86_64')
-depends=('openssl' 'readline' 'libcap')
makedepends=('perl-html-parser')
+depends=('openssl' 'readline' 'libcap')
backup=('etc/ntp.conf' 'etc/conf.d/ntpd.conf')
source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${_realver}.tar.gz"
'ntpd'
'ntpdate'
'ntp.conf'
- 'ntpd.conf')
+ 'ntpd.conf'
+ 'logrotate.d')
sha1sums=('4a5353a4791b6f4315a66c28d504ec6c7926b192'
'4e324e625c1f080b5c028be5092aa71adbf9bd99'
'01394b8a952f5edc85d19df8335eeac3980320f4'
'f6fa4838a33a3abcdd168a37b3f4a2dddd60472e'
- '6cfcb7bbd34499b30e31dffca2f3e1a036010271')
+ '6cfcb7bbd34499b30e31dffca2f3e1a036010271'
+ '4f76f7f9ffc8315ff9924f793f272d4f6939b816')
install=install
@@ -42,21 +44,18 @@ package() {
make DESTDIR="${pkgdir}" install
+ rmdir "${pkgdir}"/usr/{lib,sbin}
+ install -d "${pkgdir}"/var/lib/ntp
install -Dm755 ../ntpd "${pkgdir}"/etc/rc.d/ntpd
install -Dm755 ../ntpdate "${pkgdir}"/etc/rc.d/ntpdate
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 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
cd html
../scripts/html2man
install -d "${pkgdir}"/usr/share/man
mv man/man* "${pkgdir}"/usr/share/man
mv "${pkgdir}/usr/share/man/man8/ntpd.8" "${pkgdir}/usr/share/man/man8/ntp-ntpd.8" # we should ditch openntpd
- cd ..
-
- rmdir "${pkgdir}"/usr/{lib,sbin}
- install -d "${pkgdir}/var/lib/ntp"
- install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
- touch "${pkgdir}"/var/lib/ntp/.placeholder
}
diff --git a/extra/ntp/logrotate.d b/extra/ntp/logrotate.d
new file mode 100644
index 000000000..8a9f066c3
--- /dev/null
+++ b/extra/ntp/logrotate.d
@@ -0,0 +1,4 @@
+/var/log/ntp.log {
+ missingok
+ copytruncate
+}