summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2001-10-06 07:25:11 +0000
committerDonny Davies <woodchip@gentoo.org>2001-10-06 07:25:11 +0000
commit6ccf7c0abfb6b9b1ae2c36e542674d2ec8dfb2ee (patch)
treed1287c5aa00f21f2dceb1fa90c31a4fafde4339c /net-nds
parentrc5/rc6 support (diff)
downloadgentoo-2-6ccf7c0abfb6b9b1ae2c36e542674d2ec8dfb2ee.tar.gz
gentoo-2-6ccf7c0abfb6b9b1ae2c36e542674d2ec8dfb2ee.tar.bz2
gentoo-2-6ccf7c0abfb6b9b1ae2c36e542674d2ec8dfb2ee.zip
ypserv rc5/rc6 support
Diffstat (limited to 'net-nds')
-rw-r--r--net-nds/ypserv/files/digest-ypserv-1.3.9-r61
-rw-r--r--[-rwxr-xr-x]net-nds/ypserv/files/ypserv.rc5 (renamed from net-nds/ypserv/files/ypserv)0
-rw-r--r--net-nds/ypserv/files/ypserv.rc617
-rw-r--r--net-nds/ypserv/ypserv-1.3.9-r2.ebuild94
-rw-r--r--net-nds/ypserv/ypserv-1.3.9-r6.ebuild72
5 files changed, 138 insertions, 46 deletions
diff --git a/net-nds/ypserv/files/digest-ypserv-1.3.9-r6 b/net-nds/ypserv/files/digest-ypserv-1.3.9-r6
new file mode 100644
index 000000000000..a86507967e40
--- /dev/null
+++ b/net-nds/ypserv/files/digest-ypserv-1.3.9-r6
@@ -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.rc5
index d7c54817245a..d7c54817245a 100755..100644
--- a/net-nds/ypserv/files/ypserv
+++ b/net-nds/ypserv/files/ypserv.rc5
diff --git a/net-nds/ypserv/files/ypserv.rc6 b/net-nds/ypserv/files/ypserv.rc6
new file mode 100644
index 000000000000..2af5be2c914a
--- /dev/null
+++ b/net-nds/ypserv/files/ypserv.rc6
@@ -0,0 +1,17 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting NIS Server"
+ 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 $?
+}
diff --git a/net-nds/ypserv/ypserv-1.3.9-r2.ebuild b/net-nds/ypserv/ypserv-1.3.9-r2.ebuild
index e30875a31dba..6000c45764f3 100644
--- a/net-nds/ypserv/ypserv-1.3.9-r2.ebuild
+++ b/net-nds/ypserv/ypserv-1.3.9-r2.ebuild
@@ -1,7 +1,7 @@
-## Copyright 1999-2000 Gentoo Technologies, Inc.
+# 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-r2.ebuild,v 1.1 2001/04/21 12:44:19 achim Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nds/ypserv/ypserv-1.3.9-r2.ebuild,v 1.2 2001/10/06 07:25:11 woodchip Exp $
P=ypserv-1.3.9
A=${P}.tar.gz
@@ -12,59 +12,61 @@ SRC_URI="ftp://ftp.de.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"
-DEPEND="virtual/glibc >=sys-libs/gdbm-1.8.0
+DEPEND="virtual/glibc
+ >=sys-libs/gdbm-1.8.0
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
src_unpack() {
- unpack ${A}
- cd ${S}
- cp ${FILESDIR}/defs.sed ypmake
+ unpack ${A}
+ cd ${S}
+ cp ${FILESDIR}/defs.sed ypmake
}
-src_compile() {
- local myconf
- if [ "`use tcpd`" ]
- then
- myconf="--enable-tcp-wrapper"
- fi
- try ./configure --host=${CHOST} --prefix=/usr --sysconfdir=/etc \
+src_compile() {
+ local myconf
+ use tcpd && myconf="--enable-tcp-wrapper"
+
+ ./configure --host=${CHOST} --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --mandir=/usr/share/man \
- --enable-yppasswd $myconf
- try make
- cd ${S}/ypmake
- sed -f defs.sed Makefile.in > Makefile
- try make
+ --enable-yppasswd $myconf || die
+
+ make || die
+
+ cd ${S}/ypmake
+ sed -f defs.sed Makefile.in > Makefile
+ make || die
}
-src_install() {
- local MYMAN=${D}/usr/share/man
- try make prefix=${D}/usr YPMAPDIR=${D}/var/yp CONFDIR=${D}/etc \
+src_install() {
+ local MYMAN=${D}/usr/share/man
+
+ make prefix=${D}/usr YPMAPDIR=${D}/var/yp CONFDIR=${D}/etc \
MAN1DIR=$MYMAN/man1 MAN5DIR=$MYMAN/man5 MAN8DIR=$MYMAN/man8 \
- installdirs install_progs
-
- 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 ${FILESDIR}/ypserv
- cd ${S}
- dodoc BUGS ChangeLog HOWTO.SuSE NEWS TODO
- insinto /etc
- doins etc/ypserv.conf
-}
+ installdirs install_progs || die
+ 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
+
+ cd ${S}
+ dodoc BUGS ChangeLog HOWTO.SuSE NEWS TODO
+
+ insinto /etc ; doins etc/ypserv.conf
+
+ exeinto /etc/rc.d/init.d
+ newexe ${FILESDIR}/ypserv.rc6 ypserv
+}
diff --git a/net-nds/ypserv/ypserv-1.3.9-r6.ebuild b/net-nds/ypserv/ypserv-1.3.9-r6.ebuild
new file mode 100644
index 000000000000..a9631cc1d67f
--- /dev/null
+++ b/net-nds/ypserv/ypserv-1.3.9-r6.ebuild
@@ -0,0 +1,72 @@
+# 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-r6.ebuild,v 1.1 2001/10/06 07:25:11 woodchip Exp $
+
+P=ypserv-1.3.9
+A=${P}.tar.gz
+S=${WORKDIR}/${P}
+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"
+
+DEPEND="virtual/glibc
+ >=sys-libs/gdbm-1.8.0
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ cp ${FILESDIR}/defs.sed ypmake
+}
+
+src_compile() {
+ local myconf
+ use tcpd && myconf="--enable-tcp-wrapper"
+
+ ./configure --host=${CHOST} --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --mandir=/usr/share/man \
+ --enable-yppasswd $myconf || die
+
+ make || die
+
+ cd ${S}/ypmake
+ sed -f defs.sed Makefile.in > Makefile
+ make || die
+}
+
+src_install() {
+ local MYMAN=${D}/usr/share/man
+
+ make prefix=${D}/usr YPMAPDIR=${D}/var/yp CONFDIR=${D}/etc \
+ MAN1DIR=$MYMAN/man1 MAN5DIR=$MYMAN/man5 MAN8DIR=$MYMAN/man8 \
+ installdirs install_progs || die
+
+ 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
+
+ cd ${S}
+ dodoc BUGS ChangeLog HOWTO.SuSE NEWS TODO
+
+ insinto /etc ; doins etc/ypserv.conf
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/ypserv.rc6 ypserv
+}