this solves the issue of having to special case before and after usrmove
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
[ INITDDIR="$withval" ],
[ INITDDIR="$sysconfdir/init.d" ])
+AC_ARG_WITH([systemddir],
+ [ --with-systemddir=DIR : path to systemd unit files directory. ],
+ [ SYSTEMDDIR="$withval" ],
+ [ SYSTEMDDIR="/lib/systemd/system" ])
+
AC_ARG_ENABLE([snmp],
[ --enable-snmp : SNMP protocol support ],
[ default="no" ])
# substitute what we need:
AC_SUBST([INITDDIR])
+AC_SUBST([SYSTEMDDIR])
AC_SUBST([SOMAJOR])
AC_SUBST([SOMINOR])
%if %{with xmlconf}
--enable-xmlconf \
%endif
- --with-initddir=%{_initrddir}
+ --with-initddir=%{_initrddir} \
+ --with-systemddir=%{_unitdir}
make %{_smp_mflags}
EXTRA_DIST = generic.in notifyd.in corosync.service.in corosync-notifyd.service.in
if INSTALL_SYSTEMD
-systemdconfdir = /lib/systemd/system
+systemdconfdir = $(SYSTEMDDIR)
systemdconf_DATA = corosync.service corosync-notifyd.service
else
target_INIT = generic notifyd