wok-current view ntp/receipt @ rev 16337

Add slitaz-arm-adm (Can be used on other arch)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 12 12:20:54 2014 +0200 (2014-04-12)
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 }