# HG changeset patch # User Pascal Bellard # Date 1296598234 -3600 # Node ID fe7b70cfec97bb5c074a048d43fc274db53e4779 # Parent 956ee7ef6dfee4f487f4b0bfdd21381ed42ac1de Add ntp-config diff -r 956ee7ef6dfe -r fe7b70cfec97 ntp-config/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ntp-config/receipt Tue Feb 01 23:10:34 2011 +0100 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="ntp-config" +VERSION="1.0" +CATEGORY="tiny-slitaz" +SHORT_DESC="Network time protocol configuration" +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://mirror.slitaz.org/pizza/tiny/" +DEPENDS="base-tiny" +CONFIG_FILES="/etc/daemons.conf /etc/rcS.conf" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/etc +} + +post_install() +{ + grep -q ntpd $1/etc/rcS.conf || + sed -i 's/^RUN_DAEMONS="/&ntpd /' $1/etc/rcS.conf + grep -q NTPD_OPTIONS $1/etc/daemons.conf || + cat >> $1/etc/daemons.conf < + +NTP server + + + +EOT +}