docs/162862: DESTDIR environment variable setting is not correct for apache22

pirat sriyotha jotawski at gmail.com
Fri Nov 25 00:20:08 UTC 2011


>Number:         162862
>Category:       docs
>Synopsis:       DESTDIR environment variable setting is not correct for apache22
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 25 00:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     pirat sriyotha
>Release:        FreeBSD dell.jes.or.th 8.2-RELEASE-p0 FreeBSD 8.2-RELEASE-p0 #1: Sun May 29 15:21:52 ICT 2011     root at jotawski.tint.or.th:/usr/obj/usr/src/sys/JOTAWSKI  amd64
>Organization:
-
>Environment:
FreeBSD dell.jes.or.th 8.2-RELEASE-p0 FreeBSD 8.2-RELEASE-p0 #1: Sun May 29 15:21:52 ICT 2011     root at jotawski.tint.or.th:/usr/obj/usr/src/sys/JOTAWSKI  amd64

>Description:
in chapter 8 of FDP primer section 8.3 bullet 2 wrote that DESTDIR environment variable must be given in order to install into local servers and the value is /usr/local/www

Nowaday, for apache2 web server, this value is quite far from real situation.  The most appropriate value for apache2 should be /usr/local/www/apache22 as in

# env DESTDIR=/usr/local/www/apache22 make install


>How-To-Repeat:
open your web browser and point to http://www.freebsd.org/doc/en_US.ISO8859-1/books/fdp-primer/the-website-install.html

>Fix:
change command line from

# env DESTDIR=/usr/local/www make install

to

# env DESTDIR=/usr/local/www/apache22 make install

a patch for chapter.sgml at books/fdp-primer/the-website is attached

Patch attached with submission follows:

Index: chapter.sgml
===================================================================
RCS file: /home/motorc/Repository-motorc/doc/en_US.ISO8859-1/books/fdp-primer/the-website/chapter.sgml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- chapter.sgml	15 Nov 2011 07:30:08 -0000	1.1
+++ chapter.sgml	24 Nov 2011 23:57:34 -0000	1.2
@@ -289,7 +289,7 @@
 	  setting the <makevar>DESTDIR</makevar> variable to the name of the
 	  directory you want to install the files to.</para>
 
-	<screen>&prompt.root; <userinput><command>env</command> <makevar>DESTDIR</makevar>=<replaceable>/usr/local/www</replaceable> <command>make</command> <maketarget>install</maketarget></userinput></screen>
+	<screen>&prompt.root; <userinput><command>env</command> <makevar>DESTDIR</makevar>=<replaceable>/usr/local/www/apache22</replaceable> <command>make</command> <maketarget>install</maketarget></userinput></screen>
       </step>
 
       <step>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list