Changeset 8307474 for general/genutils/lsof.xml
- Timestamp:
- 12/04/2021 03:28:15 PM (2 years ago)
- Branches:
- lazarus
- Children:
- e6974d1
- Parents:
- b22e4ceb (diff), edd2feb7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/genutils/lsof.xml
rb22e4ceb r8307474 5 5 %general-entities; 6 6 7 <!-- <!ENTITY lsof-download-http "https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_&lsof-version;.tar.bz2">8 <!ENTITY lsof-download-ftp " "> -->9 7 10 <!-- URL is for a mirror. Change back to below if/when main site comes back. --> 11 12 <!ENTITY lsof-download-http "https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_&lsof-version;.tar.gz"> 8 <!ENTITY lsof-download-http "https://github.com/lsof-org/lsof/releases/download/&lsof-version;/lsof_&lsof-version;.linux.tar.bz2"> 13 9 <!ENTITY lsof-download-ftp " "> 14 <!ENTITY lsof-md5sum " 10e1353aa4bf2fd5bbed65db9ef6fd47">15 <!ENTITY lsof-size " 1.1 MB">16 <!ENTITY lsof-buildsize " 9.6 MB">17 <!ENTITY lsof-time "less than 0.1 SBU ">10 <!ENTITY lsof-md5sum "2a007f86fb0207fbce3e9d7542e1041c"> 11 <!ENTITY lsof-size "493 KB"> 12 <!ENTITY lsof-buildsize "3.7 MB (add 600 KB for tests)"> 13 <!ENTITY lsof-time "less than 0.1 SBU (add 0.4 SBU for tests)"> 18 14 ]> 19 15 … … 82 78 </para> 83 79 80 <bridgehead renderas="sect4">Optional</bridgehead> 81 <para role="optional"> 82 <xref linkend="nmap"/> (with a symbolic link <command>nc</command> 83 pointing to <command>ncat</command> in <filename class="directory"> 84 /usr/bin</filename>; used in tests) 85 </para> 86 84 87 <para condition="html" role="usernotes">User Notes: 85 88 <ulink url="&blfs-wiki;/lsof"/></para> 89 90 </sect2> 91 92 <sect2 role="kernel" id="lsof-kernel"> 93 <title>Kernel Configuration</title> 94 95 <para> 96 To run the tests, the following option should be enabled in the kernel 97 configuration: 98 </para> 99 100 <screen><literal>General setup ---> 101 [*] POSIX Message Queues [CONFIG_POSIX_MQUEUE]</literal></screen> 86 102 87 103 </sect2> … … 91 107 92 108 <para> 93 The contents of the <application>lsof</application> tarball 94 include another tarball with the source code, which needs, in turn, 95 to be unpacked. Install <application>lsof</application> by running the 109 Install <application>lsof</application> by running the 96 110 following commands: 97 111 </para> 98 112 99 <screen><userinput>tar -xf lsof_&lsof-version;_src.tar && 100 cd lsof_&lsof-version;_src && 101 ./Configure -n linux && 102 make CFGL="-L./lib -ltirpc"</userinput></screen> 113 <screen><userinput>./Configure -n linux && 114 make</userinput></screen> 103 115 104 116 <para> 105 This package does not come with a working test suite. 117 The tests should be run as the <systemitem 118 class="username">root</systemitem> user. They require that the 119 POSIX message queues are enabled in the kernel, and that <xref 120 linkend="nmap"/> be installed with a symbolic link 121 <filename>/usr/bin/nc</filename> pointing to <command>ncat</command>. 122 </para> 123 124 <screen role="root" 125 remap="test"><userinput>make check</userinput></screen> 126 127 <para> 128 Two tests fail if the tests are run from a script instead of an 129 interactive session. 106 130 </para> 107 131 … … 110 134 </para> 111 135 112 <screen role="root"><userinput>install -v -m 0755 -o root -g root lsof /usr/bin &&136 <screen role="root"><userinput>install -v -m4755 -o root -g root lsof /usr/bin && 113 137 install -v lsof.8 /usr/share/man/man8</userinput></screen> 114 138 … … 124 148 125 149 <para> 126 <command>make CFGL="-L./lib -ltirpc"</command>: Add the libtirpc 127 libraries location to the <command>make</command> command. 150 <command>install -m4755 ...</command>: <command>lsof</command> should 151 be suid root to allwo users to list all files. This may be a security 152 threat on some systems. In that case change to <option>-m755</option> 153 and use <command>sudo</command> to run the program. 128 154 </para> 129 155
Note:
See TracChangeset
for help on using the changeset viewer.