diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-12-11 01:49:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-12-11 01:49:23 +0000 |
commit | 125fd3f022f1f54f38bfb1d3e31d8e09b8ee73c3 (patch) | |
tree | 5cd3c07ee6bff59d9fe0a1bca51a5709ab451758 /net-misc/tlsdate | |
parent | Linux patches 3.6.9 and 3.6.10 (diff) | |
download | gentoo-2-125fd3f022f1f54f38bfb1d3e31d8e09b8ee73c3.tar.gz gentoo-2-125fd3f022f1f54f38bfb1d3e31d8e09b8ee73c3.tar.bz2 gentoo-2-125fd3f022f1f54f38bfb1d3e31d8e09b8ee73c3.zip |
Drop install of unused ca-roots file #446426 by Maxim Kammerer. Add init.d files for tlsdate/tlsdated #446428 by Maxim Kammerer.
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'net-misc/tlsdate')
-rw-r--r-- | net-misc/tlsdate/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/tlsdate/files/tlsdate.confd | 8 | ||||
-rwxr-xr-x | net-misc/tlsdate/files/tlsdate.rc | 17 | ||||
-rw-r--r-- | net-misc/tlsdate/files/tlsdated.confd | 15 | ||||
-rwxr-xr-x | net-misc/tlsdate/files/tlsdated.rc | 19 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild | 36 |
6 files changed, 104 insertions, 1 deletions
diff --git a/net-misc/tlsdate/ChangeLog b/net-misc/tlsdate/ChangeLog index e5b2d9632dee..58b9bd902f0a 100644 --- a/net-misc/tlsdate/ChangeLog +++ b/net-misc/tlsdate/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-misc/tlsdate # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/ChangeLog,v 1.3 2012/11/09 04:07:15 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/ChangeLog,v 1.4 2012/12/11 01:49:23 vapier Exp $ + +*tlsdate-0.0.4-r1 (11 Dec 2012) + + 11 Dec 2012; Mike Frysinger <vapier@gentoo.org> +files/tlsdate.confd, + +files/tlsdate.rc, +files/tlsdated.confd, +files/tlsdated.rc, + +tlsdate-0.0.4-r1.ebuild: + Drop install of unused ca-roots file #446426 by Maxim Kammerer. Add init.d + files for tlsdate/tlsdated #446428 by Maxim Kammerer. *tlsdate-0.0.4 (09 Nov 2012) diff --git a/net-misc/tlsdate/files/tlsdate.confd b/net-misc/tlsdate/files/tlsdate.confd new file mode 100644 index 000000000000..2d7ed030de33 --- /dev/null +++ b/net-misc/tlsdate/files/tlsdate.confd @@ -0,0 +1,8 @@ +# config file for /etc/init.d/tlsdate + +# Command to execute to set the time. +# This are some common tlsdate options: +# -l: leap (set time regardless of difference) +# -H: hostname to sync with +# -x: proxy URL +TLSDATE_OPTS="-l -H www.google.com" diff --git a/net-misc/tlsdate/files/tlsdate.rc b/net-misc/tlsdate/files/tlsdate.rc new file mode 100755 index 000000000000..b4d6f97ecc39 --- /dev/null +++ b/net-misc/tlsdate/files/tlsdate.rc @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/files/tlsdate.rc,v 1.1 2012/12/11 01:49:23 vapier Exp $ + +description="set time once when started" + +depend() { + use net +} + +start() { + : ${TLSDATE_CMD:=tlsdate} + ebegin "Setting clock via tlsdate '${TLSDATE_CMD}'" + "${TLSDATE_CMD}" ${TLSDATE_OPTS} + eend $? "Failed to set clock" +} diff --git a/net-misc/tlsdate/files/tlsdated.confd b/net-misc/tlsdate/files/tlsdated.confd new file mode 100644 index 000000000000..d257289cc58d --- /dev/null +++ b/net-misc/tlsdate/files/tlsdated.confd @@ -0,0 +1,15 @@ +# config file for /etc/init.d/tlsdated + +# Command to execute to set the time. +# This are some common tlsdate options: +# -l: leap (set time regardless of difference) +# -H: hostname to sync with +# -x: proxy URL +TLSDATED_CMD="/usr/bin/tlsdate -l -H www.google.com" + +# Additional options; see `man tlsdated` for reference. +TLSDATED_OPTS="" + +# Cache dir. Probably don't need to change this. +# It matches the compiled-in default. +TLSDATED_CACHE_DIR="/var/cache/tlsdated" diff --git a/net-misc/tlsdate/files/tlsdated.rc b/net-misc/tlsdate/files/tlsdated.rc new file mode 100755 index 000000000000..e055a03a9993 --- /dev/null +++ b/net-misc/tlsdate/files/tlsdated.rc @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/files/tlsdated.rc,v 1.1 2012/12/11 01:49:23 vapier Exp $ + +description="start a daemon to continuously set time via a helper" + +command="tlsdated" +command_args="${TLSDATED_OPTS} -- ${TLSDATED_CMD}" +command_background="true" +pidfile="/var/run/${SVCNAME}.pid" + +depend() { + use net +} + +start_pre() { + checkpath -d -m 0700 "${TLSDATED_CACHE_DIR}" +} diff --git a/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild b/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild new file mode 100644 index 000000000000..482447dece56 --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild,v 1.1 2012/12/11 01:49:23 vapier Exp $ + +EAPI="4" + +inherit autotools vcs-snapshot flag-o-matic + +DESCRIPTION="Update local time over HTTPS" +HOMEPAGE="https://github.com/ioerror/tlsdate" +SRC_URI="https://github.com/ioerror/tlsdate/tarball/${P} -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="static-libs" + +DEPEND="dev-libs/openssl" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i -r '/^[[:space:]]AX_(APPEND_COMPILE_FLAGS|CHECK_LINK_FLAG)[(]/d' configure.ac || die + eautoreconf + append-cppflags "-DUNPRIV_GROUP='\"nobody\"'" +} + +src_install() { + default + rm -r "${ED}"/etc || die #446426 + newinitd "${FILESDIR}"/tlsdated.rc tlsdated + newconfd "${FILESDIR}"/tlsdated.confd tlsdated + newinitd "${FILESDIR}"/tlsdate.rc tlsdate + newconfd "${FILESDIR}"/tlsdate.confd tlsdate + use static-libs || \ + find "${ED}"/usr '(' -name '*.la' -o -name '*.a' ')' -delete +} |