diff options
author | bapt <bapt@FreeBSD.org> | 2012-11-28 17:19:01 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-11-28 17:19:01 +0800 |
commit | 8f2e3f152b6b72fda0b42e6138326ec4ef3cf363 (patch) | |
tree | 3446bfabe3f012c4d2acba7a37443627e8b6bf0a /sysutils/fuser | |
parent | a05bd3d4d8f08764b00cd87a8f90f86aceff7f3e (diff) | |
download | freebsd-ports-gnome-8f2e3f152b6b72fda0b42e6138326ec4ef3cf363.tar.gz freebsd-ports-gnome-8f2e3f152b6b72fda0b42e6138326ec4ef3cf363.tar.zst freebsd-ports-gnome-8f2e3f152b6b72fda0b42e6138326ec4ef3cf363.zip |
2012-11-27 graphics/morpheus: Depends on the expired gtkglarea
2012-11-27 devel/jakarta-commons-chain: Depends on the expired devel/portlet-api
2012-11-27 math/p5-Math-LinearCombination: Depends on the expired p5-Class-Field
2012-11-26 x11/padkey: No more public distfiles
2012-11-26 japanese/gicq: No more public distfiles and development ceased
2012-11-26 www/momspider: No more public distfiles
2012-11-26 japanese/perl5: Recent perl supports correctly japanese, consider using them
2012-11-26 sysutils/fuser: No more public distfiles
2012-11-26 textproc/ascii2pdf: No more public distfiles
Feature safe: yes
Diffstat (limited to 'sysutils/fuser')
-rw-r--r-- | sysutils/fuser/Makefile | 55 | ||||
-rw-r--r-- | sysutils/fuser/distinfo | 2 | ||||
-rw-r--r-- | sysutils/fuser/files/extra-patch_ansify | 247 | ||||
-rw-r--r-- | sysutils/fuser/files/extra::patch-fuser.c | 45 | ||||
-rw-r--r-- | sysutils/fuser/files/extra::patch-fuser.h | 11 | ||||
-rw-r--r-- | sysutils/fuser/files/extra::patch-msdosfs.c | 25 | ||||
-rw-r--r-- | sysutils/fuser/files/extra::patch-nfs.c | 10 | ||||
-rw-r--r-- | sysutils/fuser/files/patch-fuser.c | 35 | ||||
-rw-r--r-- | sysutils/fuser/files/pkg-message.in | 9 | ||||
-rw-r--r-- | sysutils/fuser/pkg-descr | 11 |
10 files changed, 0 insertions, 450 deletions
diff --git a/sysutils/fuser/Makefile b/sysutils/fuser/Makefile deleted file mode 100644 index 4fd4788c98e9..000000000000 --- a/sysutils/fuser/Makefile +++ /dev/null @@ -1,55 +0,0 @@ -# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru> -# $FreeBSD$ - -PORTNAME= fuser -PORTVERSION= 1142334561 -PORTREVISION= 3 -CATEGORIES= sysutils -MASTER_SITES= http://mbsd.msk.ru/dist/ - -MAINTAINER= ports@FreeBSD.org -COMMENT= POSIX fuser utility for FreeBSD - -DEPRECATED= No more public distfiles -EXPIRATION_DATE= 2012-11-26 - -USE_BZIP2= yes - -SUB_FILES= pkg-message -WRKSRC= ${WRKDIR}/fuser - -MAN1= fuser.1 -PLIST_FILES= bin/fuser - -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 900037 -IGNORE= fuser(1) utility is already present in the base system -.endif - -.if (${OSVERSION} > 800000) -EXTRA_PATCHES+= ${FILESDIR}/extra::patch-fuser.c \ - ${FILESDIR}/extra::patch-fuser.h -.endif -.if ${OSVERSION} >= 800066 -EXTRA_PATCHES+= ${FILESDIR}/extra::patch-msdosfs.c -.endif -.if ${OSVERSION} >= 800101 -EXTRA_PATCHES+= ${FILESDIR}/extra::patch-nfs.c -.endif -.if ${OSVERSION} >= 900000 -EXTRA_PATCHES+= ${FILESDIR}/extra-patch_ansify -.endif - -.if ${ARCH} == "powerpc" -BROKEN= Does not compile on powerpc -.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 deleted file mode 100644 index f2f204cf5346..000000000000 --- a/sysutils/fuser/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (fuser-1142334561.tar.bz2) = 2edf0d189a77a55c84d58545de2cd446401ed42d2f06dd043db3c61f2087e5a2 -SIZE (fuser-1142334561.tar.bz2) = 11008 diff --git a/sysutils/fuser/files/extra-patch_ansify b/sysutils/fuser/files/extra-patch_ansify deleted file mode 100644 index af151334c462..000000000000 --- a/sysutils/fuser/files/extra-patch_ansify +++ /dev/null @@ -1,247 +0,0 @@ ---- devfs.c 2006-03-14 14:07:08.000000000 +0300 -+++ devfs.c 2010-10-22 13:06:31.000000000 +0400 -@@ -50,9 +50,7 @@ - #include "fuser.h" - - int --devfs_filestat(vp, fsp) -- const vnode_t *vp; -- finfo_t *fsp; -+devfs_filestat(const vnode_t *vp, finfo_t *fsp) - { - struct devfs_dirent devfs_dirent; - struct mount mount; ---- fuser.c 2010-10-22 12:08:03.000000000 +0400 -+++ fuser.c 2010-10-22 13:05:43.000000000 +0400 -@@ -249,10 +249,7 @@ - } - - void --print_file_info(pid, uid, ufl) -- pid_t pid; -- uid_t uid; -- int ufl; -+print_file_info(pid_t pid, uid_t uid, int ufl) - { - uint i; - -@@ -273,8 +270,7 @@ - * Add file to the list. - */ - static int --addfile(path) -- const char *path; -+addfile(const char *path) - { - struct stat sb; - int type; -@@ -314,9 +310,7 @@ - * by a given process and add suitable entries to list. - */ - static int --add_ofiles(fd, head) -- const struct filedesc *fd; -- fds_head_t *head; -+add_ofiles(const struct filedesc *fd, fds_head_t *head) - { - struct file **ofiles; - struct file file; -@@ -389,8 +383,7 @@ - * This routine returns controlling tty of the process, if exist. - */ - const vnode_t * --get_ctty(p) -- const kinfo_proc_t *p; -+get_ctty(const kinfo_proc_t *p) - { - struct proc proc; - struct pgrp pgrp; -@@ -430,8 +423,7 @@ - * given process. The structure's pointer will be inserted in the list. - */ - int --gather_pinfo(p) -- const kinfo_proc_t *p; -+gather_pinfo(const kinfo_proc_t *p) - { - struct filedesc fd_info; - pinfo_t *pinfo; -@@ -484,10 +476,7 @@ - * Insert finfo structure for given vnode into the list - */ - static int --vp2finfo(vp, head, ufl) -- const vnode_t *vp; -- fds_head_t *head; -- int ufl; -+vp2finfo(const vnode_t *vp, fds_head_t *head, int ufl) - { - vnode_t vn; - finfo_t *finfo; -@@ -540,9 +529,7 @@ - * informations how given file is used. - */ - static int --get_uflags(rfile, pinfo) -- const reqfile_t *rfile; -- const pinfo_t *pinfo; -+get_uflags(const reqfile_t *rfile, const pinfo_t *pinfo) - { - finfo_t *fd; - int ufl = 0; -@@ -586,8 +573,7 @@ - * Helper routine to free pinfo structure - */ - static void --pinfo_free(pinfo) -- pinfo_t *pinfo; -+pinfo_free(pinfo_t *pinfo) - { - - ASSERT(pinfo); -@@ -596,9 +582,7 @@ - } - - int --main(argc, argv) -- int argc; -- char *argv[]; -+main(int argc, char *argv[]) - { - reqfile_t *rfile; - pinfo_t *pinfo; -@@ -724,8 +708,7 @@ - * associated dev_t. - */ - dev_t --dev2udev(dev) -- struct cdev *dev; -+dev2udev(struct cdev *dev) - { - struct cdev_priv priv; - int ret; -@@ -740,9 +723,7 @@ - } - - int --add_mmapped(p, head) -- const kinfo_proc_t *p; -- fds_head_t *head; -+add_mmapped(const kinfo_proc_t *p, fds_head_t *head) - { - vm_map_t map; - struct vmspace vmspace; -@@ -803,8 +784,7 @@ - * Returns signal number for it's string representation - */ - static int --str2sig(str) -- const char *str; -+str2sig(const char *str) - { - int n; - ---- isofs.c 2005-08-25 05:19:02.000000000 +0400 -+++ isofs.c 2010-10-22 13:06:15.000000000 +0400 -@@ -55,9 +55,7 @@ - #include "fuser.h" - - int --isofs_filestat(vp, fsp) -- const vnode_t *vp; -- finfo_t *fsp; -+isofs_filestat(const vnode_t *vp, finfo_t *fsp) - { - struct iso_node node; - struct iso_mnt mnt; ---- msdosfs.c 2010-10-22 12:08:03.000000000 +0400 -+++ msdosfs.c 2010-10-22 13:05:59.000000000 +0400 -@@ -65,9 +65,7 @@ - #define VTODE(vp) ((struct denode *)(vp)->v_data) - - int --msdosfs_filestat(vp, fsp) -- const vnode_t *vp; -- finfo_t *fsp; -+msdosfs_filestat( const vnode_t *vp, finfo_t *fsp) - { - struct denode denode; - u_long dirsperblk; ---- nfs.c 2010-10-22 12:08:03.000000000 +0400 -+++ nfs.c 2010-10-22 13:07:04.000000000 +0400 -@@ -50,9 +50,7 @@ - #include "fuser.h" - - int --nfs_filestat(vp, fsp) -- const vnode_t *vp; -- finfo_t *fsp; -+nfs_filestat(const vnode_t *vp, finfo_t *fsp) - { - struct nfsnode nfsnode; - int ret; ---- ntfs.c 2005-08-25 05:19:02.000000000 +0400 -+++ ntfs.c 2010-10-22 13:07:22.000000000 +0400 -@@ -42,9 +42,7 @@ - #include "fuser.h" - - int --ntfs_filestat(vp, fsp) -- const vnode_t *vp; -- finfo_t *fsp; -+ntfs_filestat(const vnode_t *vp, finfo_t *fsp) - { - struct fnode fnod; - struct ntnode node; ---- nwfs.c 2005-08-25 05:19:02.000000000 +0400 -+++ nwfs.c 2010-10-22 13:07:36.000000000 +0400 -@@ -44,9 +44,7 @@ - #include "fuser.h" - - int --nwfs_filestat(vp, fsp) -- const vnode_t *vp; -- finfo_t *fsp; -+nwfs_filestat(const vnode_t *vp, finfo_t *fsp) - { - struct nwnode node; - struct mount mnt; ---- smbfs.c 2005-08-25 05:27:58.000000000 +0400 -+++ smbfs.c 2010-10-22 13:07:53.000000000 +0400 -@@ -44,9 +44,7 @@ - #include "fuser.h" - - int --smbfs_filestat(vp, fsp) -- const vnode_t *vp; -- finfo_t *fsp; -+smbfs_filestat(const vnode_t *vp, finfo_t *fsp) - { - struct smbnode node; - struct mount mnt; ---- udf.c 2006-03-14 14:07:08.000000000 +0300 -+++ udf.c 2010-10-22 13:08:07.000000000 +0400 -@@ -75,9 +75,7 @@ - #define VTON(vp) ((struct udf_node *)((vp)->v_data)) - - int --udf_filestat(vp, fsp) -- const vnode_t *vp; -- finfo_t *fsp; -+udf_filestat(const vnode_t *vp, finfo_t *fsp) - { - struct udf_node node; - struct udf_mnt mnt; ---- ufs.c 2005-08-24 18:05:29.000000000 +0400 -+++ ufs.c 2010-10-22 13:06:50.000000000 +0400 -@@ -50,9 +50,7 @@ - #include "fuser.h" - - int --ufs_filestat(vp, finfo) -- const vnode_t *vp; -- finfo_t *finfo; -+ufs_filestat(const vnode_t *vp, finfo_t *finfo) - { - struct inode inode; - int ret; diff --git a/sysutils/fuser/files/extra::patch-fuser.c b/sysutils/fuser/files/extra::patch-fuser.c deleted file mode 100644 index 5ada9fcd0379..000000000000 --- a/sysutils/fuser/files/extra::patch-fuser.c +++ /dev/null @@ -1,45 +0,0 @@ ---- fuser.c.orig 2006-03-14 14:07:08.000000000 +0300 -+++ fuser.c 2009-02-13 02:33:58.000000000 +0300 -@@ -65,6 +65,7 @@ - */ - - #include <stdlib.h> -+#include <stddef.h> - #include <unistd.h> - #include <stdio.h> - #include <string.h> -@@ -88,9 +89,10 @@ - #include <sys/filedesc.h> - #include <sys/queue.h> - #include <sys/tty.h> --#define _KERNEL --#include <sys/conf.h> -+#define _WANT_FILE - #include <sys/file.h> -+#include <sys/conf.h> -+#define _KERNEL - #include <fs/devfs/devfs.h> - #include <fs/devfs/devfs_int.h> - #undef _KERNEL -@@ -717,19 +719,12 @@ - */ - dev_t - dev2udev(dev) -- const struct cdev *dev; -+ struct cdev *dev; - { -- struct cdev dv; - struct cdev_priv priv; - int ret; - -- ret = KVM_READ(kd, dev, &dv, sizeof(struct cdev)); -- if (ret != sizeof(struct cdev)) { -- warnx("can't read cdev at %p\n", dev); -- return -1; -- } -- -- ret = KVM_READ(kd, dv.si_priv, &priv, sizeof(priv)); -+ ret = KVM_READ(kd, cdev2priv(dev), &priv, sizeof(priv)); - if (ret != sizeof(priv)) { - warnx("can't read priv at %p\n", dev); - return -1; diff --git a/sysutils/fuser/files/extra::patch-fuser.h b/sysutils/fuser/files/extra::patch-fuser.h deleted file mode 100644 index a823ffa2ab60..000000000000 --- a/sysutils/fuser/files/extra::patch-fuser.h +++ /dev/null @@ -1,11 +0,0 @@ ---- fuser.h.orig 2009-02-13 02:34:32.000000000 +0300 -+++ fuser.h 2009-02-13 02:34:43.000000000 +0300 -@@ -54,7 +54,7 @@ - #endif - - /* Prototypes */ --dev_t dev2udev __P((const struct cdev *dev)); -+dev_t dev2udev __P((struct cdev *dev)); - int isofs_filestat __P((const vnode_t *vp, finfo_t *fsp)); - int msdosfs_filestat __P((const vnode_t *vp, finfo_t *fsp)); - int ufs_filestat __P((const vnode_t *vp, finfo_t *fsp)); diff --git a/sysutils/fuser/files/extra::patch-msdosfs.c b/sysutils/fuser/files/extra::patch-msdosfs.c deleted file mode 100644 index 1cf9268ff476..000000000000 --- a/sysutils/fuser/files/extra::patch-msdosfs.c +++ /dev/null @@ -1,25 +0,0 @@ ---- msdosfs.c.orig 2009-06-07 12:53:34.000000000 +0400 -+++ msdosfs.c 2009-06-07 12:57:41.000000000 +0400 -@@ -72,6 +72,7 @@ - struct denode denode; - u_long dirsperblk; - struct msdosfsmount mnt; -+ struct vnode devvp; - int fileid; - int ret; - -@@ -90,7 +91,13 @@ - return 1; - } - -- fsp->dev = dev2udev(denode.de_dev); -+ ret = KVM_READ(kd, mnt.pm_devvp, &devvp, sizeof(devvp)); -+ if (ret != sizeof(devvp)) { -+ warnx("can't read vnode info at %p\n", (void *)mnt.pm_devvp); -+ return 1; -+ } -+ -+ fsp->dev = dev2udev(devvp.v_rdev); - - /* - * XXX - diff --git a/sysutils/fuser/files/extra::patch-nfs.c b/sysutils/fuser/files/extra::patch-nfs.c deleted file mode 100644 index f2650881df55..000000000000 --- a/sysutils/fuser/files/extra::patch-nfs.c +++ /dev/null @@ -1,10 +0,0 @@ ---- nfs.c.orig 2009-12-21 13:33:10.000000000 -0800 -+++ nfs.c 2009-12-21 13:33:22.000000000 -0800 -@@ -44,7 +44,6 @@ - #include <sys/mount.h> - - #include <nfs/nfsproto.h> --#include <nfs/rpcv2.h> - #include <nfsclient/nfs.h> - #include <nfsclient/nfsnode.h> - diff --git a/sysutils/fuser/files/patch-fuser.c b/sysutils/fuser/files/patch-fuser.c deleted file mode 100644 index 8f4276146dec..000000000000 --- a/sysutils/fuser/files/patch-fuser.c +++ /dev/null @@ -1,35 +0,0 @@ ---- fuser.c.orig 2006-03-14 14:07:08.000000000 +0300 -+++ fuser.c 2009-12-21 22:51:33.000000000 +0300 -@@ -608,6 +608,7 @@ - char *ep; - char *kernimg = NULL; /* We are using curr. sys by default */ - char *mcore = NULL; -+ int retvalue = 0; - - while ((ch = getopt(argc, argv, "C:K:cfkms:u")) != -1) - switch(ch) { -@@ -696,8 +697,13 @@ - if (ufl != 0) { - print_file_info(pinfo->pid, \ - pinfo->uid, ufl); -- if ((flags & KFLAG) != 0) -- (void)kill(pinfo->pid, sig); -+ if ((flags & KFLAG) != 0) { -+ if (geteuid() == getuid() || pinfo->uid == getuid()) { -+ (void)kill(pinfo->pid, sig); -+ } else { -+ retvalue = 1; -+ } -+ } - } - } - (void)fprintf(stderr, "\n"); -@@ -707,7 +713,7 @@ - SLIST_FREE(&prclist, next, pinfo_free); - (void)kvm_close(kd); - -- return 0; -+ return retvalue; - - } - diff --git a/sysutils/fuser/files/pkg-message.in b/sysutils/fuser/files/pkg-message.in deleted file mode 100644 index 0786faf1a4f4..000000000000 --- a/sysutils/fuser/files/pkg-message.in +++ /dev/null @@ -1,9 +0,0 @@ -============================================================================= - -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 deleted file mode 100644 index 2a020a6fdb2b..000000000000 --- a/sysutils/fuser/pkg-descr +++ /dev/null @@ -1,11 +0,0 @@ -The fuser utility will write to stdout the IDs of processes that -have one or more named files open. For block and character special -devices, all processes that uses 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 -isn't yet included into the standard FreeBSD distribution. - -WWW: http://mbsd.msk.ru/stas/fuser.html |