summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-12-11 01:49:28 +0000
committerMike Frysinger <vapier@gentoo.org>2012-12-11 01:49:28 +0000
commitf3903e345538fc9135c87776010272ddae01f684 (patch)
treed7af0289e90a267453238bec68da6d8741a7a3f0 /net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild
parentLinux patches 3.6.9 and 3.6.10 (diff)
downloadhistorical-f3903e345538fc9135c87776010272ddae01f684.tar.gz
historical-f3903e345538fc9135c87776010272ddae01f684.tar.bz2
historical-f3903e345538fc9135c87776010272ddae01f684.zip
Drop install of unused ca-roots file #446426 by Maxim Kammerer. Add init.d files for tlsdate/tlsdated #446428 by Maxim Kammerer.
Package-Manager: portage-2.2.0_alpha144/cvs/Linux x86_64 Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild')
-rw-r--r--net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild36
1 files changed, 36 insertions, 0 deletions
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
+}