fix(net-misc/tlsdate): use service file from ebuild

This commit is contained in:
Brandon Philips 2013-10-23 14:22:05 -07:00
parent 6c5ee6a89b
commit c97146146b
5 changed files with 13 additions and 3 deletions

View File

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

View File

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

View File

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

View File

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