wok-stable annotate ntpclient/receipt @ rev 1375

Add: mpd (Music Player Daemon)
author Paul Issott <paul@slitaz.org>
date Thu Sep 11 15:10:48 2008 +0000 (2008-09-11)
parents a075ff895254
children 5c39f33a1d37
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..."
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