Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=37f9d6e75e4d868fc4bdb220c2be0bebebf89b51
commit 37f9d6e75e4d868fc4bdb220c2be0bebebf89b51 Author: CSÉCSY László <[EMAIL PROTECTED]> Date: Mon Sep 10 09:01:06 2007 +0200 ntp-4.2.4p3-1-i686 version bump new m8r, ok by iron@ added service support added default config corrected up2date various other smallish changes diff --git a/source/network-extra/ntp/FrugalBuild b/source/network-extra/ntp/FrugalBuild index e916f4c..0801837 100644 --- a/source/network-extra/ntp/FrugalBuild +++ b/source/network-extra/ntp/FrugalBuild @@ -1,18 +1,30 @@ -# Compiling Time: 0.24 SBU -# Maintainer: Krisztian VASAS <[EMAIL PROTECTED]> +# Compiling Time: 0.85 SBU +# Maintainer: CSÉCSY László <[EMAIL PROTECTED]> +# Former m8r: Krisztian VASAS <[EMAIL PROTECTED]> pkgname=ntp -pkgver=4.2.4 -pkgextraver=p0 -pkgrel=2 +pkgver=4.2.4p3 +pkgrel=1 pkgdesc="The ntp daemon from ntp.org" url="http://www.ntp.org/" conflicts=('openntpd') groups=('network-extra') archs=('i686' 'x86_64') -up2date="lynx -dump http://ntp.isc.org/bin/view/Main/SoftwareDownloads | awk '/Stable/ {print \$2}' | sed 's/$pkgextraver//'" -source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$pkgname-$pkgver$pkgextraver.tar.gz) -sha1sums=('2ea11693bfbf0abf29575b5ab2ebfdd933ebb991') +up2date="lynx -dump http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ | grep -m1 'http.*tar.gz$' | sed 's/.*ntp-\(.*\)\.tar.*/\1/'" +source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$pkgname-$pkgver.tar.gz rc.ntpd rc.ntpd.pot ntp.org.conf) +backup=(etc/ntp.org.conf) +sha1sums=('8531786a84db138996334d3fd842948dd165a554' \ + '2bf638fba95847568e45afc7b2cfdf6d1767b429' \ + '6f0275b9c1adcdef0c441408d8b5c4e4c82e1de4' \ + '9e116eabff29a0216bfc2c56817ba48d1f3182f6') + # TODO: add some sort init script +build() +{ + Fbuild + Fmkdir etc/rc.d + Ffile ntp.org.conf /etc + Fexe rc.ntpd /etc/rc.d +} # optimization OK diff --git a/source/network-extra/ntp/ntp.org.conf b/source/network-extra/ntp/ntp.org.conf new file mode 100644 index 0000000..bf54bc5 --- /dev/null +++ b/source/network-extra/ntp/ntp.org.conf @@ -0,0 +1,6 @@ +driftfile /var/lib/ntp.drift +pidfile /var/run/ntp.pid +logfile /var/log/ntp.log +server 0.pool.ntp.org +server 1.pool.ntp.org +server 2.pool.ntp.org diff --git a/source/network-extra/ntp/rc.ntpd b/source/network-extra/ntp/rc.ntpd new file mode 100644 index 0000000..ea82a93 --- /dev/null +++ b/source/network-extra/ntp/rc.ntpd @@ -0,0 +1,44 @@ +#!/bin/bash + +# (c) 2005 Marcus Habermehl <[EMAIL PROTECTED]> +# (c) 2004 Peter BARABAS <[EMAIL PROTECTED]> +# (c) 2007 CSÉCSY László <[EMAIL PROTECTED]> +# rc.ntpd for Frugalware +# distributed under GPL License + +# chkconfig: 2345 32 56 +# description: Starts or stops NTP.org daemon + +source /lib/initscripts/functions +TEXTDOMAIN=ntpd +TEXTDOMAINDIR=/lib/initscripts/messages + +actions=(restart status start stop) +daemon=$"NTP.org daemon" + +pidfile=/var/run/ntp.pid + +rc_start() +{ + start_msg + if [ ! -e $pidfile ]; then + /usr/bin/ntpd -g -c /etc/ntp.org.conf + ok $? + else + ok 999 + fi +} + +rc_stop() +{ + stop_msg + if [ -e $pidfile ]; then + kill `cat $pidfile` + rm $pidfile + ok $? + else + ok 999 + fi +} + +rc_exec $1 diff --git a/source/network-extra/ntp/rc.ntpd.pot b/source/network-extra/ntp/rc.ntpd.pot new file mode 100644 index 0000000..7d9da8c --- /dev/null +++ b/source/network-extra/ntp/rc.ntpd.pot @@ -0,0 +1,20 @@ +# rc.ntpd. +# Copyright (C) YEAR THE rc.ntpd'S COPYRIGHT HOLDER +# This file is distributed under the same license as the rc.ntpd package. +# FIRST AUTHOR <[EMAIL PROTECTED]>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-12-05 20:49+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <[EMAIL PROTECTED]>\n" +"Language-Team: LANGUAGE <[EMAIL PROTECTED]>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "NTP.org daemon" +msgstr "" _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
