OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Oct-2004 19:05:05
Branch: HEAD Handle: 2004100218050400
Added files:
openpkg-src/lsof lsof.patch
Modified files:
openpkg-src/lsof lsof.spec
Log:
port to FreeBSD 5.3 by backporting forthcoming vendor changes from
4.73
Summary:
Revision Changes Path
1.6 +56 -0 openpkg-src/lsof/lsof.patch
1.47 +3 -1 openpkg-src/lsof/lsof.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/lsof/lsof.patch
============================================================================
$ cvs diff -u -r0 -r1.6 lsof.patch
--- /dev/null 2004-10-02 19:05:05 +0200
+++ lsof.patch 2004-10-02 19:05:05 +0200
@@ -0,0 +1,56 @@
+Index: dialects/freebsd/dlsof.h
+--- dialects/freebsd/dlsof.h 2004-07-06 21:19:00 +0200
++++ dialects/freebsd/dlsof.h 2004-08-21 18:37:11 +0200
+@@ -261,7 +261,13 @@
+
+ # if defined(DTYPE_KQUEUE)
+ #define HASKQUEUE /* has the kqueue file type */
++# if FREEBSDV>=4090
++#define _KERNEL
++# endif /* FREEBSDV>=4090 */
+ #include <sys/eventvar.h>
++# if FREEBSDV>=4090
++#undef _KERNEL
++# endif /* FREEBSDV>=4090 */
+ # endif /* defined(DTYPE_KQUEUE) */
+
+ # if FREEBSDV<2000
+@@ -282,7 +288,13 @@
+ #include <vm/vm.h>
+
+ # if FREEBSDV>=2020
++# if FREEBSDV>=4090
++#define _KERNEL
++# endif /* FREEBSDV>=4090 */
+ #include <sys/pipe.h>
++# if FREEBSDV>=4090
++#undef _KERNEL
++# endif /* FREEBSDV>=4090 */
+ # if defined(HASVMLOCKH)
+ #include <vm/lock.h>
+ # endif /* defined(HASVMLOCKH) */
+Index: dialects/freebsd/machine.h
+--- dialects/freebsd/machine.h 2004-07-06 21:19:09 +0200
++++ dialects/freebsd/machine.h 2004-08-21 18:37:11 +0200
+@@ -423,10 +423,21 @@
+ /*
+ * HASSETLOCALE is defined for those dialects that have <locale.h> and
+ * setlocale().
++ *
++ * If the dialect also has wide character support for language locales,
++ * HASWIDECHAR activates lsof's wide character support and WIDECHARINCL
++ * defines the header file (if any) that must be #include'd to use the
++ * mblen() and mbtowc() functions.
+ */
+
+ #define HASSETLOCALE 1
+
++# if FREEBSDV>=5200
++#define HASWIDECHAR 1
++# endif /* FREEBSDV>=5020 */
++
++/* #define WIDECHARINCL <wchar.h> */
++
+
+ /*
+ * HASSNODE is defined for those dialects that have snodes.
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/lsof/lsof.spec
============================================================================
$ cvs diff -u -r1.46 -r1.47 lsof.spec
--- openpkg-src/lsof/lsof.spec 13 Jul 2004 17:24:05 -0000 1.46
+++ openpkg-src/lsof/lsof.spec 2 Oct 2004 17:05:04 -0000 1.47
@@ -34,10 +34,11 @@
Group: Filesystem
License: BSD
Version: 4.72
-Release: 20040713
+Release: 20041002
# list of sources
Source0: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_%{version}.tar.gz
+Patch0: lsof.patch
# build information
Prefix: %{l_prefix}
@@ -61,6 +62,7 @@
%prep
%setup -q -n lsof_%{version}
%{l_tar} xf lsof_%{version}_src.tar
+ %patch -d lsof_%{version}_src -p0
%build
cd lsof_%{version}_src
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]