diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-07-20 23:44:31 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-07-20 23:44:31 +0000 |
commit | d2f146ef9b26c6669b6d61c866e868f005eab477 (patch) | |
tree | ddb4e76a92773d1e0a3f3f5e11ab1454ef71bdc4 /net-misc/openntpd/files | |
parent | Don't override "MAKEOPTS". Moved net-irc/xchat into "RDEPEND" and "DEPEND". M... (diff) | |
download | historical-d2f146ef9b26c6669b6d61c866e868f005eab477.tar.gz historical-d2f146ef9b26c6669b6d61c866e868f005eab477.tar.bz2 historical-d2f146ef9b26c6669b6d61c866e868f005eab477.zip |
initial ebuild #57287
Diffstat (limited to 'net-misc/openntpd/files')
-rw-r--r-- | net-misc/openntpd/files/digest-openntpd-20040719p | 1 | ||||
-rw-r--r-- | net-misc/openntpd/files/ntpd.conf.d | 5 | ||||
-rw-r--r-- | net-misc/openntpd/files/ntpd.rc | 41 |
3 files changed, 47 insertions, 0 deletions
diff --git a/net-misc/openntpd/files/digest-openntpd-20040719p b/net-misc/openntpd/files/digest-openntpd-20040719p new file mode 100644 index 000000000000..d49972d01ed2 --- /dev/null +++ b/net-misc/openntpd/files/digest-openntpd-20040719p @@ -0,0 +1 @@ +MD5 c0d1dceb0e97e6ff38a2bcebec051dcd openntpd-20040719p.tar.gz 105460 diff --git a/net-misc/openntpd/files/ntpd.conf.d b/net-misc/openntpd/files/ntpd.conf.d new file mode 100644 index 000000000000..480d211c8192 --- /dev/null +++ b/net-misc/openntpd/files/ntpd.conf.d @@ -0,0 +1,5 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/files/ntpd.conf.d,v 1.1 2004/07/20 23:44:31 vapier Exp $ + +NTPD_HOME=/var/empty diff --git a/net-misc/openntpd/files/ntpd.rc b/net-misc/openntpd/files/ntpd.rc new file mode 100644 index 000000000000..53b82dc0469b --- /dev/null +++ b/net-misc/openntpd/files/ntpd.rc @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/files/ntpd.rc,v 1.1 2004/07/20 23:44:31 vapier Exp $ + +depend() { + need net + use dns logger +} + +checkconfig() { + if [ ! -f /etc/ntpd.conf ] ; then + eerror "Could not find /etc/ntpd.conf!" + return 1 + fi + + if [ -x /usr/bin/getent ] ; then + if [ "`getent passwd ntp | cut -d: -f 6`" != "${NTPD_HOME}" ] ; then + eerror "Home directory of ntp needs to be ${NTPD_HOME}" + eerror "Please run 'usermod -d ${NTPD_HOME} ntp'" + return 1 + fi + fi + + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting ntpd" + start-stop-daemon --start --exec /usr/sbin/ntpd + eend $? "Failed to start ntpd" +} + +stop() { + ebegin "Stopping ntpd" + start-stop-daemon --stop --name ntpd + eend $? "Failed to stop openntpd" + rm -f /var/run/ntpd.pid +} |