2011-10-06 23:01:44 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
2010-09-04 05:10:46 +08:00
|
|
|
pkgname=ntp
|
2011-10-06 23:01:44 +08:00
|
|
|
pkgver=4.2.6.p4
|
|
|
|
_realver=4.2.6p4
|
2012-06-20 06:05:07 +08:00
|
|
|
pkgrel=4
|
2010-09-04 05:10:46 +08:00
|
|
|
pkgdesc="NTP (Network Time Protocol) tries to keep servers in sync"
|
2011-07-21 19:43:14 +08:00
|
|
|
arch=('i686' 'x86_64')
|
2010-09-04 05:10:46 +08:00
|
|
|
license=('custom')
|
|
|
|
url="http://www.ntp.org/"
|
|
|
|
depends=('openssl' 'readline' 'libcap')
|
|
|
|
makedepends=('perl-html-parser')
|
2011-10-17 17:15:35 +08:00
|
|
|
backup=('etc/ntp.conf' 'etc/conf.d/ntpd.conf')
|
2011-10-06 23:01:44 +08:00
|
|
|
install=install
|
2012-06-20 04:30:36 +08:00
|
|
|
source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${_realver}.tar.gz"
|
2011-07-21 19:43:14 +08:00
|
|
|
ntp.conf
|
2011-10-06 23:01:44 +08:00
|
|
|
ntpd.conf
|
2011-07-21 19:43:14 +08:00
|
|
|
ntpd
|
2012-06-20 04:30:36 +08:00
|
|
|
ntpdate
|
|
|
|
ntpd.service)
|
2011-10-06 23:01:44 +08:00
|
|
|
md5sums=('1447121a07b49361677ffda4f6e29527'
|
|
|
|
'302c19233dc599328f0faefcce45f109'
|
2011-05-13 06:49:37 +08:00
|
|
|
'58997d6cf4846d80e35a01b855376a33'
|
2011-10-06 23:01:44 +08:00
|
|
|
'1a487594387e87039169e200f74a8346'
|
2012-06-20 04:30:36 +08:00
|
|
|
'ab55ac8d8d7d0eefa3c3bec2ec98a1f4'
|
2012-06-20 06:05:07 +08:00
|
|
|
'866dcdb71cf27a9a9ec8d70fabb83839')
|
2010-09-04 05:10:46 +08:00
|
|
|
|
|
|
|
build() {
|
2011-07-21 19:43:14 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${_realver}"
|
2011-10-06 23:01:44 +08:00
|
|
|
./configure --prefix=/usr \
|
2011-05-13 06:49:37 +08:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-linux-caps
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-06-20 04:30:36 +08:00
|
|
|
cd "${srcdir}/${pkgname}-$_realver"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
2012-06-20 05:44:16 +08:00
|
|
|
rmdir "${pkgdir}"/usr/{lib,sbin}
|
2012-06-20 04:30:36 +08:00
|
|
|
install -Dm755 ../ntpd "${pkgdir}"/etc/rc.d/ntpd
|
|
|
|
install -Dm755 ../ntpdate "${pkgdir}"/etc/rc.d/ntpdate
|
|
|
|
install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
|
|
|
|
install -Dm644 ../ntpd.conf "${pkgdir}"/etc/conf.d/ntpd.conf
|
|
|
|
install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
|
|
|
|
|
|
|
|
cd html
|
|
|
|
../scripts/html2man
|
|
|
|
install -d "${pkgdir}"/usr/share/man
|
|
|
|
mv man/man* "${pkgdir}"/usr/share/man
|
|
|
|
mv "${pkgdir}/usr/share/man/man8/ntpd.8" "${pkgdir}/usr/share/man/man8/ntp-ntpd.8" # we should ditch openntpd
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
install -d "${pkgdir}/var/lib/ntp"
|
|
|
|
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2010-09-04 05:10:46 +08:00
|
|
|
}
|