2 # servertools.macosx Makefile
3 # Copyright (c)2008,2009 Barton IT-Consulting, Alexander Barton
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE.
12 # See the GNU General Public License for more details.
25 maintainer-clean: distclean
27 install: all install-odbackup
36 mkdir -p $(PREFIX)/sbin
37 install -c -m 755 -o root -g wheel \
38 odbackup/odbackup $(PREFIX)/sbin
39 launchctl list de.maccc.odbackup >/dev/null 2>&1 \
40 && launchctl unload -w /Library/LaunchDaemons/de.maccc.odbackup.plist \
42 install -c -m 644 -o root -g wheel \
43 odbackup/de.maccc.odbackup.plist /Library/LaunchDaemons
44 [ -x /usr/sbin/slapconfig ] \
45 && launchctl load -w /Library/LaunchDaemons/de.maccc.odbackup.plist \
46 || echo "\n *** 'slapconfig' not found, not enabling odbackup!\n"
48 .PHONY: all clean distclean maintainer-clean install check dist distcheck \