[packages/mozilla-addon-gnome-keyring] add trigger for thunderbird

glen glen at pld-linux.org
Tue Jul 4 00:00:21 CEST 2017


commit 30640d6bcb0a5e87c8540a39ae1979ac27acc3ce
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Jul 4 01:00:09 2017 +0300

    add trigger for thunderbird

 mozilla-addon-gnome-keyring.spec | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/mozilla-addon-gnome-keyring.spec b/mozilla-addon-gnome-keyring.spec
index 70b0aca..58a503e 100644
--- a/mozilla-addon-gnome-keyring.spec
+++ b/mozilla-addon-gnome-keyring.spec
@@ -1,7 +1,7 @@
 Summary:	Extension that enables Gnome Keyring integration
 Name:		mozilla-addon-gnome-keyring
 Version:	0.10
-Release:	4
+Release:	5
 License:	MPL v1.1 or GPL v2+ or LGPL v2.1+
 Group:		X11/Applications/Networking
 Source0:	https://github.com/swick/mozilla-gnome-keyring/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -24,6 +24,7 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		iceweasel_dir	%{_datadir}/iceweasel/browser/extensions
 %define		icedove_dir		%{_libdir}/icedove/extensions
+%define		thunderbird_dir	%{_libdir}/thunderbird/extensions
 
 %description
 This extension replaces the default password manager in both Firefox
@@ -70,6 +71,15 @@ if [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L %{iceweasel_dir}/%{extension_id} ];
 	rm -f %{iceweasel_dir}/%{extension_id}
 fi
 
+%triggerin -- thunderbird
+test -L %{iceweasel_dir}/%{extension_id} || \
+	ln -sf %{extensionsdir}/%{extension_id} %{thunderbird_dir}/%{extension_id}
+
+%triggerun -- thunderbird
+if [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L %{thunderbird_dir}/%{extension_id} ]; then
+	rm -f %{iceweasel_dir}/%{extension_id}
+fi
+
 %files
 %defattr(644,root,root,755)
 %dir %{extensionsdir}/%{extension_id}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mozilla-addon-gnome-keyring.git/commitdiff/30640d6bcb0a5e87c8540a39ae1979ac27acc3ce



More information about the pld-cvs-commit mailing list