wok-6.x annotate ntpclient/receipt @ rev 21876
Add python-bcrypt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 28 16:58:29 2019 +0200 (2019-09-28) |
parents | 77be6b57303b |
children | ad8b9ff412d2 |
rev | line source |
---|---|
erjo@506 | 1 # SliTaz package receipt. |
erjo@506 | 2 |
erjo@506 | 3 PACKAGE="ntpclient" |
al@18964 | 4 VERSION="2015_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" |
al@18964 | 9 TARBALL="${PACKAGE}_$VERSION.tar.gz" |
al@18964 | 10 WEB_SITE="http://doolittle.icarus.com/ntpclient/" |
al@18964 | 11 WGET_URL="${WEB_SITE}$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 |
al@18964 | 18 sed -i 's/\(^CFLAGS += -DENABLE_DEBUG\)/#\1/' Makefile && |
al@18964 | 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() |
al@18964 | 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 { |
al@18964 | 31 [ -n "$1" -o -n "$quiet" ] && return |
al@18964 | 32 echo -en '\nDo you want to run ntpclient in automatic mode (y/N): ' |
al@18964 | 33 read -t 30 anser |
pascal@20892 | 34 if [ "$anser" = 'y' ]; then |
al@18964 | 35 srv='fr.pool.ntp.org' |
al@18964 | 36 action 'Setting up crontab for ntpclient...' |
al@18964 | 37 crontab -l 2>/dev/null | grep -q '/usr/bin/ntpclient -s -h' || |
al@18964 | 38 crontab - -u root <<EOT |
al@18964 | 39 $(crontab -l 2>/dev/null) |
pascal@6934 | 40 0 0 * * * /usr/bin/ntpclient -s -h $srv |
pascal@1926 | 41 EOT |
al@18964 | 42 else |
al@18964 | 43 echo "Don't forget to run ntpclient -s -h <NTP Server>" |
al@18964 | 44 fi |
erjo@506 | 45 } |