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>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
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
|
|
|
|
pkgrel=1
|
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')
|
|
|
|
backup=('etc/ntp.conf' 'etc/conf.d/ntp-client.conf')
|
2011-10-06 23:01:44 +08:00
|
|
|
install=install
|
2011-07-21 19:43:14 +08:00
|
|
|
source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${_realver}.tar.gz"
|
|
|
|
ntp.conf
|
2011-10-06 23:01:44 +08:00
|
|
|
ntpd.conf
|
2011-07-21 19:43:14 +08:00
|
|
|
ntpd
|
|
|
|
ntpdate)
|
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'
|
|
|
|
'997d91431ebfd8b75a68de6f7ada2a95')
|
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() {
|
2011-10-06 23:01:44 +08:00
|
|
|
cd "${srcdir}/${pkgname}-$_realver"
|
2010-09-04 05:10:46 +08:00
|
|
|
|
2011-10-06 23:01:44 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2010-09-04 05:10:46 +08:00
|
|
|
|
2011-10-06 23:01:44 +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
|
2010-09-04 05:10:46 +08:00
|
|
|
|
2011-10-06 23:01:44 +08:00
|
|
|
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 ..
|
2010-09-04 05:10:46 +08:00
|
|
|
|
2011-10-06 23:01:44 +08:00
|
|
|
rmdir "${pkgdir}"/usr/{lib,sbin}
|
|
|
|
install -d "${pkgdir}/var/lib/ntp"
|
|
|
|
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2010-09-04 05:10:46 +08:00
|
|
|
}
|