wok view ntpclient/receipt @ rev 7737
Add php-soap
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 20 14:52:08 2010 +0100 (2010-12-20) |
parents | bcb2999e13f6 |
children | a1c1d35d9f92 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ntpclient"
4 VERSION="2007_365"
5 CATEGORY="system-tools"
6 SHORT_DESC="Tiny NTP Client"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS=""
9 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
10 WEB_SITE="http://www.busybox.net/tinyutils.html"
11 WGET_URL="http://doolittle.icarus.com/ntpclient/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 src=$PACKAGE-2007
17 cd $src
19 # disable debug
20 sed -i 's/\(^CFLAGS += -DENABLE_DEBUG\)/#\1/' Makefile
21 make
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 src=$PACKAGE-2007
28 mkdir -p $fs/usr/bin
29 cp -a $src/ntpclient $fs/usr/bin
30 strip -s $fs/usr/bin/*
31 }
34 clen_rules()
35 {
36 rm -rf $PWD/$PACKAGE
37 }
39 post_install()
40 {
41 [ -n "$1" ] && return
42 echo ""
43 echo -n "Do you want to run ntpclient in automatic mode (y/N): "; read anser
44 if [ "$anser" == "y" ]; then
45 srv="fr.pool.ntp.org"
46 echo ""
47 echo -n "Setting up crontab for ntpclient..."
48 crontab -l 2> /dev/null | grep -q '/usr/bin/ntpclient -s -h' ||
49 crontab - -u root << EOT
50 $(crontab -l 2> /dev/null)
51 0 0 * * * /usr/bin/ntpclient -s -h $srv
52 EOT
53 status
54 else
55 echo "Don't forget to run ntpclient -s -h <NTP Server>"
56 fi
57 }