From: Vincent Bernat Date: Sat, 13 Jul 2013 15:59:47 +0000 (+0200) Subject: osx: make the path to /Library/LaunchDaemons configurable X-Git-Tag: 0.7.7~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3f855602d842334ac1d413ef530e70d9c9484f9;p=thirdparty%2Flldpd.git osx: make the path to /Library/LaunchDaemons configurable This path can also be set to `no` to avoid the installation of such a daemon. --- diff --git a/configure.ac b/configure.ac index 0cb80791..bec8ddc6 100644 --- a/configure.ac +++ b/configure.ac @@ -175,6 +175,9 @@ if test x"$with_json" = x"yes"; then lldp_CHECK_JANSSON fi +# OS X launchd support +lldp_ARG_WITH([launchd-daemons-path], [Path to system-wide daemons configuration files (OSX)], [/Library/LaunchDaemons]) + # Privsep settings lldp_ARG_WITH([privsep-user], [Which user to use for privilege separation], [_lldpd]) lldp_ARG_WITH([privsep-group], [Which group to use for privilege separation], [_lldpd]) diff --git a/osx/Makefile.am b/osx/Makefile.am index d924c87a..7f34c2af 100644 --- a/osx/Makefile.am +++ b/osx/Makefile.am @@ -58,10 +58,10 @@ $(ARCHS:%=stamp-%): stamp-%: im.bernat.lldpd.plist # Install launchd plist install-data-local: - install -m 0755 -d $(DESTDIR)/Library/LaunchDaemons - install -m 0644 im.bernat.lldpd.plist $(DESTDIR)/Library/LaunchDaemons + [ x"@LAUNCHD_DAEMONS_PATH@" = x"no" ] || install -m 0755 -d $(DESTDIR)@LAUNCHD_DAEMONS_PATH@ + [ x"@LAUNCHD_DAEMONS_PATH@" = x"no" ] || install -m 0644 im.bernat.lldpd.plist $(DESTDIR)@LAUNCHD_DAEMONS_PATH@ uninstall-local: - rm -f $(DESTDIR)/Library/LaunchDaemons/im.bernat.lldpd.plist + [ x"@LAUNCHD_DAEMONS_PATH@" = x"no" ] || rm -f $(DESTDIR)@LAUNCHD_DAEMONS_PATH@/im.bernat.lldpd.plist clean-local: rm -rf $(ARCHS) rm -rf $(PKG_DIR)