only install DBUS and systemd files if they don't exist.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-28 18:04:38 +01:00
parent ec10295d9c
commit 41e8a949b3

View File

@@ -21,5 +21,5 @@ ocpasswd.8: ../src/ocpasswd-args.def
rm -f "$<".tmp
install-data-local:
-test -d "$(DBUS_CONFIG_DIR)" && $(INSTALL_DATA) dbus/org.infradead.ocserv.conf $(DBUS_CONFIG_DIR)
-test -d "/usr/lib/systemd/system/" && $(INSTALL_DATA) systemd/standalone/ocserv.service /usr/lib/systemd/system/
-test -d "$(DBUS_CONFIG_DIR)" && ! test -f $(DBUS_CONFIG_DIR)/org.infradead.ocserv.conf && $(INSTALL_DATA) dbus/org.infradead.ocserv.conf $(DBUS_CONFIG_DIR)
-test -d "/usr/lib/systemd/system/" && ! test -f /usr/lib/systemd/system/ocserv.service && $(INSTALL_DATA) systemd/standalone/ocserv.service /usr/lib/systemd/system/