فهرست منبع

added --exec-prefix=/ to psmisc's configure
added note how to deal with psmisc's pidof symlink and man page


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1234 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Gerard Beekmans 24 سال پیش
والد
کامیت
4fc945adc8
4فایلهای تغییر یافته به همراه35 افزوده شده و 1 حذف شده
  1. 13 0
      chapter06/psmisc-exp.xml
  2. 20 1
      chapter06/psmisc-inst.xml
  3. 1 0
      chapter06/psmisc.xml
  4. 1 0
      index.xml

+ 13 - 0
chapter06/psmisc-exp.xml

@@ -0,0 +1,13 @@
+<sect2>
+<title>Command explanations</title>
+
+<para><userinput>--exec-prefix=/:</userinput> This will cause the
+programs to be installed in <filename class="directory">/bin</filename>
+rather than in <filename class="directory">/usr/bin</filename>. The
+programs in this package are often used in bootscripts, so they should
+be in the <filename class="directory">/bin</filename> directory so they
+can be used when the <filename class="directory">/usr</filename>
+partition isn't mounted yet.</para>
+
+</sect2>
+

+ 20 - 1
chapter06/psmisc-inst.xml

@@ -3,9 +3,28 @@
 
 <para>Install Psmisc by running the following commands:</para>
 
-<para><screen><userinput>./configure --prefix=/usr &amp;&amp;</userinput>
+<para><screen><userinput>./configure --prefix=/usr --exec-prefix=/ &amp;&amp;</userinput>
 <userinput>make &amp;&amp;</userinput>
 <userinput>make install</userinput></screen></para>
 
+<para>psmisc installs the
+<filename>/usr/share/man/man1/pidof.1</filename> man page, but psmisc's
+pidof program isn't installed by default. Generally that isn't a problem
+because we install the sysvinit package later on which provides us with
+a better pidof program.</para>
+
+<para>It's up to you now to decide if you are going to use the sysvinit 
+package which provides a pidof program, or not. If you are going to, you 
+should remove psmisc's pidof man page by running:</para>
+
+<para><screen><userinput>rm /usr/share/man/man1/pidof.1</userinput></screen></para>
+
+<para>If you're not going to use sysvinit, you should complete this
+package's installation by creating the <filename>/bin/pidof</filename>
+symlink by running:</para>
+
+<para><screen><userinput>cd /bin</userinput>
+<userinput>ln -s killall pidof</userinput></screen></para>
+
 </sect2>
 

+ 1 - 0
chapter06/psmisc.xml

@@ -5,6 +5,7 @@
 Estimated required disk space:  &psmisc-compsize;</screen>
 
 &c6-psmisc-inst;
+&c6-psmisc-exp;
 &aa-psmisc-desc;
 &ab-psmisc-dep;
 

+ 1 - 0
index.xml

@@ -280,6 +280,7 @@
 <!ENTITY c6-procps-exp SYSTEM "chapter6/procps-exp.xml">
 <!ENTITY c6-psmisc SYSTEM "chapter6/psmisc.xml">
 <!ENTITY c6-psmisc-inst SYSTEM "chapter6/psmisc-inst.xml">
+<!ENTITY c6-psmisc-exp SYSTEM "chapter6/psmisc-exp.xml">
 <!ENTITY c6-sed SYSTEM "chapter6/sed.xml">
 <!ENTITY c6-sed-inst SYSTEM "chapter6/sed-inst.xml">
 <!ENTITY c6-sysklogd SYSTEM "chapter6/sysklogd.xml">