httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Eilebrecht <Lars.Eilebre...@unix-ag.org>
Subject [PATCH/PROPOSAL] binbuild script, take 1
Date Sun, 13 Dec 1998 16:50:13 GMT
Hi,

I've developed a solution for building binary distributions
(see attachments). I've only tested this first version on Linux,
but want to throw it in here for discussion...

To test it perform the following steps:

- export a recent Apache version from cvs into a directory
  with the name "apache-1.3.4-dev"
- copy the file "config.layout" (from attachment) over the
  original layout file
- copy the scripts "binbuild.sh" and "findprg.sh" from the
  attachment to "src/helpers"
- cd into "apache-1.3.4-dev" and execute "src/helpers/binbuild.sh"

If no error occured you'll find the following two files
in the parent directory:

 apache-1.3.4-dev-<GNU-triple>.tar.gz
 apache-1.3.4-dev-<GNU-triple>.README

A user who wants to install the binary distribution has to
execute the following commands:

  gtar -zxvf apache-1.3.4-dev-<GNU-triple>.tar.gz
  cd apache-1.3.4-dev
  ./install-bindist.sh /path/to/serverroot

Then the user should be able to start Apache with

  /path/to/serverroot/bin/apachectl start 


Details about the distribution:

The binbuild scripts uses 'configure' with the options
  --with-layout=BinaryDistribution
  --enable-module=most
  --enable-shared=max
to build the distribution. 'BinaryDistribution' is a special
path layout (from config.layout) that mimics the classical
Apache path layout _without_ any absolute paths in it
(apart from HTTPD_ROOT /usr/local/apache). This makes
it possible for a user to install it in _any_ directory
If "install-bindist.sh" is executed without an option
/usr/local/apache is used. If a user chooses a different
path the files apachectl and httpd.conf are modified
accordingly.

During the build step Apache is installed with
"make install-quiet root=bindist/" and install-bindist.sh simply
copies the contents of the bindist directory into the new location
(htdocs and .conf files are preserved if they already exist). 

Additionally the two files "INSTALL.bindist" and "README.bindist"
are created by the binbuild script.
The binary archive contains the standard source distribution
and all bindist-stuff.

Any comments?


ciao...
-- 
Lars Eilebrecht                         - He who knows, does not speak.
sfx@unix-ag.org                    - He who speaks, does not know. (Lao Tsu)
http://www.home.unix-ag.org/sfx/


Mime
View raw message