diff options
author | 2003-07-11 03:34:57 +0000 | |
---|---|---|
committer | 2003-07-11 03:34:57 +0000 | |
commit | b01a8315cf6b204053df9f054021a5e9047ea10a (patch) | |
tree | fbfc1357782e5ab8e20174892fa00e94f6356bda /net-nds/ypserv/files | |
parent | bump and updates... (diff) | |
download | gentoo-2-b01a8315cf6b204053df9f054021a5e9047ea10a.tar.gz gentoo-2-b01a8315cf6b204053df9f054021a5e9047ea10a.tar.bz2 gentoo-2-b01a8315cf6b204053df9f054021a5e9047ea10a.zip |
bump and updates...
Diffstat (limited to 'net-nds/ypserv/files')
-rw-r--r-- | net-nds/ypserv/files/digest-ypserv-2.8 | 1 | ||||
-rw-r--r-- | net-nds/ypserv/files/rpc.yppasswdd | 19 | ||||
-rw-r--r-- | net-nds/ypserv/files/ypserv.confd | 4 | ||||
-rw-r--r-- | net-nds/ypserv/files/ypserv.rc | 28 |
4 files changed, 52 insertions, 0 deletions
diff --git a/net-nds/ypserv/files/digest-ypserv-2.8 b/net-nds/ypserv/files/digest-ypserv-2.8 new file mode 100644 index 000000000000..5da23d3c5c2c --- /dev/null +++ b/net-nds/ypserv/files/digest-ypserv-2.8 @@ -0,0 +1 @@ +MD5 2cd8b3298a985b74c1b89996de19e19d ypserv-2.8.tar.gz 220641 diff --git a/net-nds/ypserv/files/rpc.yppasswdd b/net-nds/ypserv/files/rpc.yppasswdd new file mode 100644 index 000000000000..f08f7728402a --- /dev/null +++ b/net-nds/ypserv/files/rpc.yppasswdd @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need net portmap ypserv +} + +start() { + ebegin "Starting rpc.yppasswdd" + start-stop-daemon --start --quiet --exec /usr/sbin/rpc.yppasswdd + eend $? +} + +stop() { + ebegin "Stopping rpc.yppasswdd" + start-stop-daemon --stop --quiet --exec /usr/sbin/rpc.yppasswdd + eend $? +} diff --git a/net-nds/ypserv/files/ypserv.confd b/net-nds/ypserv/files/ypserv.confd new file mode 100644 index 000000000000..7f2e74440a24 --- /dev/null +++ b/net-nds/ypserv/files/ypserv.confd @@ -0,0 +1,4 @@ +# Config file for /etc/init.d/ypserv + +# NIS domain (not necessarily the same as DNS domain) +#YP_DOMAIN=my.nis.domain diff --git a/net-nds/ypserv/files/ypserv.rc b/net-nds/ypserv/files/ypserv.rc new file mode 100644 index 000000000000..7bd11046dc71 --- /dev/null +++ b/net-nds/ypserv/files/ypserv.rc @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-nds/ypserv/files/ypserv.rc,v 1.1 2003/07/11 03:34:38 woodchip Exp $ + +depend() { + need net portmap +} + +checkconfig() { + [ -n "$YP_DOMAIN" ] && return 0 + eerror "You need to setup YP_DOMAIN in /etc/conf.d/ypserv" + return 1 +} + +start() { + checkconfig || return 1 + ebegin "Starting NIS Server" + ypdomainname "$YP_DOMAIN" + start-stop-daemon --start --quiet --exec /usr/sbin/ypserv + eend $? +} + +stop() { + ebegin "Stopping NIS Server" + start-stop-daemon --stop --quiet --exec /usr/sbin/ypserv + eend $? +} |