diff options
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/fuser/Makefile | 37 | ||||
-rw-r--r-- | sysutils/fuser/distinfo | 3 | ||||
-rw-r--r-- | sysutils/fuser/files/pkg-message.in | 9 | ||||
-rw-r--r-- | sysutils/fuser/pkg-descr | 11 |
5 files changed, 61 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 1ec7e0ed2300..405dc83ba176 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -179,6 +179,7 @@ SUBDIR += fusefs-kmod SUBDIR += fusefs-libs SUBDIR += fusefs-sshfs + SUBDIR += fuser SUBDIR += fvcool SUBDIR += gag SUBDIR += ganglia-monitor-core diff --git a/sysutils/fuser/Makefile b/sysutils/fuser/Makefile new file mode 100644 index 000000000000..b3b07e6fb56f --- /dev/null +++ b/sysutils/fuser/Makefile @@ -0,0 +1,37 @@ +# Ports collection makefile for: fuser +# Date created: 14 Marth 2006 +# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru> +# +# $FreeBSD$ +# + +PORTNAME= fuser +PORTVERSION= 1142334561 +CATEGORIES= sysutils +MASTER_SITES= http://mbsd.msk.ru/dist/ + +MAINTAINER= ssedov@mbsd.msk.ru +COMMENT= POSIX fuser utility for FreeBSD + +USE_BZIP2= yes + +SUB_FILES= pkg-message +WRKSRC= ${WRKDIR}/fuser + +MAN1= fuser.1 +PLIST_FILES= bin/fuser + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 600000 +IGNORE= src/sys/fs/devfs/devfs_int.h does not exist before OSVERSION 600000 +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1 + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/sysutils/fuser/distinfo b/sysutils/fuser/distinfo new file mode 100644 index 000000000000..53f58b6eea9f --- /dev/null +++ b/sysutils/fuser/distinfo @@ -0,0 +1,3 @@ +MD5 (fuser-1142334561.tar.bz2) = 0075bfa1c20a29e0f5196c8784a2e6fa +SHA256 (fuser-1142334561.tar.bz2) = 2edf0d189a77a55c84d58545de2cd446401ed42d2f06dd043db3c61f2087e5a2 +SIZE (fuser-1142334561.tar.bz2) = 11008 diff --git a/sysutils/fuser/files/pkg-message.in b/sysutils/fuser/files/pkg-message.in new file mode 100644 index 000000000000..0786faf1a4f4 --- /dev/null +++ b/sysutils/fuser/files/pkg-message.in @@ -0,0 +1,9 @@ +============================================================================= + +Since fuser requires root privilegies to access /dev/mem file, ordinary +users can't use it. If you want to give non-priveleged users access to this +utility you must set setuid bit on fuser executable: + +# chmod +s %%PREFIX%%/bin/fuser + +============================================================================= diff --git a/sysutils/fuser/pkg-descr b/sysutils/fuser/pkg-descr new file mode 100644 index 000000000000..81bcc6e4be64 --- /dev/null +++ b/sysutils/fuser/pkg-descr @@ -0,0 +1,11 @@ +The fuser utility shall write to stdout the process IDs of processes that +have one or more named files open. For block and character special +devices, all processes using files on that device are listed. A file is +considered open by a process if it was explicitly opened, is the working +directory, root directory, jail root directory, active executable text, +kernel trace file for that process or controlling tty of the process. + +The fuser(1) utility is defined in IEEE Std 1003.1-2004 standard, but +doesn't included in standard FreeBSD distribution. + +WWW: http://mbsd.msk.ru/fuser.html |