wok annotate ntpclient/receipt @ rev 16815
Up gsettings-desktop-schemas (3.12.2)
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Thu Jul 10 23:12:54 2014 -0300 (2014-07-10) |
parents | 7d672a2330b8 |
children | a5192a6e0733 |
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 |
erjo@506 | 14 # Rules to configure and make the package. |
erjo@506 | 15 compile_rules() |
erjo@506 | 16 { |
erjo@3125 | 17 # disable debug |
pankso@16478 | 18 sed -i 's/\(^CFLAGS += -DENABLE_DEBUG\)/#\1/' Makefile && |
erjo@506 | 19 make |
erjo@506 | 20 } |
erjo@506 | 21 |
erjo@506 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@506 | 23 genpkg_rules() |
slaxemulator@8752 | 24 { |
erjo@506 | 25 mkdir -p $fs/usr/bin |
erjo@506 | 26 cp -a $src/ntpclient $fs/usr/bin |
erjo@506 | 27 } |
erjo@506 | 28 |
erjo@506 | 29 post_install() |
erjo@506 | 30 { |
pascal@1137 | 31 [ -n "$1" ] && return |
erjo@506 | 32 echo "" |
pascal@14582 | 33 echo -n "Do you want to run ntpclient in automatic mode (y/N): "; read t 30 anser |
erjo@506 | 34 if [ "$anser" == "y" ]; then |
erjo@506 | 35 srv="fr.pool.ntp.org" |
erjo@506 | 36 echo "" |
erjo@506 | 37 echo -n "Setting up crontab for ntpclient..." |
pascal@6934 | 38 crontab -l 2> /dev/null | grep -q '/usr/bin/ntpclient -s -h' || |
pascal@6934 | 39 crontab - -u root << EOT |
pascal@1926 | 40 $(crontab -l 2> /dev/null) |
pascal@6934 | 41 0 0 * * * /usr/bin/ntpclient -s -h $srv |
pascal@1926 | 42 EOT |
erjo@506 | 43 status |
erjo@506 | 44 else |
erjo@506 | 45 echo "Don't forget to run ntpclient -s -h <NTP Server>" |
erjo@506 | 46 fi |
erjo@506 | 47 } |
erjo@506 | 48 |