]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Install Bacula systemd files in /etc/systemd/system
authorKern Sibbald <kern@sibbald.com>
Sat, 4 Aug 2018 08:05:35 +0000 (10:05 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 4 Aug 2018 09:49:45 +0000 (11:49 +0200)
bacula/autoconf/configure.in

index 0dfc9d086e792c34b7834dbe5a7cb4ae6b70def8..3b4c8f7d09ecf22bafb719258deaa4f7a3caa4b8 100644 (file)
@@ -2874,24 +2874,24 @@ if test x$support_xattr = xyes -o x$support_xattr = xauto; then
       AC_CHECK_HEADER(attr.h, [ AC_DEFINE(HAVE_ATTR_H,1,[Defines if your system have the attr.h header file])] , )
 
       AC_CHECK_FUNCS(openat attropen unlinkat fchownat futimesat linkat,
-         [
-            have_xattr=yes
-            AC_DEFINE([HAVE_OPENAT],1,[Define to 1 if you have the 'openat' function.])
-            AC_DEFINE([HAVE_ATTROPEN],1,[Define to 1 if you have the 'attropen' function.])
-            AC_DEFINE([HAVE_UNLINKAT],1,[Define to 1 if you have the 'unlinkat' function.])
-            AC_DEFINE([HAVE_FCHOWNAT],1,[Define to 1 if you have the 'fchownat' function.])
-            AC_DEFINE([HAVE_FUTIMESAT],1,[Define to 1 if you have the 'futimesat' function.])
-            AC_DEFINE([HAVE_LINKAT],1,[Define to 1 if you have the 'linkat' function.])
-         ]
+        [
+           have_xattr=yes
+           AC_DEFINE([HAVE_OPENAT],1,[Define to 1 if you have the 'openat' function.])
+           AC_DEFINE([HAVE_ATTROPEN],1,[Define to 1 if you have the 'attropen' function.])
+           AC_DEFINE([HAVE_UNLINKAT],1,[Define to 1 if you have the 'unlinkat' function.])
+           AC_DEFINE([HAVE_FCHOWNAT],1,[Define to 1 if you have the 'fchownat' function.])
+           AC_DEFINE([HAVE_FUTIMESAT],1,[Define to 1 if you have the 'futimesat' function.])
+           AC_DEFINE([HAVE_LINKAT],1,[Define to 1 if you have the 'linkat' function.])
+        ]
       )
 
       if test $have_xattr = yes; then
-         AC_CHECK_LIB(nvpair, nvlist_next_nvpair,
-            [
-               AC_DEFINE([HAVE_NVLIST_NEXT_NVPAIR],1,[Define to 1 if you have the 'nvlist_next_nvpair' function.])
-               FDLIBS="-lnvpair $FDLIBS"
-            ]
-         )
+        AC_CHECK_LIB(nvpair, nvlist_next_nvpair,
+           [
+              AC_DEFINE([HAVE_NVLIST_NEXT_NVPAIR],1,[Define to 1 if you have the 'nvlist_next_nvpair' function.])
+              FDLIBS="-lnvpair $FDLIBS"
+           ]
+        )
       fi
    fi
 
@@ -3307,7 +3307,8 @@ AC_ARG_WITH(systemd,
    [
        if test "$withval" != "no"; then
           if test "$withval" = "yes"; then
-              SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
+              dnl An alternative could be /lib/systemd/system
+              SYSTEMD_UNITDIR="/etc/systemd/system"
           else
               SYSTEMD_UNITDIR="${withval}"
           fi