Move handler to /usr/share
authorJoachim Breitner <mail@joachim-breitner.de>
Fri, 8 Aug 2008 05:33:27 +0000 (05:33 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Fri, 8 Aug 2008 05:33:27 +0000 (05:33 +0000)
data/Makefile.am
data/pam-dbus-notify.desktop [deleted file]
data/pam-dbus-notify.desktop.in [new file with mode: 0644]
handlers/Makefile.am

index 4e6758c..ef4041d 100644 (file)
@@ -4,3 +4,10 @@ dist_dbussystem_DATA=pam_dbus.conf
 
 autostartdir=/etc/xdg/autostart
 dist_autostart_DATA=pam-dbus-notify.desktop
+CLEANFILES = $(dist_autostart_DATA)
+EXTRA_DIST = pam-dist-notify.desktop.in
+
+pam-dbus-notify.desktop: pam-dbus-notify.desktop.in Makefile
+       sed -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
+             < pam-dbus-notify.desktop.in > pam-dbus-notify.desktop
+
diff --git a/data/pam-dbus-notify.desktop b/data/pam-dbus-notify.desktop
deleted file mode 100644 (file)
index b95efe2..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-[Desktop Entry]
-Name=pam-dbus Handler
-Comment=Answers authentication requests by pam-dbus
-Exec=pam-dbus-notify
-Terminal=false
-Type=Application
-StartupNotify=false
-X-GNOME-Autostart-enabled=true
diff --git a/data/pam-dbus-notify.desktop.in b/data/pam-dbus-notify.desktop.in
new file mode 100644 (file)
index 0000000..4ef0152
--- /dev/null
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=pam-dbus Handler
+Comment=Answers authentication requests by pam-dbus
+Exec=@pkgdatadir@/pam-dbus-notify
+Terminal=false
+Type=Application
+StartupNotify=false
+X-GNOME-Autostart-enabled=true
index 325deaa..75c1966 100644 (file)
@@ -1,2 +1,2 @@
 EXTRA_DIST=*
-bin_SCRIPTS=pam-dbus-notify
+pkgdata_SCRIPTS=pam-dbus-notify