wok annotate ntp/receipt @ rev 18424

rtaudio: rece condition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 21 11:30:33 2015 +0200 (2015-09-21)
parents 9a5128688a23
children 92ee1de174b9
rev   line source
pascal@1741 1 # SliTaz package receipt.
pascal@1741 2
pascal@1741 3 PACKAGE="ntp"
mojo@14736 4 VERSION="4.2.6p5"
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"
pascal@1741 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1741 10 WEB_SITE="http://www.ntp.org/"
pascal@1741 11 WGET_URL="http://archive.ntp.org/ntp4/$TARBALL"
pankso@16477 12 HOST_ARCH="i486 arm"
pankso@16477 13
pascal@5004 14 DEPENDS="libcrypto readline libcap attr"
pascal@1751 15 CONFIG_FILES="/etc/ntp.conf"
pascal@1741 16
pascal@1741 17 # Rules to configure and make the package.
pascal@1741 18 compile_rules()
pascal@1741 19 {
pascal@1741 20 cd $src
pascal@4275 21 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c
pascal@1741 22 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1741 23 --sysconfdir=/etc --localstatedir=/var \
pascal@1741 24 --mandir=/usr/share/man $CONFIGURE_ARGS && \
pascal@15601 25 make && make DESTDIR=$DESTDIR install
pascal@1741 26 }
pascal@1741 27
pascal@1741 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1741 29 genpkg_rules()
pascal@1741 30 {
pascal@1751 31 mkdir -p $fs/usr $fs/etc/init.d
pascal@15601 32 cp -a $install/usr/bin $fs/usr
pascal@1751 33 cp stuff/ntp $fs/etc/init.d
pascal@1751 34 cat > $fs/etc/ntp.conf <<EOT
pascal@15924 35 restrict default noquery
pascal@15924 36 restrict 192.168.0.0 mask 255.255.0.0
pascal@15924 37 restrict 127.0.0.1
pascal@1751 38 server fr.pool.ntp.org
pascal@15924 39 server de.pool.ntp.org
pascal@1751 40 EOT
pascal@1741 41 }
pascal@1741 42