summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kriegner <dominik.kriegner@gmail.com>2015-04-28 23:35:31 +0200
committerDominik Kriegner <dominik.kriegner@gmail.com>2015-04-28 23:35:31 +0200
commit9716e7acc91bba514f207c6c9beb7f266ec06124 (patch)
tree1054db424dcdcd419f13d4d68d479dd3fdc3857f /net-misc/tlsdate/files/tlsdate.rc
parentbump xrayutilities to 1.1.2 (diff)
downloadanaximander-9716e7acc91bba514f207c6c9beb7f266ec06124.tar.gz
anaximander-9716e7acc91bba514f207c6c9beb7f266ec06124.tar.bz2
anaximander-9716e7acc91bba514f207c6c9beb7f266ec06124.zip
add tlsdate from bug #533380
Diffstat (limited to 'net-misc/tlsdate/files/tlsdate.rc')
-rwxr-xr-xnet-misc/tlsdate/files/tlsdate.rc17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-misc/tlsdate/files/tlsdate.rc b/net-misc/tlsdate/files/tlsdate.rc
new file mode 100755
index 0000000..b4d6f97
--- /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
+# $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"
+}