wok-current view ntp/receipt @ rev 25520

created recipes for libluv and libluv-dev 1.44.2.1
author Hans-G?nter Theisgen
date Fri Feb 24 15:44:32 2023 +0100 (21 months ago)
parents eade4bb3846a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ntp"
4 VERSION="4.2.8p15"
5 CATEGORY="network"
6 SHORT_DESC="Network Time Protocol daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="http://www.ntp.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://archive.ntp.org/ntp4/$PACKAGE-${VERSION%.*}/$TARBALL"
14 DEPENDS="attr libcap libcrypto readline"
16 CONFIG_FILES="/etc/ntp.conf"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --sysconfdir=/etc \
36 --localstatedir=/var \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 mkdir -p $fs/etc/init.d
49 cp -a $install/usr/bin $fs/usr
50 cp stuff/ntp $fs/etc/init.d
51 cat > $fs/etc/ntp.conf <<EOT
52 restrict default noquery
53 restrict 192.168.0.0 mask 255.255.0.0
54 restrict 127.0.0.1
55 server europe.pool.ntp.org
56 server pool.ntp.org
57 EOT
58 }