Skip to Content.
Sympa Menu

devel - [sympa-developpers] Installation simplification proposal

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Guillaume Rousse <address@concealed>
  • To: address@concealed
  • Subject: [sympa-developpers] Installation simplification proposal
  • Date: Mon, 10 Mar 2014 19:41:37 +0100

The major version change occuring with 7.0 seems quite adequate to get rid of the old default sympa setup under '/home/sympa', in favor of standard installation practices, already enforced by most existing sympa package anyway.

The attached configure.ac patch implements two changes:
- it removes any explicit declaration of /home/sympa as default installation prefix
- it removes enable-fhs switch, whose function was to change some relative path under the installation prefix, to make them shorter by default

Once this patch applied, it is still possible to install everything under a sympa-specific prefix, such as /home/sympa, but it would not be the default anymore, and internal pathes would also differs, ie:
./configure --prefix /home/sympa

would results in modules installed under /home/sympa/share/sympa/lib, and defaults under /home/sympa/share/sympa/default

This change brings simplification in our installation procedure first, and reduce setup differences, which should probably make user support easier.
--
Guillaume Rousse
INRIA, Direction des systèmes d'information
Domaine de Voluceau
Rocquencourt - BP 105
78153 Le Chesnay
Tel: 01 39 63 58 31
Index: configure.ac
===================================================================
--- configure.ac	(révision 10365)
+++ configure.ac	(copie de travail)
@@ -24,70 +24,20 @@
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 AM_PO_SUBDIRS
 
-AC_PREFIX_DEFAULT(/home/sympa)
-
-## first initialises parameters to the standard Sympa filesystem organization
-# $prefix variable initialisation seems to be tricky
-if test "$prefix" = "NONE"; then
-   prefix=$ac_default_prefix
-fi
-
-## allow user to select FHS-compliant installation
-AC_ARG_ENABLE(
-	fhs,
-	AS_HELP_STRING(
-	[--enable-fhs],
-	[use standard FHS files and directories locations and naming (default is no)]
-	),
-	[fhs=$enableval]
-)
-
-if test "$fhs" = "yes"; then
-    # only define custom variables
-    initdir=$sysconfdir/rc.d/init.d
-    piddir=$localstatedir/run/sympa
-    lockdir=$localstatedir/lock/subsys
-    modulesdir=$datadir/sympa/lib
-    scriptdir=$datadir/sympa/bin
-    defaultdir=$datadir/sympa/default
-    execcgidir=$libdir/sympa/cgi
-    expldir=$localstatedir/lib/sympa/list_data
-    staticdir=$localstatedir/lib/sympa/static_content
-    spooldir=$localstatedir/spool/sympa
-    arcdir=$localstatedir/lib/sympa/arc
-    bouncedir=$localstatedir/lib/sympa/bounce
-    confdir=$sysconfdir
-else
-    # redefine default values for some standard variables,
-    # but only if no value was given
-    if test "$sbindir" = '${exec_prefix}/sbin'; then
-       sbindir=$prefix/bin
-    fi
-    if test "$libexecdir" = '${exec_prefix}/libexec'; then
-	libexecdir=$prefix/bin
-    fi
-    if test "$localstatedir" = '${prefix}/var'; then
-	localstatedir=/var
-    fi
-    if test "$localedir" = '${datarootdir}/locale'; then
-	localedir=$prefix/locale
-    fi
-
-    # define custom variables
-    initdir=/etc/rc.d/init.d
-    piddir=$prefix
-    lockdir=$localstatedir/lock/subsys
-    modulesdir=$prefix/bin
-    scriptdir=$prefix/bin
-    defaultdir=$prefix/default
-    execcgidir=$prefix/bin
-    expldir=$prefix/list_data
-    spooldir=$prefix/spool
-    staticdir=$prefix/static_content
-    arcdir=$prefix/arc
-    bouncedir=$prefix/bounce
-    confdir=/etc
-fi
+# only define custom variables
+initdir=$sysconfdir/rc.d/init.d
+piddir=$localstatedir/run/sympa
+lockdir=$localstatedir/lock/subsys
+modulesdir=$datadir/sympa/lib
+scriptdir=$datadir/sympa/bin
+defaultdir=$datadir/sympa/default
+execcgidir=$libdir/sympa/cgi
+expldir=$localstatedir/lib/sympa/list_data
+staticdir=$localstatedir/lib/sympa/static_content
+spooldir=$localstatedir/spool/sympa
+arcdir=$localstatedir/lib/sympa/arc
+bouncedir=$localstatedir/lib/sympa/bounce
+confdir=$sysconfdir
  
 # substitute custom variables
 AC_SUBST(initdir)

Attachment: smime.p7s
Description: Signature cryptographique S/MIME



  • [sympa-developpers] Installation simplification proposal, Guillaume Rousse, 03/10/2014

Archive powered by MHonArc 2.6.19+.

Top of Page