From 3419b5996983a46b036e9c9d58ee1d0f6cb16e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 7 Jun 2023 09:59:36 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 lsof revision 0ba220f882ab529fc44ce94eda10f3ce --- .gitattributes | 23 ++ lsof-4.98.0.tar.gz | 3 + lsof.changes | 667 +++++++++++++++++++++++++++++++++++++++++++++ lsof.spec | 73 +++++ 4 files changed, 766 insertions(+) create mode 100644 .gitattributes create mode 100644 lsof-4.98.0.tar.gz create mode 100644 lsof.changes create mode 100644 lsof.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/lsof-4.98.0.tar.gz b/lsof-4.98.0.tar.gz new file mode 100644 index 0000000..e414cbd --- /dev/null +++ b/lsof-4.98.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bcd094ac1a7ecf81bf6f8b00148ea8588e8d96c5c8b964256120338fad80ed6 +size 4997120 diff --git a/lsof.changes b/lsof.changes new file mode 100644 index 0000000..51c05ce --- /dev/null +++ b/lsof.changes @@ -0,0 +1,667 @@ +------------------------------------------------------------------- +Tue May 23 11:10:46 UTC 2023 - Danilo Spinella + +- Repacked tarball to remove proprietary code in dialects/uw/uw7/sys/fs + +------------------------------------------------------------------- +Sun Jan 22 18:20:03 UTC 2023 - Andreas Stieger + +- lsof 4.98.0: + * Fix two potential null pointer access bug when gethostbyname2() + returns an empty address list + * Fix handling of empty command name + * Add -H switch to print human readable size, e.g. 123.4K + +------------------------------------------------------------------- +Wed Jan 18 09:31:01 UTC 2023 - Dirk Müller + +- update to 4.97.0: + * Remove support because the os is no longer updated for + more than 10 years + * Remove support because the os is no longer updated + for more than 20 years + * Add experimental build system based on Autotools + * Fixed LTsock testing on darwin + * Remove NEW and OLD folders + * Fix FreeBSD testcases + * Rewrite documentation and publish at https://lsof.readthedocs.io/ + +------------------------------------------------------------------- +Tue Dec 27 12:08:16 UTC 2022 - Andreas Stieger + +- update to 4.96.5: + * Avoid C89-only constructs is Configure +- drop format.patch, now upstream + +------------------------------------------------------------------- +Tue Nov 22 14:08:48 UTC 2022 - Andreas Schwab + +- format.patch: Use correct scanf/printf format for uint64_t +- Build with %{optflags} + +------------------------------------------------------------------- +Sun Oct 30 10:51:21 UTC 2022 - Andreas Stieger + +- update to 4.96.4 + * fix hash functions used for finding local tcp/udp IPCs + * Show copyright notice in --version output. + * Avoid some easy collissions for udp/udp6 sockets when hashing + * Changing the number of ipcbuckets to 4096 + * obtain correct information of memory-mapped file. +- drop remove-hostname.patch now upstream + +------------------------------------------------------------------- +Mon Jul 4 13:53:11 UTC 2022 - Danilo Spinella + +- Update remove-hostname.patch with the upstream version + +------------------------------------------------------------------- +Fri May 20 09:55:56 UTC 2022 - Danilo Spinella + +- Fix hostname in reproducible builds, bsc#1199709 + * remove-hostname.patch + +------------------------------------------------------------------- +Sat May 7 14:38:57 UTC 2022 - Dirk Müller + +- update to 4.95.0: + * Update perl scripts for the past few decades of progress + * Drop LSOF_CCDATE across all dialects to ensure reproducible builds + * Fix FD field description. + * Adjust alignment of buffer passed to stat(). + * Clean up source code and documents. + - remove trailing whitespace, + - fix some issues in scripts found through shellcheck, and + - fix spelling + * man page: fix hyphen issues + * Fix broken LSOF_CFLAGS_OVERRIDE. + * [linux] Remove sysvlegacy function. + * [linux] use close_range instead of calling close repeatedly + * Add -Q option for adjusting exit status when failed to find a + search item (#129) +- drop lsof-no-build-date-etc.patch (obsolete) + +------------------------------------------------------------------- +Thu Jul 8 16:28:33 UTC 2021 - danilo.spinella@suse.com + +- Update to 4.94.0: + * Fix various bugs + * Display more information for eventfd and other objects +- Remove lsof-glibc-linux-5.0.patch as it has been fixed upstream +- Remove lsof_4.81-include.patch as it is not needed anymore +- Remove lsof_4.81-perl.patch as this change is now done inside the spec file +- Remove lsof_4.81-fmt.patch as it is not needed anymore + + +------------------------------------------------------------------- +Fri Sep 11 20:40:47 UTC 2020 - Dirk Mueller + +- update to 4.93.2: + The maintainership is switched from Vic to lsof-org + Made FreeBSD 13 adjustment. + Fix a typo causing a build error. + Fix a potential memory leak. + [linux] use tirpc for rpc if libc doesn't provide rpc.h. + Fix a typo in man page. + fix memory leaks detected by valgrind about unix endpoint + information. + Update the description about -fg and -fG options on linux. + Fix a broken symbolic link. + Update the version number embedded in lsof executable. +- lsof-no-build-date-etc.patch: refreshed against newer base + +------------------------------------------------------------------- +Wed Apr 10 14:30:38 UTC 2019 - Dominique Leuenberger + +- Add lsof-glibc-linux-5.0.patch: Fix build with + linux-glibc-devel-5.0 by including sysmacros.h as needed (bsc#1181571) + +------------------------------------------------------------------- +Tue Mar 27 09:46:50 UTC 2018 - kstreitova@suse.com + +- Update to version 4.91 + * This revision applies two fixes that correct the Linux PTY + endpoint processing bug [bsc#1082900] + +------------------------------------------------------------------- +Mon Feb 19 13:07:42 UTC 2018 - kstreitova@suse.com + +- Update to version 4.90 [bsc#1081562] + * Taught the Configure script to create a dummy opt_random.h + for FreeBSD systems whose includes it. + * Added support for the FreeBSD ZFUSE file system. + * Corrected the quoting in a Darwin putchar() statement in the + dfile.c source file. + * 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. + * Enhanced -K option with the form "-K i" to direct lsof to + (i)gnore tasks. Linux task reports now include both + process and task command names, making lsof's "-c " + option work correctly. + * Added a patch to prevent NFS blocking in Linux + * Installed a FreeBSD patch that prevents examining a TCP state + structure during a race condition. + * Updated FreeBSD for new UFS inode structure that lacks an i_dev + member in the most recent 12.0-CURRENT. + * Added "#define KLD_MODULE" to dlsof.h and dnode2.c to prevent + from generating an "ARM_NARCH is 0" error. + This is needed so lsof can access kernel structures. + * Added recognition of the FreeBSD 11 file system name "nullfs". + * Added a patch 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 . + * Added performance enhancement that uses the FreeBSD closefrom() + and dup2() C library functions when available. + * 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 + * Added patch to dlsof.h that avoids a _KERNEL conflict with + bzero. + * Corrected test library to handle 64 bit FreeBSD device numbers. + * Added #defines for FreeBSD 12, src r324225 + * Incorporated Linux pseudoterminal endpoint processing (+|-E) + * Corrected Linux command extraction for commands that include + parentheses -- e.g., "(sd-pam)". +- remove lsof_4.89-nfs_hanging.patch that was applied upstream + +------------------------------------------------------------------- +Mon Aug 29 14:19:53 UTC 2016 - kstreitova@suse.com + +- modify lsof_4.89-nfs_hanging.patch and add a check for HasNFS + variable as HasNFS may already have been set to 2 in the + readmnt() function [bsc#995061] + +------------------------------------------------------------------- +Fri Aug 26 12:33:49 UTC 2016 - kstreitova@suse.com + +- add lsof_4.89-nfs_hanging.patch to prevent 'lsof -b' from hanging + when NFS server is unavailable [bsc#995061] + +------------------------------------------------------------------- +Thu May 5 09:34:09 UTC 2016 - kstreitova@suse.com + +- submit utilities/lsof package to SUSE:SLE-12-SP2:GA [fate#320541] + +------------------------------------------------------------------- +Mon May 2 16:10:30 UTC 2016 - kstreitova@suse.com + +- Update to version 4.89 + * Applied correction from Casper Dik to + his patch for Solaris 11 that I applied incorrectly in revision + 4.88. + * Updated for latest version of FreeBSD 11.0-CURRENT. + * Compensated for a missing FreeBSD 10.0 typedef of bool on the + i386 architecture. Allen Hewes provided + a test system. Andrey Chernov provided + useful advice. + * Improved tests/Add2TestDB script with a patch from Peter + Schiffer . Added patches from Peter to + eliminate Linux gcc warnings. Updated Lsof.8 with improvements + supplied by Bjarni Ingi Gislason . + * Changed FreeBSD global CFLAGS extraction per Terry Kennedy + . Also made sure -DNEEDS_BOOL_TYPEDEF is + #define'd when the resulting CFLAGS doesn't contain it. Terry + reported that need. + * Improved Linux test for tcp.h in response to a report from + Cato Auestad . Cato did the testing. + * Fixed Linux UNIX socket search by name bug reported by + Stephane Chazelas . + * Added Linux display of UNIX socket endpoint information with + code provided by Masatake YAMATO . Peter + Schiffer provided a test system. + * Insured that type definitions from were again made + visible to lsof on FreeBSD 11 after a system header file change + hid them. +- use spec-cleaner to clean specfile + +------------------------------------------------------------------- +Sun Mar 1 12:15:34 UTC 2015 - p.drouand@gmail.com + +- Update to version 4.88 + * 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. Taught Configure to recognize + FreeBSD 8.4. + * lsof for Solaris 10 or 11 is no longer supported. + * Initialized local variables in the Linux process_id() function. + * 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. + * 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. + * Added support for Linux RDMA and CRYPTO protocal names and UNIX + socket type + * Fixed field output to insure that the field descriptor field is + always selected, since it identifies the file set. +- Spec file cleanup + +------------------------------------------------------------------- +Mon Mar 26 14:59:31 UTC 2012 - cfarrell@suse.com + +- license update: Zlib + lsof license is most similar to Zlib (also use SPDX format) + +------------------------------------------------------------------- +Tue Aug 16 13:52:59 UTC 2011 - puzel@novell.com + +- repack the tarball to remove legally problematic files + (bnc#705143) + +------------------------------------------------------------------- +Mon Jun 27 16:17:12 CEST 2011 - ro@suse.de + +- change perl reference to /usr/bin/perl which actually exists + +------------------------------------------------------------------- +Thu Jun 9 11:22:04 UTC 2011 - k0da@opensuse.org + +- perl4 refference causes missing perl4 dependency + +------------------------------------------------------------------- +Wed Jan 12 10:51:34 UTC 2011 - puzel@novell.com + +- portability fixes (by Pascal) + +------------------------------------------------------------------- +Sun Aug 29 18:40:53 UTC 2010 - cristian.rodriguez@opensuse.org + +- Do not include build host specific information including + date and compilation time to make build-compare happy + +------------------------------------------------------------------- +Tue Aug 17 15:58:50 UTC 2010 - puzel@novell.com + +- update to lsof 4.84 + * corrects a man page nroff command error + * recognizes FreeBSD 7.3 + * adds improved task support, initially for Linux + +------------------------------------------------------------------- +Fri Apr 9 10:40:17 UTC 2010 - puzel@novell.com + +- update to lsof 4.83 + * corrects an over-zealous test that causes lsof to produce no + ouput when the HASSECURITY and HASNOSOCKSECURITTY have been + specified at lsof build time + * fixes a typo with the LINUX_HASSELUNIX Configure variable + * accepts LSOF_RANLIB from the environment + * added Linux test for __UCLIBC__ + +------------------------------------------------------------------- +Fri Feb 19 12:02:54 UTC 2010 - coolo@novell.com + +- fix 64bit issue (gcc 4.5) + +------------------------------------------------------------------- +Sun Dec 20 17:22:37 CET 2009 - jengelh@medozas.de + +- enable parallel build + +------------------------------------------------------------------- +Mon Jan 19 10:56:10 CET 2009 - prusnak@suse.cz + +- updated to 4.81 + * Updated the Darwin libproc sources with changes from + Allan Nathanson . 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 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 + . + * 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 . An updated + test system was provided by Erwin Lansing . + * 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 + and Phil Shin 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^" 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 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 . + * Corrected mishandling of file system path name arguments + that have trailing slashes, except, of course, the root + file system, "/". Allan Nathanson reported + the bug. + +------------------------------------------------------------------- +Mon Sep 8 17:10:32 CEST 2008 - prusnak@suse.cz + +- updated to 4.80 + * Updated for a FreeBSD 7.0 and above byte level locking + change. The problem was reported by Conrad J. Sabatier + , who helped test the update. Wesley + Shields 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 + . + * Added warnings for unsupported dialects or versions. + * Added Linux support for the UDPLITE protocol. Eric + Dumazet 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 + who tested the corrected + Makefile. + +------------------------------------------------------------------- +Wed Aug 20 15:38:29 CEST 2008 - prusnak@suse.cz + +- enabled SELinux support [Fate#303662] + +------------------------------------------------------------------- +Tue Apr 22 14:22:59 CEST 2008 - prusnak@suse.cz + +- updated to 4.79 + * improved Linux /proc file stream reading speed + * improved TCP, TCP6, UDP and UDP6 hashing by determining + the hash bucket count from the /proc/net sockstat and sockstat6 + files + * fixed a Linux maps file processing bug that prevented path names + from having an embedded colon + * added support for the Linux 2.6.22 kernel's /proc//fdinfo + files - i.e. file offset and flags + * fixed a Linux UNIX socket memory leak + * corrected a getpidcon() error message + * insured that inode numbers are handled correctly for their + unsigned long long type + * improved SELinux handling + * fixed a socket file identification problem + * added the ability to format the repeat mode marker line + +------------------------------------------------------------------- +Thu Jul 26 15:02:59 CEST 2007 - prusnak@suse.cz + +- update to 4.78 + * simplified stat() and lstat() usage + * avoid processing /proc//maps file entries with zero device + and node numbers + * enabled ZFS support + +------------------------------------------------------------------- +Fri Oct 20 18:30:28 CEST 2006 - mjancar@suse.cz + +- update to 4.77 + * lots of small bugfixes +- drop lsof_4.76_src-return.diff (included upstream) + +------------------------------------------------------------------- +Wed Jan 25 21:38:03 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Sun Jan 15 17:44:54 CET 2006 - schwab@suse.de + +- Don't strip binaries. + +------------------------------------------------------------------- +Wed Jan 11 13:35:18 CET 2006 - mjancar@suse.cz + +- update to 4.76 + +------------------------------------------------------------------- +Tue Aug 2 18:48:59 CEST 2005 - mjancar@suse.cz + +- update to 4.75 + +------------------------------------------------------------------- +Mon Feb 7 20:30:50 CET 2005 - mjancar@suse.cz + +- update to 4.74 + +------------------------------------------------------------------- +Fri Aug 06 18:27:40 CEST 2004 - mjancar@suse.cz + +- update to 4.72 + +------------------------------------------------------------------- +Mon Apr 19 16:30:32 CEST 2004 - mjancar@suse.cz + +- add return to nonvoid functions + +------------------------------------------------------------------- +Thu Feb 26 14:48:21 CET 2004 - mjancar@suse.cz + +- uopdate to 4.70 + +------------------------------------------------------------------- +Wed Nov 5 12:41:48 CET 2003 - ro@suse.de + +- fix make test as non-root + +------------------------------------------------------------------- +Thu Oct 30 17:47:27 CET 2003 - mjancar@suse.cz + +- update to 4.69 +- no root for build + +------------------------------------------------------------------- +Thu Jul 24 11:52:19 CEST 2003 - mjancar@suse.cz + +- update to 4.68 +- kill obsolete patches + * lsof_4.67_src-unescape.diff + * lsof_4.68_src-uninitialized.diff + +------------------------------------------------------------------- +Thu Jun 12 16:12:17 CEST 2003 - mjancar@suse.cz + +- unescape paths from /proc/mounts (Bug #27321) +- fix mising prototypes and uninitialized variables + +------------------------------------------------------------------- +Tue Apr 22 13:48:50 CEST 2003 - vbobek@suse.cz + +- updated to version 4.67 + * added the "+c " option to enable optional changing + of the COMMAND column output maximum width + * many other fixes + +------------------------------------------------------------------- +Mon Feb 17 10:30:15 CET 2003 - vbobek@suse.cz + +- updated to version 4.66 + +------------------------------------------------------------------- +Tue Dec 03 14:45:05 CET 2002 - jderfina@suse.cz + +- upgrade to version 4.65 + +------------------------------------------------------------------- +Thu Jul 11 18:01:27 CEST 2002 - nadvornik@suse.cz + +- updated to 4.64 + +------------------------------------------------------------------- +Tue Mar 5 13:07:11 CET 2002 - nadvornik@suse.cz + +- fixed permissions of man page + +------------------------------------------------------------------- +Mon Nov 26 17:35:40 CET 2001 - nadvornik@suse.cz + +- update to 4.60: + - adds an IP version selector to the -i parameters + - adds better handling of IPv6 selectors + - makes safer lsof's ending of its child process + - adds options to affect -v output +- added example scripts to documentation + +------------------------------------------------------------------- +Tue Aug 14 16:19:46 CEST 2001 - nadvornik@suse.cz + +- update to 4.57 + +------------------------------------------------------------------- +Thu Mar 8 12:08:09 CET 2001 - nadvornik@suse.cz + +- update to 4.55 + +------------------------------------------------------------------- +Sun Dec 3 15:17:46 CET 2000 - smid@suse.cz + +- new version 4.52 + +------------------------------------------------------------------- +Wed Oct 4 11:19:49 CEST 2000 - smid@suse.cz + +- new version 4.51 + +------------------------------------------------------------------- +Wed Apr 5 15:14:33 CEST 2000 - smid@suse.cz + +- upgrade to 4.49 +- BuildRoot added + +------------------------------------------------------------------- +Thu Jan 20 15:17:23 CET 2000 - aj@suse.de + +- /usr/man -> /usr/share/man + +------------------------------------------------------------------- +Thu Nov 4 14:32:37 CET 1999 - ro@suse.de + +- update to 4.46 + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Wed Sep 1 17:51:45 CEST 1999 - ro@suse.de + +- update to 4.45 + +------------------------------------------------------------------- +Tue Mar 9 14:28:51 MET 1999 - ro@suse.de + +- force LSOF_VERS=22003 + +------------------------------------------------------------------- +Tue Mar 9 01:48:16 MET 1999 - ro@suse.de + +- use proc-base version for STABLE, now that we're 2.2-based + +------------------------------------------------------------------- +Fri Mar 5 01:30:43 MET 1999 - ro@suse.de + +- for BETA: use proc version +- changed proc/dlsof.h to work with glibc-2.1 + +------------------------------------------------------------------- +Fri Feb 26 22:56:48 MET 1999 - florian@suse.de + +- add security patches + +------------------------------------------------------------------- +Thu Dec 10 16:04:58 MET 1998 - ro@suse.de + +- disabled proc-version in Configure + +------------------------------------------------------------------- +Thu Dec 10 15:04:12 MET 1998 - ro@suse.de + +- update to 4.38 +- added rh-patch for kmem/dlsof.h +- compile as 2.0 (kmem) version + +------------------------------------------------------------------- +Tue Sep 22 17:19:32 MEST 1998 - ro@suse.de + +- update to 4.37 / for now only the proc version works with glibc + but that needs a running 2.1 kernel !!!! + +------------------------------------------------------------------- +Wed Jun 24 15:48:34 MEST 1998 - ro@suse.de + +- update to 4.31 using diff from jurix/source + +---------------------------------------------------------------------------- +Thu Oct 9 19:01:21 MEST 1997 - florian@suse.de + + +- update to version 4.16 + + +---------------------------------------------------------------------------- +Wed Oct 8 17:40:51 MEST 1997 - max@suse.de + + +- changed to rpm format and eliminated Makefile.Linux + + +---------------------------------------------------------------------------- +Mon Jul 7 13:17:08 CEST 1997 - florian@suse.de + + +- update to version 4.11 + + +---------------------------------------------------------------------------- +Sat Apr 26 19:14:59 MEST 1997 - florian@suse.de + + +- add new package of lsof 4.05 + + + + + + + + + + + + + + + + + diff --git a/lsof.spec b/lsof.spec new file mode 100644 index 0000000..6683816 --- /dev/null +++ b/lsof.spec @@ -0,0 +1,73 @@ +# +# spec file for package lsof +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: lsof +Version: 4.98.0 +Release: 0 +Summary: A Program That Lists Information about Files Opened by Processes +License: Zlib +Group: System/Monitoring +URL: https://github.com/lsof-org/lsof +#Source: https://github.com/lsof-org/lsof/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# Repacked tarball to remove proprietary code in dialects/uw/uw7/sys/fs/ +Source: %{name}-%{version}.tar.gz +BuildRequires: groff +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libselinux) + +%description +Lsof lists information about files opened by processes. An open file +may be a regular file, a directory, a block special file, a character +special file, an executing text reference, a library, a stream, or a +network file (Internet socket, NFS file, or UNIX domain socket.) A +specific file or all the files in a file system may be selected by +path. + +%prep +%autosetup -p1 + +%build +./Configure -n linux +%make_build DEBUG="%{optflags}" +soelim -r Lsof.8 > lsof.8 + +%install +%make_install DEBUG="%{optflags}" +install -m755 -d %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man8 +install -m755 lsof %{buildroot}%{_bindir} +install -m644 lsof.8 %{buildroot}%{_mandir}/man8/lsof.8 +mkdir SUSE_docs +for s in 00* ; do + mv $s SUSE_docs/${s#00} +done +sed -i -e "s|%{_prefix}/local/bin/perl4\?|%{_bindir}/perl|g" scripts/* +mv scripts/00MANIFEST scripts/MANIFEST +mv scripts/00README scripts/README + +%check +cd tests +chmod u+w TestDB +./Add2TestDB +%make_build DEBUG="%{optflags} -Wall -Wno-unused" + +%files +%doc SUSE_docs/* scripts +%{_mandir}/man8/lsof.8%{?ext_man} +%{_bindir}/lsof + +%changelog