wok-next view ntp/receipt @ rev 20458

Unlock x86_64 architecture
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 12:12:14 2018 +0200 (2018-03-02)
parents e6615350078d
children d43bf7aae921
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"
13 DEPENDS="openssl readline libcap attr"
14 CONFIG_FILES="/etc/ntp.conf"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --sysconfdir=/etc --localstatedir=/var \
23 --mandir=/usr/share/man $CONFIGURE_ARGS && \
24 make && make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr $fs/etc/init.d
31 cp -a $install/usr/bin $fs/usr
32 cp stuff/ntp $fs/etc/init.d
33 cat > $fs/etc/ntp.conf <<EOT
34 restrict default noquery
35 restrict 192.168.0.0 mask 255.255.0.0
36 restrict 127.0.0.1
37 server fr.pool.ntp.org
38 server de.pool.ntp.org
39 EOT
40 }