net-misc/tlsdate: drop package

This commit is contained in:
David Michael 2017-05-03 18:08:05 -07:00
parent 20fa0c077e
commit 1bb57637a8
21 changed files with 0 additions and 599 deletions

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=prepare unpack
DEPEND=dev-libs/openssl !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
DESCRIPTION=Update local time over HTTPS
EAPI=4
HOMEPAGE=https://github.com/ioerror/tlsdate
KEYWORDS=~amd64 ~arm ~x86
LICENSE=BSD
RDEPEND=dev-libs/openssl
SLOT=0
SRC_URI=https://github.com/ioerror/tlsdate/tarball/tlsdate-0.0.1 -> tlsdate-0.0.1.tar.gz
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic f3d2dfb12521ff699df43be5d9a51dc4 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 vcs-snapshot 2b65ecb2d0f91e4322c2ac8d673993bd
_md5_=c0685a6eede7c9004be7e5d2787aa689

View File

@ -1,13 +0,0 @@
DEFINED_PHASES=install prepare unpack
DEPEND=dev-libs/openssl !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
DESCRIPTION=Update local time over HTTPS
EAPI=4
HOMEPAGE=https://github.com/ioerror/tlsdate
IUSE=static-libs
KEYWORDS=~amd64 ~arm ~x86
LICENSE=BSD
RDEPEND=dev-libs/openssl
SLOT=0
SRC_URI=https://github.com/ioerror/tlsdate/tarball/tlsdate-0.0.4 -> tlsdate-0.0.4.tar.gz
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic f3d2dfb12521ff699df43be5d9a51dc4 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 vcs-snapshot 2b65ecb2d0f91e4322c2ac8d673993bd
_md5_=17dbc1d844e8307cbefd307b435e90a9

View File

@ -1,13 +0,0 @@
DEFINED_PHASES=install prepare unpack
DEPEND=dev-libs/openssl !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
DESCRIPTION=Update local time over HTTPS
EAPI=4
HOMEPAGE=https://github.com/ioerror/tlsdate
IUSE=static-libs
KEYWORDS=~amd64 ~arm ~x86
LICENSE=BSD
RDEPEND=dev-libs/openssl
SLOT=0
SRC_URI=https://github.com/ioerror/tlsdate/tarball/tlsdate-0.0.4 -> tlsdate-0.0.4.tar.gz
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic f3d2dfb12521ff699df43be5d9a51dc4 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 vcs-snapshot 2b65ecb2d0f91e4322c2ac8d673993bd
_md5_=09763421adcf613c0d8cc927d60d1545

View File

@ -1,13 +0,0 @@
DEFINED_PHASES=configure install preinst prepare unpack
DEPEND=dev-libs/openssl !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
DESCRIPTION=Update local time over HTTPS
EAPI=4
HOMEPAGE=https://github.com/ioerror/tlsdate
IUSE=static-libs
KEYWORDS=~amd64 ~arm ~x86
LICENSE=BSD
RDEPEND=dev-libs/openssl
SLOT=0
SRC_URI=https://github.com/ioerror/tlsdate/tarball/tlsdate-0.0.4 -> tlsdate-0.0.4.tar.gz
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils ea170b525f6a38a006be05c9d9429f13 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 vcs-snapshot 2b65ecb2d0f91e4322c2ac8d673993bd
_md5_=3a190c3e34a019321866c85e7b1c4d0d

View File

@ -1,13 +0,0 @@
DEFINED_PHASES=configure install preinst prepare unpack
DEPEND=dev-libs/openssl dbus? ( sys-apps/dbus ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
DESCRIPTION=Update local time over HTTPS
EAPI=4
HOMEPAGE=https://github.com/ioerror/tlsdate
IUSE=dbus static-libs
KEYWORDS=~amd64 ~arm ~x86
LICENSE=BSD
RDEPEND=dev-libs/openssl dbus? ( sys-apps/dbus )
SLOT=0
SRC_URI=https://github.com/ioerror/tlsdate/tarball/tlsdate-0.0.5 -> tlsdate-0.0.5.tar.gz
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils ea170b525f6a38a006be05c9d9429f13 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 vcs-snapshot 2b65ecb2d0f91e4322c2ac8d673993bd
_md5_=34343a728ee05386dffe6c685bccbbad

View File

@ -1,13 +0,0 @@
DEFINED_PHASES=configure install preinst prepare unpack
DEPEND=dev-libs/openssl dbus? ( sys-apps/dbus ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
DESCRIPTION=Update local time over HTTPS
EAPI=4
HOMEPAGE=https://github.com/ioerror/tlsdate
IUSE=dbus static-libs
KEYWORDS=amd64 arm x86
LICENSE=BSD
RDEPEND=dev-libs/openssl dbus? ( sys-apps/dbus )
SLOT=0
SRC_URI=https://github.com/ioerror/tlsdate/tarball/tlsdate-0.0.6 -> tlsdate-0.0.6.tar.gz
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils ea170b525f6a38a006be05c9d9429f13 libtool 4890219c51da247200223277f993e054 multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 vcs-snapshot 2b65ecb2d0f91e4322c2ac8d673993bd
_md5_=3affe7fe102feaadd9d4a6768cc033d1

View File

@ -1,43 +0,0 @@
# 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.8 2013/03/18 17:16:18 vapier Exp $
18 Mar 2013; Mike Frysinger <vapier@gentoo.org> tlsdate-0.0.6.ebuild:
Stabilize for all.
*tlsdate-0.0.6 (19 Feb 2013)
19 Feb 2013; Robin H. Johnson <robbat2@gentoo.org> +tlsdate-0.0.6.ebuild:
Version bump.
*tlsdate-0.0.5 (23 Jan 2013)
23 Jan 2013; Mike Frysinger <vapier@gentoo.org> +tlsdate-0.0.5.ebuild:
Version bump.
*tlsdate-0.0.4-r2 (19 Dec 2012)
19 Dec 2012; Mike Frysinger <vapier@gentoo.org>
+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 <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)
09 Nov 2012; Mike Frysinger <vapier@gentoo.org> +tlsdate-0.0.4.ebuild:
Version bump #442380 by Maxim Kammerer.
*tlsdate-0.0.1 (09 Sep 2012)
09 Sep 2012; Mike Frysinger <vapier@gentoo.org> +metadata.xml
+tlsdate-0.0.1.ebuild:
Initial ebuild based on one from ChromiumOS by Elly Jones.

View File

@ -1,38 +0,0 @@
-----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
DIST tlsdate-0.0.6.tar.gz 211400 SHA256 c1f8518216f3fcfb8b19a2caafea555098f907ec60c76f142e839fdede910d18 SHA512 03608e65421fb709a2b0014918f911b5261e5fdba401908e45d2986c87f69e45f6dc3b9d71df18bedce321e573574221849bc6e9f277cbdfcf8b20a536d978f9 WHIRLPOOL 39b2b4d84631007f59b18ca293f920ffeb9520cdfeba71003dcb1d89e0113feab55f1edc14d9c7ccafdf50a989a6eab6cfe0931577c4167076a65370d541ae64
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
EBUILD tlsdate-0.0.6.ebuild 1166 SHA256 9c6d1ab98fb2584b8d6b7fe1a0ed9bbb1c3b4ac200b57ebc40a9f2272c6a2312 SHA512 cf7758df7934eff8926684a09d1b3cf73f9bdf418552c51623c11ed8341a3ca99d99a35efcf9e9b67681bd48e1ce52f8ff0c256262ec1b47ad747578b66bbce3 WHIRLPOOL dba7ee84bc0f73bf4e4c0c28de69fdee2cec229632ff59ab8f76e3c778ebb678ea8cf734f3c1691d88b9d715e08448edd12f4fa1d1271c21b257700af2011d5f
MISC ChangeLog 1557 SHA256 f8c7a8a3aa6ad929d8c175568196a150930e5d03c2f99bd34a28957316b4af2b SHA512 d684fa7d0b19755635354783bc9aee9864f19a64ae5074c27402373834ec2a5f9668331a20cbb87ec07db58da119dd373eed8f2e1bf96834225c9c78ceb1c13f WHIRLPOOL fdc3e41c21698b90c2b3f9935d60c86b5a60f5cc48bd1e51703e124721a09e11dd41c0fdc3cb148ca4b34a4e4d15637c08e954552508e0add3f8de716147e0d5
MISC metadata.xml 252 SHA256 2a38c106b603692d0ae68df7f0d23f24f70e2b5854d52d973444c0e72efb3e77 SHA512 6dd814e063e3d7fea47648c0adfd8ccffcc2e67d8589c8d17b185de71df6654fde870c9fd80e64a1d18fba9a66de679d6d2891d0f8f8e118b76cae16f991e3ad WHIRLPOOL 0c30c3f9d9f17f49fc51a91995c87aaf2ee256191d6fda8130fad4a8a4d9cdf6c30b999bffcca50f207f3ce70e84e8f4edb5569ad3ab0d11ca3ac24d8fccf1ab
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQIcBAEBCAAGBQJRR0y7AAoJELEHsLL7fEFWAHQP/jYvptodRhaZcHm8IMgkOmGz
aTsw+8Yq9EBGge8lyprVvVkW4P/twL37sYBSOfEgHXNkj/OWcp1e28PL0/BZpoUO
3nok4Cr9/+qHDBSdtTWq21rMF61e69LQCX6MhBw6HRmEA0XHBYoW+QWfFRjH+uJY
yae3GIgxSmb5gXVOzEy61X94oWAxAjDbcyQoDmNtTFlX84OpEEwkn7/BujAnyQec
b7qLdZd6mw+HIJoCUJUQReMR0rQtbUBi1hHIWu2oaWT/xRr/NeyZHG2WIlMOj2k7
nyAq+e2pwXtmgWyJMpup/QmrlKbPksiodvL6ddXFg3wTMpnQHSYHIKjKrl9cwGZ7
QxlPceSnnM2XuJwGSXMLNV39j1ZyFrUSwx2W0S5nLG/DptgADKG61Hg6G2kf6hB4
zs/Ib+akWwnxSVNBWUBiOn88FwcVeh0Wkehv2fdsZjve7B56RwNURFhliFICLdbM
lbtItbSLEwVn15Hf5NG7sqyfap//3IfjhTMJAZhKhplBH5kpRQMgzjX4jXb6wfbu
W/+pEjxzBcXjQaomLr6Awe8BL0k8Xe9e3/CtpaqA4s9tlF5RHXPxl/Fh8nwcIp4t
rOEcHvWdl5Rv7FlH7WhEDzSTzFGR6qW+q73ibkjaILSVpHw7MwwqYIS07LFqzTiF
m1Oezp5w4uQRZocAzGRw
=0b6w
-----END PGP SIGNATURE-----

View File

@ -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

View File

@ -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

View File

@ -1,8 +0,0 @@
# 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"

View File

@ -1,17 +0,0 @@
#!/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"
}

View File

@ -1,15 +0,0 @@
# 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"

View File

@ -1,19 +0,0 @@
#!/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}"
}

View File

@ -1,8 +0,0 @@
<?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>
</pkgmetadata>

View File

@ -1,25 +0,0 @@
# 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\"'"
}

View File

@ -1,36 +0,0 @@
# 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
}

View File

@ -1,48 +0,0 @@
# 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
}

View File

@ -1,31 +0,0 @@
# 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
}

View File

@ -1,48 +0,0 @@
# 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
}

View File

@ -1,48 +0,0 @@
# 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.6.ebuild,v 1.2 2013/03/18 17:16:18 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
}