
Receipt for package "ntpclient"
# SliTaz package receipt. PACKAGE="ntpclient" VERSION="3.1" CATEGORY="system-tools" SHORT_DESC="Tiny NTP Client" MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://github.com/troglobit/sntpd" WGET_URL="https://github.com/troglobit/sntpd/archive/refs/tags/v$VERSION.tar.gz" HOST_ARCH="i486 arm" PROVIDES="sntpd" BUILD_DEPENDS="automake" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh ./configure LIBS="-lrt" --prefix=/usr && make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $src/src/sntpd $fs/usr/bin/ ln $fs/usr/bin/sntpd $fs/usr/bin/ntpclient } post_install() { [ -n "$1" -o -n "$quiet" ] && return echo -en '\nDo you want to run ntpclient in automatic mode (y/N): ' read -t 30 anser if [ "$anser" = 'y' ]; then srv='fr.pool.ntp.org' action 'Setting up crontab for ntpclient...' crontab -l 2>/dev/null | grep -q '/usr/bin/ntpclient -s -h' || crontab - -u root <<EOT $(crontab -l 2>/dev/null) 0 0 * * * /usr/bin/ntpclient -s -h $srv EOT else echo "Don't forget to run ntpclient -s -h <NTP Server>" fi }
6017 packages and 861739 files in cooking database (Sun Sep 21 00:48:01 2025)