wok annotate ntp/receipt @ rev 14300
Up: efreet (1.7.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:12:30 2013 +0200 (2013-04-07) |
parents | 5b44af8c1257 |
children | 67ed985ed744 |
rev | line source |
---|---|
pascal@1741 | 1 # SliTaz package receipt. |
pascal@1741 | 2 |
pascal@1741 | 3 PACKAGE="ntp" |
slaxemulator@8717 | 4 VERSION="4.2.6p3" |
pascal@1741 | 5 CATEGORY="network" |
pascal@1741 | 6 SHORT_DESC="Network Time Protocol daemon." |
pascal@1741 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1741 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1741 | 9 WEB_SITE="http://www.ntp.org/" |
pascal@1741 | 10 WGET_URL="http://archive.ntp.org/ntp4/$TARBALL" |
pascal@5004 | 11 DEPENDS="libcrypto readline libcap attr" |
pascal@1751 | 12 CONFIG_FILES="/etc/ntp.conf" |
pascal@1741 | 13 |
pascal@1741 | 14 # Rules to configure and make the package. |
pascal@1741 | 15 compile_rules() |
pascal@1741 | 16 { |
pascal@1741 | 17 cd $src |
pascal@4275 | 18 sed -i 's/MOD_NANO/0/' ntpd/ntp_loopfilter.c |
pascal@1741 | 19 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1741 | 20 --sysconfdir=/etc --localstatedir=/var \ |
pascal@1741 | 21 --mandir=/usr/share/man $CONFIGURE_ARGS && \ |
pascal@1741 | 22 make && make DESTDIR=$PWD/_pkg install |
pascal@1741 | 23 } |
pascal@1741 | 24 |
pascal@1741 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1741 | 26 genpkg_rules() |
pascal@1741 | 27 { |
pascal@1751 | 28 mkdir -p $fs/usr $fs/etc/init.d |
pascal@1751 | 29 cp -a $_pkg/usr/bin $fs/usr |
pascal@1751 | 30 cp stuff/ntp $fs/etc/init.d |
pascal@1751 | 31 cat > $fs/etc/ntp.conf <<EOT |
pascal@1751 | 32 server fr.pool.ntp.org |
pascal@1751 | 33 EOT |
pascal@1741 | 34 } |
pascal@1741 | 35 |