wok-next diff ntpclient/receipt @ rev 506

ADD: slang, slang-dev, ntpclient, bzip2-dev
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Mar 31 23:50:23 2008 +0200 (2008-03-31)
parents
children 71971b26aca6
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ntpclient/receipt	Mon Mar 31 23:50:23 2008 +0200
     1.3 @@ -0,0 +1,51 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ntpclient"
     1.7 +VERSION="2000_339"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Tiny NTP Client"
    1.10 +MAINTAINER="Erjo <erjo@slitaz.org>"
    1.11 +DEPENDS=""
    1.12 +TARBALL="${PACKAGE}_${VERSION}.tar.gz"
    1.13 +WEB_SITE="http://www.busybox.net/tinyutils.html"
    1.14 +WGET_URL="http://doolittle.icarus.com/ntpclient/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	src=$PACKAGE
    1.20 +	cd $src
    1.21 +	make 
    1.22 +}
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 +genpkg_rules()
    1.26 +{
    1.27 +	src=$PACKAGE		
    1.28 +	mkdir -p $fs/usr/bin
    1.29 +	cp -a $src/ntpclient  $fs/usr/bin
    1.30 +	strip -s $fs/usr/bin/*
    1.31 +}	
    1.32 +	
    1.33 +
    1.34 +clen_rules()
    1.35 +{
    1.36 +	rm -rf $PWD/$PACKAGE
    1.37 +}
    1.38 +
    1.39 +post_install()
    1.40 +{
    1.41 +    local root
    1.42 +    echo ""
    1.43 +    echo -n "Do you want to run ntpclient in automatic mode (y/N): "; read anser
    1.44 +    	if [ "$anser" == "y" ]; then
    1.45 +    		srv="fr.pool.ntp.org"
    1.46 +            echo ""
    1.47 +            echo -n "Setting up crontab for ntpclient..."
    1.48 +            echo "0 0 * * * $root/usr/bin/ntpclient -s -h $srv" | crontab -u root - 
    1.49 +            status
    1.50 +        else
    1.51 +        	echo "Don't forget to run ntpclient -s -h <NTP Server>"
    1.52 +        fi
    1.53 +}
    1.54 +