wok-6.x annotate ntp/receipt @ rev 24077

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