blob: fc568b0fa0d62448c54394c5791e1d9cf2690ca2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
pkgname=ntp
pkgver=4.2.4p5
pkgrel=3
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-4.2.4p5.tar.gz \
ntp.conf ntp-client.conf ntpd ntpdate )
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
mkdir -p $startdir/pkg/usr/share/ntp/ $startdir/pkg/usr/man/man1/
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/* $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
}
|