aboutsummaryrefslogtreecommitdiff
path: root/sysutils/fuser
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2006-03-20 15:47:51 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2006-03-20 15:47:51 +0000
commit706da6fbfc2f53fe02d6b515fef1baa99dd752d9 (patch)
tree4b148fe44464b9aa19d53bc3f4fa1b2484712dcf /sysutils/fuser
parentb8fb298b2ad8975a8bb6f4c9455a5da6933dda73 (diff)
downloadports-706da6fbfc2f53fe02d6b515fef1baa99dd752d9.tar.gz
ports-706da6fbfc2f53fe02d6b515fef1baa99dd752d9.zip
Add fuser 1142334561, POSIX fuser utility for FreeBSD.
PR: 94443 Submitted by: Stanislav Sedov <ssedov@mbsd.msk.ru>
Notes
Notes: svn path=/head/; revision=157747
Diffstat (limited to 'sysutils/fuser')
-rw-r--r--sysutils/fuser/Makefile37
-rw-r--r--sysutils/fuser/distinfo3
-rw-r--r--sysutils/fuser/files/pkg-message.in9
-rw-r--r--sysutils/fuser/pkg-descr11
4 files changed, 60 insertions, 0 deletions
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