wok-6.x view ntp/receipt @ rev 24782
Up alpine (2.25)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 12:08:15 2022 +0000 (2022-03-20) |
parents | 92ee1de174b9 |
children | 00e3b45c063b |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
31 ./configure \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --sysconfdir=/etc \
35 --localstatedir=/var \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS && \
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 mkdir -p $fs/etc/init.d
48 cp -a $install/usr/bin $fs/usr
49 cp stuff/ntp $fs/etc/init.d
50 cat > $fs/etc/ntp.conf <<EOT
51 restrict default noquery
52 restrict 192.168.0.0 mask 255.255.0.0
53 restrict 127.0.0.1
54 server europe.pool.ntp.org
55 server pool.ntp.org
56 EOT
57 }