wok-6.x annotate ntpclient/receipt @ rev 964

Up: asunder (1.6)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 30 11:48:04 2008 +0200 (2008-06-30)
parents 71971b26aca6
children 10710b8535bc
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 {
erjo@506 38 local root
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..."
erjo@509 45 echo "0 0 * * * $root/usr/bin/ntpclient -s -h $srv" | crontab - -u root
erjo@506 46 status
erjo@506 47 else
erjo@506 48 echo "Don't forget to run ntpclient -s -h <NTP Server>"
erjo@506 49 fi
erjo@506 50 }
erjo@506 51