wok-current annotate ntpclient/receipt @ rev 2767

seamonkey: update build_depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 26 23:12:24 2009 +0200 (2009-04-26)
parents 10710b8535bc
children bcb2999e13f6
rev   line source
erjo@506 1 # SliTaz package receipt.
erjo@506 2
erjo@506 3 PACKAGE="ntpclient"
erjo@506 4 VERSION="2000_339"
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 src=$PACKAGE
erjo@506 17 cd $src
erjo@506 18 make
erjo@506 19 }
erjo@506 20
erjo@506 21 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@506 22 genpkg_rules()
erjo@506 23 {
erjo@506 24 src=$PACKAGE
erjo@506 25 mkdir -p $fs/usr/bin
erjo@506 26 cp -a $src/ntpclient $fs/usr/bin
erjo@506 27 strip -s $fs/usr/bin/*
erjo@506 28 }
erjo@506 29
erjo@506 30
erjo@506 31 clen_rules()
erjo@506 32 {
erjo@506 33 rm -rf $PWD/$PACKAGE
erjo@506 34 }
erjo@506 35
erjo@506 36 post_install()
erjo@506 37 {
pascal@1137 38 [ -n "$1" ] && return
erjo@506 39 echo ""
erjo@506 40 echo -n "Do you want to run ntpclient in automatic mode (y/N): "; read anser
erjo@506 41 if [ "$anser" == "y" ]; then
erjo@506 42 srv="fr.pool.ntp.org"
erjo@506 43 echo ""
erjo@506 44 echo -n "Setting up crontab for ntpclient..."
pascal@1926 45 crontab - -u root << EOT
pascal@1926 46 $(crontab -l 2> /dev/null)
pascal@1926 47 0 0 * * * $root/usr/bin/ntpclient -s -h $srv
pascal@1926 48 EOT
erjo@506 49 status
erjo@506 50 else
erjo@506 51 echo "Don't forget to run ntpclient -s -h <NTP Server>"
erjo@506 52 fi
erjo@506 53 }
erjo@506 54