#!/bin/sh # # Copyright (C) 2012-2023 Ruben Rodriguez <ruben@trisquel.info> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # VERSION=8 COMPONENT=main . ./config #Use custom apt-check to fix motd update notification by striping esm stuff. cp $DATA/apt_check.py data/apt_check.py sed -i '/test_motd.py/d' debian/rules sed -i '/test_package-data-downloader.py/d' debian/rules rm debian/update-notifier-hp-firmware.conf sed '/hp-firmware/d' -i debian/update-notifier.install sed -i "/ubuntu-drivers-common/d" debian/control echo "exit 0" > data/list-oem-metapackages # Prevent automated connections sed '/Update-Package-Lists/s/1/0/' -i debian/10periodic # Allow to run under KDE sed '/NotShowIn=KDE/d' -i data/update-notifier.desktop.in # Actually show the indicator icon cat << EOF | patch -p1 diff --git a/src/update.c b/src/update.c index 588fa66..951a24f 100644 --- a/src/update.c +++ b/src/update.c @@ -687,7 +687,6 @@ update_check (TrayApplet *ta) g_child_watch_add (pid, launch_update_manager, NULL); } - return TRUE; // if we are already visible, skip the rest if(tray_applet_ui_get_visible (ta)) EOF # Custom icons cp $DATA/icons/* ./pixmaps/scalable rm ./pixmaps/{16x16,22x22,24x24,48x48}/ -rf echo "SUBDIRS = scalable" > pixmaps/Makefile.am sed '/pixmaps\/..x..\/Makefile/d' -i configure.ac sed '/usr\/share\/icons\/hicolor\/..x../d' -i debian/update-notifier.install # Disable livepatch sed '/livepatch/d' -i debian/update-notifier.install # Wayland compatibility cat << EOF | patch -p1 --- a/src/update-notifier.c 2023-01-20 13:50:39.000000000 -0500 +++ b/src/update-notifier.c 2023-02-07 11:08:58.883996715 -0500 @@ -168,7 +168,13 @@ // normal launch context = gdk_display_get_app_launch_context (gdk_display_get_default ()); - guint32 timestamp = gdk_x11_get_server_time (gtk_widget_get_window (w)); + guint32 timestamp; +#ifdef GDK_WINDOWING_X11 + if (GDK_IS_X11_DISPLAY (gdk_display_get_default ())) + timestamp = gdk_x11_get_server_time (gtk_widget_get_window (w)); + else +#endif + timestamp = (guint32) (g_get_monotonic_time () / 1000); appinfo = g_app_info_create_from_commandline(cmd, cmd, G_APP_INFO_CREATE_NONE, EOF # Removal of whoopsie & apport cat << EOF | patch -p1 --- a/debian/control 2023-02-16 10:12:29.302592910 -0600 +++ b/debian/control 2023-02-16 10:15:08.276963044 -0600 @@ -35,11 +35,9 @@ ubuntu-release-upgrader-gtk, gnome-shell <!s390x> | notification-daemon <!s390x>, policykit-1 -Recommends: apport-gtk (>=2.8-0ubuntu3), - python3-aptdaemon.gtk3widgets | synaptic (>= 0.75.12), +Recommends: python3-aptdaemon.gtk3widgets | synaptic (>= 0.75.12), software-properties-gtk, - python3-aptdaemon, - whoopsie (>= 0.2.77) + python3-aptdaemon Description: Daemon which notifies about package updates Puts an icon in the user's notification area when package updates are available. EOF changelog "Disabled hp-firmware handling and ubuntu-drivers" compile