Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2006 14:34:35 +0300
From:      Stanislav Sedov <ssedov@mbsd.msk.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Stanislav Sedov <ssedov@mbsd.msk.ru>
Subject:   ports/94443: New port: sysutils/fuser POSIX fuser utility for FreeBSD
Message-ID:  <20060314113331.GA3221@fonon.realnet>
Resent-Message-ID: <200603141140.k2EBeGen057048@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94443
>Category:       ports
>Synopsis:       New port: sysutils/fuser POSIX fuser utility for FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 14 11:40:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov <ssedov@mbsd.msk.ru>
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Mar 11 00:59:33 MSK 2006 root@fonon.realnet:/work/src/fbsd-cur/src/sys/i386/compile/FONON i386


	
>Description:
	POSIX fuser utility is missing on FreeBSD.
>How-To-Repeat:
	
>Fix:

	

--- fuser.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	fuser
#	fuser/pkg-plist
#	fuser/pkg-descr
#	fuser/distinfo
#	fuser/Makefile
#	fuser/pkg-message
#
echo c - fuser
mkdir -p fuser > /dev/null 2>&1
echo x - fuser/pkg-plist
sed 's/^X//' >fuser/pkg-plist << 'END-of-fuser/pkg-plist'
Xbin/fuser
END-of-fuser/pkg-plist
echo x - fuser/pkg-descr
sed 's/^X//' >fuser/pkg-descr << 'END-of-fuser/pkg-descr'
XThe fuser utility shall write to stdout the process IDs of processes that
Xhave one or more named files open. For block and character special
Xdevices, all processes using files on that device are listed.  A file is
Xconsidered open by a process if it was explicitly opened, is the working
Xdirectory, root directory, jail root directory, active executable text,
Xkernel trace file for that process or controlling tty of the process.
X
XThe fuser(1) utility is defined in IEEE Std 1003.1-2004 standard, but
Xdoesn't included in standard FreeBSD distribution.
X
XWWW: http://mbsd.msk.ru/fuser.html
END-of-fuser/pkg-descr
echo x - fuser/distinfo
sed 's/^X//' >fuser/distinfo << 'END-of-fuser/distinfo'
XMD5 (fuser-1142334561.tar.bz2) = 0075bfa1c20a29e0f5196c8784a2e6fa
XSHA256 (fuser-1142334561.tar.bz2) = 2edf0d189a77a55c84d58545de2cd446401ed42d2f06dd043db3c61f2087e5a2
XSIZE (fuser-1142334561.tar.bz2) = 11008
END-of-fuser/distinfo
echo x - fuser/Makefile
sed 's/^X//' >fuser/Makefile << 'END-of-fuser/Makefile'
X# Ports collection makefile for:	fuser
X# Date created:				14 Marth 2006
X# Whom:					Stanislav Sedov <ssedov@mbsd.msk.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fuser
XPORTVERSION=	1142334561
XCATEGORIES=	sysutils
XMASTER_SITES=	http://mbsd.msk.ru/dist/
X
XMAINTAINER=	ssedov@mbsd.msk.ru
XCOMMENT=	POSIX fuser utility for FreeBSD
X
XWRKSRC=         ${WRKDIR}/fuser
XUSE_BZIP2=	yes
X
XMAN1=		fuser.1
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/fuser ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/fuser.1 ${PREFIX}/man/man1
X
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-fuser/Makefile
echo x - fuser/pkg-message
sed 's/^X//' >fuser/pkg-message << 'END-of-fuser/pkg-message'
X=============================================================================
X
XSince fuser requires root privilegies to access /dev/mem file, ordinary
Xusers can't use it. If you want to give non-priveleged users access to this
Xutility you must set setuid bit on fuser executable:
X
X# chmod +s /usr/local/bin/fuser
X	
X=============================================================================
END-of-fuser/pkg-message
exit
--- fuser.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060314113331.GA3221>