[arch-commits] CVS update of arch/build/daemons/ntp (PKGBUILD)
Paul Mattal
paul at archlinux.org
Fri Jun 22 03:19:09 UTC 2007
Date: Thursday, June 21, 2007 @ 23:19:09
Author: paul
Path: /home/cvs-arch/arch/build/daemons/ntp
Modified: PKGBUILD (1.17 -> 1.18)
upgpkg: ntp 4.2.4p2-1
update to 4.2.4p2
----------+
PKGBUILD | 53 ++++++++++++++++++++++++++++++++++-------------------
1 file changed, 34 insertions(+), 19 deletions(-)
Index: arch/build/daemons/ntp/PKGBUILD
diff -u arch/build/daemons/ntp/PKGBUILD:1.17 arch/build/daemons/ntp/PKGBUILD:1.18
--- arch/build/daemons/ntp/PKGBUILD:1.17 Sat Jan 20 12:27:54 2007
+++ arch/build/daemons/ntp/PKGBUILD Thu Jun 21 23:19:09 2007
@@ -1,33 +1,48 @@
-# $Id: PKGBUILD,v 1.17 2007/01/20 17:27:54 tpowa Exp $
+# $Id: PKGBUILD,v 1.18 2007/06/22 03:19:09 paul Exp $
# Maintainer: dorphell <dorphell at archlinux.org>
pkgname=ntp
-pkgver=4.2.4
-pkgrel=2
+pkgver=4.2.4p2
+pkgrel=1
+force=y
pkgdesc="NTP (Network Time Protocol) tries to keep servers in sync"
arch=(i686 x86_64)
url="http://www.ntp.org/"
depends=('openssl' 'readline')
backup=('etc/ntp.conf' 'conf.d/ntp-client.conf')
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${pkgver}.tar.gz \
- http://www.archlinux.org/~dorphell/ntp-4.2.0a-manpages.tar.bz2 ntp.conf ntp-client.conf ntpd ntpdate )
-md5sums=('eb9147d26cbe18bd8fbec07f1df55aef' 'd3a5a6185ef5ed71d2fa8e06598fc28f'\
+ http://www.archlinux.org/~dorphell/ntp-4.2.0a-manpages.tar.bz2 ntp.conf ntp-client.conf ntpd ntpdate)
+md5sums=('315a76da63715fd43b6349411fbb0b25' 'd3a5a6185ef5ed71d2fa8e06598fc28f'\
'5bd3924f5720b97837969ec4ec4d5e09' '3c97eec93eba408b0311a14d48634d2c'\
'b1a1798b9cd1907d65a7fc794294d6ce' '140855352baeb89da0c6c1c475c18b57')
-
build() {
- cd ${startdir}/src/${pkgname}-${pkgver}
- ac_cv_header_dns_sd_h=0 ./configure --prefix=/usr
+ cd $startdir/src/$pkgname-$pkgver || return 1
+
+ # configure
+ ac_cv_header_dns_sd_h=0 ./configure --prefix=/usr || return 1
+
+ # build and install
make || return 1
- make DESTDIR=${startdir}/pkg install
- mkdir -p ${startdir}/pkg/usr/share/ntp
- install -D -m644 conf/* ${startdir}/pkg/usr/share/ntp/
- install -D -m755 ${startdir}/ntpd ${startdir}/pkg/etc/rc.d/ntpd
- install -D -m755 ${startdir}/ntpdate ${startdir}/pkg/etc/rc.d/ntpdate
- install -D -m644 ${startdir}/src/man/ntp{date,time,trace}.1 ${startdir}/pkg/usr/man/man1/
- install -D -m644 ${startdir}/src/man/tickadj.1 ${startdir}/pkg/usr/man/man1/
- install -D -m644 ${startdir}/ntp-client.conf ${startdir}/pkg/etc/conf.d/ntp-client.conf
- install -D -m644 ${startdir}/ntp.conf ${startdir}/pkg/etc/ntp.conf
- mkdir -p ${startdir}/pkg/var/lib/ntp
- touch ${startdir}/pkg/var/lib/ntp/.placeholder
+ make DESTDIR=$startdir/pkg install || return 1
+
+ # install conf files
+ mkdir -p $startdir/pkg/usr/share/ntp || return 1
+ install -D -m644 conf/* $startdir/pkg/usr/share/ntp/ || return 1
+
+ # install launch scripts
+ mkdir -p $startdir/pkg/etc/rc.d || return 1
+ install -D -m755 $startdir/{ntpd,ntpdate} $startdir/pkg/etc/rc.d/ || return 1
+
+ # install man pages
+ install -D -m644 $startdir/src/man/{ntpdate,ntptime,ntptrace,tickadj}.1 \
+ $startdir/pkg/usr/man/man1/ || return 1
+
+ # install sample configs
+ install -D -m644 $startdir/ntp.conf $startdir/pkg/etc/ntp.conf || return 1
+ install -D -m644 $startdir/ntp-client.conf \
+ $startdir/pkg/etc/conf.d/ntp-client.conf || return 1
+
+ # create /var/lib/ntp
+ mkdir -p $startdir/pkg/var/lib/ntp || return 1
+ touch $startdir/pkg/var/lib/ntp/.placeholder || return 1
}
More information about the arch-commits
mailing list