# See the GNU General Public License for more details.
#
-TOOLS = odbackup
+NAME = "servertools.macosx"
-PREFIX = /usr/local
+TOOLS = odbackup
all: $(TOOLS)
maintainer-clean: distclean
-install: all install-odbackup
+install: all
+ @./install.sh $(TOOLS)
check: all
dist:
+ COPYFILE_DISABLE=true tar cvzf $(NAME)-`date +%Y%m%d`.tar.gz \
+ --exclude ".git*" --exclude "*.tar.gz" --exclude "*.tgz" \
+ --exclude "._*" --exclude "*~" --exclude "*.bak" \
+ -C .. `basename $$PWD`
+
+
+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)