2014-04-07 06:29:53 +08:00
|
|
|
# maintainer almack[at]chakraos[dot]org>
|
2011-10-06 23:01:44 +08:00
|
|
|
|
2010-09-04 05:10:46 +08:00
|
|
|
pkgname=ntp
|
2014-12-21 21:31:43 +08:00
|
|
|
pkgver=4.2.8
|
|
|
|
_realver=4.2.8
|
2015-02-02 20:58:07 +08:00
|
|
|
pkgrel=2
|
2010-09-04 05:10:46 +08:00
|
|
|
pkgdesc="NTP (Network Time Protocol) tries to keep servers in sync"
|
2012-12-11 02:10:38 +08:00
|
|
|
arch=('x86_64')
|
2010-09-04 05:10:46 +08:00
|
|
|
license=('custom')
|
|
|
|
url="http://www.ntp.org/"
|
2014-04-07 06:29:53 +08:00
|
|
|
depends=('openssl' 'libedit' 'libcap')
|
2010-09-04 05:10:46 +08:00
|
|
|
makedepends=('perl-html-parser')
|
2014-04-07 06:29:53 +08:00
|
|
|
backup=('etc/ntp.conf')
|
2011-10-06 23:01:44 +08:00
|
|
|
install=install
|
2012-12-11 02:10:38 +08:00
|
|
|
source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${_realver}.tar.gz"
|
|
|
|
'ntp.conf'
|
2014-04-07 06:29:53 +08:00
|
|
|
'ntpdate.service'
|
|
|
|
'ntpd.service')
|
2014-12-21 21:31:43 +08:00
|
|
|
md5sums=('6972a626be6150db8cfbd0b63d8719e7'
|
2012-12-11 02:10:38 +08:00
|
|
|
'ac884ad959850731d8f27667681bbdf8'
|
2014-04-07 06:29:53 +08:00
|
|
|
'11c7dea7e35034ffc370dafae49f1d45'
|
|
|
|
'47e56748b360693c7ebe3de990ff7e7c')
|
2010-09-04 05:10:46 +08:00
|
|
|
|
|
|
|
build() {
|
2011-07-21 19:43:14 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${_realver}"
|
2012-12-11 02:10:38 +08:00
|
|
|
|
2011-10-06 23:01:44 +08:00
|
|
|
./configure --prefix=/usr \
|
2015-02-02 20:58:07 +08:00
|
|
|
--libexecdir=/usr/lib \
|
2011-05-13 06:49:37 +08:00
|
|
|
--mandir=/usr/share/man \
|
2014-04-07 06:29:53 +08:00
|
|
|
--enable-linuxcaps \
|
|
|
|
--enable-ntp-signd
|
|
|
|
|
2011-05-13 06:49:37 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-06-20 04:30:36 +08:00
|
|
|
cd "${srcdir}/${pkgname}-$_realver"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
2012-12-11 02:10:38 +08:00
|
|
|
install -d -o 87 "${pkgdir}/var/lib/ntp"
|
2012-06-20 04:30:36 +08:00
|
|
|
install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
|
|
|
|
install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
|
2014-04-07 06:29:53 +08:00
|
|
|
install -Dm644 ../ntpdate.service "${pkgdir}"/usr/lib/systemd/system/ntpdate.service
|
2012-12-11 02:10:38 +08:00
|
|
|
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2010-09-04 05:10:46 +08:00
|
|
|
}
|