wok-next view ntp/receipt @ rev 16166
Up 8086tiny (1.25)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 29 09:33:57 2014 +0000 (2014-03-29) |
parents | 23c3aed67cd9 |
children | 7d672a2330b8 |
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 restrict default noquery
34 restrict 192.168.0.0 mask 255.255.0.0
35 restrict 127.0.0.1
36 server fr.pool.ntp.org
37 server de.pool.ntp.org
38 EOT
39 }