Another suggestion: Can configure script be non-interactive ?
Interactive configure is good for beginner but not good for automation. Please consider modify the script to allow non-interactive configuration. Following is my partial auto configure shell script. I like to take out trick like
<<_EOT_ y _EOT_
if possible.
BTW, the configure script of hobbit is much better than BB's.
tj
<snip>
rm -f Makefile
MANROOT=/opt/hobbit/man
BBVAR=/var/opt/hobbit/data
SECURECGIDIR=/etc/opt/apacheS2048/cgi-secure
CGIDIR=/etc/opt/apacheS2048/cgi-bin BBUSER=hobbit TARGET=hobbit ./configure
--rrdinclude /opt/rrdtool10/include
--rrdlib /opt/rrdtool10/lib
--pcreinclude /opt/libpcre44/include
--pcrelib /opt/libpcre44/lib
--sslinclude /opt/libopenssl097/include
--ssllib /opt/libopenssl097/lib
--ldapinclude /opt/openldap2127/include
--ldaplib /opt/openldap2127/lib
--fping /opt/fping22/sbin/fping <<_EOT_
y
_EOT_
T.J. Yang
From the hobbit.spec file in the src.rpm. Completely automated.
TARGET=hobbit \
ENABLESSL=y \
ENABLELDAP=y \
ENABLELDAPSSL=y \
BBUSER=hobbit \
BBTOPDIR=/usr/lib/hobbit \
BBVAR=/var/lib/hobbit \
BBHOSTURL=/hobbit \
CGIDIR=/usr/lib/hobbit/cgi-bin \
BBCGIURL=/hobbit-cgi \
SECURECGIDIR=/usr/lib/hobbit/cgi-secure \
SECUREBBCGIURL=/hobbit-seccgi \
HTTPDGID=apache \
BBLOGDIR=/var/log/hobbit \
BBHOSTNAME=localhost \
BBHOSTIP=127.0.0.1 \
MANROOT=/usr/share/man \
BARS=all \
USENEWHIST=y \
PIXELCOUNT=960 \
INSTALLBINDIR=/usr/lib/hobbit/server/bin \
INSTALLETCDIR=/etc/hobbit \
INSTALLWEBDIR=/etc/hobbit/web \
INSTALLEXTDIR=/usr/lib/hobbit/server/ext \
INSTALLTMPDIR=/var/lib/hobbit/tmp \
INSTALLWWWDIR=/var/lib/hobbit/www \
./configure
--On May 24, 2005 1:05:33 PM -0500 "T.J. Yang" <tj_yang at hotmail.com> wrote:
| Interactive configure is good for beginner but not good for automation. | Please consider modify the script to allow non-interactive configuration. | Following is my partial auto configure shell script. I like to take out | trick like
From: "Christopher T. Beers" <ctbeers at syr.edu> Reply-To: hobbit at hswn.dk To: hobbit at hswn.dk Subject: Re: [hobbit] Another suggestion: Can configure script be non-interactive ? Date: Tue, 24 May 2005 14:21:00 -0400
From the hobbit.spec file in the src.rpm. Completely automated.
Thanks you very much for the pointer, I will reuse the syntax.
tj
participants (2)
-
ctbeers@syr.edu
-
tj_yang@hotmail.com