summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorYaroslav Shmelev <yars068@yandex.ru>2016-01-22 08:27:24 +0100
committerOndrej Holy <oholy@redhat.com>2016-01-22 13:32:07 +0100
commit5dcf92a112a010e67b6fc58dbd0b39cec8e823d6 (patch)
tree2a511b277b1c80955eaac0e4be9c2e73acbae045 /monitor
parent584a43d0a26813406e49d978ea517968d01b16d8 (diff)
downloadgvfs-5dcf92a112a010e67b6fc58dbd0b39cec8e823d6.tar.gz
build: Add --with-systemduserunitdir option
This option allows maintainers to specify the directory that contain a systemd user units, or disable it. Default location for these units is /usr/lib/systemd/user. This patch will switch from hard-coded path to configurable one. The patch was modified by Ondrej Holy <oholy@redhat.com>. https://bugzilla.gnome.org/show_bug.cgi?id=760293
Diffstat (limited to 'monitor')
-rw-r--r--monitor/afc/Makefile.am3
-rw-r--r--monitor/gdu/Makefile.am3
-rw-r--r--monitor/goa/Makefile.am3
-rw-r--r--monitor/gphoto2/Makefile.am3
-rw-r--r--monitor/hal/Makefile.am3
-rw-r--r--monitor/mtp/Makefile.am3
-rw-r--r--monitor/udisks2/Makefile.am3
7 files changed, 14 insertions, 7 deletions
diff --git a/monitor/afc/Makefile.am b/monitor/afc/Makefile.am
index bde7a903..48c7978f 100644
--- a/monitor/afc/Makefile.am
+++ b/monitor/afc/Makefile.am
@@ -35,9 +35,10 @@ servicedir = $(datadir)/dbus-1/services
service_in_files = org.gtk.vfs.AfcVolumeMonitor.service.in
service_DATA = $(service_in_files:.service.in=.service)
-systemd_userdir = ${prefix}/lib/systemd/user
systemd_user_in_files = gvfs-afc-volume-monitor.service.in
+if USE_SYSTEMD_USER_UNITS
systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
diff --git a/monitor/gdu/Makefile.am b/monitor/gdu/Makefile.am
index 0c5c4e8b..175d739b 100644
--- a/monitor/gdu/Makefile.am
+++ b/monitor/gdu/Makefile.am
@@ -43,9 +43,10 @@ servicedir = $(datadir)/dbus-1/services
service_in_files = org.gtk.vfs.GduVolumeMonitor.service.in
service_DATA = $(service_in_files:.service.in=.service)
-systemd_userdir = ${prefix}/lib/systemd/user
systemd_user_in_files = gvfs-gdu-volume-monitor.service.in
+if USE_SYSTEMD_USER_UNITS
systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
diff --git a/monitor/goa/Makefile.am b/monitor/goa/Makefile.am
index c1c45d9b..af7845e1 100644
--- a/monitor/goa/Makefile.am
+++ b/monitor/goa/Makefile.am
@@ -35,9 +35,10 @@ servicedir = $(datadir)/dbus-1/services
service_in_files = org.gtk.vfs.GoaVolumeMonitor.service.in
service_DATA = $(service_in_files:.service.in=.service)
-systemd_userdir = ${prefix}/lib/systemd/user
systemd_user_in_files = gvfs-goa-volume-monitor.service.in
+if USE_SYSTEMD_USER_UNITS
systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
diff --git a/monitor/gphoto2/Makefile.am b/monitor/gphoto2/Makefile.am
index 723fbbc3..0cd8e1b1 100644
--- a/monitor/gphoto2/Makefile.am
+++ b/monitor/gphoto2/Makefile.am
@@ -77,9 +77,10 @@ servicedir = $(datadir)/dbus-1/services
service_in_files = org.gtk.vfs.GPhoto2VolumeMonitor.service.in
service_DATA = $(service_in_files:.service.in=.service)
-systemd_userdir = ${prefix}/lib/systemd/user
systemd_user_in_files = gvfs-gphoto2-volume-monitor.service.in
+if USE_SYSTEMD_USER_UNITS
systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
diff --git a/monitor/hal/Makefile.am b/monitor/hal/Makefile.am
index 888268fa..88b402fb 100644
--- a/monitor/hal/Makefile.am
+++ b/monitor/hal/Makefile.am
@@ -56,9 +56,10 @@ servicedir = $(datadir)/dbus-1/services
service_in_files = org.gtk.vfs.HalVolumeMonitor.service.in
service_DATA = $(service_in_files:.service.in=.service)
-systemd_userdir = ${prefix}/lib/systemd/user
systemd_user_in_files = gvfs-hal-volume-monitor.service.in
+if USE_SYSTEMD_USER_UNITS
systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
diff --git a/monitor/mtp/Makefile.am b/monitor/mtp/Makefile.am
index 98e64b3a..2a7e9de0 100644
--- a/monitor/mtp/Makefile.am
+++ b/monitor/mtp/Makefile.am
@@ -40,9 +40,10 @@ servicedir = $(datadir)/dbus-1/services
service_in_files = org.gtk.vfs.MTPVolumeMonitor.service.in
service_DATA = $(service_in_files:.service.in=.service)
-systemd_userdir = ${prefix}/lib/systemd/user
systemd_user_in_files = gvfs-mtp-volume-monitor.service.in
+if USE_SYSTEMD_USER_UNITS
systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
diff --git a/monitor/udisks2/Makefile.am b/monitor/udisks2/Makefile.am
index 5c0a8016..052fac59 100644
--- a/monitor/udisks2/Makefile.am
+++ b/monitor/udisks2/Makefile.am
@@ -48,9 +48,10 @@ servicedir = $(datadir)/dbus-1/services
service_in_files = org.gtk.vfs.UDisks2VolumeMonitor.service.in
service_DATA = $(service_in_files:.service.in=.service)
-systemd_userdir = ${prefix}/lib/systemd/user
systemd_user_in_files = gvfs-udisks2-volume-monitor.service.in
+if USE_SYSTEMD_USER_UNITS
systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+endif
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@