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