wok-6.x view ntp/receipt @ rev 20108

Add vrrpd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 10 22:14:24 2017 +0200 (2017-10-10)
parents 9a5128688a23
children 92ee1de174b9
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 HOST_ARCH="i486 arm"
14 DEPENDS="libcrypto readline libcap attr"
15 CONFIG_FILES="/etc/ntp.conf"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --sysconfdir=/etc --localstatedir=/var \
24 --mandir=/usr/share/man $CONFIGURE_ARGS && \
25 make && make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr $fs/etc/init.d
32 cp -a $install/usr/bin $fs/usr
33 cp stuff/ntp $fs/etc/init.d
34 cat > $fs/etc/ntp.conf <<EOT
35 restrict default noquery
36 restrict 192.168.0.0 mask 255.255.0.0
37 restrict 127.0.0.1
38 server fr.pool.ntp.org
39 server de.pool.ntp.org
40 EOT
41 }