]> arthur.barton.de Git - servertools.macosx.git/blobdiff - Makefile
Log a note when unloading already configured launch daemon config
[servertools.macosx.git] / Makefile
index 41c9d0889c667477bc7e11c6cbec8ae0da7e5238..3f6dd64d4dab70ddb0621ed2e77a108422a18447 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,8 +16,6 @@ NAME = "servertools.macosx"
 
 TOOLS = odbackup
 
-PREFIX = /usr/local
-
 all: $(TOOLS)
 
 clean:
@@ -26,7 +24,8 @@ distclean: clean
 
 maintainer-clean: distclean
 
-install: all install-odbackup
+install: all
+       @./install.sh $(TOOLS)
 
 check: all
 
@@ -41,18 +40,5 @@ distcheck: check dist
 
 odbackup:
 
-install-odbackup:
-       mkdir -p $(PREFIX)/sbin
-       install -c -m 755 -o root -g wheel \
-        odbackup/odbackup $(PREFIX)/sbin
-       launchctl list de.maccc.odbackup >/dev/null 2>&1 \
-        && launchctl unload -w /Library/LaunchDaemons/de.maccc.odbackup.plist \
-        || true
-       install -c -m 644 -o root -g wheel \
-        odbackup/de.maccc.odbackup.plist /Library/LaunchDaemons
-       [ -x /usr/sbin/slapconfig ] \
-        && launchctl load -w /Library/LaunchDaemons/de.maccc.odbackup.plist \
-        || echo "\n *** 'slapconfig' not found, not enabling odbackup!\n"
-
 .PHONY: all clean distclean maintainer-clean install check dist distcheck \
         $(TOOLS)