$Log$
+ Revision 620.19 2004/04/20 02:42:54 ajc
+ * techdoc/binaries.txt : updated, now includes WebCit instructions
+ * setup.c: detect when setup is run from within the Citadel/UX Ridiculously
+ Easy Installer and skip the directory prompt; the installer sets it.
+
Revision 620.18 2004/04/14 18:43:51 nbryant
* citadel.spec: BuildRequire redhat-rpm-config
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
int setup_type;
char setup_directory[SIZ];
char init_entry[SIZ];
+int using_web_installer = 0;
char *setup_titles[] =
{
/* set an invalid setup type */
setup_type = (-1);
+ /* Check to see if we're running the web installer */
+ if (getenv("CITADEL_INSTALLER") != NULL) {
+ using_web_installer = 1;
+ }
+
/* parse command line args */
for (a = 0; a < argc; ++a) {
if (!strncmp(argv[a], "-u", 2)) {
/* Get started in a valid setup directory. */
strcpy(setup_directory, BBSDIR);
- set_str_val(0, setup_directory);
+ if ( (using_web_installer) && (getenv("CITADEL") != NULL) ) {
+ strcpy(setup_directory, getenv("CITADEL"));
+ }
+ else {
+ set_str_val(0, setup_directory);
+ }
+
if (chdir(setup_directory) != 0) {
important_message("Citadel/UX Setup",
"The directory you specified does not exist.");
(FIXME still not detected properly)
-3. If LDAP support is required, build OpenLDAP with:
-
+3. Set these environment variables for the rest of the build:
export CFLAGS='-I/usr/local/ctdlsupport/include'
export CPPFLAGS='-I/usr/local/ctdlsupport/include'
export LDFLAGS='-L/usr/local/ctdlsupport/lib -Wl,--rpath -Wl,/usr/local/ctdlsupport/lib'
+
+ -L tells the build system where to find libraries during the build process,
+while -Wl,--rpath inserts that same library path into the Citadel binaries
+so they know where to find the libs at runtime. Since we can't depend on
+the correct version of Berkeley DB already being on the system, this is how
+we carry our own along. It's better than static linking everything.
+
+4. If LDAP support is required, build OpenLDAP with:
+
./configure --prefix=/usr/local/citadel --with-db=/usr/local/ctdlsupport
make
make depend
make install
-4. Build Citadel with:
+5. Build Citadel with:
-export CFLAGS='-I/usr/local/ctdlsupport/include'
-export LDFLAGS='-L/usr/local/ctdlsupport/lib -Wl,--rpath -Wl,/usr/local/ctdlsupport/lib'
./configure --prefix=/usr/local/citadel --with-db=/usr/local/ctdlsupport
make
make install
-
- -L tells the build system where to find libraries during the build process,
-while -Wl,--rpath inserts that same library path into the Citadel binaries
-so they know where to find the libs at runtime. Since we can't depend on
-the correct version of Berkeley DB already being on the system, this is how
-we carry our own along. It's better than static linking everything.
-
+
+6. Build WebCit with:
+
+./configure --prefix=/usr/local/webcit
+make
+make install
FIXME / TODO