wok view ntp/receipt @ rev 10717

Up: slitaz-boot-scripts (4.4) - WARNING: no more hwconf.sh and i18n.sh so we sed in rcS.conf to change that or next boot boot get lots of problem
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 28 23:23:13 2011 +0200 (2011-05-28)
parents 5b44af8c1257
children 67ed985ed744
line source
1 # SliTaz package receipt.
3 PACKAGE="ntp"
4 VERSION="4.2.6p3"
5 CATEGORY="network"
6 SHORT_DESC="Network Time Protocol daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.ntp.org/"
10 WGET_URL="http://archive.ntp.org/ntp4/$TARBALL"
11 DEPENDS="libcrypto readline libcap attr"
12 CONFIG_FILES="/etc/ntp.conf"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
19 ./configure --prefix=/usr --infodir=/usr/share/info \
20 --sysconfdir=/etc --localstatedir=/var \
21 --mandir=/usr/share/man $CONFIGURE_ARGS && \
22 make && make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr $fs/etc/init.d
29 cp -a $_pkg/usr/bin $fs/usr
30 cp stuff/ntp $fs/etc/init.d
31 cat > $fs/etc/ntp.conf <<EOT
32 server fr.pool.ntp.org
33 EOT
34 }