public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-misc/tlsdate/files/, net-misc/tlsdate/
@ 2016-11-20  5:30 Zac Medico
  0 siblings, 0 replies; 2+ messages in thread
From: Zac Medico @ 2016-11-20  5:30 UTC (permalink / raw
  To: gentoo-commits

commit:     3c17bfa27ffd29237d81154a3d181f631ac0f0f4
Author:     Dominik Kriegner <dominik.kriegner <AT> gmail <DOT> com>
AuthorDate: Tue Jan 26 12:12:26 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 05:30:26 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c17bfa2

net-misc/tlsdate: systemd support, bug 533380

Package-Manager: portage-2.3.2
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .../files/tlsdate-0.0.13-tlsdated-service.patch    | 22 ++++++++++++++++++++++
 net-misc/tlsdate/files/tlsdated.default            |  4 ++++
 net-misc/tlsdate/files/tlsdated.tmpfiles.conf      |  1 +
 net-misc/tlsdate/tlsdate-0.0.13.ebuild             | 10 ++++++++--
 4 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/net-misc/tlsdate/files/tlsdate-0.0.13-tlsdated-service.patch b/net-misc/tlsdate/files/tlsdate-0.0.13-tlsdated-service.patch
new file mode 100644
index 00000000..df03833
--- /dev/null
+++ b/net-misc/tlsdate/files/tlsdate-0.0.13-tlsdated-service.patch
@@ -0,0 +1,22 @@
+From: Dominik Kriegner <dominik.kriegner@gmail.com>
+Date: Tue, 26 Jan 2016 12:12:26 +0000
+Subject: [PATCH] Fix systemd unit file
+
+Project-Bug-URL: https://github.com/ioerror/tlsdate/pull/162
+Gentoo-Bug-URL: https://bugs.gentoo.org/533380
+
+--- a/systemd/tlsdated.service
++++ b/systemd/tlsdated.service
+@@ -5,6 +5,9 @@ After=network.target
+ [Service]
+ Type=simple
+ EnvironmentFile=/etc/default/tlsdated
+-ExecStart=/usr/sbin/tlsdated ${DAEMON_OPTS}
+-ExecReload=/bin/kill -HUP ${MAINPID}
+-ExecStop=/bin/kill -INT ${MAINPID}
++ExecStart=/usr/sbin/tlsdated $DAEMON_OPTS
++ExecReload=/bin/kill -HUP $MAINPID
++ExecStop=/bin/kill -INT $MAINPID
++
++[Install]
++WantedBy=multi-user.target

diff --git a/net-misc/tlsdate/files/tlsdated.default b/net-misc/tlsdate/files/tlsdated.default
new file mode 100644
index 00000000..08186f7
--- /dev/null
+++ b/net-misc/tlsdate/files/tlsdated.default
@@ -0,0 +1,4 @@
+# defaults file for /etc/default/tlsdated
+
+# Additional options; see `man tlsdated` for reference.
+DEAMON_OPTS=""

diff --git a/net-misc/tlsdate/files/tlsdated.tmpfiles.conf b/net-misc/tlsdate/files/tlsdated.tmpfiles.conf
new file mode 100644
index 00000000..07a7966
--- /dev/null
+++ b/net-misc/tlsdate/files/tlsdated.tmpfiles.conf
@@ -0,0 +1 @@
+d /var/cache/tlsdated 0700 tlsdate tlsdate -

diff --git a/net-misc/tlsdate/tlsdate-0.0.13.ebuild b/net-misc/tlsdate/tlsdate-0.0.13.ebuild
index 1fb4cc8..5b1f523 100644
--- a/net-misc/tlsdate/tlsdate-0.0.13.ebuild
+++ b/net-misc/tlsdate/tlsdate-0.0.13.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI="4"
 
-inherit autotools vcs-snapshot user
+inherit autotools eutils systemd vcs-snapshot user
 
 DESCRIPTION="Update local time over HTTPS"
 HOMEPAGE="https://github.com/ioerror/tlsdate"
@@ -26,6 +26,7 @@ src_prepare() {
 	sed -i \
 		-e 's:/tlsdate/ca-roots/tlsdate-ca-roots.conf:/ssl/certs/ca-certificates.crt:' \
 		Makefile.am || die
+	epatch "${FILESDIR}"/${P}-tlsdated-service.patch
 
 	eautoreconf
 }
@@ -53,6 +54,11 @@ src_install() {
 	newinitd "${FILESDIR}"/tlsdate.rc tlsdate
 	newconfd "${FILESDIR}"/tlsdate.confd tlsdate
 
+	systemd_newunit "${S}"/systemd/tlsdated.service tlsdated.service
+	systemd_newtmpfilesd "${FILESDIR}"/tlsdated.tmpfiles.conf tlsdated.conf
+	insinto /etc/default
+	newins "${FILESDIR}"/tlsdated.default tlsdated
+
 	insinto /etc/dbus-1/system.d/
 	doins dbus/org.torproject.tlsdate.conf
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-misc/tlsdate/files/, net-misc/tlsdate/
@ 2016-12-19  8:44 Lars Wendler
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Wendler @ 2016-12-19  8:44 UTC (permalink / raw
  To: gentoo-commits

commit:     b7b3fe520f98ed81f8a660be2dd7e2bce0fc6aab
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 19 08:41:15 2016 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Dec 19 08:44:40 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7b3fe52

net-misc/tlsdate: Removed old.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 net-misc/tlsdate/Manifest                          |  6 --
 .../files/tlsdate-0.0.4-compiler-flags.patch       | 72 ----------------------
 .../files/tlsdate-0.0.4-configure-user-group.patch | 66 --------------------
 net-misc/tlsdate/tlsdate-0.0.1.ebuild              | 25 --------
 net-misc/tlsdate/tlsdate-0.0.11.ebuild             | 58 -----------------
 net-misc/tlsdate/tlsdate-0.0.12-r1.ebuild          | 67 --------------------
 net-misc/tlsdate/tlsdate-0.0.12-r2.ebuild          | 72 ----------------------
 net-misc/tlsdate/tlsdate-0.0.12.ebuild             | 58 -----------------
 net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild           | 36 -----------
 net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild           | 48 ---------------
 net-misc/tlsdate/tlsdate-0.0.4.ebuild              | 31 ----------
 net-misc/tlsdate/tlsdate-0.0.5.ebuild              | 48 ---------------
 net-misc/tlsdate/tlsdate-0.0.6.ebuild              | 48 ---------------
 13 files changed, 635 deletions(-)

diff --git a/net-misc/tlsdate/Manifest b/net-misc/tlsdate/Manifest
index d9475bd..f7c4156 100644
--- a/net-misc/tlsdate/Manifest
+++ b/net-misc/tlsdate/Manifest
@@ -1,7 +1 @@
-DIST tlsdate-0.0.1.tar.gz 10062 SHA256 2bdf50aeae8508cff9badec020c2d8063e7686069e4a9a2809c075018c6ce5f7 SHA512 5169b8f2c399bb286f4983e73b2a095e17406b516cc1287016fa581277abd0e38d314972bff456af0162c1970b60909d05e7707ceeeb2be3432fb735a4a6bd69 WHIRLPOOL 2a1980c9d996977580fc7ba108655ea54fd890b132bf37264d2f1141f0eec0c8e82c1bec25186fd6ab5a88472ffe936541a780acb5719f99a766561ac862a7ec
-DIST tlsdate-0.0.11.tar.gz 263961 SHA256 7293689ce85973b5b10fee946f09cc35cb697a46d4e1c14bbc218a74d2c9a90f SHA512 a1c4ff0dbf4513a6dfc15f0d1bbbfe8702333a78b2b295947559b7569389527da4b6cf4e0f4ad9887fecdfab0f1b952522eeabe622a17db65d4f0f74cd1026f6 WHIRLPOOL f9f1b810734750bae0813981e4623c2ca2aab65455e5fd4af02d90a0f14422b9872af205291dcd917e313c8b247e10a19cc084593c59a0b18384ca50eb388d9f
-DIST tlsdate-0.0.12.tar.gz 264156 SHA256 15cf5a86258fa17afe15cc6ea0c87d94caeafe3d77827fea0f358bac734f13e9 SHA512 c16ab3c86514f905841c14ec7b6544ecd6b94af26f4468a7ab923fae8971b77e5c2995fff66979c9c5ada117bb546df7c44378790b8a7b854b028d8769cf4e66 WHIRLPOOL 30e8bdaf89cd1cc0ef225ab5cc5e18322948b929d16495d3dd2af10558fd9e472d1703a6152349d51804e4143d580fc5bdf80e7272cfe11b003999493a5683f8
 DIST tlsdate-0.0.13.tar.gz 264228 SHA256 482640a5efb8489f287da1018176fb1196adf7cb1b81ac0c7f2b419b43d44258 SHA512 9c4fd51439976a8541fdf1bb70afa5333b43b2e43b801a65b3b1ac3e4a437fd3021ef2aaeeb13fc1ba63ccd119f6eff4c10e3a5a28cf0cfd96bbc7a174dbb789 WHIRLPOOL db91755d4751e64ca6285c9f1492d1b82a06f97921a47168398377818407efe6a0fcb901ef93272f0ff66121893873bb360868207998d054c5a550734b05db06
-DIST tlsdate-0.0.4.tar.gz 198005 SHA256 46d6caf123240aff7fd9e162582578b961a556dba2fc6cc3f6dede5c7cd48e0d SHA512 a84e599a823a00d667f9025ffc1c3bd15cdb5a55a95fcec0634da4d2f1bb9ad9de7f6ea64475ab14179a281b797ecd9854b5e40f9890a59a6f56154e7dcd2830 WHIRLPOOL ef5636819469d781d3b64684bbdb6e19567982658c068f32e850ec38f050b449a3dc440fdc77882a24ce19587c2db1583ed223535d8f066c6e2a2152f9383061
-DIST tlsdate-0.0.5.tar.gz 205288 SHA256 00d988d004e207b19e9a4fb7090f111ea491b8a7e525690bfba6d4a13bb6af80 SHA512 ea3ed703076cfb94c3ce2e9670b9621ae620d2a87963948b62ec6d2dd37586bfee02dc921dde163964d508ed624336f426cc88d30ba440d691035f5df2872c2b WHIRLPOOL 4d0d6d0db20cbeaac27227aea65d1c186f1e6bd7f1593e9b44d351b0eb37e24d637c4518c4e66755fad7ad33a0e0b998cc3c63a0fd65f6ca2a1154879001857c
-DIST tlsdate-0.0.6.tar.gz 211400 SHA256 c1f8518216f3fcfb8b19a2caafea555098f907ec60c76f142e839fdede910d18 SHA512 03608e65421fb709a2b0014918f911b5261e5fdba401908e45d2986c87f69e45f6dc3b9d71df18bedce321e573574221849bc6e9f277cbdfcf8b20a536d978f9 WHIRLPOOL 39b2b4d84631007f59b18ca293f920ffeb9520cdfeba71003dcb1d89e0113feab55f1edc14d9c7ccafdf50a989a6eab6cfe0931577c4167076a65370d541ae64

diff --git a/net-misc/tlsdate/files/tlsdate-0.0.4-compiler-flags.patch b/net-misc/tlsdate/files/tlsdate-0.0.4-compiler-flags.patch
deleted file mode 100644
index dbccaab..00000000
--- a/net-misc/tlsdate/files/tlsdate-0.0.4-compiler-flags.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-fix in upstream now
-
-From 8b94e111e58fc5d8a2cf47effaaf410a6e4eca46 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Tue, 18 Dec 2012 15:38:51 -0500
-Subject: [PATCH] make hardened compiler flags optional
-
-First note: the default behavior is unchanged.
-
-For people building tlsdate themselves with a known toolchain env, the
-checked flags can be redundant, or even harmful.  A compile/link check
-for PIE behavior for example might not catch the full supported status
-for some architectures/C libraries.
-
-Further, the current code starts by throwing away the user's compiler
-settings which can also be harmful.  Those often times include settings
-related to ABI or target cpu selection and ignoring them can produce an
-unusable binary.
-
-So add a flag that people (including distros) can leverage to bypass
-all of the checks.
-
-Signed-off-by: Mike Frysinger <vapier@gentoo.org>
----
- configure.ac | 27 ++++++++++++++++++---------
- 1 file changed, 18 insertions(+), 9 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 555ae28..f6efb0b 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -67,19 +67,28 @@ AC_SUBST(RT_LIB)
- 
- # Debug and hardening flags all in one shot
- # Alwas do this at the end, otherwise you end up filtering system/other libraries
-+AC_ARG_ENABLE([hardened-checks],
-+              [AS_HELP_STRING([--disable-hardened-checks],
-+                              [Disable automatically enabling hardened toolchain options])])
- AC_DEFUN([LOCAL_CHECK_FLAGS],[
-           AC_REQUIRE([AX_CHECK_LINK_FLAG])
-           AC_REQUIRE([AX_APPEND_COMPILE_FLAGS])
-           AC_LANG_PUSH([C])
--          CFLAGS=
--          LIBS=
--          AX_APPEND_COMPILE_FLAGS([-g -O1 -Wall])
--          AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing])
--          AX_APPEND_COMPILE_FLAGS([-D_FORTIFY_SOURCE=2 -fstack-protector-all])
--          AX_APPEND_COMPILE_FLAGS([-fwrapv -fPIE -Wstack-protector])
--          AX_APPEND_COMPILE_FLAGS([--param=ssp-buffer-size=1])
--          AX_CHECK_LINK_FLAG([-z relro -z now])
--          AX_CHECK_LINK_FLAG([-pie])
-+          AS_IF([test "x$enable_hardened_checks" != xno], [
-+              CFLAGS=
-+              LIBS=
-+              AX_APPEND_COMPILE_FLAGS([-g -O1])
-+          ], [
-+              AC_MSG_WARN([using hardened flags is HIGHLY RECOMMENDED and disabling them is a BAD IDEA])
-+          ])
-+          AX_APPEND_COMPILE_FLAGS([-Wall -fno-strict-aliasing])
-+          AS_IF([test "x$enable_hardened_checks" != xno], [
-+              AX_APPEND_COMPILE_FLAGS([-D_FORTIFY_SOURCE=2 -fstack-protector-all])
-+              AX_APPEND_COMPILE_FLAGS([-fwrapv -fPIE -Wstack-protector])
-+              AX_APPEND_COMPILE_FLAGS([--param=ssp-buffer-size=1])
-+              AX_CHECK_LINK_FLAG([-z relro -z now])
-+              AX_CHECK_LINK_FLAG([-pie])
-+          ])
-           AC_LANG_POP
-           ])
- LOCAL_CHECK_FLAGS
--- 
-1.8.0
-

diff --git a/net-misc/tlsdate/files/tlsdate-0.0.4-configure-user-group.patch b/net-misc/tlsdate/files/tlsdate-0.0.4-configure-user-group.patch
deleted file mode 100644
index 8cd2472..00000000
--- a/net-misc/tlsdate/files/tlsdate-0.0.4-configure-user-group.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From e6edd1f581b59dffbc1e21d2221af049a5f0b38a Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Wed, 19 Dec 2012 15:48:22 -0500
-Subject: [PATCH] add configure flags for setting droppriv user/group
-
-In order to override the default user/group, you have to append your
-CPPFLAGS before compiling.  Since you also have to pass along double
-quotes, it can get ugly/messy fast in shell (due to the escaping).
-Plus, the existing code always defines UNPRIV_USER to "nobody" which
-leads to compile time warnings.
-
-Add dedicated configure flags to make the interface simple for people
-to control.
-
-Signed-off-by: Mike Frysinger <vapier@gentoo.org>
----
- configure.ac  | 20 ++++++++++++++++++++
- src/tlsdate.h |  1 -
- 2 files changed, 20 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index f6efb0b..c95090e 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -57,6 +57,26 @@ AC_CHECK_HEADERS([unistd.h], ,[AC_MSG_ERROR([Required headers missing; compilati
- AC_CHECK_FUNCS([setresuid])
- AC_CHECK_FUNCS([gettimeofday])
- 
-+AC_MSG_CHECKING([user/group to drop privs to])
-+
-+AC_ARG_WITH([unpriv-user],
-+            [AS_HELP_STRING([--with-unpriv-user=<user>],
-+                            [User to drop privs to @<:@default: nobody@:>@])])
-+AS_CASE([$with_unpriv_user],
-+        [""|yes|no], [UNPRIV_USER="nobody"],
-+        [*], [UNPRIV_USER=$with_unpriv_user])
-+AC_DEFINE_UNQUOTED([UNPRIV_USER], ["${UNPRIV_USER}"], [Unprivileged user])
-+
-+AC_ARG_WITH([unpriv-group],
-+            [AS_HELP_STRING([--with-unpriv-group=<group>],
-+                            [Group to drop privs to @<:@default: nogroup@:>@])])
-+AS_CASE([$with_unpriv_group],
-+        [""|yes|no], [UNPRIV_GROUP="nogroup"],
-+        [*], [UNPRIV_GROUP=$with_unpriv_group])
-+AC_DEFINE_UNQUOTED([UNPRIV_GROUP], ["${UNPRIV_GROUP}"], [Unprivileged group])
-+
-+AC_MSG_RESULT(${UNPRIV_USER}:${UNPRIV_GROUP})
-+
- # Check for -lrt
- AC_CHECK_LIB([rt], [clock_gettime], [
-               RT_LIB="-lrt"
-diff --git a/src/tlsdate.h b/src/tlsdate.h
-index 4db56c1..4c918cd 100644
---- a/src/tlsdate.h
-+++ b/src/tlsdate.h
-@@ -18,7 +18,6 @@
- #include <time.h>
- #include <unistd.h>
- 
--#define UNPRIV_USER "nobody"
- #define DEFAULT_HOST "www.ptb.de"
- #define DEFAULT_PORT "443"
- #define DEFAULT_PROTOCOL "tlsv1"
--- 
-1.8.0
-

diff --git a/net-misc/tlsdate/tlsdate-0.0.1.ebuild b/net-misc/tlsdate/tlsdate-0.0.1.ebuild
deleted file mode 100644
index 4cb900b..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.1.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-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=""
-
-DEPEND="dev-libs/openssl"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	sed -i -r '/^(C|LD)FLAGS/d' configure.ac || die
-	eautoreconf
-	append-cppflags "-DUNPRIV_GROUP='\"nobody\"'"
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.11.ebuild b/net-misc/tlsdate/tlsdate-0.0.11.ebuild
deleted file mode 100644
index af40b10..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.11.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools vcs-snapshot user
-
-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="dbus +seccomp static-libs"
-
-DEPEND="dev-libs/openssl
-	dbus? ( sys-apps/dbus )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable dbus) \
-		$(use_enable seccomp seccomp-filter) \
-		--disable-hardened-checks \
-		--with-unpriv-user=tlsdate \
-		--with-unpriv-group=tlsdate
-}
-
-src_install() {
-	default
-
-	# Use Google servers by default rather than a random German site.
-	# They provide round robin DNS and local servers automatically.
-	rm "${ED}"/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf || die #446426
-	dosym "${EPREFIX}"/etc/ssl/certs/Equifax_Secure_CA.pem \
-		/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf
-	sed -i \
-		-e 's:www.ptb.de:www.google.com:' \
-		"${ED}"/etc/tlsdate/tlsdated.conf || die
-
-	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
-}
-
-pkg_preinst() {
-	enewgroup tlsdate 124
-	enewuser tlsdate 124 -1 /dev/null tlsdate
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.12-r1.ebuild b/net-misc/tlsdate/tlsdate-0.0.12-r1.ebuild
deleted file mode 100644
index 8057735..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.12-r1.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools vcs-snapshot user
-
-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="dbus +seccomp static-libs"
-
-DEPEND="dev-libs/openssl
-	dev-libs/libevent
-	dbus? ( sys-apps/dbus )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	# Use Google servers by default rather than a random German site.
-	# They provide round robin DNS and local servers automatically.
-	sed -i \
-		-e 's:www.ptb.de:www.google.com:' \
-		etc/tlsdated.conf \
-		src/tlsdate.h || die
-
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable dbus) \
-		$(use_enable seccomp seccomp-filter) \
-		--disable-hardened-checks \
-		--without-polarssl \
-		--with-unpriv-user=tlsdate \
-		--with-unpriv-group=tlsdate
-}
-
-src_install() {
-	default
-
-	# only install cert required for www.google.com
-	rm "${ED}"/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf || die #446426
-	dosym "${EPREFIX}"/etc/ssl/certs/Equifax_Secure_CA.pem \
-		/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf
-
-	newinitd "${FILESDIR}"/tlsdated.rc tlsdated
-	newconfd "${FILESDIR}"/tlsdated.confd tlsdated
-	newinitd "${FILESDIR}"/tlsdate.rc tlsdate
-	newconfd "${FILESDIR}"/tlsdate.confd tlsdate
-
-	insinto /etc/dbus-1/system.d/
-	doins dbus/org.torproject.tlsdate.conf
-
-	use static-libs || \
-		find "${ED}"/usr '(' -name '*.la' -o -name '*.a' ')' -delete
-}
-
-pkg_preinst() {
-	enewgroup tlsdate 124
-	enewuser tlsdate 124 -1 /dev/null tlsdate
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.12-r2.ebuild b/net-misc/tlsdate/tlsdate-0.0.12-r2.ebuild
deleted file mode 100644
index 80c446e..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.12-r2.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools vcs-snapshot user
-
-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 ~hppa ~ia64 ~mips ~x86"
-IUSE="dbus +seccomp static-libs"
-
-DEPEND="dev-libs/openssl
-	dev-libs/libevent
-	dbus? ( sys-apps/dbus )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	# Use the system cert store rather than a custom one specific
-	# to the tlsdate package. #534394
-	sed -i \
-		-e 's:/tlsdate/ca-roots/tlsdate-ca-roots.conf:/ssl/certs/ca-certificates.crt:' \
-		Makefile.am || die
-
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		--disable-silent-rules \
-		$(use_enable dbus) \
-		$(use_enable seccomp seccomp-filter) \
-		--disable-hardened-checks \
-		--without-polarssl \
-		--with-unpriv-user=tlsdate \
-		--with-unpriv-group=tlsdate
-}
-
-src_install() {
-	default
-
-	# Use Google servers by default rather than a random German site.
-	# They provide round robin DNS and local servers automatically.
-	sed -i \
-		-e 's:www.ptb.de:www.google.com:' \
-		"${ED}"/etc/tlsdate/tlsdated.conf || die
-
-	# Use the system cert store; see src_prepare. #446426 #534394
-	rm "${ED}"/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf || die
-	rmdir "${ED}"/etc/tlsdate/ca-roots || die
-
-	newinitd "${FILESDIR}"/tlsdated.rc tlsdated
-	newconfd "${FILESDIR}"/tlsdated.confd tlsdated
-	newinitd "${FILESDIR}"/tlsdate.rc tlsdate
-	newconfd "${FILESDIR}"/tlsdate.confd tlsdate
-
-	insinto /etc/dbus-1/system.d/
-	doins dbus/org.torproject.tlsdate.conf
-
-	use static-libs || \
-		find "${ED}"/usr '(' -name '*.la' -o -name '*.a' ')' -delete
-}
-
-pkg_preinst() {
-	enewgroup tlsdate 124
-	enewuser tlsdate 124 -1 /dev/null tlsdate
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.12.ebuild b/net-misc/tlsdate/tlsdate-0.0.12.ebuild
deleted file mode 100644
index af40b10..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.12.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools vcs-snapshot user
-
-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="dbus +seccomp static-libs"
-
-DEPEND="dev-libs/openssl
-	dbus? ( sys-apps/dbus )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable dbus) \
-		$(use_enable seccomp seccomp-filter) \
-		--disable-hardened-checks \
-		--with-unpriv-user=tlsdate \
-		--with-unpriv-group=tlsdate
-}
-
-src_install() {
-	default
-
-	# Use Google servers by default rather than a random German site.
-	# They provide round robin DNS and local servers automatically.
-	rm "${ED}"/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf || die #446426
-	dosym "${EPREFIX}"/etc/ssl/certs/Equifax_Secure_CA.pem \
-		/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf
-	sed -i \
-		-e 's:www.ptb.de:www.google.com:' \
-		"${ED}"/etc/tlsdate/tlsdated.conf || die
-
-	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
-}
-
-pkg_preinst() {
-	enewgroup tlsdate 124
-	enewuser tlsdate 124 -1 /dev/null tlsdate
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild b/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild
deleted file mode 100644
index 61417bf..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-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
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild b/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild
deleted file mode 100644
index d5446ef..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools vcs-snapshot eutils user
-
-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() {
-	epatch "${FILESDIR}"/${P}-compiler-flags.patch
-	epatch "${FILESDIR}"/${P}-configure-user-group.patch
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		--disable-hardened-checks \
-		--with-unpriv-user=tlsdate \
-		--with-unpriv-group=tlsdate
-}
-
-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
-}
-
-pkg_preinst() {
-	enewgroup tlsdate 124
-	enewuser tlsdate 124 -1 /dev/null tlsdate
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.4.ebuild b/net-misc/tlsdate/tlsdate-0.0.4.ebuild
deleted file mode 100644
index c4e66d2..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.4.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-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
-	use static-libs || \
-		find "${ED}"/usr '(' -name '*.la' -o -name '*.a' ')' -delete
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.5.ebuild b/net-misc/tlsdate/tlsdate-0.0.5.ebuild
deleted file mode 100644
index 1bdbe96..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.5.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools vcs-snapshot eutils user
-
-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="dbus static-libs"
-
-DEPEND="dev-libs/openssl
-	dbus? ( sys-apps/dbus )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable dbus) \
-		--disable-hardened-checks \
-		--with-unpriv-user=tlsdate \
-		--with-unpriv-group=tlsdate
-}
-
-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
-}
-
-pkg_preinst() {
-	enewgroup tlsdate 124
-	enewuser tlsdate 124 -1 /dev/null tlsdate
-}

diff --git a/net-misc/tlsdate/tlsdate-0.0.6.ebuild b/net-misc/tlsdate/tlsdate-0.0.6.ebuild
deleted file mode 100644
index b547fc0..00000000
--- a/net-misc/tlsdate/tlsdate-0.0.6.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools vcs-snapshot eutils user
-
-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="dbus static-libs"
-
-DEPEND="dev-libs/openssl
-	dbus? ( sys-apps/dbus )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable dbus) \
-		--disable-hardened-checks \
-		--with-unpriv-user=tlsdate \
-		--with-unpriv-group=tlsdate
-}
-
-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
-}
-
-pkg_preinst() {
-	enewgroup tlsdate 124
-	enewuser tlsdate 124 -1 /dev/null tlsdate
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-19  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-20  5:30 [gentoo-commits] repo/gentoo:master commit in: net-misc/tlsdate/files/, net-misc/tlsdate/ Zac Medico
  -- strict thread matches above, loose matches on Subject: below --
2016-12-19  8:44 Lars Wendler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox