diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2006-04-09 05:50:24 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2006-04-09 05:50:24 +0000 |
commit | 4dc73ebdf3a6c96cea638967f187c67c9e55a859 (patch) | |
tree | 3f3e4484695e6b061924344f5293116b71634e2b /net-misc | |
parent | Update ChangeLog to reflect the withdrawal of 2.1_pre8. See bug #128946. (diff) | |
download | gentoo-2-4dc73ebdf3a6c96cea638967f187c67c9e55a859.tar.gz gentoo-2-4dc73ebdf3a6c96cea638967f187c67c9e55a859.tar.bz2 gentoo-2-4dc73ebdf3a6c96cea638967f187c67c9e55a859.zip |
Added Initscript to run htpdate as a daemon
(Portage version: 2.1_pre7-r4)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/htpdate/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/htpdate/Manifest | 22 | ||||
-rw-r--r-- | net-misc/htpdate/files/digest-htpdate-0.9.1-r1 | 3 | ||||
-rw-r--r-- | net-misc/htpdate/files/htpdate.conf | 12 | ||||
-rw-r--r-- | net-misc/htpdate/files/htpdate.init | 31 | ||||
-rw-r--r-- | net-misc/htpdate/htpdate-0.9.1-r1.ebuild | 40 |
6 files changed, 105 insertions, 11 deletions
diff --git a/net-misc/htpdate/ChangeLog b/net-misc/htpdate/ChangeLog index c99e282d510b..5dcd8497ab53 100644 --- a/net-misc/htpdate/ChangeLog +++ b/net-misc/htpdate/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/htpdate # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/ChangeLog,v 1.16 2006/03/25 12:09:58 kugelfang Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/ChangeLog,v 1.17 2006/04/09 05:50:24 dertobi123 Exp $ + +*htpdate-0.9.1-r1 (09 Apr 2006) + + 09 Apr 2006; Tobias Scherbaum <dertobi123@gentoo.org> +files/htpdate.conf, + +files/htpdate.init, +htpdate-0.9.1-r1.ebuild: + Added Initscript to run htpdate as a daemon 25 Mar 2006; Danny van Dyk <kugelfang@gentoo.org> htpdate-0.9.0.ebuild: Marked stable on amd64. diff --git a/net-misc/htpdate/Manifest b/net-misc/htpdate/Manifest index 00ad420b7114..870a8e9ab2ea 100644 --- a/net-misc/htpdate/Manifest +++ b/net-misc/htpdate/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 fbda93be2c4242a21d03a7a87bebf8b4 ChangeLog 2478 RMD160 694814f5217be9f34bbd4202300acd5767057a65 ChangeLog 2478 SHA256 541b08ce2ac50c6ced98564e85a716f286249db1806ffe1e09757ea15f45156e ChangeLog 2478 @@ -19,6 +16,15 @@ SHA256 f7368ce456d1a54ba3e23a0941e88dbdd3d57676a38f38f6d197be7c64b15b64 files/di MD5 6d38dc8a7fc38b9949bc745c5e0e199b files/digest-htpdate-0.9.1 238 RMD160 1eae51fab5f2a887c0d3cc5fda794d1d2839b5b2 files/digest-htpdate-0.9.1 238 SHA256 09473df0699c396292e78f99a47a033e63e838650ce5f89c46864bc4eef4603a files/digest-htpdate-0.9.1 238 +MD5 6d38dc8a7fc38b9949bc745c5e0e199b files/digest-htpdate-0.9.1-r1 238 +RMD160 1eae51fab5f2a887c0d3cc5fda794d1d2839b5b2 files/digest-htpdate-0.9.1-r1 238 +SHA256 09473df0699c396292e78f99a47a033e63e838650ce5f89c46864bc4eef4603a files/digest-htpdate-0.9.1-r1 238 +MD5 d76b66afc8c4bce8a68ff163fb28f59c files/htpdate.conf 356 +RMD160 c965b479e4fd40b2dd572a02578499f101e44d56 files/htpdate.conf 356 +SHA256 b09ba6abc1a7eec4423aa89468d4887b994ebc4e84cc55ba938ae26ea71084a2 files/htpdate.conf 356 +MD5 7d446b8bde674a2c6921ab5e705dc4e9 files/htpdate.init 699 +RMD160 bcc49fc2668815216dc49f366b2fd76166475c6c files/htpdate.init 699 +SHA256 29c19bf9fcea3db2a511d3813495c7ca6571ba73849eddb4cee4398e5b5622b8 files/htpdate.init 699 MD5 ec81f587e402abf72a7e9e7f7f35e31b files/ppc.patch 474 RMD160 3bb4baa74ee2b7b12ddbd6c9754efeffdf726c1f files/ppc.patch 474 SHA256 53a7cb3b18ebe3c10d8a95a88f9781a80ceb158864bdedb739af072a80dd6834 files/ppc.patch 474 @@ -34,16 +40,12 @@ SHA256 7e017a28fff1e13ec3089f8ff0dbf47430f03e886b87cf69d334f1bf38c053dd htpdate- MD5 2291bf6e31a856e07b716254bb095d19 htpdate-0.9.0.ebuild 743 RMD160 4fc25181a550286e0c83f43829dea593a1fd70a1 htpdate-0.9.0.ebuild 743 SHA256 a588d5a2ce24d5ed7b6c01b38e3e0ecc6674fd9559ce0933ab54ff226fbb6664 htpdate-0.9.0.ebuild 743 +MD5 35e3a219fa1ff2063fd4b64bcf038ed8 htpdate-0.9.1-r1.ebuild 968 +RMD160 65ae17f2fcf961dbd48717a6788af6fd9088917c htpdate-0.9.1-r1.ebuild 968 +SHA256 f73be3ec1d02e0cb78fbcc5d357bf93fd253332ed16eebbfec75b223617ebef1 htpdate-0.9.1-r1.ebuild 968 MD5 0df7140bfa787683e1e7b2f427d93bdc htpdate-0.9.1.ebuild 745 RMD160 7d2ee21ce08afe9ad1fff8966fcf59cc09d62d2e htpdate-0.9.1.ebuild 745 SHA256 0542270a4d3deb5fbda34001bdd5b9d1e608db41e08da9429dfead21dca54441 htpdate-0.9.1.ebuild 745 MD5 ff2b63df63e17d0b2714390e4c9ff1e1 metadata.xml 256 RMD160 7ba7e5dfce95b75377cf4a30745dcc4dbde95086 metadata.xml 256 SHA256 f4325cb611d6c7b7e2f87f8c89d325eb086df309605b53de578d6f8bc62b07ae metadata.xml 256 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.2 (GNU/Linux) - -iD8DBQFEJTRg5mJXAu5GbtIRAhFLAJ45iqB/B/XeNNkjuRFW/8X/B+CIKACffK/g -QVbdE4NBpMqU5fdvzbc8qt8= -=JW1c ------END PGP SIGNATURE----- diff --git a/net-misc/htpdate/files/digest-htpdate-0.9.1-r1 b/net-misc/htpdate/files/digest-htpdate-0.9.1-r1 new file mode 100644 index 000000000000..66d8f411aef4 --- /dev/null +++ b/net-misc/htpdate/files/digest-htpdate-0.9.1-r1 @@ -0,0 +1,3 @@ +MD5 26f9792ded592e2dd79a6c26d436a4ed htpdate-0.9.1.tar.gz 13486 +RMD160 74e977d55346b766e14e73a3e1216d1fc2a275da htpdate-0.9.1.tar.gz 13486 +SHA256 7a87514f7c053789a06476668ff1d6c284098a901887812912f6347bb12ec9af htpdate-0.9.1.tar.gz 13486 diff --git a/net-misc/htpdate/files/htpdate.conf b/net-misc/htpdate/files/htpdate.conf new file mode 100644 index 000000000000..719c3f2f1a7c --- /dev/null +++ b/net-misc/htpdate/files/htpdate.conf @@ -0,0 +1,12 @@ +# config file for /etc/init.d/htpdate + +# Add at least one http server to use: +#SERVERS="<servername>" + +# If you are using a proxy server to connect to the +# internet comment out the following line and insert the +# address and port of your proxy server. +#PROXY="-P <proxy>:<port>" + +# Set additional options, see 'man htpdate' for refernce +HTPDATE_OPTS="-s" diff --git a/net-misc/htpdate/files/htpdate.init b/net-misc/htpdate/files/htpdate.init new file mode 100644 index 000000000000..b40e83596b2e --- /dev/null +++ b/net-misc/htpdate/files/htpdate.init @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/files/htpdate.init,v 1.1 2006/04/09 05:50:24 dertobi123 Exp $ + +depend() { + need net + use dns logger +} + +checkconfig() { + if [ ! -n "${SERVERS}" ] ; then + eerror "You need to set at least one http server to use in /etc/conf.d/htpdate" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting htpdate" + start-stop-daemon --quiet --start --pidfile /var/run/htpdate.pid --exec /usr/sbin/htpdate \ + -- -D ${HTPDATE_OPTS} ${PROXY} ${SERVERS} + eend $? +} + +stop() { + ebegin "Stopping htpdate" + start-stop-daemon --stop --quiet --pidfile /var/run/htpdate.pid + rm -f /var/run/htpdate.pid + eend $? +} diff --git a/net-misc/htpdate/htpdate-0.9.1-r1.ebuild b/net-misc/htpdate/htpdate-0.9.1-r1.ebuild new file mode 100644 index 000000000000..f38dee159e10 --- /dev/null +++ b/net-misc/htpdate/htpdate-0.9.1-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/htpdate-0.9.1-r1.ebuild,v 1.1 2006/04/09 05:50:24 dertobi123 Exp $ + +inherit toolchain-funcs eutils + +DESCRIPTION="Synchronize local workstation with time offered by remote webservers" +HOMEPAGE="http://www.clevervest.com/htp/" +SRC_URI="http://www.clevervest.com/htp/archive/c/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" +} + +src_compile() { + emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die +} + +src_install () { + dosbin htpdate || die + doman htpdate.8.gz || die + dodoc README Changelog || die + + newconfd ${FILESDIR}/htpdate.conf htpdate + newinitd ${FILESDIR}/htpdate.init htpdate +} + +pkg_postinst() { + einfo "If you would like to run htpdate as a daemon set" + einfo "appropriate http servers in /etc/conf.d/htpdate!" +} |