summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-08-12 07:43:25 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-08-12 07:43:25 +0000
commit69a7da0e9153820e9ac7b396eea763a32e60a637 (patch)
treef8965a8cc813ad18be20f1c9281598650cd81eec /net-misc
parentVersion bump (diff)
downloadgentoo-2-69a7da0e9153820e9ac7b396eea763a32e60a637.tar.gz
gentoo-2-69a7da0e9153820e9ac7b396eea763a32e60a637.tar.bz2
gentoo-2-69a7da0e9153820e9ac7b396eea763a32e60a637.zip
Version bump, wrt bug #479790. Thanks to Pavel Kazakov for ebuild and Lars Wendler for updated init script
(Portage version: 2.2.0_alpha193/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/htpdate/ChangeLog9
-rw-r--r--net-misc/htpdate/files/htpdate.init-r121
-rw-r--r--net-misc/htpdate/htpdate-1.0.5.ebuild43
3 files changed, 72 insertions, 1 deletions
diff --git a/net-misc/htpdate/ChangeLog b/net-misc/htpdate/ChangeLog
index 7d4af078912d..5cc68dda3b5d 100644
--- a/net-misc/htpdate/ChangeLog
+++ b/net-misc/htpdate/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/htpdate
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/ChangeLog,v 1.44 2013/08/05 07:31:52 pinkbyte Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/ChangeLog,v 1.45 2013/08/12 07:43:25 pinkbyte Exp $
+
+*htpdate-1.0.5 (12 Aug 2013)
+
+ 12 Aug 2013; Sergey Popov <pinkbyte@gentoo.org> +htpdate-1.0.5.ebuild,
+ +files/htpdate.init-r1:
+ Version bump, wrt bug #479790. Thanks to Pavel Kazakov for ebuild and Lars
+ Wendler for updated init script
05 Aug 2013; Sergey Popov <pinkbyte@gentoo.org> metadata.xml:
Package will be maintained by Pavel Kazakov <nullishzero AT gmail.com>
diff --git a/net-misc/htpdate/files/htpdate.init-r1 b/net-misc/htpdate/files/htpdate.init-r1
new file mode 100644
index 000000000000..bda59fa95ccc
--- /dev/null
+++ b/net-misc/htpdate/files/htpdate.init-r1
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/files/htpdate.init-r1,v 1.1 2013/08/12 07:43:25 pinkbyte Exp $
+
+description="Synchronizes local system with time offered by remote webservers over HTTP"
+pidfile="/run/htpdate.pid"
+command="/usr/sbin/htpdate"
+command_args="${HTPDATE_OPTS} ${PROXY} ${SERVERS}"
+
+depend() {
+ need net
+ use dns logger
+}
+
+start_pre() {
+ if [ -z "${SERVERS}" ] ; then
+ eerror "You need to set at least one http server to use in /etc/conf.d/htpdate"
+ return 1
+ fi
+}
diff --git a/net-misc/htpdate/htpdate-1.0.5.ebuild b/net-misc/htpdate/htpdate-1.0.5.ebuild
new file mode 100644
index 000000000000..b00c283e7651
--- /dev/null
+++ b/net-misc/htpdate/htpdate-1.0.5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/htpdate-1.0.5.ebuild,v 1.1 2013/08/12 07:43:25 pinkbyte Exp $
+
+EAPI=5
+
+inherit readme.gentoo toolchain-funcs unpacker
+
+DESCRIPTION="Synchronize local workstation with time offered by remote webservers"
+HOMEPAGE="http://www.vervest.org/fiki/bin/view/HTP/DownloadC"
+SRC_URI="http://www.vervest.org/htp/archive/c/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~x86"
+
+DEPEND=""
+RDEPEND=""
+
+DOC_CONTENTS="If you would like to run htpdate as a daemon, set
+appropriate http servers in /etc/conf.d/htpdate!"
+
+src_unpack() {
+ default
+
+ cd "${S}" || die "change directory to ${S} failed"
+ unpacker htpdate.8.gz
+}
+
+src_compile() {
+ emake CFLAGS="-Wall ${CFLAGS} ${LDFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ dosbin htpdate
+ doman htpdate.8
+ dodoc README Changelog
+
+ newconfd "${FILESDIR}"/htpdate.conf htpdate
+ newinitd "${FILESDIR}"/htpdate.init-r1 htpdate
+
+ readme.gentoo_create_doc
+}