wok annotate ntpclient/receipt @ rev 16477

Up alsa, ARM add ntp* + a bunch of python packages
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 01:06:05 2014 +0200 (2014-04-23)
parents 3765f181a6d5
children 1170c748b1ab
rev   line source
erjo@506 1 # SliTaz package receipt.
erjo@506 2
erjo@506 3 PACKAGE="ntpclient"
pankso@16477 4 VERSION="2010_365"
erjo@506 5 CATEGORY="system-tools"
erjo@506 6 SHORT_DESC="Tiny NTP Client"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15584 8 LICENSE="GPL2"
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"
pankso@16477 12 HOST_ARCH="i486 arm"
erjo@506 13
pascal@15584 14 DEPENDS=""
pascal@15584 15
erjo@506 16 # Rules to configure and make the package.
erjo@506 17 compile_rules()
erjo@506 18 {
erjo@506 19 cd $src
erjo@3125 20
erjo@3125 21 # disable debug
erjo@3125 22 sed -i 's/\(^CFLAGS += -DENABLE_DEBUG\)/#\1/' Makefile
erjo@506 23 make
erjo@506 24 }
erjo@506 25
erjo@506 26 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@506 27 genpkg_rules()
slaxemulator@8752 28 {
erjo@506 29 mkdir -p $fs/usr/bin
erjo@506 30 cp -a $src/ntpclient $fs/usr/bin
erjo@506 31 }
erjo@506 32
erjo@506 33 post_install()
erjo@506 34 {
pascal@1137 35 [ -n "$1" ] && return
erjo@506 36 echo ""
pascal@14582 37 echo -n "Do you want to run ntpclient in automatic mode (y/N): "; read t 30 anser
erjo@506 38 if [ "$anser" == "y" ]; then
erjo@506 39 srv="fr.pool.ntp.org"
erjo@506 40 echo ""
erjo@506 41 echo -n "Setting up crontab for ntpclient..."
pascal@6934 42 crontab -l 2> /dev/null | grep -q '/usr/bin/ntpclient -s -h' ||
pascal@6934 43 crontab - -u root << EOT
pascal@1926 44 $(crontab -l 2> /dev/null)
pascal@6934 45 0 0 * * * /usr/bin/ntpclient -s -h $srv
pascal@1926 46 EOT
erjo@506 47 status
erjo@506 48 else
erjo@506 49 echo "Don't forget to run ntpclient -s -h <NTP Server>"
erjo@506 50 fi
erjo@506 51 }
erjo@506 52