wok view ntp/receipt @ rev 24978

Add memtest-efi32 & memtest-efi64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 07 11:09:47 2022 +0000 (24 months ago)
parents 241fb98cab1c
children eade4bb3846a
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="https://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 }