diff options
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | extras/init.d/Makefile.am | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7c1ef206f..9c1c32a01 100644 --- a/configure.ac +++ b/configure.ac @@ -135,6 +135,12 @@ AC_ARG_WITH(initdir, [initdir='/etc/init.d']) AC_SUBST(initdir) +AC_ARG_WITH(launchddir, + [ --with-launchddir=DIR launchd services in DIR @<:@/Library/LaunchDaemons@:>@], + [launchddir=$withval], + [launchddir='/Library/LaunchDaemons']) +AC_SUBST(launchddir) + # LEX needs a check AC_PROG_LEX if test "x${LEX}" != "xflex" -a "x${FLEX}" != "xlex"; then diff --git a/extras/init.d/Makefile.am b/extras/init.d/Makefile.am index 6f479e7ca..c09016178 100644 --- a/extras/init.d/Makefile.am +++ b/extras/init.d/Makefile.am @@ -4,6 +4,7 @@ EXTRA_DIST = glusterfsd-Debian glusterfsd-Redhat glusterfsd-SuSE glusterfs-serve CLEANFILES = initdir = @initdir@ +launchddir = @launchddir@ $(GF_DISTRIBUTION): $(mkdir_p) $(DESTDIR)$(initdir) @@ -13,5 +14,6 @@ install-exec-local: $(GF_DISTRIBUTION) install-data-local: if GF_DARWIN_HOST_OS - cp glusterfs-server.plist /Library/LaunchDaemons/com.gluster.glusterfs.plist + $(mkdir_p) $(DESTDIR)$(launchddir) + $(INSTALL_PROGRAM) glusterfs-server.plist $(DESTDIR)$(launchddir)/com.gluster.glusterfs.plist endif |