diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/tlsdate | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-misc/tlsdate')
-rw-r--r-- | net-misc/tlsdate/Manifest | 7 | ||||
-rw-r--r-- | net-misc/tlsdate/files/tlsdate-0.0.4-compiler-flags.patch | 72 | ||||
-rw-r--r-- | net-misc/tlsdate/files/tlsdate-0.0.4-configure-user-group.patch | 66 | ||||
-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/metadata.xml | 11 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.1.ebuild | 25 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.11.ebuild | 58 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.12-r1.ebuild | 67 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.12-r2.ebuild | 72 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.12.ebuild | 58 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.13.ebuild | 66 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild | 36 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild | 48 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.4.ebuild | 31 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.5.ebuild | 48 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.6.ebuild | 48 |
19 files changed, 772 insertions, 0 deletions
diff --git a/net-misc/tlsdate/Manifest b/net-misc/tlsdate/Manifest new file mode 100644 index 000000000000..d9475bd6bb87 --- /dev/null +++ b/net-misc/tlsdate/Manifest @@ -0,0 +1,7 @@ +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 new file mode 100644 index 000000000000..dbccaabe597f --- /dev/null +++ b/net-misc/tlsdate/files/tlsdate-0.0.4-compiler-flags.patch @@ -0,0 +1,72 @@ +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 new file mode 100644 index 000000000000..8cd2472cf44e --- /dev/null +++ b/net-misc/tlsdate/files/tlsdate-0.0.4-configure-user-group.patch @@ -0,0 +1,66 @@ +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/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..95ee306745c6 --- /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 +# $Id$ + +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..cc56fbaa03ca --- /dev/null +++ b/net-misc/tlsdate/files/tlsdated.rc @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 -o tlsdate:tlsdate "${TLSDATED_CACHE_DIR}" +} diff --git a/net-misc/tlsdate/metadata.xml b/net-misc/tlsdate/metadata.xml new file mode 100644 index 000000000000..4fd0b3758172 --- /dev/null +++ b/net-misc/tlsdate/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>vapier@gentoo.org</email> + <description>feel free to fix things</description> + </maintainer> + <upstream> + <remote-id type="github">ioerror/tlsdate</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-misc/tlsdate/tlsdate-0.0.1.ebuild b/net-misc/tlsdate/tlsdate-0.0.1.ebuild new file mode 100644 index 000000000000..4cb900bec5bd --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.1.ebuild @@ -0,0 +1,25 @@ +# 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 new file mode 100644 index 000000000000..af40b10df5a8 --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.11.ebuild @@ -0,0 +1,58 @@ +# 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 new file mode 100644 index 000000000000..80577352c24c --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.12-r1.ebuild @@ -0,0 +1,67 @@ +# 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 new file mode 100644 index 000000000000..80c446e4047c --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.12-r2.ebuild @@ -0,0 +1,72 @@ +# 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 new file mode 100644 index 000000000000..af40b10df5a8 --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.12.ebuild @@ -0,0 +1,58 @@ +# 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.13.ebuild b/net-misc/tlsdate/tlsdate-0.0.13.ebuild new file mode 100644 index 000000000000..51e13a5af0c9 --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.13.ebuild @@ -0,0 +1,66 @@ +# 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 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.4-r1.ebuild b/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild new file mode 100644 index 000000000000..61417bf6f2a6 --- /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 +# $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 new file mode 100644 index 000000000000..d5446efbee28 --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild @@ -0,0 +1,48 @@ +# 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 new file mode 100644 index 000000000000..c4e66d2d1827 --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.4.ebuild @@ -0,0 +1,31 @@ +# 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 new file mode 100644 index 000000000000..1bdbe9680ff4 --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.5.ebuild @@ -0,0 +1,48 @@ +# 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 new file mode 100644 index 000000000000..b547fc024344 --- /dev/null +++ b/net-misc/tlsdate/tlsdate-0.0.6.ebuild @@ -0,0 +1,48 @@ +# 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 +} |