Commit 4904dd8d authored by olivier.salaun's avatar olivier.salaun
Browse files

[feature][Submitted by G.Rousse, INRIA]All changes are related to the installation process:

 - some fixes to the recent autotools reorganization
 - no more use the FHS organization when upgrading Sympa
 - remove obsolete sudo wrapper
 - change location of perl modules in src/lib/
 - rename perl modules with the .pm file extension
 - replace --VAR-- substitution with a Constans.pm perl module
 - perform --VAR-- substitution at make time, no more at install time
 - defaultdir directory (old bin/etc/) renamed default/
 - remove Version.pm module (now using Constans.pm)
 - turn SPEC file into a template, to have version automatically substituted, drop most post-install stuff excepted user/group creation, and use FHS setup


git-svn-id: https://subversion.renater.fr/sympa/trunk@5816 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 50e82b2e
......@@ -21,7 +21,10 @@
SUBDIRS = src wwsympa soap web_tt2 mail_tt2 doc po po-wwsympa
EXTRA_DIST = important_changes.pl
EXTRA_DIST = important_changes.pl \
sympa.spec.in \
sympa.spec \
README.charset
install-data-hook: installdir installconfig nextstep importantchanges
......@@ -30,7 +33,7 @@ installdir:
@for dir in $(expldir) $(spooldir) $(spooldir)/msg $(spooldir)/digest \
$(spooldir)/moderation $(spooldir)/expire $(spooldir)/auth \
$(spooldir)/outgoing $(spooldir)/tmp $(spooldir)/task \
$(prefix)/bounce $(prefix)/arc $(piddir); do \
$(bouncedir) $(arcdir) $(piddir); do \
if [ ! -d $(DESTDIR)$$dir ] ; then \
echo "Creating $(DESTDIR)$$dir"; \
install -d -m 755 $(DESTDIR)$$dir; \
......
......@@ -24,12 +24,68 @@ AC_INIT(sympa, 6.0a.13, sympa-authors@cru.fr)
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AM_PO_SUBDIRS
# Setup the VERSION variable
AC_SUBST(VERSION,AC_PACKAGE_VERSION)
AC_PREFIX_DEFAULT(/home/sympa)
# configuration
# for upgrade, set default values to match previously used locations
if test -f /etc/sympa.conf; then
# $prefix variable initialisation seems to be tricky
if test "$prefix" = "NONE"; then
prefix=$ac_default_prefix
fi
# standard variables
sbindir=$prefix/bin
libexecdir=/etc/smrsh
# custom variables
initdir=/etc/rc.d/init.d
piddir=$prefix
lockdir=$localstatedir/lock/subsys
modulesdir=$prefix/bin
scriptdir=$prefix/bin
defaultdir=$datadir/sympa/default
mailtemplatedir=$defaultdir/mail_tt2
webtemplatedir=$defaultdir/web_tt2
execcgidir=$prefix/bin
expldir=$prefix/expl
spooldir=$prefix/spool
staticdir=$prefix/static_content
arcdir=$prefix/arc
bouncedir=$prefix/bounce
else
initdir=$sysconfdir/rc.d/init.d
piddir=$localstatedir/run
lockdir=$localstatedir/lock/subsys
modulesdir=$datadir/sympa/lib
scriptdir=$datadir/sympa/bin
defaultdir=$datadir/sympa/default
mailtemplatedir=$defaultdir/mail_tt2
webtemplatedir=$defaultdir/web_tt2
execcgidir=$libdir/sympa/cgi
expldir=$localstatedir/lib/sympa
spooldir=$localstatedir/spool/sympa
staticdir=$expldir/static_content
arcdir=$expldir/arc
bouncedir=$expldir/bounce
fi
# substitute custom variables
AC_SUBST(initdir)
AC_SUBST(piddir)
AC_SUBST(lockdir)
AC_SUBST(modulesdir)
AC_SUBST(scriptdir)
AC_SUBST(defaultdir)
AC_SUBST(mailtemplatedir)
AC_SUBST(webtemplatedir)
AC_SUBST(execcgidir)
AC_SUBST(expldir)
AC_SUBST(spooldir)
AC_SUBST(staticdir)
AC_SUBST(arcdir)
AC_SUBST(bouncedir)
# allow user to redefine some of them
AC_ARG_WITH(
confdir,
AS_HELP_STRING(
......@@ -51,7 +107,6 @@ AC_ARG_WITH(
[AC_MSG_WARN([obsolete --with-etcdir option used])]
)
# binaries
AC_ARG_WITH(
bindir,
AS_HELP_STRING(
......@@ -85,8 +140,6 @@ AC_ARG_WITH(
]
)
# arch-dependant files
execcgidir='${libdir}/sympa/cgi'
AC_ARG_WITH(
cgidir,
AS_HELP_STRING(
......@@ -95,9 +148,7 @@ AC_ARG_WITH(
),
[execcgidir="$withval"]
)
AC_SUBST(execcgidir)
# arch-independant files
AC_ARG_WITH(
datadir,
AS_HELP_STRING(
......@@ -121,8 +172,6 @@ AC_ARG_WITH(
]
)
# locales
localedir='${prefix}/locale'
AC_ARG_WITH(
localedir,
AS_HELP_STRING(
......@@ -134,9 +183,7 @@ AC_ARG_WITH(
localedir="$withval"
]
)
AC_SUBST(localedir)
# documentation
AC_ARG_WITH(
mandir,
AS_HELP_STRING(
......@@ -172,8 +219,6 @@ AC_ARG_WITH(
]
)
# variable content
expldir='${prefix}/expl'
AC_ARG_WITH(
expldir,
AS_HELP_STRING(
......@@ -182,9 +227,7 @@ AC_ARG_WITH(
),
[expldir="$withval"]
)
AC_SUBST(expldir)
spooldir='${prefix}/spool'
AC_ARG_WITH(
spooldir,
AS_HELP_STRING(
......@@ -193,9 +236,7 @@ AC_ARG_WITH(
),
[spooldir="$withval"]
)
AC_SUBST(spooldir)
initdir='${sysconfdir}/rc.d/init.d'
AC_ARG_WITH(
initdir,
AS_HELP_STRING(
......@@ -204,9 +245,7 @@ AC_ARG_WITH(
),
[initdir="$withval"]
)
AC_SUBST(initdir)
lockdir='${localstatedir}/lock/subsys'
AC_ARG_WITH(
lockdir,
AS_HELP_STRING(
......@@ -215,9 +254,7 @@ AC_ARG_WITH(
),
[lockdir="$withval"]
)
AC_SUBST(lockdir)
piddir='${localstatedir}/run'
AC_ARG_WITH(
piddir,
AS_HELP_STRING(
......@@ -226,12 +263,7 @@ AC_ARG_WITH(
),
[piddir="$withval"]
)
AC_SUBST(piddir)
# various subdirectories
pkgdatadir=$datadir/sympa
modulesdir=$pkgdatadir/lib
AC_ARG_WITH(
modulesdir,
AS_HELP_STRING(
......@@ -240,9 +272,7 @@ AC_ARG_WITH(
),
[modulesdir="$withval"]
)
AC_SUBST(modulesdir)
defaultdir=$pkgdatadir/etc
AC_ARG_WITH(
defaultdir,
AS_HELP_STRING(
......@@ -251,12 +281,7 @@ AC_ARG_WITH(
),
[defaultdir="$withval"]
)
AC_SUBST(defaultdir)
mailtemplatedir=$defaultdir/mail_tt2
webtemplatedir=$defaultdir/web_tt2
scriptdir=$pkgdatadir/bin
AC_ARG_WITH(
scriptdir,
AS_HELP_STRING(
......@@ -265,11 +290,6 @@ AC_ARG_WITH(
),
[scriptdir="$withval"]
)
AC_SUBST(scriptdir)
AC_SUBST(mailtemplatedir)
AC_SUBST(webtemplatedir)
CONFIG=$sysconfdir/sympa.conf
AC_SUBST(CONFIG)
......@@ -409,14 +429,17 @@ AC_CONFIG_FILES([
src/Makefile
src/etc/Makefile
src/etc/script/Makefile
src/lib/Makefile
soap/Makefile
doc/Makefile
doc/man8/Makefile
doc/sample/Makefile
web_tt2/Makefile
wwsympa/Makefile
wwsympa/icons/Makefile
mail_tt2/Makefile
po/Makefile.in
po-wwsympa/Makefile.in
sympa.spec
])
AC_OUTPUT
......@@ -131,16 +131,9 @@ stamp-po: $(srcdir)/$(DOMAIN).pot
# otherwise packages like GCC can not be built if only parts of the source
# have been downloaded.
# xgettext.pl ignores --directory argument when getting list of input files
# from a file given with --files-from argument, hence the need to customize
# this list with correct path
POTFILES.pl: $(srcdir)/POTFILES.in
grep -v ^# POTFILES.in | sed -e 's|^|$(top_srcdir)/|' > POTFILES.pl
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
$(DOMAIN).pot-update: $(POTFILES) POTFILES.pl remove-potcdate.sed
export PERL5LIB=$(top_srcdir)/src:$(PERL5LIB); \
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
$(XGETTEXT) -u \
-o $(DOMAIN).pot \
-t helploc \
......@@ -149,7 +142,7 @@ $(DOMAIN).pot-update: $(POTFILES) POTFILES.pl remove-potcdate.sed
if test -f $(srcdir)/$(DOMAIN).pot; then \
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
else \
rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
......@@ -317,7 +310,7 @@ mostlyclean:
clean: mostlyclean
distclean: clean
rm -f Makefile Makefile.in POTFILES POTFILES.pl *.mo
rm -f Makefile Makefile.in POTFILES *.mo
maintainer-clean: distclean
@echo "This command is intended for maintainers to use;"
......
......@@ -131,19 +131,12 @@ stamp-po: $(srcdir)/$(DOMAIN).pot
# otherwise packages like GCC can not be built if only parts of the source
# have been downloaded.
# xgettext.pl ignores --directory argument when getting list of input files
# from a file given with --files-from argument, hence the need to customize
# this list with correct path
POTFILES.pl: $(srcdir)/POTFILES.in
grep -v ^# POTFILES.in | sed -e 's|^|$(top_srcdir)/|' > POTFILES.pl
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
$(DOMAIN).pot-update: $(POTFILES) POTFILES.pl remove-potcdate.sed
export PERL5LIB=$(top_srcdir)/src:$(PERL5LIB); \
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
$(XGETTEXT) -u \
-o $(DOMAIN).pot \
\../src/*.pl ../src/*.pm ../soap/*.pl ../soap/*.pm ../soap/*.fcgi ../wwsympa/wwsympa.fcgi ../wwsympa/*.pl ../wwsympa/*.pm ../web_tt2/*.tt2 ../mail_tt2/*.tt2 ../src/etc/mhonarc-ressources.tt2 ../src/etc/scenari/* ../src/etc/global_task_models/* ../src/etc/list_task_models/* ../src/etc/create_list_templates/*/*;\
../src/*.pl.in ../src/lib/*.pm ../soap/*.pl.in ../soap/*.pm ../soap/*.fcgi.in ../wwsympa/wwsympa.fcgi.in ../wwsympa/*.pl.in ../wwsympa/*.pm ../web_tt2/*.tt2 ../mail_tt2/*.tt2 ../src/etc/mhonarc-ressources.tt2 ../src/etc/scenari/* ../src/etc/global_task_models/* ../src/etc/list_task_models/* ../src/etc/create_list_templates/*/*;\
test ! -f $(DOMAIN).po || { \
if test -f $(srcdir)/$(DOMAIN).pot; then \
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
......@@ -316,7 +309,7 @@ mostlyclean:
clean: mostlyclean
distclean: clean
rm -f Makefile Makefile.in POTFILES POTFILES.pl *.mo
rm -f Makefile Makefile.in POTFILES *.mo
maintainer-clean: distclean
@echo "This command is intended for maintainers to use;"
......
# List of source files which contain translatable strings.
src/admin.pm
src/alias_manager.pl
src/Archive.pm
src/Bulk.pm
src/bulk.pl
src/CAS.pm
src/Commands.pm
src/Config_XML.pm
src/confdef.pm
src/Conf.pm
src/Datasource.pm
src/Family.pm
src/Fetch.pm
src/Language.pm
src/Ldap.pm
src/LDAPSource.pm
src/List.pm
src/Lock.pm
src/Log.pm
src/mail.pm
src/Message.pm
src/PlainDigest.pm
src/report.pm
src/Scenario.pm
src/SQLSource.pm
src/sympa.pl
src/sympa_wizard.pl
src/task_manager.pl
src/Task.pm
src/time_utils.pl
src/tools.pl
src/tt2.pl
src/Upgrade.pm
src/Version.pm
soap/sympa_soap_client.pl
src/alias_manager.pl.in
src/bulk.pl.in
src/sympa.pl.in
src/sympa_wizard.pl.in
src/task_manager.pl.in
src/lib/admin.pm
src/lib/Archive.pm
src/lib/Bulk.pm
src/lib/CAS.pm
src/lib/Commands.pm
src/lib/Config_XML.pm
src/lib/confdef.pm
src/lib/Conf.pm
src/lib/Datasource.pm
src/lib/Family.pm
src/lib/Fetch.pm
src/lib/Language.pm
src/lib/Ldap.pm
src/lib/LDAPSource.pm
src/lib/List.pm
src/lib/Lock.pm
src/lib/Log.pm
src/lib/mail.pm
src/lib/Message.pm
src/lib/PlainDigest.pm
src/lib/report.pm
src/lib/Scenario.pm
src/lib/SQLSource.pm
src/lib/Task.pm
src/lib/time_utils.pm
src/lib/tools.pm
src/lib/tt2.pm
src/lib/Upgrade.pm
soap/sympa_soap_client.pl.in
soap/sympasoap.pm
soap/SympaTransport.pm
soap/sympa_soap_server.fcgi
wwsympa/wwsympa.fcgi
wwsympa/archived.pl
soap/sympa_soap_server.fcgi.in
wwsympa/wwsympa.fcgi.in
wwsympa/archived.pl.in
wwsympa/Auth.pm
wwsympa/bounced.pl
wwsympa/bounce-lib.pl
wwsympa/bounced.pl.in
wwsympa/Bounce.pm
wwsympa/Challenge.pm
wwsympa/cookielib.pm
wwsympa/Marc.pm
wwsympa/SharedDocument.pm
wwsympa/SympaSession.pm
wwsympa/wwslib.pm
wwsympa/wwsympa_sudo_wrapper.pl
web_tt2/active_lists.tt2
web_tt2/add_request.tt2
web_tt2/admin_menu.tt2
......
File mode changed from 100755 to 100644
......@@ -32,19 +32,23 @@ modules_DATA = sympasoap.pm SympaTransport.pm
default_DATA = sympa.wsdl
EXTRA_DIST = $(default_DATA) $(modules_DATA) \
$(script_SCRIPTS) $(execcgi_SCRIPTS)
sympa_soap_client.pl.in \
sympa_soap_server.fcgi.in
CLEANFILES = $(script_SCRIPTS) $(execcgi_SCRIPTS)
install-exec-hook:
-chown $(USER) $(DESTDIR)$(execcgidir)/sympa_soap_server-wrapper.fcgi
-chgrp $(GROUP) $(DESTDIR)$(execcgidir)/sympa_soap_server-wrapper.fcgi
chmod 6755 $(DESTDIR)$(execcgidir)/sympa_soap_server-wrapper.fcgi
install-data-hook:
sed -i \
sympa_soap_client.pl sympa_soap_server.fcgi: Makefile
rm -f $@
sed \
-e 's|--PERL--|$(PERL)|' \
-e 's|--CONFIG--|$(CONFIG)|' \
-e 's|--WWSCONFIG--|$(WWSCONFIG)|' \
-e 's|--pkgdatadir--|$(pkgdatadir)|' \
$(addprefix $(DESTDIR)$(modulesdir)/, $(modules_DATA)) \
$(addprefix $(DESTDIR)$(execcgidir)/, $(execcgi_SCRIPTS)) \
$(addprefix $(DESTDIR)$(scriptdir)/, $(script_SCRIPTS))
-e 's|--modulesdir--|$(modulesdir)|' \
< $(srcdir)/$@.in > $@
chmod +x $@
sympa_soap_client.pl: $(srcdir)/sympa_soap_client.pl.in
sympa_soap_server.fcgi: $(srcdir)/sympa_soap_server.fcgi.in
......@@ -20,9 +20,9 @@ use HTTP::Cookies;
use URI;
use Getopt::Long;
use lib '--pkgdatadir--/lib';
use lib '--modulesdir--';
# use Conf;
require 'tools.pl';
use tools;
use strict;
......@@ -30,25 +30,36 @@ use strict;
my ($reponse, @ret, $val, %fault);
my $usage = "\n$0 is a perl soap client for Sympa for TEST ONLY. Use it to illustrate how to code access to features of Sympa soap server. Authentication can be done via user/password or user cookie or as a trusted remote application\n\n";
$usage .= "Usage: $0 <with the following options:>\n\n";
$usage .= "--soap_url=<soap sympa server url>\n";
$usage .= "--service=<a sympa service>\n";
$usage .= "--trusted_application=<app name>\n";
$usage .= "--trusted_application_password=<password>\n";
$usage .= "--proxy_vars=<id=value,id2=value2>\n";
$usage .= "--service_parameters=<value1,value2,value3>\n\n\n";
$usage .= "OR usage: $0 <with the following options:>\n\n";
$usage .= "--soap_url=<soap sympa server url>\n";
$usage .= "--user_email=<email>\n";
$usage .= "--user_password=<password>\n";
$usage .= "--session_id=<sessionid>\n";
$usage .= "--service=<a sympa service>\n";
$usage .= "--service_parameters=<value1,value2,value3>\n\n\n";
$usage .= "OR usage: $0 <with the following options:>\n\n";
$usage .= "--soap_url=<soap sympa server url>\n";
$usage .= "--cookie=<sympauser cookie string>\n\n\n";
$usage .= "Example: \n\n$0 --soap_url=<soap sympa server url> --cookie=sympauser=someone\@cru.fr%3A8be58b86\n\n";
my $usage = <<EOF;
$0 is a perl soap client for Sympa for TEST ONLY. Use it to illustrate how to
code access to features of Sympa soap server. Authentication can be done via
user/password or user cookie or as a trusted remote application
Usage: $0 <with the following options:>
--soap_url=<soap sympa server url>
--service=<a sympa service>
--trusted_application=<app name>
--trusted_application_password=<password>
--proxy_vars=<id=value,id2=value2>
--service_parameters=<value1,value2,value3>
OR usage: $0 <with the following options:>
--soap_url=<soap sympa server url>
--user_email=<email>
--user_password=<password>
--session_id=<sessionid>
--service=<a sympa service>
--service_parameters=<value1,value2,value3>
OR usage: $0 <with the following options:>
--soap_url=<soap sympa server url>
--cookie=<sympauser cookie string>
Example:
$0 --soap_url=<soap sympa server url> --cookie=sympauser=someone\@cru.fr%3A8be58b86o
EOF
my %options;
unless (&GetOptions(\%main::options, 'soap_url=s', 'service=s', 'trusted_application=s', 'trusted_application_password=s','user_email=s', 'user_password=s','cookie=s','proxy_vars=s','service_parameters=s','session_id=s')) {
......
......@@ -7,7 +7,7 @@ use SOAP::Lite;
#use SOAP::Lite +trace;
use SOAP::Transport::HTTP;
use lib '--pkgdatadir--/lib';
use lib '--modulesdir--';
## Defines SOAP::Transport::HTTP::FCGI::Sympa with a modified handle()
use SympaTransport;
......@@ -16,13 +16,14 @@ use Getopt::Long;
use strict;
## Sympa API
require 'tt2.pl';
use tt2;
use List;
use mail;
use Conf;
use Log;
use Language;
use sympasoap;
use Sympa::Constants;
## WWSympa librairies
use cookielib;
......@@ -33,8 +34,8 @@ my $birthday = time ;
my $wwsconf = {};
## Change to your wwsympa.conf location
my $conf_file = '--WWSCONFIG--';
my $sympa_conf_file = '--CONFIG--';
my $conf_file = Sympa::Constants::WWSCONFIG;
my $sympa_conf_file = Sympa::Constants::CONFIG;
## Load config
unless ($wwsconf = &wwslib::load_config($conf_file)) {
......@@ -80,7 +81,7 @@ foreach my $list (@$all_lists){
my $server = SOAP::Transport::HTTP::FCGI::Sympa->new();
#$server->dispatch_with({'urn:Sympa' => 'sympasoap'});
$server->dispatch_to('--pkgdatadir--/lib','sympasoap');
$server->dispatch_to('--modulesdir--','sympasoap');
$server->handle($birthday);
......@@ -19,7 +19,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
SUBDIRS = etc
SUBDIRS = etc lib
AM_CPPFLAGS = -DCONFIG=\"$(CONFIG)\"
......@@ -39,14 +39,14 @@ queue_SOURCES = queue.c
bouncequeue_SOURCES = bouncequeue.c
familyqueue_SOURCES = familyqueue.c
EXTRA_DIST = $(modules_DATA) \
bulk.pl.in \
alias_manager.pl.in \
sympa.pl.in \
sympa_wizard.pl.in \
task_manager.pl.in
modules_DATA = admin.pm Archive.pm Bulk.pm Commands.pm confdef.pm Conf.pm CAS.pm Config_XML.pm \
Family.pm Language.pm List.pm Log.pm mail.pm Ldap.pm Upgrade.pm \
Lock.pm Version.pm Fetch.pm Message.pm Task.pm Datasource.pm \
SQLSource.pm LDAPSource.pm Scenario.pm PlainDigest.pm \
tools.pl tt2.pl report.pm time_utils.pl
EXTRA_DIST = $(modules_DATA) $(sbin_SCRIPTS)
CLEANFILES = $(sbin_SCRIPTS)
install-exec-hook:
chmod 4755 $(DESTDIR)$(libexecdir)/queue
......@@ -69,23 +69,16 @@ install-exec-hook:
-chown root $(DESTDIR)$(sbindir)/virtualwrapper
-chgrp $(GROUP) $(DESTDIR)$(sbindir)/virtualwrapper
install-data-hook:
sed -i \
alias_manager.pl bulk.pl task_manager.pl sympa.pl sympa_wizard.pl: Makefile
rm -f $@
sed \
-e 's|--PERL--|$(PERL)|' \
-e 's|--USER--|$(USER)|' \
-e 's|--GROUP--|$(GROUP)|' \
-e 's|--VERSION--|$(VERSION)|' \
-e 's|--SENDMAIL_ALIASES--|$(SENDMAIL_ALIASES)|' \
-e 's|--CONFIG--|$(CONFIG)|' \
-e 's|--WWSCONFIG--|$(WWSCONFIG)|' \
-e 's|--prefix--|$(prefix)|' \
-e 's|--piddir--|$(piddir)|' \
-e 's|--libexecdir--|$(libexecdir)|' \
-e 's|--sbindir--|$(sbindir)|' \
-e 's|--localedir--|$(localedir)|' \
-e 's|--pkgdatadir--|$(pkgdatadir)|' \
-e 's|--sysconfdir--|$(sysconfdir)|' \
-e 's|--expldir--|$(expldir)|' \
-e 's|--spooldir--|$(spooldir)|' \
$(addprefix $(DESTDIR)$(modulesdir)/, $(modules_DATA)) \
$(addprefix $(DESTDIR)$(sbindir)/, $(sbin_SCRIPTS))
-e 's|--modulesdir--|$(modulesdir)|' \
< $(srcdir)/$@.in > $@
chmod +x $@
alias_manager.pl: $(srcdir)/alias_manager.pl.in
bulk.pl: $(srcdir)/bulk.pl.in
sympa.pl: $(srcdir)/sympa.pl.in
sympa_wizard.pl: $(srcdir)/sympa_wizard.pl.in
task_manager.pl: $(srcdir)/task_manager.pl.in
......@@ -31,26 +31,26 @@ $ENV{'PATH'} = '';
## Load Sympa.conf
use strict;
use lib '--pkgdatadir--/lib';
use lib '--modulesdir--';
use Conf;
use POSIX;
require "tools.pl";
require "tt2.pl";
use tools;
use tt2;
use Sympa::Constants;
unless (Conf::load('--CONFIG--')) {
print STDERR gettext("The configuration file --CONFIG-- contains errors.\n");
my $sympa_conf_file = Sympa::Constants::CONFIG;
unless (Conf::load($sympa_conf_file)) {
print STDERR gettext("The configuration file $sympa_conf_file contains errors.\n");
exit(1);
}
my $tmp_alias_file = $Conf{'tmpdir'}.'/sympa_aliases.'.time;
my $alias_wrapper = '--sbindir--/aliaswrapper';
my $lock_file = '--expldir--/alias_manager.lock';
my $default_domain;
my $path_to_queue = '--libexecdir--/queue';