diff --git a/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/ChangeLog b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/ChangeLog new file mode 100644 index 0000000000..717dcb0b83 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/ChangeLog @@ -0,0 +1,35 @@ +# ChangeLog for net-misc/tlsdate +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/ChangeLog,v 1.6 2013/01/23 22:36:10 vapier Exp $ + +*tlsdate-0.0.5 (23 Jan 2013) + + 23 Jan 2013; Mike Frysinger +tlsdate-0.0.5.ebuild: + Version bump. + +*tlsdate-0.0.4-r2 (19 Dec 2012) + + 19 Dec 2012; Mike Frysinger + +files/tlsdate-0.0.4-compiler-flags.patch, + +files/tlsdate-0.0.4-configure-user-group.patch, +tlsdate-0.0.4-r2.ebuild: + Clean up compiler flag handling w/fix from upstream, and add dedicated + user/group for tlsdate to use when dropping root #447018 by Maxim Kammerer. + +*tlsdate-0.0.4-r1 (11 Dec 2012) + + 11 Dec 2012; Mike Frysinger +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) + + 09 Nov 2012; Mike Frysinger +tlsdate-0.0.4.ebuild: + Version bump #442380 by Maxim Kammerer. + +*tlsdate-0.0.1 (09 Sep 2012) + + 09 Sep 2012; Mike Frysinger +metadata.xml + +tlsdate-0.0.1.ebuild: + Initial ebuild based on one from ChromiumOS by Elly Jones. diff --git a/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/Manifest b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/Manifest new file mode 100644 index 0000000000..ce510f5d67 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/Manifest @@ -0,0 +1,36 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX tlsdate-0.0.4-compiler-flags.patch 2881 SHA256 2b5228ac980ea94374d25c0f731b81da678d3ddc5e139ab08508b88563e0f5e9 SHA512 19e62f532183b0332e4917b316a261951918576ec167fcaa8d1dc472bb1e040023390b61e2e73cb6bde86f4580fb548aeb46aeb706d7441e5a055334fdb67de7 WHIRLPOOL f2b603c620c61603e31715e7b34788bb4c14f9e1e5de6cf1bc08b6e473b0420a99c3b5d93fddfd0997ec4fd9037d85387e4b16e7226e52743110e6b98f686226 +AUX tlsdate-0.0.4-configure-user-group.patch 2293 SHA256 09d61bd739659a6659e8442171d4f18d1224e684ccb035eadab406fdc45c28e6 SHA512 ae0113faada376321750e5ef0fd6506d8c29988b89cb36df35056ed77f7718fc94cb0b3453241c1ff8feb2485c650abf93959c747067fe7cebc4e65f4295c0a3 WHIRLPOOL 5cbb21d9310411683a97519860145201f301b07ae1d051eef76389ff1de21547a0263356d59e1790be9e3711a7d145f919929fe9ad9fc19787a3b16efa00dedb +AUX tlsdate.confd 247 SHA256 d3e4f1ca2941813cdee93ef039a5156db410cea2dc4b0e1a738a9bae89835d63 SHA512 62149e3a9f26a71624bd851780f92a41c9aaf138793b5da762aa3002bcc5a409686d1bbe687b4abf1fc2e12205720a3825d9603cab0b0d978c2d0fd41422efe7 WHIRLPOOL b7c99243741e31cebf30550ec410dffbf0bcee5f47213cdc6f6daeb5e2764feba95e16706f575c493a6d1b23a2e9d49ac5f9285db204205f79d6f582afd4599f +AUX tlsdate.rc 456 SHA256 711dab323727cf95b87dfe5793dd31d42d3291b5a5022c2a1f4f456d8ee4a985 SHA512 26f6900a781c9f7111b3b33277ded35bd5904305bcc5149e9189da43169ef021df4a6c27a2b8b053674a127b23b47fdd9e2087f320c3e0a74f540e3a2143f5df WHIRLPOOL 56df270b769d635f66cc700a90729d8ca2af46a16e58b0597acfaf2d4e3319ce836ceff668b1ea473e9db3724771bccf681a47686ec31bd6292ce70ffc6d3bfc +AUX tlsdated.confd 469 SHA256 1c52ff7bc7ce0fbd876a4f594948a70e30e6197bae2b9bc1b55cc6d398091131 SHA512 38bd7d64473ab487eea2539b11a7acadfc3fa5a627fb12e78931b62c46d3ebedab4c75d56839b0dee9fd8f42d4b7ae9ace08ea3f58941b8e2d183828c6a4fef2 WHIRLPOOL 07a8bec2ccf63bacb141b51ca9050eb656fe7b8b03f63e4f06ac3d5b0958345388b23a200080180e6cf8e43ad0c71d9db8c5db2700aeb050157d5a29f8df6c77 +AUX tlsdated.rc 519 SHA256 4016534acdb688562560b4906465d042ae4981f9ca7ce8cf2680367baf97d863 SHA512 461d6a9abafc4db4ccb41cb60d6f0336c5da9de65f637a7f63e7f454124175fb29b85928838f1c20c7ded8225e8e8fe6a227acf13a83d1a8864f7d7d8bff114c WHIRLPOOL f9eaf89943b926394fb2464486c9feb7f1711304a3030a14b04e71986c91d9000f479a7c993e8b44895c84e0dbc900c3e001b43a4b9a10e692fd29f592963ede +DIST tlsdate-0.0.1.tar.gz 10062 SHA256 2bdf50aeae8508cff9badec020c2d8063e7686069e4a9a2809c075018c6ce5f7 SHA512 5169b8f2c399bb286f4983e73b2a095e17406b516cc1287016fa581277abd0e38d314972bff456af0162c1970b60909d05e7707ceeeb2be3432fb735a4a6bd69 WHIRLPOOL 2a1980c9d996977580fc7ba108655ea54fd890b132bf37264d2f1141f0eec0c8e82c1bec25186fd6ab5a88472ffe936541a780acb5719f99a766561ac862a7ec +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 +EBUILD tlsdate-0.0.1.ebuild 672 SHA256 34c03235bf3527053e78936f236b43bdf7acd1e179aefd95f47ee137dc4574fc SHA512 1d949828704db7d0e5575e7ec86b6de7f9c69e7c39e3d0a9159e4fdac18cd734ddaa4920ac413811fd2629673e29d1cdb871cd18b5305a6a88b657e6676c4b26 WHIRLPOOL aa3a799108fea97c7f9ceeea7767386e2e1c01127b0708e4bf5d4ba88d4bed94383747232550473f83d01d1420bae7df9cd265c60dcb19d41f77d28d88983027 +EBUILD tlsdate-0.0.4-r1.ebuild 1059 SHA256 ee24463926558fe702fa26a8019483cb853c6b76744059aaf153f183b6f1d93e SHA512 b11e70c3ca36847022112f55512be3da2f201214611128be16acec51509e30a987b9f32260f963eb86a652e2fd0f2d9708e671f4a3f76469b715e16f6d27a8c7 WHIRLPOOL 9606a8770e339d2965c333c983d6c811badc1f076ea630e3f19a780da359267ab613b5c76c7c08c3d621ea56f7305f0c5d49caaa9f88808a87c6bc8cd3fd7a9f +EBUILD tlsdate-0.0.4-r2.ebuild 1221 SHA256 e25b8df38e2a3c419c326345402cff55f3fda10dcc5076791cf06ac2eb0ed399 SHA512 eb8771e74322d31a84fc969ea38b001cbca88b03d421e9994468cec065c5422b266647a6bb418045829c8708b322602bcd68d730d42aa1da15675e27a90e5dca WHIRLPOOL 94c9910ac928c6aeb75081ad1bf7764fd38ed285f727c313edb1e89aca3d1cd05bf934343a18ecb799cb9249ffab8895d3ccefdf5a14bfcf78b58598357e897c +EBUILD tlsdate-0.0.4.ebuild 840 SHA256 76e109579758587509b13e6fafbc6d5b6b0863ef532a2745744f709541d8912f SHA512 4c740292100ab60cabb7a7046a14d34126e4f0f0ed86984cdd13f5610b7240d050f9e274ba7b3b71cc14fbeb417f003e395d1a6c0b4be9ab8e3ed8ed4ab822b7 WHIRLPOOL 64e892478ff997f1c4c4758e64fc7256f9b9fca101487a1835c4c6d3f5e0f91c55c47eb8ca8a4385b4c69afc9f218b0e168be8565333444767f87adab464950c +EBUILD tlsdate-0.0.5.ebuild 1169 SHA256 e6bd7129ce6ad37957af12e7df9af91015ad80b8f471ad46fb04bb1596f99d55 SHA512 20c0eea02b0c93809977f6d986534dd2811d2ae6e450fc1386cff1c14d2e8ed758f0c5ec57b1ed71ca7381b250eba3fdde2e112e9e70b6da15e610124697576a WHIRLPOOL e50666b874ef6b111dba1d573497b202cf527867fa5119c8ce2b79698e18d854b1f0bf14e9dcd061af080c8bdfc8eb4d773af5038e83a8104f313f0010c488a1 +MISC ChangeLog 1340 SHA256 cb3f5a5309c3b1de46450ee669822b3c2bdfbd522edf51440ac9b50792114cc2 SHA512 10d1074c450328391e71bd0d5dccfafde3fbd53ac3c400c8ada50eebcff2d0b5b9391ca49f3766c1e7eec10489157b6fef995bf97ce23b5f989b3e0330dff7c8 WHIRLPOOL e61c2b388c3ae2edb22eb043a100bd5a607902eb8b42a458970188f9c42e7b7261910ae6bae0c872f92cd96e75bd14beb5adf33e6c9af4273210c66ca1ade6db +MISC metadata.xml 252 SHA256 2a38c106b603692d0ae68df7f0d23f24f70e2b5854d52d973444c0e72efb3e77 SHA512 6dd814e063e3d7fea47648c0adfd8ccffcc2e67d8589c8d17b185de71df6654fde870c9fd80e64a1d18fba9a66de679d6d2891d0f8f8e118b76cae16f991e3ad WHIRLPOOL 0c30c3f9d9f17f49fc51a91995c87aaf2ee256191d6fda8130fad4a8a4d9cdf6c30b999bffcca50f207f3ce70e84e8f4edb5569ad3ab0d11ca3ac24d8fccf1ab +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQIcBAEBCAAGBQJRAGZYAAoJELEHsLL7fEFWgLAQALl2J/PVjfljvLl63ssxuiPn +YLygqA4SdBjOm1Tax6BG1wO3I2g86x652mZGONI/u3mOCaq6q8ewMtxenjTn4Y+k +Ivkd39rgsjlMkypOQHz+d7BEvvObRYdWTCFtUYWey736I7X8pRXISg8LTk5EpkEE +X3u7T0GFyV5/1bQvVFr2O5iaLT1P9rg7mTnePCsRHARmh+EwAqKnc40bGQC3BEaL +2n80iNRi74NshZ5MBzfGmkUFObg1/3/gEmGw2TpcfX0D3NJenKh/5u79haxMPwF+ +IaGU2imJ7WIoSemqjBfWXNBbd2z9fl3WvxvHMLpMd3VrxJDl9Kamj1KCWIL3/2rp +V/OYBm2mp7r2JAm8ff+aDl+n+o61oiEZsHXAUbtXu97NuzvkJJFKLAzsqz60B2RW +QYuuQ0iHBu3MgsyhmDQGf5bnLe25BxBcYxOc+Scf+WgIIHnRJgUAzDjSaQmZBjaL +f3EkrpGjMTTifquvxf2CwyPTXPgpGdypmQWp/Wldpk52yZ7fXE/eYeX+NPhJdCzm +TOWZ5a0kU4PRafv3Fhx2UrNHKvgpsAbdo9Nl/WVeOv7N1hiJpavgeCppWNdfVHw8 +CQ94/dA3PuTNzaoVTwgYiOqZDNTrakTRJZ11edHw+ePx05fTAw34vcJg8/fmfS1s +GhUTdthA65s+1TIDeefa +=O3XS +-----END PGP SIGNATURE----- diff --git a/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdate-0.0.4-compiler-flags.patch b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdate-0.0.4-compiler-flags.patch new file mode 100644 index 0000000000..dbccaabe59 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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 +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 +--- + 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/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdate-0.0.4-configure-user-group.patch b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdate-0.0.4-configure-user-group.patch new file mode 100644 index 0000000000..8cd2472cf4 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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 +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 +--- + 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 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 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 + #include + +-#define UNPRIV_USER "nobody" + #define DEFAULT_HOST "www.ptb.de" + #define DEFAULT_PORT "443" + #define DEFAULT_PROTOCOL "tlsv1" +-- +1.8.0 + diff --git a/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdate.confd b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdate.confd new file mode 100644 index 0000000000..2d7ed030de --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdate.rc b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdate.rc new file mode 100755 index 0000000000..b4d6f97ecc --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdated.confd b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdated.confd new file mode 100644 index 0000000000..d257289cc5 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdated.rc b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/files/tlsdated.rc new file mode 100755 index 0000000000..e055a03a99 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/metadata.xml b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/metadata.xml new file mode 100644 index 0000000000..2be9152ce0 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/metadata.xml @@ -0,0 +1,8 @@ + + + + + vapier@gentoo.org + feel free to fix things + + diff --git a/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.1.ebuild b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.1.ebuild new file mode 100644 index 0000000000..9fee554991 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/tlsdate-0.0.1.ebuild,v 1.1 2012/09/09 05:53:37 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="" + +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/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.4-r1.ebuild new file mode 100644 index 0000000000..482447dece --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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 +} diff --git a/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild new file mode 100644 index 0000000000..8696fd0bd0 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.4-r2.ebuild @@ -0,0 +1,48 @@ +# 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-r2.ebuild,v 1.1 2012/12/19 21:03:38 vapier Exp $ + +EAPI="4" + +inherit autotools vcs-snapshot eutils + +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/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.4.ebuild b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.4.ebuild new file mode 100644 index 0000000000..71810af97d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/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 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/tlsdate-0.0.4.ebuild,v 1.1 2012/11/09 04:07:15 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 + use static-libs || \ + find "${ED}"/usr '(' -name '*.la' -o -name '*.a' ')' -delete +} diff --git a/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.5.ebuild b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.5.ebuild new file mode 100644 index 0000000000..746227c65f --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-misc/tlsdate/tlsdate-0.0.5.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/tlsdate-0.0.5.ebuild,v 1.1 2013/01/23 22:36:10 vapier Exp $ + +EAPI="4" + +inherit autotools vcs-snapshot eutils + +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 +}