From 2dc453d51ec6e616b6c3e1b493ff10ee2873755d Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Mon, 21 Oct 2013 19:40:48 -0700 Subject: [PATCH 1/6] fix(net-misc/tlsdate): use the coreos fork the chromium os fork works and there are some problems upstream I need to work thorugh. Use this. --- .../coreos-overlay/net-misc/tlsdate/Manifest | 1 + .../tlsdate/files/chromeos-version.sh | 2 + .../tlsdate/files/org.torproject.tlsdate.conf | 8 ++++ .../net-misc/tlsdate/files/tlsdate.confd | 8 ++++ .../net-misc/tlsdate/files/tlsdate.rc | 17 +++++++ .../net-misc/tlsdate/files/tlsdated.conf | 22 +++++++++ .../net-misc/tlsdate/files/tlsdated.confd | 15 ++++++ .../net-misc/tlsdate/files/tlsdated.rc | 19 ++++++++ .../net-misc/tlsdate/metadata.xml | 8 ++++ .../net-misc/tlsdate/tlsdate-0.0.5-r23.ebuild | 48 +++++++++++++++++++ .../net-misc/tlsdate/tlsdate-9999.ebuild | 46 ++++++++++++++++++ .../profiles/coreos/base/package.mask | 1 + 12 files changed, 195 insertions(+) create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/Manifest create mode 100755 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/chromeos-version.sh create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/org.torproject.tlsdate.conf create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.confd create mode 100755 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.rc create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdated.conf create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdated.confd create mode 100755 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdated.rc create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/metadata.xml create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r23.ebuild create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/Manifest b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/Manifest new file mode 100644 index 0000000000..3735d4d858 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/Manifest @@ -0,0 +1 @@ +DIST tlsdate-0.0.6.1.tar.gz 237594 SHA256 882ba80c61ca010862e2a8e1de45f2031a6861ddb4085e9d18754be50b369cd0 SHA512 d5739237e632d2039e311e632e68e8233bb274863473b43e772101f19679c0d3848f33261956a0fcacf990eea2256f031de32995cfabc105b8ebdf7d0c9f5b06 WHIRLPOOL 72419f166c0193e54761fdaead5403de56066fb465934e0afec601a0184a3f5b04891d99681deb9d003a9e4548234afe0dedafaffa4bc92d141cf64f2ba7ffdc diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/chromeos-version.sh b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/chromeos-version.sh new file mode 100755 index 0000000000..86ac8dff69 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/chromeos-version.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec gawk -F, '{print gensub(/[[\]]/, "", "g", $2); exit}' "$1"/configure.ac diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/org.torproject.tlsdate.conf b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/org.torproject.tlsdate.conf new file mode 100644 index 0000000000..0611af43ad --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/org.torproject.tlsdate.conf @@ -0,0 +1,8 @@ + + + + + + + diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.confd b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.confd new file mode 100644 index 0000000000..2d7ed030de --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/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/coreos-overlay/net-misc/tlsdate/files/tlsdate.rc b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.rc new file mode 100755 index 0000000000..b4d6f97ecc --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/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/coreos-overlay/net-misc/tlsdate/files/tlsdated.conf b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdated.conf new file mode 100644 index 0000000000..800a315885 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdated.conf @@ -0,0 +1,22 @@ +base-path /var/cache/tlsdated +dry-run no +jitter 0 +max-tries 10 +min-steady-state-interval 86400 +should-load-disk yes +should-netlink yes +should-save-disk yes +should-sync-hwclock yes +steady-state-interval 86400 +subprocess-tries 10 +subprocess-wait-between-tries 3 +verbose yes +wait-between-tries 10 + +# Host configuration. +source + host clients3.google.com + port 443 + proxy none +end + diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdated.confd b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdated.confd new file mode 100644 index 0000000000..d257289cc5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/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/coreos-overlay/net-misc/tlsdate/files/tlsdated.rc b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdated.rc new file mode 100755 index 0000000000..e055a03a99 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/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/coreos-overlay/net-misc/tlsdate/metadata.xml b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/metadata.xml new file mode 100644 index 0000000000..2be9152ce0 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/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/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r23.ebuild b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r23.ebuild new file mode 100644 index 0000000000..1cacf542d7 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r23.ebuild @@ -0,0 +1,48 @@ +# Copyright 2012 The Chromium OS Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" +CROS_WORKON_COMMIT="8dbe89e0e08d5e5adeb4f414e8f284dbf0c17b80" +CROS_WORKON_TREE="3d6b0d529e066591245a40e40731b7e2b20d3b5c" +CROS_WORKON_PROJECT="chromiumos/third_party/tlsdate" + +inherit autotools flag-o-matic toolchain-funcs cros-workon + +DESCRIPTION="Update local time over HTTPS" +HOMEPAGE="https://github.com/ioerror/tlsdate" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm x86" +IUSE="+dbus" + +DEPEND="dev-libs/openssl + dbus? ( sys-apps/dbus )" +RDEPEND="${DEPEND}" + +src_prepare() { + eautoreconf +} + +src_configure() { + # Our unprivileged group is called "nobody" + econf \ + $(use_enable dbus) \ + --with-unpriv-user=tlsdate \ + --with-unpriv-group=tlsdate \ + --with-dbus-user=tlsdate-dbus \ + --with-dbus-group=tlsdate-dbus +} + +src_compile() { + tc-export CC + emake CFLAGS="-Wall ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" +} + +src_install() { + default + insinto /etc/tlsdate + doins "${FILESDIR}/tlsdated.conf" + insinto /etc/dbus-1/system.d + doins "${FILESDIR}/org.torproject.tlsdate.conf" +} diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild new file mode 100644 index 0000000000..686a558fbc --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 2012 The Chromium OS Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" +CROS_WORKON_PROJECT="chromiumos/third_party/tlsdate" + +inherit autotools flag-o-matic toolchain-funcs cros-workon + +DESCRIPTION="Update local time over HTTPS" +HOMEPAGE="https://github.com/ioerror/tlsdate" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+dbus" + +DEPEND="dev-libs/openssl + dbus? ( sys-apps/dbus )" +RDEPEND="${DEPEND}" + +src_prepare() { + eautoreconf +} + +src_configure() { + # Our unprivileged group is called "nobody" + cros-workon_src_configure \ + $(use_enable dbus) \ + --with-unpriv-user=tlsdate \ + --with-unpriv-group=tlsdate \ + --with-dbus-user=tlsdate-dbus \ + --with-dbus-group=tlsdate-dbus +} + +src_compile() { + tc-export CC + emake CFLAGS="-Wall ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" +} + +src_install() { + default + insinto /etc/tlsdate + doins "${FILESDIR}/tlsdated.conf" + insinto /etc/dbus-1/system.d + doins "${FILESDIR}/org.torproject.tlsdate.conf" +} diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.mask b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.mask index 1cb3b14ac7..8062c72550 100644 --- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.mask +++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.mask @@ -10,3 +10,4 @@ # Use the 3.* series of syslinux, seems to work correctly with the # chromeos build system for now >=sys-boot/syslinux-3.90 +>=net-misc/tlsdate-0.0.6 From 6c5ee6a89bee1d9549407b041606432f1c31bedd Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Wed, 23 Oct 2013 14:12:32 -0700 Subject: [PATCH 2/6] fix(net-misc/tlsdate): use econf on 9999 too --- .../coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild index 686a558fbc..b59eb972d3 100644 --- a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild @@ -24,7 +24,7 @@ src_prepare() { src_configure() { # Our unprivileged group is called "nobody" - cros-workon_src_configure \ + econf \ $(use_enable dbus) \ --with-unpriv-user=tlsdate \ --with-unpriv-group=tlsdate \ From c97146146b7114f507a25ac6a0c882cc857c94a2 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Wed, 23 Oct 2013 14:22:05 -0700 Subject: [PATCH 3/6] fix(net-misc/tlsdate): use service file from ebuild --- ...-init-0.0.1-r28.ebuild => coreos-init-0.0.1-r29.ebuild} | 0 .../coreos-base/coreos-init/coreos-init-0.0.1.ebuild | 4 ++-- .../coreos-base/coreos-init/coreos-init-9999.ebuild | 2 +- .../coreos-overlay/net-misc/tlsdate/files/tlsdate.service | 7 +++++++ .../{tlsdate-0.0.5-r23.ebuild => tlsdate-0.0.5-r24.ebuild} | 3 +++ 5 files changed, 13 insertions(+), 3 deletions(-) rename sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/{coreos-init-0.0.1-r28.ebuild => coreos-init-0.0.1-r29.ebuild} (100%) create mode 100644 sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.service rename sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/{tlsdate-0.0.5-r23.ebuild => tlsdate-0.0.5-r24.ebuild} (91%) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-0.0.1-r28.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-0.0.1-r29.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-0.0.1-r28.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-0.0.1-r29.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-0.0.1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-0.0.1.ebuild index b845136fe8..6f344bcb5e 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-0.0.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-0.0.1.ebuild @@ -3,9 +3,10 @@ # Distributed under the terms of the GNU General Public License v2 EAPI="4" -CROS_WORKON_COMMIT="260ee57ebd52eb4b57eeb9d41fd6f712ff6f5e1f" +CROS_WORKON_COMMIT="2a539af7e77135948ce587a7805f5285818c4015" CROS_WORKON_PROJECT="coreos/init" CROS_WORKON_LOCALNAME="init" +EGIT_REPO_URI="https://github.com/coreos/init" inherit cros-workon systemd @@ -50,5 +51,4 @@ src_install() { systemd_enable_service default.target sshd.socket systemd_enable_service default.target ssh-key-proc-cmdline.service systemd_enable_service default.target docker.service - systemd_enable_service default.target tlsdate.service } diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-9999.ebuild index f667af431a..e625a35a3f 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-init/coreos-init-9999.ebuild @@ -3,6 +3,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI="4" +EGIT_REPO_URI="https://github.com/coreos/init" CROS_WORKON_PROJECT="coreos/init" CROS_WORKON_LOCALNAME="init" @@ -48,5 +49,4 @@ src_install() { systemd_enable_service default.target sshd.socket systemd_enable_service default.target ssh-key-proc-cmdline.service systemd_enable_service default.target docker.service - systemd_enable_service default.target tlsdate.service } diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.service b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.service new file mode 100644 index 0000000000..cfdec2c21a --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/files/tlsdate.service @@ -0,0 +1,7 @@ +[Unit] +Description=Update local time over HTTPS + +[Service] +# TODO: use api.core-os.net. Unfortunatly, tlsdate doesn't like it for some reason. +ExecStart=/usr/bin/tlsdated -v +WantedBy=default.target diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r23.ebuild b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild similarity index 91% rename from sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r23.ebuild rename to sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild index 1cacf542d7..3a657ed396 100644 --- a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r23.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild @@ -45,4 +45,7 @@ src_install() { doins "${FILESDIR}/tlsdated.conf" insinto /etc/dbus-1/system.d doins "${FILESDIR}/org.torproject.tlsdate.conf" + + systemd_dounit "${FILESDIR}/tlsdate.service" + systemd_enable_service default.target tlsdate.service } From 3751ea02a6a165beebb25c10304b0a17126ca205 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Wed, 23 Oct 2013 14:30:14 -0700 Subject: [PATCH 4/6] chore(net-misc/tlsdate): fixup the comments related to user --- .../coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild index 3a657ed396..6d23c3dfe6 100644 --- a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild @@ -25,7 +25,7 @@ src_prepare() { } src_configure() { - # Our unprivileged group is called "nobody" + # Our unprivileged group is called "tlsdate" econf \ $(use_enable dbus) \ --with-unpriv-user=tlsdate \ From 6d62f900d197a2f361f01cc8e9fd35e9cc4b311f Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Wed, 23 Oct 2013 14:34:05 -0700 Subject: [PATCH 5/6] fix(net-misc/tlsdate): ensure systemd eclass is used --- .../coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild | 2 +- .../coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild index 6d23c3dfe6..6f83817661 100644 --- a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-0.0.5-r24.ebuild @@ -6,7 +6,7 @@ CROS_WORKON_COMMIT="8dbe89e0e08d5e5adeb4f414e8f284dbf0c17b80" CROS_WORKON_TREE="3d6b0d529e066591245a40e40731b7e2b20d3b5c" CROS_WORKON_PROJECT="chromiumos/third_party/tlsdate" -inherit autotools flag-o-matic toolchain-funcs cros-workon +inherit autotools flag-o-matic toolchain-funcs cros-workon systemd DESCRIPTION="Update local time over HTTPS" HOMEPAGE="https://github.com/ioerror/tlsdate" diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild index b59eb972d3..228a1eb61f 100644 --- a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild @@ -4,7 +4,7 @@ EAPI="4" CROS_WORKON_PROJECT="chromiumos/third_party/tlsdate" -inherit autotools flag-o-matic toolchain-funcs cros-workon +inherit autotools flag-o-matic toolchain-funcs cros-workon systemd DESCRIPTION="Update local time over HTTPS" HOMEPAGE="https://github.com/ioerror/tlsdate" From 28bf72ada03d21d01526d41e54975e805e321fed Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Wed, 23 Oct 2013 14:37:29 -0700 Subject: [PATCH 6/6] chore(net-misc/tlsdate): sync 9999 ebuild --- .../coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild index 228a1eb61f..8e585f43a0 100644 --- a/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/net-misc/tlsdate/tlsdate-9999.ebuild @@ -23,7 +23,7 @@ src_prepare() { } src_configure() { - # Our unprivileged group is called "nobody" + # Our unprivileged group is called "tlsdate" econf \ $(use_enable dbus) \ --with-unpriv-user=tlsdate \ @@ -43,4 +43,8 @@ src_install() { doins "${FILESDIR}/tlsdated.conf" insinto /etc/dbus-1/system.d doins "${FILESDIR}/org.torproject.tlsdate.conf" + + systemd_dounit "${FILESDIR}/tlsdate.service" + systemd_enable_service default.target tlsdate.service + }