From 7671d61c0212121ed26f54e567f452996a6ee5df Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 14 Apr 2020 23:10:36 +0200 Subject: [PATCH] Add post install debian --- dist/deb/debian.postinst | 15 +++++++++++++++ dist/deb/debian.rules | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 dist/deb/debian.postinst diff --git a/dist/deb/debian.postinst b/dist/deb/debian.postinst new file mode 100644 index 0000000..80878a4 --- /dev/null +++ b/dist/deb/debian.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Fetching configuration from debconf +#db_get packagename/question1 +#ANSWER1=$RET + +DEB_VENDOR=$(cat /etc/dpkg/origins/default | grep Vendor: | sed -e "s/Vendor: //") + +if { "$DEB_VENDOR" == "Debian" ] ; then + gnome-shell-extension-tool -e ubuntu-appindicator@ubuntu.com + touch /maxime-was-here +fi diff --git a/dist/deb/debian.rules b/dist/deb/debian.rules index 5824f34..3850705 100644 --- a/dist/deb/debian.rules +++ b/dist/deb/debian.rules @@ -72,7 +72,6 @@ ifeq (Debian,$(DEB_VENDOR)) mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird/extensions cd /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird/extensions ;\ ln -sf ../../thunderbird-addons/extensions/systray-x@Ximi1970.xpi systray-x@Ximi1970.xpi - gnome-shell-extension-tool -e ubuntu-appindicator@ubuntu.com else mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi