wok view ntp/receipt @ rev 15700

wbar2:Fixconfig (again)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Dec 22 15:10:14 2013 +0100 (2013-12-22)
parents 67ed985ed744
children 9a5128688a23
line source
1 # SliTaz package receipt.
3 PACKAGE="ntp"
4 VERSION="4.2.6p5"
5 CATEGORY="network"
6 SHORT_DESC="Network Time Protocol daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.ntp.org/"
11 WGET_URL="http://archive.ntp.org/ntp4/$TARBALL"
12 DEPENDS="libcrypto readline libcap attr"
13 CONFIG_FILES="/etc/ntp.conf"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
20 ./configure --prefix=/usr --infodir=/usr/share/info \
21 --sysconfdir=/etc --localstatedir=/var \
22 --mandir=/usr/share/man $CONFIGURE_ARGS && \
23 make && make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr $fs/etc/init.d
30 cp -a $install/usr/bin $fs/usr
31 cp stuff/ntp $fs/etc/init.d
32 cat > $fs/etc/ntp.conf <<EOT
33 server fr.pool.ntp.org
34 EOT
35 }