mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
71 lines
2.4 KiB
Bash
71 lines
2.4 KiB
Bash
|
# $Id: PKGBUILD 43089 2009-06-19 20:23:32Z tpowa $
|
||
|
# Maintainer: dorphell <dorphell@archlinux.org>
|
||
|
pkgname=ntp
|
||
|
pkgver=4.2.4p7
|
||
|
pkgrel=3
|
||
|
pkgdesc="NTP (Network Time Protocol) tries to keep servers in sync"
|
||
|
arch=(i686 x86_64)
|
||
|
license=('custom')
|
||
|
url="http://www.ntp.org/"
|
||
|
depends=('openssl>=0.9.8h' 'readline>=6.0.00' 'libcap')
|
||
|
backup=('etc/ntp.conf' 'etc/conf.d/ntp-client.conf')
|
||
|
options=('!emptydirs')
|
||
|
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${pkgver}.tar.gz
|
||
|
ftp://ftp.archlinux.org/other/ntp/ntp-4.2.4p6-manpages.tar.bz2
|
||
|
ntp-4.2.4_p7-nano.patch
|
||
|
fix-ipv6.patch
|
||
|
ntp.conf
|
||
|
ntp-client.conf
|
||
|
ntpd
|
||
|
ntpdate)
|
||
|
|
||
|
build() {
|
||
|
cd $srcdir/$pkgname-$pkgver || return 1
|
||
|
# fix glibc build issue
|
||
|
patch -Np1 -i ../ntp-4.2.4_p7-nano.patch || return 1
|
||
|
# fix ipv6 support
|
||
|
patch -Np1 -i ../fix-ipv6.patch || return 1
|
||
|
# configure
|
||
|
ac_cv_header_dns_sd_h=0 ./configure --prefix=/usr --mandir=/usr/share/man --enable-linux-caps || return 1
|
||
|
|
||
|
# build and install
|
||
|
make || return 1
|
||
|
make DESTDIR=$pkgdir install || return 1
|
||
|
|
||
|
# install conf files
|
||
|
mkdir -p $pkgdir/usr/share/ntp || return 1
|
||
|
install -D -m644 conf/* $pkgdir/usr/share/ntp/ || return 1
|
||
|
|
||
|
# install launch scripts
|
||
|
mkdir -p $pkgdir/etc/rc.d || return 1
|
||
|
install -D -m755 $srcdir/{ntpd,ntpdate} $pkgdir/etc/rc.d/ || return 1
|
||
|
|
||
|
# install man pages
|
||
|
install -d $pkgdir/usr/share/man/man{1,5}
|
||
|
install -m644 $srcdir/man/*.5 \
|
||
|
$pkgdir/usr/share/man/man5/ || return 1
|
||
|
for i in $srcdir/man/*.8 ; do
|
||
|
install -m644 $i $pkgdir/usr/share/man/man1/$(basename $i .8).1 || return 1
|
||
|
done
|
||
|
mv $pkgdir/usr/share/man/man1/keygen.1 $pkgdir/usr/share/man/man1/ntp-keygen.1 || return 1
|
||
|
|
||
|
# install sample configs
|
||
|
install -D -m644 $srcdir/ntp.conf $pkgdir/etc/ntp.conf || return 1
|
||
|
install -D -m644 $srcdir/ntp-client.conf \
|
||
|
$pkgdir/etc/conf.d/ntp-client.conf || return 1
|
||
|
|
||
|
# create /var/lib/ntp
|
||
|
mkdir -p $pkgdir/var/lib/ntp || return 1
|
||
|
touch $pkgdir/var/lib/ntp/.placeholder || return 1
|
||
|
|
||
|
install -Dm644 $srcdir/$pkgname-$pkgver/COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
|
||
|
}
|
||
|
md5sums=('8c19ff62ed4f7d64f8e2aa59cb11f364'
|
||
|
'3396ea6276147617e5cf79cefffee018'
|
||
|
'36c5711228cb0cf48966daa993e06f55'
|
||
|
'9dabdbc6b8cd020f2205515df7972c21'
|
||
|
'5bd3924f5720b97837969ec4ec4d5e09'
|
||
|
'c7f50632b69bd4f32cf052d0b1848463'
|
||
|
'46118a8ec2c4f5bbfafd730af21b7c03'
|
||
|
'140855352baeb89da0c6c1c475c18b57')
|