Commit eb723bd8 authored by sikeda's avatar sikeda
Browse files

[-bug] With automake earlier than 1.11, init script and/or unit files may be...

[-bug] With automake earlier than 1.11, init script and/or unit files may be installed into root directory if they are disabled buy configure options.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12758 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 62d92139
......@@ -252,6 +252,7 @@ AS_HELP_STRING(
),
[test "x$withval" = "xyes" || initdir="$withval"; test "x$withval" = "xno" && initdir=""]
)
AM_CONDITIONAL([SYSV_INIT], [test "x$initdir" != "x"])
AC_ARG_WITH(
unitsdir,
......@@ -261,6 +262,7 @@ AC_ARG_WITH(
),
[test "x$withval" = "xyes" || unitsdir="$withval"; test "x$withval" = "xno" && unitsdir=""]
)
AM_CONDITIONAL([SYSTEMD_UNITS], [test "x$unitsdir" != "x"])
AC_ARG_WITH(
smrshdir,
......
......@@ -20,7 +20,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if SYSV_INIT
init_SCRIPTS = sympa
endif
if SYSTEMD_UNITS
units_SCRIPTS = \
sympa-archive.service \
sympa-bounce.service \
......@@ -31,6 +35,7 @@ noinst_SCRIPTS = \
nginx-sympasoap.service \
nginx-wwsympa.service \
sympa-tmpfiles.conf
endif
EXTRA_DIST = \
sympa.in \
......
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