wok annotate ntpclient/receipt @ rev 9349

Add docbook-xml-42.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Mar 19 21:01:05 2011 +0000 (2011-03-19)
parents fdc7f9d423dd
children 02bbaa9d12ba
rev   line source
erjo@506 1 # SliTaz package receipt.
erjo@506 2
erjo@506 3 PACKAGE="ntpclient"
erjo@3125 4 VERSION="2007_365"
erjo@506 5 CATEGORY="system-tools"
erjo@506 6 SHORT_DESC="Tiny NTP Client"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
erjo@506 8 DEPENDS=""
erjo@506 9 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
erjo@506 10 WEB_SITE="http://www.busybox.net/tinyutils.html"
erjo@506 11 WGET_URL="http://doolittle.icarus.com/ntpclient/$TARBALL"
erjo@506 12
erjo@506 13 # Rules to configure and make the package.
erjo@506 14 compile_rules()
erjo@506 15 {
erjo@506 16 cd $src
erjo@3125 17
erjo@3125 18 # disable debug
erjo@3125 19 sed -i 's/\(^CFLAGS += -DENABLE_DEBUG\)/#\1/' Makefile
erjo@506 20 make
erjo@506 21 }
erjo@506 22
erjo@506 23 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@506 24 genpkg_rules()
slaxemulator@8752 25 {
erjo@506 26 mkdir -p $fs/usr/bin
erjo@506 27 cp -a $src/ntpclient $fs/usr/bin
erjo@506 28 strip -s $fs/usr/bin/*
erjo@506 29 }
erjo@506 30
erjo@506 31 post_install()
erjo@506 32 {
pascal@1137 33 [ -n "$1" ] && return
erjo@506 34 echo ""
erjo@506 35 echo -n "Do you want to run ntpclient in automatic mode (y/N): "; read anser
erjo@506 36 if [ "$anser" == "y" ]; then
erjo@506 37 srv="fr.pool.ntp.org"
erjo@506 38 echo ""
erjo@506 39 echo -n "Setting up crontab for ntpclient..."
pascal@6934 40 crontab -l 2> /dev/null | grep -q '/usr/bin/ntpclient -s -h' ||
pascal@6934 41 crontab - -u root << EOT
pascal@1926 42 $(crontab -l 2> /dev/null)
pascal@6934 43 0 0 * * * /usr/bin/ntpclient -s -h $srv
pascal@1926 44 EOT
erjo@506 45 status
erjo@506 46 else
erjo@506 47 echo "Don't forget to run ntpclient -s -h <NTP Server>"
erjo@506 48 fi
erjo@506 49 }
erjo@506 50