wok annotate ntp/receipt @ rev 16041
syslinux/iso2exe: fix 'a la umsdos' install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 09 14:09:57 2014 +0000 (2014-03-09) |
parents | 23c3aed67cd9 |
children | 7d672a2330b8 |
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" |
pascal@5004 | 12 DEPENDS="libcrypto readline libcap attr" |
pascal@1751 | 13 CONFIG_FILES="/etc/ntp.conf" |
pascal@1741 | 14 |
pascal@1741 | 15 # Rules to configure and make the package. |
pascal@1741 | 16 compile_rules() |
pascal@1741 | 17 { |
pascal@1741 | 18 cd $src |
pascal@4275 | 19 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c |
pascal@1741 | 20 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1741 | 21 --sysconfdir=/etc --localstatedir=/var \ |
pascal@1741 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && \ |
pascal@15601 | 23 make && make DESTDIR=$DESTDIR install |
pascal@1741 | 24 } |
pascal@1741 | 25 |
pascal@1741 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1741 | 27 genpkg_rules() |
pascal@1741 | 28 { |
pascal@1751 | 29 mkdir -p $fs/usr $fs/etc/init.d |
pascal@15601 | 30 cp -a $install/usr/bin $fs/usr |
pascal@1751 | 31 cp stuff/ntp $fs/etc/init.d |
pascal@1751 | 32 cat > $fs/etc/ntp.conf <<EOT |
pascal@15924 | 33 restrict default noquery |
pascal@15924 | 34 restrict 192.168.0.0 mask 255.255.0.0 |
pascal@15924 | 35 restrict 127.0.0.1 |
pascal@1751 | 36 server fr.pool.ntp.org |
pascal@15924 | 37 server de.pool.ntp.org |
pascal@1751 | 38 EOT |
pascal@1741 | 39 } |
pascal@1741 | 40 |