updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / ntpdate-dev / PKGBUILD
blobc21134cd6661d48ebb26c8a9105f5b6f291e2535
1 pkgname=ntpdate-dev
2 pkgver=4.2.7p23
3 pkgrel=1
4 pkgdesc="Client for the network time protocol. Development version"
5 arch=("i686" "x86_64")
6 conflicts=("ntp" "ntpdate")
7 license=('custom')
8 url="http://www.ntp.org/"
9 backup=("conf.d/ntp-client.conf")
10 source=("http://archive.ntp.org/ntp4/ntp-dev/ntp-dev-${pkgver}.tar.gz"
11         "ntp-client.conf"
12         "ntpdate")
13 options=('!emptydirs')
14 md5sums=('f006ea04f6f32a8f06684bc4bb36440f'
15          'c7f50632b69bd4f32cf052d0b1848463'
16          '140855352baeb89da0c6c1c475c18b57')
17 build() {
18 cd "${srcdir}"/ntp-dev-$pkgver || return 1
20 # configure
21 ac_cv_header_dns_sd_h=0 ./configure --prefix=/usr \
22 --enable-ignore-dns-errors|| return 1
24 # build and install
25 cd ntpdate
26 make || return 1
27 make DESTDIR="${pkgdir}" install || return 1
29 # install launch scripts 
30 mkdir -p "${pkgdir}"/etc/rc.d || return 1
31 install -D -m755 "${srcdir}"/ntpdate "${pkgdir}"/etc/rc.d/ || return 1
33 # install man pages
34 mkdir -p "${pkgdir}"/usr/share/man/man1/ 
35 find "${srcdir}"/ntp-dev-$pkgver -iname "*.1" \
36 -exec install -D -m644 {} \
37 "${pkgdir}"/usr/share/man/man1/ \; || return 1
39 # install sample configs
40 install -D -m644 $startdir/ntp-client.conf \
41 "${pkgdir}"/etc/conf.d/ntp-client.conf || return 1
43 install -Dm644 "${srcdir}"/ntp-dev-$pkgver/COPYRIGHT "${pkgdir}"/usr/share/licenses/ntpdate/COPYRIGHT