wok view ntp/receipt @ rev 24033

updated dialog-dev (1.3_20190211 -> 1.3_20210324)
author Hans-G?nter Theisgen
date Wed Apr 07 15:56:56 2021 +0100 (2021-04-07)
parents 7d672a2330b8
children 241fb98cab1c
line source
1 # SliTaz package receipt.
3 PACKAGE="ntp"
4 VERSION="4.2.8p13"
5 CATEGORY="network"
6 SHORT_DESC="Network Time Protocol daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.ntp.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://archive.ntp.org/ntp4/$TARBALL"
14 DEPENDS="attr libcap libcrypto readline"
15 CONFIG_FILES="/etc/ntp.conf"
17 HOST_ARCH="i486 arm"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
24 ./configure \
25 --prefix=/usr \
26 --infodir=/usr/share/info \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS && \
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 mkdir -p $fs/etc/init.d
41 cp -a $install/usr/bin $fs/usr
42 cp stuff/ntp $fs/etc/init.d
43 cat > $fs/etc/ntp.conf <<EOT
44 restrict default noquery
45 restrict 192.168.0.0 mask 255.255.0.0
46 restrict 127.0.0.1
47 server europe.pool.ntp.org
48 server pool.ntp.org
49 EOT
50 }