diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-08-09 23:55:48 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-08-09 23:55:48 +0000 |
commit | 7867edded4eff19064b5b3409724fd07f854e302 (patch) | |
tree | 2234383605052138195ddb9a1a3873c8a1ba10b4 /net-nds/ypserv | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-7867edded4eff19064b5b3409724fd07f854e302.tar.gz gentoo-2-7867edded4eff19064b5b3409724fd07f854e302.tar.bz2 gentoo-2-7867edded4eff19064b5b3409724fd07f854e302.zip |
*** empty log message ***
Diffstat (limited to 'net-nds/ypserv')
-rw-r--r-- | net-nds/ypserv/files/defs.sed | 30 | ||||
-rw-r--r-- | net-nds/ypserv/files/digest | 1 | ||||
-rwxr-xr-x | net-nds/ypserv/files/ypserv | 30 | ||||
-rw-r--r-- | net-nds/ypserv/ypserv-1.3.9-r1.ebuild | 64 |
4 files changed, 125 insertions, 0 deletions
diff --git a/net-nds/ypserv/files/defs.sed b/net-nds/ypserv/files/defs.sed new file mode 100644 index 000000000000..b0d6dada3766 --- /dev/null +++ b/net-nds/ypserv/files/defs.sed @@ -0,0 +1,30 @@ +s|@(PERL)|/usr/bin/perl|g +s|@(YPPUSH)|/usr/sbin/yppush|g +s|@(MAKEDBM)|/usr/lib/yp/makedbm|g +s|@(PASSWD)|/etc/passwd|g +s|@(GROUP)|/etc/group|g +s|@(HOSTS)|/etc/hosts|g +s|@(NETWORKS)|/etc/networks|g +s|@(PROTOCOLS)|/etc/protocols|g +s|@(SERVICES)|/etc/services|g +s|@(RPC)|/etc/rpc|g +s|@(ALIASES)|/etc/aliases|g +s|@(AUTO_MASTER)|/etc/auto.master|g +s|@(AMD_MASTER)|/etc/amd.master|g +s|@(ETHERS)|/etc/ethers|g +s|@(SHADOW)|/etc/shadow|g +s|@(GSHADOW)|/etc/gshadow|g +s|@(NETGROUP)|/etc/netgroup|g +s|@(PUBLICKEY)|/etc/publickey|g +s|@(YPSERVERS)|/etc/ypservers|g +s|@(MAN5EXT)|5|g +s|@(MAN8EXT)|8|g +s|@(MAN5DIR)|/usr/man/man5|g +s|@(MAN8DIR)|/usr/man/man8|g +s|@(MANUSER)|root|g +s|@(MANGROUP)|root|g +s|@(YPMAPDIR)|/var/yp|g +s|@(YPBINDIR)|/usr/sbin|g +s|@(YPLIBDIR)|/usr/lib/yp|g +s|@(YPMODDIR)|/usr/lib/yp/ypmake|g +s|@(VERSION)|ypmake 0.11 (built Thu Jul 13 05:17:23 2000)|g diff --git a/net-nds/ypserv/files/digest b/net-nds/ypserv/files/digest new file mode 100644 index 000000000000..a86507967e40 --- /dev/null +++ b/net-nds/ypserv/files/digest @@ -0,0 +1 @@ +MD5 ecdfccf57c3bf0bbba2fe36cdd1fea27 ypserv-1.3.9.tar.gz diff --git a/net-nds/ypserv/files/ypserv b/net-nds/ypserv/files/ypserv new file mode 100755 index 000000000000..d7c54817245a --- /dev/null +++ b/net-nds/ypserv/files/ypserv @@ -0,0 +1,30 @@ +#!/bin/sh +#RCUPDATE:2 3 4:75:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE="NIS Server" +opts="start stop restart" + +EXE=/usr/sbin/ypserv + +start() { + ebegin "Starting $SERVICE..." + start-stop-daemon --start --quiet --exec $EXE + eend $? "Started $SERVICE." "Error Starting $SERVICE." +} + +stop() { + ebegin "Stopping $SERVICE..." + start-stop-daemon --stop --quiet --exec $EXE + eend $? "Stopped $SERVICE." "Error Stopping $SERVICE." +} + +restart() { + stop + start +} + +doservice ${@} + + diff --git a/net-nds/ypserv/ypserv-1.3.9-r1.ebuild b/net-nds/ypserv/ypserv-1.3.9-r1.ebuild new file mode 100644 index 000000000000..87dfb0e65bd3 --- /dev/null +++ b/net-nds/ypserv/ypserv-1.3.9-r1.ebuild @@ -0,0 +1,64 @@ +## Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-nds/ypserv/ypserv-1.3.9-r1.ebuild,v 1.1 2000/08/09 23:55:48 achim Exp $ + +P=ypserv-1.3.9 +A=${P}.tar.gz +S=${WORKDIR}/${P} +CATEGORY="net-nds" +DESCRIPTION="NIS SERVER" +SRC_URI="ftp://ftp.de.kernel.org/pub/linux/utils/net/NIS/${A} + ftp://ftp.uk.kernel.org/pub/linux/utils/net/NIS/${A} + ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${A}" +HOMEPAGE="http://www.suse.de/~kukuk/nis/ypserv/index.html" + +src_unpack() { + unpack ${A} + cd ${S} + cp ${O}/files/defs.sed ypmake +} + +src_compile() { + cd ${S} + ./configure --host=${CHOST} --prefix=/usr --sysconfdir=/etc/yp \ + --localstatedir=/var --enable-tcp-wrapper \ + --enable-yppasswd + make + cd ${S}/ypmake + sed -f defs.sed Makefile.in > Makefile + make +} + +src_install() { + cd ${S} + make prefix=${D}/usr YPMAPDIR=${D}/var/yp CONFDIR=${D}/etc/yp \ + installdirs install_progs + prepman + + exeinto /usr/sbin + cd ${S}/contrib + doexe ypslave + cd ${S}/ypmake + doexe ypmake + insinto /usr/lib/yp/ypmake + for i in aliases arrays automount config ethers group gshadow hosts \ + netgroup netid networks passwd protocols publickey \ + rpc services shadow ypservers + do + doins $i + done + insinto /var/yp + doins ypmake.conf.sample + newman ypmake.man ypmake.8 + newman ypmake.conf.man ypmake.conf.5 + insinto /etc/rc.d/init.d + doins ${O}/files/ypserv + cd ${S} + dodoc BUGS ChangeLog HOWTO.SuSE NEWS TODO + insinto /etc/yp + doins etc/ypserv.conf +} + + + |