From a72a1ef7a6fdc9d09d88e6d307d37aa3257ecbf7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 5 Oct 2014 13:30:28 -0700 Subject: [PATCH] Update the install document Signed-off-by: Tom Eastep --- docs/Install.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/docs/Install.xml b/docs/Install.xml index 8e47d96a6..860ba265a 100644 --- a/docs/Install.xml +++ b/docs/Install.xml @@ -683,6 +683,56 @@ ./configure --vendor=redhat --systemd= + +
+ Install for Packaging. + + If you build your own packages, then you will want to install + the Shorewall products into it's own directory tree. This is done by + adding DESTDIR to the installer's environment. For example, to install + a product for Debian into the /tmp/package directory: + + DESTDIR=/tmp/package ./install.sh shorewallrc.debian +
+ +
+ Install into a Sandbox + + When DESTDIR is used, the resulting configuration is not + runnable, because all configuration pathnames are relative to + $DESTDIR. Beginning with Shorewall 4.6.4, you can create runnable + configurations separate from your main configuration. Here is a sample + shorewallrc file: + + INSTALL_DIR=/usr/local/shorewall-custom + HOST=suse + PREFIX=${INSTALL_DIR} + SHAREDIR=${INSTALL_DIR}/share + LIBEXECDIR=${INSTALL_DIR}/lib + PERLLIBDIR=${INSTALL_DIR}/lib/perl5 + CONFDIR=${INSTALL_DIR}/etc + SBINDIR=${INSTALL_DIR}/usr/sbin + MANDIR=${SHAREDIR}/man/ + INITDIR=${INSTALL_DIR}/etc/init.d + INITSOURCE=init.suse.sh + INITFILE=${PRODUCT} + AUXINITSOURCE= + AUXINITFILE= + SYSTEMD=${INSTALL_DIR}/etc/systemd + SERVICEFILE=${PRODUCT}.service + SYSCONFFILE=sysconfig + SYSCONFDIR=${INSTALL_DIR}/etc/sysconfig + SPARSE= + ANNOTATED= + VARLIB=${INSTALL_DIR}/var/lib + VARDIR=${VARLIB}/${PRODUCT} + SANDBOX=Yes + + The above shorewallrc creates a runnable configuration in + /usr/local/shorewall-custom. It is triggered by adding SANDBOX to the + shorewallrc file -- any non-empty value for that variable will prevent + the installer from replacing the current main configuraiton. +