Commit graph

142 commits

Author SHA1 Message Date
wiz
8292204475 *: recursive bump for perl 5.36 2022-06-28 11:30:51 +00:00
tnn
ed3917cc7e lsof: support kmem grovelling of current-era NetBSD rbtree kernel namecache 2022-05-25 09:33:37 +00:00
gutteridge
85a522f8bb lsof: update to match NetBSD 8.x, 9.x, and 9.99.x 2021-11-11 00:49:34 +00:00
tnn
78f4333dff lsof: fix RELRO build 2021-09-29 13:33:38 +00:00
wiz
6eae1297d5 *: recursive bump for perl 5.34 2021-05-24 19:49:01 +00:00
wiz
00da7815c0 *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
rillig
9cc0c5e45d sysutils: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

Manually excluded consolekit and dc-tools since pkglint didn't get the
formatting correct.
2019-11-04 21:28:40 +00:00
tnn
e7b387a729 lsof: needs -D__NAMECACHE_PRIVATE for "struct namecache" on -current
This only fixes the build, path names still seem to be somewhat broken.
2019-09-18 18:30:54 +00:00
wiz
84e123ddd2 Bump PKGREVISIONs for perl 5.30.0 2019-08-11 13:17:48 +00:00
wiz
31d2400cf9 lsof: fix two pkglint warnings 2018-12-21 07:06:03 +00:00
triaxx
c1ed70977e lsof: bump revision
* fix a warning in installation process
* install scripts in share/examples
* install doc in share/doc
2018-12-09 09:33:36 +00:00
triaxx
cf7bfdb654 lsof: trivial changes to Makefile to appease pkglint 2018-12-09 07:14:03 +00:00
triaxx
7ea01bd7d6 lsof: update to 4.91
o Change license to purdue (renamed from abell-94)
o ChangeLog:
4.90    February 14, 2018

    !!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !                                                        !
    !   It is likely that this is the last lsof revision I   !
    !   will issue, unless serious bugs are detected,  Stay  !
    !   tuned to lsof-l for information about future support !
    !   of lsof.                                             !
    !                                                        !
    !   I thank all the many contributors to lsof over the   !
    !   many years (20+?) I have been distributing lsof      !
    !   versions 1, 2, 3 and 4.                              !
    !                                                        !
    !   Vic Abell <abe@purdue.edu>                           !
    !                                                        !
    !!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Taught the Configure script to create a dummy opt_random.h
    for FreeBSD systems whose <sys/random.h> includes it.

    Added support for the FreeBSD ZFUSE file system.

    Corrected the quoting in a Darwin putchar() statement in the
    dfile.c source file.  Andrew Janke <floss@apjanke.net> reported
    my error.

    Added support for the FreeBSD DTYPE_PTS file descriptor and
    for unknown descriptors that reference the kernel's badfileops
    operation switch.  Enabled FreeBSD 12.0 support. Tested the
    changes on systems provided by Larry Rosenman <ler@lerctr.org>.

    Enhanced -K option with the form "-K i" to direct lsof to
    (i)gnore tasks.  A query from Rachel Kroll <rkroll@fb.com>
    suggested this option.  Linux task reports now include both
    process and task command names, making lsof's "-c <name>"
    option work correctly.

    Added a patch to prevent NFS blocking in Linux supplied by
    Kristna Streitov <kstreitova@suse.com>.

    Installed a FreeBSD patch that prevents examining a TCP state
    structure during a race condition.  The patch was supplied by
    Bryan Drewery <bdrewery@FreeBSD.org>.

    Updated FreeBSD for new UFS inode structure that lacks an i_dev
    member in the most recent 12.0-CURRENT.  Larry Rosenman
    <ler@lerctr.org> reported the problem and provided a test
    system.

    Added "#define KLD_MODULE" to dlsof.h and dnode2.c to prevent
    <machine/cpuconf.h> from generating an "ARM_NARCH is 0" error.
    This is needed so lsof can access kernel structures.  Larry
    Rosenman supplied the addition.

    Added recognition of the FreeBSD 11 file system name "nullfs".
    Jamie Landeg-Jones <jamie@catflap.org> supplied the fix.

    Added a patch from Larry Rosenman <ler@lerctr.org> that is
    needed on FreeBSD 12 so the lsof compilation can obtain the
    inpcb and tcpcb structures from their respective header files.

    Updated FreeBSD dmnt.c for the ino64 changes.

    Inserted a patch for Solaris 12.x to avoid compilation errors
    from <sys/aio_req.h>, based on information provided by Jorn
    Clausen <joern.clausen@uni-bielefeld.de>.  Jorn tested the
    patch.

    Added performance enhancement that uses the FreeBSD closefrom()
    and dup2() C library functions when available.  The enhancement
    was supplied by Conrad Meyer <cem@freebsd.org>.

    Corrected FreeBSD lsof's gathering of ZFS file device numbers.

    Updated lsof test library for FreeBSD.

    Updated socket optons information collection from the socket
    structure per changes supplied by Gleb Smirnoff
    <glebius@FreeBSD.org>.

    Added patch to dlsof.h that avoids a _KERNEL conflict with
    bzero.  Mateusz Guzik <mjguzik@gmail.com> supplied the patch.

    Corrected test library to handle 64 bit FreeBSD device numbers.

    Added #defines for FreeBSD 12, src r324225, from Gleb Smirnoff
    <glebius@FreeBSD.org>.

    Incorporated Linux pseudoterminal endpoint processing (+|-E)
    provided by Masatake YAMATO <yamato@redhat.com> with access to
    test systems provided by Peter Schiffer <pschiffe@redhat.com>.

    Corrected Linux command extraction for commands that include
    parentheses -- e.g., "(sd-pam)".

4.91    March 26, 2018

    A bug has been reported in the PTY endpoint processing of
    Linux lsof 4.90 by Peter Wu <peter@lekensteyn.nl>, making it
    necessary for me to release another revision of lsof.

    This revision applies two fixes that correct the Linux PTY
    endpoint processing bug. Masatake YAMATO <yamato@redhat.com>
    supplied the fixes.
2018-12-08 17:12:37 +00:00
triaxx
a35e5d7983 lsof: update MASTER_SITES and set LICENSE 2018-12-08 09:10:59 +00:00
tron
832790702f lsof: Use "bsdtar" instead of "gtar" during build
Remove unnecessary complex logic for optionally using "pax" as well
2018-10-27 11:46:04 +00:00
wiz
93b46879c7 Recursive bump for perl5-5.28.0 2018-08-22 09:43:40 +00:00
wiz
a1e4174a9c Follow some http redirects. 2017-08-16 20:21:03 +00:00
wiz
c357a6c7a6 Remove outdated master sites.
Remove NEW/ folder. We should only ever need / and /OLD/
2017-02-12 11:08:13 +00:00
rodent
1f163c15d9 * The July 7, 2015 revision (4.89): corrects an error I made in applying a
Solaris 11 patch; supports latest version of FreeBSD 11.0-CURRENT; adjusts
  for a missing bool typdef on i386 FreeBSD 10.0; fixes Linux UNIX socket
  search by name bug; adds Linux display of UNIX socket endpoint information;
  makes vm defintiions once again visible on FreeBSD 11.
2017-02-11 15:25:38 +00:00
agc
30b55df38e Convert all occurrences (353 by my count) of
MASTER_SITES= 	site1 \
			site2

style continuation lines to be simple repeated

	MASTER_SITES+= site1
	MASTER_SITES+= site2

lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint
accordingly.
2017-01-19 18:52:01 +00:00
wiz
73716d23de Bump PKGREVISION for perl-5.24.0 for everything mentioning perl. 2016-07-09 06:38:30 +00:00
bsiegert
19052cb90f Update lsof to 4.88. From David H. Gutteridge in PR pkg/50487.
Reduced to 50 the number of open file descriptors lsof
attempts to close while trying to protect itself from a
file descriptor exec() attack.  This limits the overhead
lsof incurs on systems that have large file descriptor
limits, yet provides sufficient open descriptors for the
library functions lsof calls.

Updated for changes in FreeBSD 10 with advice from Eygene
Ryabinkin <rea@freebsd.org>.  Taught Configure to recognize
FreeBSD 8.4.

Herein am noting that lsof for Solaris 10 or 11 is no longer
supported.  I no longer have test systems.  Some support is
still available from Casper Dik <Casper.Dik@oracle.com> and a
Solaris 11 patch he provided is included in this revision.

Initialized local variables in the Linux process_id() function.
Jia He <jiakernel@gmail.com> reported the problem.

Added support for FreeBSD 11.

Updated FreeBSD ZFS Configure stanza to supply a dummy
opt_kdtrace.h when needed.

Added tmpfs file system support for FreeBSD.

Since a test system is no longer available, dropped the
claim of FreeBSD 4.9 support.

Added the +|-E options for Linux.  -E displays endpoint info;
+E displays endpoint info and endpopint files.  Masatake YAMATO
<yamato@redhat.com> requested this support and suggested code
to implement it.

Fixed a Linux bug handling processes whose command includes a
non-printing character, particularly a NEWLINE character, and
clarified printing of single '\\' characters in command and
file names.  Stephane Chazelas <stephane.chazelas@gmail.com>
reported the problem.

Added support for Linux RDMA and CRYPTO protocal names and UNIX
socket type with code from Masatake YAMATO <yamato@redhat.com>.

Fixed field output to insure that the field descriptor field is
always selected, since it identifies the file set.  The bug was
reported by Gary Plewa <gary.m.plewa-1@lowes.com>.
2015-12-29 12:42:57 +00:00
wiz
2e65d464e8 Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.
2015-06-12 10:50:58 +00:00
tnn
5ead0787fc define dummy VFS_PROTOS(fsname) which is otherwise only available under _KERNEL.
lsof for legacy reasons includes sys/mount.h without _KERNEL but
msdosfs/msdosfsmount.h with _KERNEL.
Fixes:
/usr/include/msdosfs/msdosfsmount.h:255:12: error: a parameter list without types is only allowed in a function definition
VFS_PROTOS(msdosfs);
2015-02-26 17:31:23 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
hauke
71f677ad0a On SunOS, take care of the misconfigured ranlib call, following the
discussion in, and fixing, PR pkg/49034.

While we are here, make sure the group lsof setgids to is the one
owning /dev/kmem on SunOS ('sys').
2014-08-19 13:30:53 +00:00
wiz
7eeb51b534 Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
2014-05-29 23:35:13 +00:00
ryoon
c098f16246 Update to 4.87
Changelog:
4.85		September 27, 2011
		John Dzubera <Zube@CS.ColoState.EDU> kindly provided a patched
		Solaris 9 test system with the lgrp_root conflict and I was
		able to devise an automatic work-around for the conflict.  The
		special note in .../dialects/sun/machine.h was removed and
		the 17.28.1 FAQ entry was modified to reflect the update.

		Added a Solaris 11 work-around for a typedef problem with
		<sys/mutex.h>.  Carson Gaspar <carson@taltos.org> reported
		the problem and supplied the work-around.

		Added support for FreeBSD 7.4 and 8.2; tested on systems
		provided by Larry Rosenman <ler@lerctr.org>.

		Added support for 32 bit Solaris 11 lsof with mods supplied
		by Jan Wortelboer <J.H.P.Wortelboer@uva.nl>.

		Added Solaris 11 support for using an alternate genunix
		location.  Bill Goodridge <bill@its.brooklyn.cuny.edu>
		reported the alternate location.

		Added further Linux cross configuration support to lsof's
		Configure script.  The additional support was supplied by
		Grant Erickson <erick205@umn.edu>.  See the descriptions of
		the LINUX_* environmen  variables in 00XCONFIG for more
		information.  Tested lsof on Linux kernel 2.6.32 and picked
		some lint that surfaced during the test.

		Added fixes and changes for Apple Mac OS X 10.6, provided by
		Allan Nathanson <ajn@apple.com>.  Allan also provided a test
		system.

		Tested on FreeBSD 6.4 i386, using a test system provided by
		Terry Kennedy <TERRY@tmk.com>.  Updated for recent FreeBSD ZFS
		changes on an 8.2 amd64 test system also provided by Terry.

		Changed documentation to indicate FreeBSD 7.x is no longer
		supported, since I no longer have a test system.

		Made some changes to the lsof man page, suggested by Navid
		<evi1m4chine@googlemail.com>.

		Added compensation for Solaris 10 systems that have patch
		144488-10.  The patch requires that the new header file
		<sys/socket_proto.h> be included while _KERNEL is defined.
		Brett Bartick <Brett.bartick@nomura.com> reported the problem
		first, followed by Stuart Anderson <anderson@ligo.caltech.edu>.
		Michael Hocke <michael.hocke@nyu.edu> suggested a work-around
		which I refined to limit it to the specific Solaris 10 instance
		and then tested on a system provided by Charles Stephens
		<cfs@cowlabs.com>

		Added the +|-e option for Linux.  It exempts file systems
		named by path from function calls that might block in the
		kernel -- i.e., stat(2) and lstat(2), and when the +e form
		is used, readlink (2).  The new packager of lsof for the
		Linux Fedora and RHEL distributions, Peter Schiffer
		<pschiffe@redhat.com>, asked for the feature so it could
		be used with Clearcase file systems, whose implementation
		can block stat(2) calls.  I consider this feature very risky
		and easy to misuse -- e.g., specifying the file system as
		'/' would exempt all file systems.  I don't intend to
		propagate this option to any other UNIX dialect that lsof
		currently supports.

		Made FreeBSD 9 adjustment.

		Fixed a Linux bug that prevented the display of paths for
		abstact UNIX sockets.  Masatake Yamato <yamato@redhat.com>
		reported the bug and supplied a patch.

		Added compensation for the removal of RPC header files from
		GlibC 2.14 for Linux.  Marek Behun <kabel@blackhole.sk>
		reported the problem and supplied a patch.

		Added support for Linux Netlink protocol.  Masatake Yamato
		requested the support and supplied a patch.  Peter Schiffer
		<pschiffe@redhat.com> provided a test system.

		Corrected Linux UDP6-lite path.  The error was reported by
		Masatake Yamato and he also supplied a patch.

4.86		April 10, 2012
		Lsof for AIX is no longer supported on any versions of that
		operating system.

		Added information about the clang compiler for FreeBSD to the
		FAQ.

		Corrected an arg.c bug in the accumulation of +|-e option
		values, reported by Peter Schiffer <pschiffe@redhat.com>.
		This correction was supplied as a patch to revision 4.85.

		Enabled FreeBSD 10 support and tested it there on a system
		provided by Larry Rosenman <ler@lerctr.org>.

		Updated for latest Solaris 11 with patches supplied by
		Carson Gaspar <carson@taltos.org>.  Carson supplied a test
		system.

		Adjusted Linux file system search method to compensate for
		NFS mounts that have duplicate device numbers.  The problem
		was reported by Peter Schiffer <pschiffe@redhat.com>, who
		provided a test system.

		At the request of Peter Schiffer <pschiffe@redhat.com>, added
		support for Linux SCTP socket files.  Peter provided a test
		system.  Applied a warning patch supplied by Peter.

		Added support for Mac OS X 10.7 (Lion), provided by Allan
		Nathanson <ajn@apple.com>.  Allan also supplied a test
		system.

		Enabled FreeBSD 8.3 support and tested it there on a system
		provided by Larry Rosenman <ler@lerctr.org>.

		Corrected the FAQ information on ZFS with Solaris 10 after
		Steven Blackmon <stblackm@cisco.com> and Prasad Jampala
		<jampalp@cisco.com> pointed out that it was incorrect --
		i.e., outdated by the libctf changes at revision 4.83.

		Added code to handle a Linux NFS-mounted root.  Jia He
		<hejianet@linux.vnet.ibm.com> reported the need for this.

4.87		January 2, 2013
		Added an entry to 00FAQ about lsof behavior when the
		HASSECURITY and HASNOSOCKSECURITY options are defined.
		Carson Gaspar <carson@taltos.org> pointed out the need
		for this clarification.

		Added a work-around for a missing definition of mach_port_t
		in Darwin 9 (Mac OS/X 10.5.8).  The work-around was supplied
		by Jim Reid <jim@rfc1035.com>.

		Added support for Linux anon_inodefs, provided by Masatake
		YAMATO <yamato@redhat.com>.

		Documented a Solaris 9 and 10 portmap reporting problem
		(+M) in 00FAQ.  The problem was reported by Clint
		Roberts <Clint.Roberts@ttius.com>.  I have no solution
		to the problem, but discuss a possible work-around in
		the answer to this 00FAQ question: "Why doesn't lsof
		report portmap registrations for some Solaris versions?"

		Added FreeBSD support for the oldnfs and newnfs file system
		types.  Daniel Braniss <danny@cs.huji.ac.il> reported the
		need for the addition.

		Added ICMP socket support for Linux with code provided by
		Masatake YAMATO <yamato@redhat.com>.

		Corrected the reporting of process group ID for libproc
		versions of Mac OS X with a patch from Jeff Trawick
		<trawick@gmail.com>.  The patch has not been applied to
		Darwin kmem versions, because of little call for them
		and inadequate test system access.  The patch has been
		tested on Mac OS X 10.8 (Mountain Lion), courtesy of a
		test system provided by Allan Nathanson <ajn@apple.com>.

		Added thread support to those FreeBSD versions that have
		ki_numthreads in their kinfo_proc structure.  This also
		activates the -K option for those FreeBSD versions.  Jeff
		Trawick reported problems with FreeBSD lsof when threads
		are present and this addition solves those problems.

		Made changes to 00FAQ and the distribution, suggested by
		Warren Young <warren@etr-usa.com>.  The 00FAQ changes
		center on sections that discuss the -s option.  The changes
		to the distribution include a ChangeLog file that is either
		a pointer to or a copy of 00DIST, the distribution notes.

		Added support to FreeBSD for using the clang compiler.

		Added Linux support for using the getxattr() call to obtain
		socket protocol identification when it is can't be obtained
		from the /proc/net files that lsof examines.  Masatake YAMATO
		<yamato@redhat.com> developed the kernel patch to getxattr()
		and supplied the lsof patch.
2014-03-27 19:26:40 +00:00
wiz
d2ca14a3f1 Bump all packages for perl-5.18, that
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package

Like last time, where this caused no complaints.
2013-05-31 12:39:57 +00:00
asau
54c5cd959e Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-23 19:50:50 +00:00
wiz
8b5d49eb78 Bump all packages that use perl, or depend on a p5-* package, or
are called p5-*.

I hope that's all of them.
2012-10-03 21:53:53 +00:00
christos
bd81419c94 welcome to 4.84 2011-09-03 12:32:32 +00:00
tron
bd1d01bf26 Fix build problem caused by tmpfs changes in NetBSD-current. 2011-06-20 10:19:54 +00:00
jym
1373123a11 When we moved from fd_ofiles to a struct fdtab, the fd_ofiles became
an array of pointer (in struct fdtab) rather than a pointer of pointers.

Sadly for us, no, arrays and pointers are not equivalent from a memory
perspective: while pointers from/to another address space can
be consumed by kvm(3) to query for data in kernel space, arrays
are more tricky, especially when their content is copied in userland:
they are part of the copied struct.

Address of array members are only valid in their own address space,
in our case userland, which is (fortunately?) different from kernel space.
This breaks the various kvm_read() calls that query for file descriptor
information. Consequence: lsof(1) cannot print filedescriptor information
(starting from 5.99.14), and silently ignores the errors, as using
the userland fdtab (``dt'' variable) is not valid for kernel.

Fix that by using the ``fd_dt'' member of struct filedes, which stores
the address of the fdtab struct in kernel address space. Took a few hours
to understand what was going on with lsof(1), hmmm.

Luckily, fstat(1) uses the proper model (checked about 5min ago). Why
lsof(1) decided not to log an error on kvm_read() is... a good question.

Bump rev.
2011-03-21 00:22:02 +00:00
tez
62b790fd9b fix build on FreeBSD 2010-05-14 19:01:11 +00:00
sbd
423e88e245 Update lsof to 4.83
Release Notes:

4.83            January 18, 2010
		Converted Solaris 10 and above ZFS support to use the CTF
		debugger library, libctf.  Code was supplied by Robert
		Byrnes <Robert.Byrnes@deshaw.com>.

		Corrected a typo in the testing of the LINUX_HASSELINUX
		environment variable in the Configure script.  The error
		was reported by Mike Frysinger <vapier@gentoo.org>.
		At Mike's request made Configure script accept LSOF_RANLIB
		(ranlib command), LSOF_CFGF (additional configuration flags)
		and LSOF_CFGL (additional library specifications) from the
		environment.

		Enabled complilation of Solaris 10 lsof after a recent Sun
		patch which changed the PC file system's structure. Peter
		Vernam <pvernam@draper.com> reported the problem and helped
		with the fix.

		Made the sort of configuration CFLAGS in the CkTestDB
		script impervious to locale settings.

		Ported to Solaris 11, using a test system kindly provided
		by David Day <dday76@gmail.com>.

		Adjusted to the disappearance of <nfs/rpcv2.h> in FreeBSD
		8.0-BETA1.

		Changed Solaris node type lookup to a hashed method and
		added some ability for it to handle duplicate vnodeop names
		in /dev/ksyms.

		Updated for FreeBSD 9.0-CURRENT.  Andrzej Tobola
		<ato@iem.pw.edu.pl> provided a test system.  Extends the
		fix to FreeBSD 6.0 and above via a Configure test and a
		compile-time definition.  The need for the extension was
		reported by Erik Trulsson <ertr1013@student.uu.se>>

		Made corrections to FAQ typographical errors, suggested
		by Josh Soref <timeless@gmail.com>.

		Added __UCLIBC__ test to Linux dlsof.h so lsof would compile
		on an Intel ARM XScale processor.  The addition was provided
		by Doug Kehn <rdkehn@yahoo.com>.

		Added test for <utmpx.h> to FreeBSD configuration.  Improved
		its use in lsof.h.  The changes were supplied by Martin Wilke
		<miwi@FreeBSD.org>.

4.82            March 25, 2009
		Corrected an over-zealous exclusion test that caused
		lsof to report nothing when it was given no arguments
		and built with HASSECURITY and HASNOSOCKSECURITY enabled.
		Joshua Kinard <kumba@gentoo.org> reported the bug and
		supplied information for reproducing it.

		Based on a report from Dan Trinkle <trinkle@cs.purdue.edu>
		corrected use of <sys/utsname.h> for 32 bit Solaris 10
		and above compilations.  Simultaneously eliminated a
		casting complaint in arg.c and updated Configure to use
		the appropriate 64 bit compilation option (-xarch=v9 or
		-m64) with the Solaris Sun C compiler.

		Updated for FreeBSD 7.1-PRERELEASE with information
		supplied by Larry Rosenman <ler@lerctr.org>.

		Updated the Darwin libproc sources with changes from
		Allan Nathanson <ajn@apple.com>.  Tested them on a iMac
		mini, provided by Apple Inc.  Allan also provided man
		page corrections.

		Updated the FreeBSD Makefile to use the ${MAKE} variable
		for ZFS dnode2.c module compilation, based on a suggestion
		from Alexis Ballier <aballier@gentoo.org>.

		Improved the Solaris VxFS library location test, based on a
		suggestion from Jason Fortezzo <fortezza@mechanicalism.net>.
		Jason tested the change.

		Updated Solaris 10 ZFS support for ZFS version 4 and ZFS
		pool version 10, using a test system kindly provided by
		Vladislav Nespor <vladislav.nespor@id.ethz.ch>.  Renata
		Maria Dart <renata@slac.stanford.edu> tested on ZFS
		version 4, verifying that the update works there, too.
		(ZFS pool version 10 is apparently the ZFS version shipped
		with the 10/08 update to Solaris.  The original ZFS
		support targeted ZFS version 3.)

		I still consider ZFS support in Solaris lsof a hack,
		because it depends on a znode structure definition that
		I developed using dbx.  Sun is remiss in not distributing
		the ZFS header files used to build the distributed kernel.

		Because of the znode structure definition hack, I can't
		guarantee that lsof ZFS support will work for any other
		versions of ZFS.

		Solaris 10: adjusted to a change in the way devices are
		stored in the kernel; fixed a problem in zone handling;
		and added rudimentary sharedfs support.  Carson Gaspar
		<carson@taltos.org> reported the device number problem,
		provided a test system, and tested the changes.  Peter
		Vines <psv2b@eservices.virginia.edu> reported the zone
		handling problem and tested the fix.

		Adapted to FreeBSD 8.0-CURRENT changes in device number
		computation.  Problem was reported by Erwin Lansing
		<erwin@FreeBSD.org>.  Larry Rosenman <ler@lerctr.org>
		provided a test system.

		Corrected Solaris Configure test for appropriate VxFS
		library when using gcc to compile lsof.

		Updated for loss of KAME IPv6 FreeBSD accommodations.

		Adapted to FreeBSD 7.2.  Made Configure script recognized
		FreeBSD 6.3.

4.81            October 21, 2008
		Updated the Darwin libproc sources with changes from
		Allan Nathanson <ajn@apple.com>.  Tested them on a iMac
		mini, provided by Apple Inc.

		Changed dummy declarations in library source files to
		eliminate complaints about unused variables and empty
		object files.  This change may not work on dialects I
		can no longer test; it has been tested on some versions
		of AIX, Darwin, FreeBSD, Linux and Solaris.

		At the request of Hal Brooks <hal@uga.edu> added support
		for Linux /proc/net/packet files.  Hal tested it.

		Added socket file only performance enhancements to Linux
		and PSTAT-based HPUX lsof.

		Added htonl call around improper usage of INADDR_LOOPBACK;
		report from an Apple engineer forwarded by Allan Nathanson
		<ajn@apple.com>.

		Adjusted for FreeBSD-8.0 change in device number handling.
		The adjustment should work for FreeBSD 5 and above, should
		the 8.0 change be propagated downward.  The problem was
		reported by Pav Lucistnik <pav@FreeBSD.org>.  An updated
		test system was provided by Erwin Lansing <erwin@FreeBSD.org>.

		Reduced AIX support to version 5.3, since test systems with
		older versions are no longer available to me.

		At the request of Marjo F. Mercado <mmercado@xceedium.com>
		and Phil Shin <pshin@xceedium.com> applied some speed
		improvements to lsof, particularly when the files of
		interest are /Internet files -- i.e., selected with lsof's
		-i" option.  Added a two new options to assist the
		improvements: 1) "-c^<command>" to tell lsof to exclude the
		named command(s); and 2) "-stcp|ud>:[^]state' to tell lsof
		to include in its reporting or exclude ('^') from its
		reporting Internet files in the named states (e.g., LISTEN,
		^CLOSE_WAIT, IDLE, etc.)  For the most part these changes
		apply only to AIX, Darwin, FreeBSD, PSTAT-based HP-UX, Linux
		and Solaris, since those are the only places I could test
		them.  They are controlled by the HASTCPUDPSTATE definition
		in each dialect's machine.h header file.  Marjo and Phil
		provided HP-UX 11.23 and 11.31 test systems.

		Fixed a stat(2) problem on HP-UX 11.31 while testing the
		speed improvements.

		Adjusted for kernel header file changes in FreeBSD
		8.0-CURRENT.  Larry Rosenman <ler@lerctr.org> provided
		a test system.

		Added a warning for Solaris systems where VxFS node info
		can't be obtained from the VxFS utility library.  The
		warning was requested by Tom Matthews <Tom.MATTHEWS@rbs.com>.

		Corrected mishandling of file system path name arguments
		that have trailing slashes, except, of course, the root
		file system, "/".  Allan Nathanson <ajn@apple.com> reported
		the bug.

4.80            May 12, 2008
		Updated for a FreeBSD 7.0 and above byte level locking
		change.  The problem was reported by Conrad J. Sabatier
		<conrads@cox.net>, who helped test the update.  Wesley
		Shields <wxs@FreeBSD.org> provided an 8.0-CURRENT test
		system.

		Propagated the FreeBSD 7.0 and above locking changes to
		FreeBSD 6.x, based on a report from Edwin Groothuis
		<edwin@FreeBSD.org>.

		Added warnings for unsupported dialects or versions.

		Added Linux support for the UDPLITE protocol.  Eric
		Dumazet <dada1@cosmosbay.com> supplied a patch.

		Added a missing quote to the Configure script's
		FreeBSD stanza.

		Added a usage.o rule to the HP-UX PSTAT-based
		Makefile.  I mistakenly deleted the rule at revision
		4.79.  The missing rule was reported by Kawaljeet Kaur
		<kawaljeet.malviya@gmail.com> who tested the corrected
		Makefile.

4.79            April 15, 2008

		**************** IMPORTANT NOTE ******************
		*                                                *
		* Lsof support has been reduced to the following *
		* dialects: AIX, FreeBSD, Linux and Solaris, and *
		* only in selected versions of those dialects.   *
		* The selected versions are listed in this file  *
		* and in other lsof documentation.               *
		*                                                *
		* I have made this move because of retirement    *
		* and because I no longer have many test systems *
		* available to me.                               *
		*                                                *
		* Vic Abell                                      *
		*                                                *
		**************************************************

		Fixed a Solaris VXFS permission problem when accessing
		the VXFS inode offsets.  The bug was reported by
		Gregory A. Ivanov <ivga@mts.ru>.  Gregory tested the
		fix.

		Moved an #include <string.h> later in FreeBSD dlsof.h
		to enable compilation on recent FreeBSD releases.  The
		change was supplied by Roy Marples <uberlord@gentoo.org>.

		Improved Linux /proc file stream reading speed by applying
		an expanded version of a patch from Eric Dumazet
		<dada1@cosmosbay.com> that allocates a page size buffer
		to each stream.  Improved TCP, TCP6, UDP and UDP6 hashing
		by determining the hash bucket count from the /proc/net
		sockstat and sockstat6 files.  The improvement was
		suggested by Eric and he provided sample code.  Eric also
		tested both improvements.

		Modified Configure script to build lsof on FreeBSD
		6.2.  Tested it on a system provided by Larry Rosenman
		<ler@lerctr.org>.

		Fixed a Linux maps file processing bug that prevented path
		names from having an embedded colon.  James Lingard
		<jchl@arastra.com> reported the bug and helped with its
		fix.

		Based on reports from Eric Dumazet and Samuel Thibault
		<samuel.thibault@ens-lyon.org> added support for the
		Linux 2.6.22 kernel's /proc/<PID>/fdinfo files -- i.e.,
		file offset and flags.  Samuel Thibault provided a test
		system.

		Fixed a Linux UNIX socket memory leak, reported by
		Philip Shin <pshin@xceedium.com>.  Phillip supplied the
		fix.

		With generous assistance from HP added support for an HP-UX
		11.23 patch that makes TLI/XTI socket address information
		available.

		Fixed a header file problem for FreeBSD 6.2 on the Alpha
		architecture.  The problem was reported by Pekka Honkanen
		<phonkane@cc.hut.fi>.  Pekka tested the fix.

		Based on a report and using suggested fixes from Karel Zak
		<kzak@redhat.com>, made these changes to Linux lsof: corrected
		a getpidcon() error message; insured that inode numbers are
		handled correctly for their unsigned long long type; and
		improved SELinux handling.  At the request of Alon Bar-Lev
		<alonbl@gentoo.org> added the LINUX_HASSELINUX environment
		variable to enable or inhibit SElinux support unconditionally.

		Updated Configure for FreeBSD 8.0-CURRENT and tested lsof on
		AMD64 there.

		Added a patch provided by Oles Hnatkevych
		<don_oles@able.com.ua> for FreeBSD systems where the root
		file system is on a CD9660 device.

		Added compensation for the disappearance of FMARK and FDEFER
		from the FreeBSD 8.0-CURRENT <sys/file.h>.

		Updated FreeBSD lsof with ZFS support.  Larry Rosenman
		<ler@lerctr.org>, Erwin Lansing <erwin@FreeBSD.org>, Wesley
		Shields <wxs@atarininja.org> and Dmitry Morozovsky
		<marck@rinet.ru> provided test systems.

		Fixed a socket file identification problem reported by
		Pavol Rusnak <stick@gk2.sk>.  Pavol also reported the
		cause of the problem.

		Added the ability to format the repeat mode marker line
		with strftime(3), where the dialect supports the
		localtime(3) and strftime(3) C library functions.  The
		addition was suggested by Mike Depot <mdepot@comcast.net>,
		who also tested it.  The addition required creating a new
		main lsof source module, util.c, that contains functions
		whose compilation conflicts with the general header file
		tree defined by lsof.h and dlsof.h.

		Based on reports from Andrei V. Lavreniyuk
		<andy.lavr@reactor-xg.kiev.ua> and Pav Lucistnik
		<pav@FreeBSD.org> updated the FreeBSD 7.0 and above
		file lock handling to use new locking structures.  The
		update requires a terrible hack to get a definition for
		the lock owner structure from a kernel source module
		into a local lsof header file.
2010-05-10 08:21:41 +00:00
sbd
4970daf7e6 Update the master sites 2010-04-30 07:30:28 +00:00
sbd
f22ad99c49 Enable the tests, and add an "opt" targent so "make opt" can be used to run
the optional tests.
2010-04-30 07:27:16 +00:00
sbd
b184cf518d Move lsof from using the LSOF_MORE_SECURE and LSOF_LESS_SECURE_SOCKETS to
using pkg options lsof-more-secure and lsof-less-secure-sockets.

Also change the way the option are applied, the same way that the Customize
script does and it works on all supported dialects.
2010-04-30 06:53:06 +00:00
wiz
a4eec2f4cc Reset maintainer, developer lost his commit bit. 2010-03-21 16:29:38 +00:00
apb
dcaf5576f4 Make this build again on netbsd-current. Bump PKGREVISION to 5. 2009-08-11 20:53:06 +00:00
zafer
8f63dd887a revert to previous. 2009-05-30 11:10:56 +00:00
zafer
0cec315758 update master site. clean up. remove non-working mirrors. 2009-05-30 01:55:00 +00:00
apb
2b54c598f9 When configuring on NetBSD:
* Prefer /dev/ksyms, then getbootfile(), then fall back to /netbsd as the
  kernel name.
* Recognise NetBSD versions 5.0* and 5.99*
* When the NetBSD version is unrecognised, don't treat it like 1.6;
  treat it like either 1.2 (if it's really old) or 5.0 (if it's too new).
Bump PKGREVISION to 4
2009-05-01 12:56:50 +00:00
tnn
9bef4463fc Convert to user destdir (use SPECIAL_PERMS) 2008-05-29 16:52:59 +00:00
joerg
3d8ef5a52d Second round of explicit pax dependencies. As reminded by tnn@,
many packages used to use ${PAX}. Use the common way of directly calling
pax, it is created as tool after all.
2008-05-26 02:13:14 +00:00
christos
6f251da065 make this work again. 2008-05-17 23:53:29 +00:00
apb
2194d5bee6 In post-extract, adjust the regexp used to search for an MD5 line in
README.${DISTNAME} so that it no longer matches some unwanted extra
lines.  Also make it an error for the MD5 to be wrong.
2008-04-26 11:54:24 +00:00
tron
78fc0ec605 Declare missing tools and fix interpreter path in Perl scripts.
Bump package revision because of these fixes.
2007-12-17 12:15:59 +00:00
veego
3f3c24790a - Don't hardcode the MFSNAMELEN length, inspired by commits from
Christos (patch-ae and patch-af). Fix PR 36680
- Define NETBSD_SYS in the pkgsrc Makefile so it works if NETBSDSRCDIR is
  not pointing to a default location and thus some featues, like ptyfs
  support were disabled
- Update the line numbers in patch-aa
- Add tmpfs support (patch-ad, patch-af and patch-ag)
- Update the NetBSD versions in Configure otherwise NETBSDV would fall
  back to 1006000 and so at least one feature was not found, the PFSfd
  procfs support (patch-ag)
- Bump pkg revision for new features (normaly I wouldn't have bumped the
  version if it were only to fix a -current compile, because the version
  also includes the kernel version)
2007-08-14 19:59:17 +00:00