diff options
author | Martin Holzer <mholzer@gentoo.org> | 2003-07-29 18:43:45 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2003-07-29 18:43:45 +0000 |
commit | 35751726aa39392096c9c7c1813a32eda894ead7 (patch) | |
tree | b6bdcf825474e1bd19de1df245c361b46103b3fc /net-fs | |
parent | unmasking tree on amd64 (diff) | |
download | gentoo-2-35751726aa39392096c9c7c1813a32eda894ead7.tar.gz gentoo-2-35751726aa39392096c9c7c1813a32eda894ead7.tar.bz2 gentoo-2-35751726aa39392096c9c7c1813a32eda894ead7.zip |
cleanup
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/nfs-utils/Manifest | 14 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/digest-nfs-utils-0.3.3-r1 | 1 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/digest-nfs-utils-1.0.1-r1 | 1 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/digest-nfs-utils-1.0.5 | 1 | ||||
-rwxr-xr-x | net-fs/nfs-utils/files/nfs | 141 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/nfs-1 | 154 | ||||
-rw-r--r-- | net-fs/nfs-utils/nfs-utils-0.3.3-r1.ebuild | 53 | ||||
-rw-r--r-- | net-fs/nfs-utils/nfs-utils-1.0.1-r1.ebuild | 66 | ||||
-rw-r--r-- | net-fs/nfs-utils/nfs-utils-1.0.5.ebuild | 66 |
9 files changed, 3 insertions, 494 deletions
diff --git a/net-fs/nfs-utils/Manifest b/net-fs/nfs-utils/Manifest index c824c998300a..496bd8d289e2 100644 --- a/net-fs/nfs-utils/Manifest +++ b/net-fs/nfs-utils/Manifest @@ -1,15 +1,7 @@ -MD5 f7782767ba2c749c4015b109a218f369 nfs-utils-1.0.5.ebuild 1911 -MD5 534c7617d528548ac8cd1ba54dd9447f nfs-utils-1.0.5-r1.ebuild 1922 -MD5 b46af45b8acea0fc23c697913ea229cd nfs-utils-1.0.1-r1.ebuild 1911 -MD5 459bf83dd49739fb9c7191e012f74ddf nfs-utils-0.3.3-r1.ebuild 1504 MD5 ea89a080150922de66acbd0f32c4ba85 ChangeLog 3737 -MD5 d36e5306c46430c4a62657e9ea514ddd files/nfs 4443 -MD5 cc56dba449d210ecbbe1beeb3114a6f4 files/nfs.confd 348 -MD5 3b44b94c2a6c8335c53302efdf4907f8 files/nfs-1 4705 +MD5 534c7617d528548ac8cd1ba54dd9447f nfs-utils-1.0.5-r1.ebuild 1922 MD5 f8a4929a63ec37847ed3e67c96cb5a76 files/nfs-2 4753 -MD5 da4b8b95f4c8a015c4a69257ea6582e1 files/digest-nfs-utils-1.0.1-r1 66 -MD5 3219e53cb07ef64536526153158b7ab2 files/digest-nfs-utils-1.0.5-r1 67 -MD5 3219e53cb07ef64536526153158b7ab2 files/digest-nfs-utils-1.0.5 67 MD5 a02eed87e5d581e56feb0f6dfd18e6df files/exports 66 -MD5 2311e90a0af37bd25f8b2ee25e5aed11 files/digest-nfs-utils-0.3.3-r1 67 +MD5 cc56dba449d210ecbbe1beeb3114a6f4 files/nfs.confd 348 MD5 e8946ae3996c9629651da1b252fb9836 files/nfsmount 1166 +MD5 3219e53cb07ef64536526153158b7ab2 files/digest-nfs-utils-1.0.5-r1 67 diff --git a/net-fs/nfs-utils/files/digest-nfs-utils-0.3.3-r1 b/net-fs/nfs-utils/files/digest-nfs-utils-0.3.3-r1 deleted file mode 100644 index c2ca12fabcd9..000000000000 --- a/net-fs/nfs-utils/files/digest-nfs-utils-0.3.3-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 a33ad83846a7ca49af3b3106badf7af6 nfs-utils-0.3.3.tar.gz 238044 diff --git a/net-fs/nfs-utils/files/digest-nfs-utils-1.0.1-r1 b/net-fs/nfs-utils/files/digest-nfs-utils-1.0.1-r1 deleted file mode 100644 index eee23da601ba..000000000000 --- a/net-fs/nfs-utils/files/digest-nfs-utils-1.0.1-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 7a9f802911cf2a79942338b1269b3d5b nfs-utils-1.0.1.tar.gz 24450 diff --git a/net-fs/nfs-utils/files/digest-nfs-utils-1.0.5 b/net-fs/nfs-utils/files/digest-nfs-utils-1.0.5 deleted file mode 100644 index 4f630b2a2adb..000000000000 --- a/net-fs/nfs-utils/files/digest-nfs-utils-1.0.5 +++ /dev/null @@ -1 +0,0 @@ -MD5 ce48f1e17f1c49ca14dbd2b0e033d1b9 nfs-utils-1.0.5.tar.gz 265760 diff --git a/net-fs/nfs-utils/files/nfs b/net-fs/nfs-utils/files/nfs deleted file mode 100755 index d9e292df9e05..000000000000 --- a/net-fs/nfs-utils/files/nfs +++ /dev/null @@ -1,141 +0,0 @@ -#!/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-fs/nfs-utils/files/nfs,v 1.6 2003/02/14 23:00:05 vapier Exp $ - -#--------------------------------------------------------------------------- -# This script starts/stops the following -# rpc.statd if necessary (also checked by init.d/nfsmount) -# rpd.rquotad -# rpd.nfsd -# rpc.mountd -#--------------------------------------------------------------------------- - -# NB: Config is in /etc/conf.d/nfs - - -opts="start stop restart reload" - -# This variable is used for controlling whether or not to run exportfs -ua; -# see stop() for more information -RESTARTING=no - -depend() { - need net portmap -} - -start_statd() { - # Don't start rpc.statd if already started by init.d/nfsmount - killall -0 rpc.statd &>/dev/null && return 0 - ebegin "Starting NFS statd" - start-stop-daemon --start --quiet --exec /sbin/rpc.statd \ - --$RPCSTATDOPTS 1>&2 - eend $? "Error starting NFS statd" -} - -stop_statd() { - # Don't stop rpc.statd if it's in use by init.d/nfsmount. - mount -t nfs | grep -q . && return 0 - # Make sure it's actually running - killall -0 rpc.statd &>/dev/null || return 0 - # Okay, all tests passed, stop rpc.statd - ebegin "Stopping NFS statd" - start-stop-daemon --stop --quiet --exec /sbin/rpc.statd 1>&2 - eend $? "Error stopping NFS statd" -} - -start() { - start_statd - - # Exportfs likes to hang if networking isn't working. - # If that's the case, then try to kill it so the - # bootup process can continue. - if grep -q '^/' /etc/exports &>/dev/null; then - ebegin "Exporting NFS directories" - /sbin/exportfs -r 1>&2 & - ( sleep 5; kill -9 $! &>/dev/null & ) - wait - eend $? "Error exporting NFS directories" - fi - - ebegin "Starting NFS rquotad" - start-stop-daemon --start --quiet --exec /sbin/rpc.rquotad \ - --$RPCRQUOTADOPTS 1>&2 - eend $? "Error starting NFS rquotad" - - ebegin "Starting NFS daemon" - start-stop-daemon --start --quiet --exec \ - /sbin/rpc.nfsd -- $RPCNFSDCOUNT 1>&2 - eend $? "Error starting NFS daemon" - - # Check if we support NFSv3 - ebegin "Starting NFS mountd" - rpcinfo -u localhost nfs 3 &>/dev/null || \ - RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" - start-stop-daemon --start --quiet --exec \ - /sbin/rpc.mountd -- $RPCMOUNTDOPTS 1>&2 - eend $? "Error starting NFS mountd" -} - -stop() { - # Don't check NFSSERVER variable since it might have changed, - # instead use --oknodo to smooth things over - ebegin "Stopping NFS mountd" - start-stop-daemon --stop --quiet --oknodo \ - --exec /sbin/rpc.mountd 1>&2 - eend $? "Error stopping NFS mountd" - - ebegin "Stopping NFS daemon" - start-stop-daemon --stop --quiet --oknodo \ - --name nfsd --user root --signal 2 1>&2 - eend $? "Error stopping NFS daemon" - - ebegin "Stopping NFS rquotad" - start-stop-daemon --stop --quiet --oknodo \ - --exec /sbin/rpc.rquotad 1>&2 - eend $? "Error stopping NFS rquotad" - - # When restarting the NFS server, running "exportfs -ua" probably - # isn't what the user wants. Running it causes all entries listed - # in xtab to be removed from the kernel export tables, and the - # xtab file is cleared. This effectively shuts down all NFS - # activity, leaving all clients holding stale NFS filehandles, - # *even* when the NFS server has restarted. - # - # That's what you would want if you were shutting down the NFS - # server for good, or for a long period of time, but not when the - # NFS server will be running again in short order. In this case, - # then "exportfs -r" will reread the xtab, and all the current - # clients will be able to resume NFS activity, *without* needing - # to umount/(re)mount the filesystem. - if [ "$RESTARTING" = no ]; then - ebegin "Unexporting NFS directories" - # Exportfs likes to hang if networking isn't working. - # If that's the case, then try to kill it so the - # bootup process can continue. - /sbin/exportfs -ua 1>&2 & - ( sleep 5; kill -9 $! &>/dev/null & ) - wait - eend $? "Error unexporting NFS directories" - fi - - stop_statd -} - -reload() { - # Exportfs likes to hang if networking isn't working. - # If that's the case, then try to kill it so the - # bootup process can continue. - ebegin "Reloading /etc/exports" - /sbin/exportfs -r 1>&2 & - ( sleep 5; kill -9 $! &>/dev/null & ) - wait - eend $? "Error exporting NFS directories" -} - -restart() { - # See long comment in stop() regarding RESTARTING and exportfs -ua - RESTARTING=yes - svc_stop - svc_start -} diff --git a/net-fs/nfs-utils/files/nfs-1 b/net-fs/nfs-utils/files/nfs-1 deleted file mode 100644 index 35ee3a884447..000000000000 --- a/net-fs/nfs-utils/files/nfs-1 +++ /dev/null @@ -1,154 +0,0 @@ -#!/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-fs/nfs-utils/files/nfs-1,v 1.1 2003/03/04 03:38:00 agriffis Exp $ - -#--------------------------------------------------------------------------- -# This script starts/stops the following -# rpc.statd if necessary (also checked by init.d/nfsmount) -# rpc.rquotad if exists (from quota package) -# rpc.nfsd -# rpc.mountd -#--------------------------------------------------------------------------- - -# NB: Config is in /etc/conf.d/nfs - - -opts="start stop restart reload" - -# This variable is used for controlling whether or not to run exportfs -ua; -# see stop() for more information -restarting=no - -# The binary locations -exportfs=/usr/sbin/exportfs -statd=/sbin/rpc.statd -rquotad=/usr/sbin/rpc.rquotad -nfsd=/usr/sbin/rpc.nfsd -mountd=/usr/sbin/rpc.mountd - -depend() { - need net portmap - after quota -} - -start_statd() { - # Don't start rpc.statd if already started by init.d/nfsmount - killall -0 rpc.statd &>/dev/null && return 0 - ebegin "Starting NFS statd" - start-stop-daemon --start --quiet --exec \ - $statd -- $RPCSTATDOPTS 1>&2 - eend $? "Error starting NFS statd" -} - -stop_statd() { - # Don't stop rpc.statd if it's in use by init.d/nfsmount. - mount -t nfs | grep -q . && return 0 - # Make sure it's actually running - killall -0 rpc.statd &>/dev/null || return 0 - # Okay, all tests passed, stop rpc.statd - ebegin "Stopping NFS statd" - start-stop-daemon --stop --quiet --exec $statd 1>&2 - eend $? "Error stopping NFS statd" -} - -start() { - start_statd - - # Exportfs likes to hang if networking isn't working. - # If that's the case, then try to kill it so the - # bootup process can continue. - if grep -q '^/' /etc/exports &>/dev/null; then - ebegin "Exporting NFS directories" - $exportfs -r 1>&2 & - ( sleep 5; kill -9 $! &>/dev/null & ) - wait - eend $? "Error exporting NFS directories" - fi - - if [ -x $rquotad ]; then - ebegin "Starting NFS rquotad" - start-stop-daemon --start --quiet --exec \ - $rquotad -- $RPCRQUOTADOPTS 1>&2 - eend $? "Error starting NFS rquotad" - fi - - ebegin "Starting NFS daemon" - start-stop-daemon --start --quiet --exec \ - $nfsd -- $RPCNFSDCOUNT 1>&2 - eend $? "Error starting NFS daemon" - - # Check if we support NFSv3 - ebegin "Starting NFS mountd" - rpcinfo -u localhost nfs 3 &>/dev/null || \ - RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" - start-stop-daemon --start --quiet --exec \ - $mountd -- $RPCMOUNTDOPTS 1>&2 - eend $? "Error starting NFS mountd" -} - -stop() { - # Don't check NFSSERVER variable since it might have changed, - # instead use --oknodo to smooth things over - ebegin "Stopping NFS mountd" - start-stop-daemon --stop --quiet --oknodo \ - --exec $mountd 1>&2 - eend $? "Error stopping NFS mountd" - - # nfsd sets its process name to [nfsd] so don't look for $nfsd - ebegin "Stopping NFS daemon" - start-stop-daemon --stop --quiet --oknodo \ - --name nfsd --user root --signal 2 1>&2 - eend $? "Error stopping NFS daemon" - - if [ -x $rquotad ]; then - ebegin "Stopping NFS rquotad" - start-stop-daemon --stop --quiet --oknodo \ - --exec $rquotad 1>&2 - eend $? "Error stopping NFS rquotad" - fi - - # When restarting the NFS server, running "exportfs -ua" probably - # isn't what the user wants. Running it causes all entries listed - # in xtab to be removed from the kernel export tables, and the - # xtab file is cleared. This effectively shuts down all NFS - # activity, leaving all clients holding stale NFS filehandles, - # *even* when the NFS server has restarted. - # - # That's what you would want if you were shutting down the NFS - # server for good, or for a long period of time, but not when the - # NFS server will be running again in short order. In this case, - # then "exportfs -r" will reread the xtab, and all the current - # clients will be able to resume NFS activity, *without* needing - # to umount/(re)mount the filesystem. - if [ "$restarting" = no ]; then - ebegin "Unexporting NFS directories" - # Exportfs likes to hang if networking isn't working. - # If that's the case, then try to kill it so the - # shutdown process can continue. - $exportfs -ua 1>&2 & - ( sleep 5; kill -9 $! &>/dev/null & ) - wait - eend $? "Error unexporting NFS directories" - fi - - stop_statd -} - -reload() { - # Exportfs likes to hang if networking isn't working. - # If that's the case, then try to kill it so the - # bootup process can continue. - ebegin "Reloading /etc/exports" - $exportfs -r 1>&2 & - ( sleep 5; kill -9 $! &>/dev/null & ) - wait - eend $? "Error exporting NFS directories" -} - -restart() { - # See long comment in stop() regarding "restarting" and exportfs -ua - restarting=yes - svc_stop - svc_start -} diff --git a/net-fs/nfs-utils/nfs-utils-0.3.3-r1.ebuild b/net-fs/nfs-utils/nfs-utils-0.3.3-r1.ebuild deleted file mode 100644 index dab67babb672..000000000000 --- a/net-fs/nfs-utils/nfs-utils-0.3.3-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-0.3.3-r1.ebuild,v 1.14 2003/02/13 14:01:27 vapier Exp $ - -IUSE="tcpd" - -S=${WORKDIR}/${P} -DESCRIPTION="kernel NFS client and server daemons" -SRC_URI="http://download.sourceforge.net/nfs/${P}.tar.gz" -HOMEPAGE="http://nfs.sourceforge.net/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="x86 ppc sparc alpha" - -DEPEND="tcpd? ( sys-apps/tcp-wrappers )" -RDEPEND=">=net-nds/portmap-5b-r6" - -src_compile() { - ./configure \ - --prefix=/ \ - --mandir=/usr/share/man \ - --with-statedir=/var/lib/nfs \ - --enable-nfsv3 || die - if ! use tcpd; then - cp config.mk config.mk.orig - sed -e "s:-lwrap::" -e "s:-DHAVE_TCP_WRAPPER::" \ - config.mk.orig > config.mk - fi - - # nitro: parallel make fails sometimes - make || die -} - -src_install() { - # MANDIR doesn't pick up install_prefix - make install install_prefix=$D MANDIR=$D/usr/share/man - insinto /etc - doins $FILESDIR/exports - dodoc ChangeLog COPYING README - docinto linux-nfs - dodoc linux-nfs/* - # using newexe/newins instead of doexe/doins allows us to specify - # a new filename on the command-line. - exeinto /etc/init.d - newexe ${FILESDIR}/nfs nfs - newexe ${FILESDIR}/nfsmount nfsmount - insinto /etc/conf.d - newins ${FILESDIR}/nfs.confd nfs - # Don't create runlevels symlinks here. NFS is not something that - # should be enabled by default. Administrators can use rc-update - # to do it themselves. -} diff --git a/net-fs/nfs-utils/nfs-utils-1.0.1-r1.ebuild b/net-fs/nfs-utils/nfs-utils-1.0.1-r1.ebuild deleted file mode 100644 index 5d1f66f64985..000000000000 --- a/net-fs/nfs-utils/nfs-utils-1.0.1-r1.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.0.1-r1.ebuild,v 1.3 2003/03/30 21:37:56 joker Exp $ - -IUSE="tcpd" - -DESCRIPTION="NFS client and server daemons" -SRC_URI="mirror://sourceforge/nfs/${P}.tar.gz" -HOMEPAGE="http://nfs.sourceforge.net/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="x86 ~ppc alpha sparc arm" - -DEPEND="tcpd? ( sys-apps/tcp-wrappers )" -RDEPEND="${DEPEND} >=net-nds/portmap-5b-r6" - -src_compile() { - ./configure \ - --mandir=/usr/share/man \ - --with-statedir=/var/lib/nfs \ - --disable-rquotad --enable-nfsv3 || die "Configure failed" - - if ! use tcpd; then - sed -e "s:\(-lwrap\|-DHAVE_TCP_WRAPPER\)::" < config.mk > config.mk.new - mv --force config.mk.new config.mk - fi - - # parallel make still fails - make || die "Failed to compile" -} - -src_install() { - make install install_prefix=${D} MANDIR=${D}/usr/share/man \ - || die "Failed to install" - - # Install some client-side binaries in /sbin - mkdir ${D}/sbin - mv ${D}/usr/sbin/rpc.{lockd,statd} ${D}/sbin - - dodoc ChangeLog COPYING README - docinto linux-nfs ; dodoc linux-nfs/* - - insinto /etc ; doins ${FILESDIR}/exports - - exeinto /etc/init.d - newexe ${FILESDIR}/nfs-1 nfs - newexe ${FILESDIR}/nfsmount nfsmount - - insinto /etc/conf.d - newins ${FILESDIR}/nfs.confd nfs -} - -pkg_postinst() { - einfo "NFS V2 and V3 servers now default to \"sync\" IO if ${P}" - einfo "(or later) is installed." - einfo "More info at ${HOMEPAGE} (see questions 5, 12, 13, and 14)." - echo - ewarn "PLEASE note: Since the latest NFS utils has changed the server" - ewarn "default to \"sync\" IO, then if no behavior is specified in the" - ewarn "export list, thus assuming the default behavior, a warning will" - ewarn "be generated at export time." - echo - # Running depscan since we introduced /etc/init.d/{portmap,nfs} - /etc/init.d/depscan.sh -} diff --git a/net-fs/nfs-utils/nfs-utils-1.0.5.ebuild b/net-fs/nfs-utils/nfs-utils-1.0.5.ebuild deleted file mode 100644 index 2ec8a4851b79..000000000000 --- a/net-fs/nfs-utils/nfs-utils-1.0.5.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.0.5.ebuild,v 1.2 2003/07/19 12:35:07 aliz Exp $ - -IUSE="tcpd" - -DESCRIPTION="NFS client and server daemons" -SRC_URI="mirror://sourceforge/nfs/${P}.tar.gz" -HOMEPAGE="http://nfs.sourceforge.net/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="x86 ppc alpha sparc arm hppa" - -DEPEND="tcpd? ( sys-apps/tcp-wrappers )" -RDEPEND="${DEPEND} >=net-nds/portmap-5b-r6" - -src_compile() { - ./configure \ - --mandir=/usr/share/man \ - --with-statedir=/var/lib/nfs \ - --disable-rquotad --enable-nfsv3 || die "Configure failed" - - if ! use tcpd; then - sed -e "s:\(-lwrap\|-DHAVE_TCP_WRAPPER\)::" < config.mk > config.mk.new - mv --force config.mk.new config.mk - fi - - # parallel make still fails - make || die "Failed to compile" -} - -src_install() { - make install install_prefix=${D} MANDIR=${D}/usr/share/man \ - || die "Failed to install" - - # Install some client-side binaries in /sbin - mkdir ${D}/sbin - mv ${D}/usr/sbin/rpc.{lockd,statd} ${D}/sbin - - dodoc ChangeLog COPYING README - docinto linux-nfs ; dodoc linux-nfs/* - - insinto /etc ; doins ${FILESDIR}/exports - - exeinto /etc/init.d - newexe ${FILESDIR}/nfs-1 nfs - newexe ${FILESDIR}/nfsmount nfsmount - - insinto /etc/conf.d - newins ${FILESDIR}/nfs.confd nfs -} - -pkg_postinst() { - einfo "NFS V2 and V3 servers now default to \"sync\" IO if ${P}" - einfo "(or later) is installed." - einfo "More info at ${HOMEPAGE} (see questions 5, 12, 13, and 14)." - echo - ewarn "PLEASE note: Since the latest NFS utils has changed the server" - ewarn "default to \"sync\" IO, then if no behavior is specified in the" - ewarn "export list, thus assuming the default behavior, a warning will" - ewarn "be generated at export time." - echo - # Running depscan since we introduced /etc/init.d/{portmap,nfs} - /etc/init.d/depscan.sh -} |