wok-6.x annotate ntp/receipt @ rev 15763
Up tazinst-gui (3.92)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 05 22:37:47 2014 +0100 (2014-01-05) |
parents | 67ed985ed744 |
children | 9a5128688a23 |
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@1751 | 33 server fr.pool.ntp.org |
pascal@1751 | 34 EOT |
pascal@1741 | 35 } |
pascal@1741 | 36 |