Commit b801c41c authored by sikeda's avatar sikeda
Browse files

[feature] configure: New option --with-smrshdir (or --without-smrshdir) to...

[feature] configure: New option --with-smrshdir (or --without-smrshdir) to install (or not to install) symbolic links to queue programs for Sendmail smrsh.  Default is to install them into SYSCONDIR/smrsh.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@10332 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent ef1e3af4
......@@ -48,6 +48,7 @@ AC_ARG_ENABLE(
if test "$fhs" = "yes"; then
# only define custom variables
initdir=$sysconfdir/rc.d/init.d
smrshdir=$sysconfdir/smrsh
piddir=$localstatedir/run/sympa
lockdir=$localstatedir/lock/subsys
modulesdir=$datadir/sympa/lib
......@@ -80,6 +81,7 @@ else
# define custom variables
initdir=/etc/rc.d/init.d
smrshdir=/etc/smrsh
piddir=$prefix
lockdir=$localstatedir/lock/subsys
modulesdir=$prefix/bin
......@@ -98,6 +100,7 @@ fi
# substitute custom variables
AC_SUBST(initdir)
AC_SUBST(smrshdir)
AC_SUBST(piddir)
AC_SUBST(lockdir)
AC_SUBST(modulesdir)
......@@ -276,6 +279,16 @@ AC_ARG_WITH(
[initdir="$withval"]
)
AC_ARG_WITH(
smrshdir,
AS_HELP_STRING(
[--with-smrshdir=DIR],
[install symbolic links for Sendmail smrsh @<:@SYSCONFDIR/smrsh@:>@]
),
[smrshdir="$withval"]
)
AM_CONDITIONAL(SMRSH, [test "x$smrshdir" != "x" && test "x$smrshdir" != "xno"])
AC_ARG_WITH(
lockdir,
AS_HELP_STRING(
......
......@@ -64,6 +64,17 @@ install-exec-hook:
-chgrp $(GROUP) $(DESTDIR)$(libexecdir)/familyqueue
chmod 4755 $(DESTDIR)$(libexecdir)/familyqueue
if SMRSH
@echo 'Installing symbolic links for Sendmail smrsh'
install -d -m755 $(DESTDIR)$(smrshdir)
-rm -f $(DESTDIR)$(smrshdir)/queue
$(LN_S) $(libexecdir)/queue $(DESTDIR)$(smrshdir)/queue
-rm -f $(DESTDIR)$(smrshdir)/bouncequeue
$(LN_S) $(libexecdir)/bouncequeue $(DESTDIR)$(smrshdir)/bouncequeue
-rm -f $(DESTDIR)$(smrshdir)/familyqueue
$(LN_S) $(libexecdir)/familyqueue $(DESTDIR)$(smrshdir)/familyqueue
endif
-chown root $(DESTDIR)$(libexecdir)/sympa_newaliases-wrapper
-chgrp $(GROUP) $(DESTDIR)$(libexecdir)/sympa_newaliases-wrapper
chmod 4750 $(DESTDIR)$(libexecdir)/sympa_newaliases-wrapper
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment