From 5da00ab87822090b784ffc144787e980ffbafee1 Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Thu, 11 Jan 2024 19:52:38 +0000 Subject: [PATCH] Add Debian packaging --- CMakeLists.txt | 2 - debian/changelog | 84 +++++++++++++++++++++++++ debian/control | 22 +++++++ debian/copyright | 17 +++++ debian/files | 1 + debian/lubuntu-update-notifier.install | 2 + debian/lubuntu-update-notifier.postinst | 11 ++++ debian/rules | 8 +++ debian/source/format | 1 + debian/source/lintian-overrides | 2 + lubuntu-update-autostart.desktop | 7 +++ 11 files changed, 155 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/files create mode 100644 debian/lubuntu-update-notifier.install create mode 100644 debian/lubuntu-update-notifier.postinst create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 lubuntu-update-autostart.desktop diff --git a/CMakeLists.txt b/CMakeLists.txt index cb542b3..54c5f2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,8 +72,6 @@ install(TARGETS lubuntu-update # no matter where the rest of the program goes. install(FILES lubuntu-update-backend DESTINATION /usr/libexec/) -install(FILES lubuntu-update.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications/) - if(QT_VERSION_MAJOR EQUAL 6) qt_finalize_executable(lubuntu-update) endif() diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ca08e10 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,84 @@ +lubuntu-update-notifier (1.0.0~alpha1) noble; urgency=medium + + * Replace the old update notifier with Lubuntu Update. + * Change maintainer to Lubuntu Developers. + * Update copyright file. + + -- Aaron Rainbolt Thu, 11 Jan 2024 03:21:20 +0000 + +lubuntu-update-notifier (0.6.0) mantic; urgency=medium + + * Add support for release upgrading, when all updates are applied (LP: #2038958). + + -- Simon Quigley Tue, 10 Oct 2023 14:06:19 -0500 + +lubuntu-update-notifier (0.5.4) lunar; urgency=medium + + * Disconnect the status_changed() function from the status-changed signal in + repair_install(), as it interferes with upgrade_progress_download(). + (LP: #2012702) + * Don't try to pass a string to QTreeWidgetItem when it expects an + Iterable[str]. (LP: #2012823) + + -- Aaron Rainbolt Sun, 26 Mar 2023 10:48:15 -0500 + +lubuntu-update-notifier (0.5.3) lunar; urgency=medium + + * Changed some strings and fixed a typo in the autopkgtest tweak + + -- Aaron Rainbolt Thu, 02 Feb 2023 11:45:32 -0600 + +lubuntu-update-notifier (0.5.2) lunar; urgency=medium + + * Tweaked the autopkgtest script to return more detailed debugging info. + + -- Aaron Rainbolt Thu, 02 Feb 2023 10:41:08 -0600 + +lubuntu-update-notifier (0.5.1) lunar; urgency=medium + + * Added functionality for repairing an interrupted upgrade. (LP: #2002255) + * Fixed an assumption in the config-file-conflict frontend. + * Bumped version number in lubuntu-upgrader. + + -- Aaron Rainbolt Wed, 14 Dec 2022 12:32:48 -0600 + +lubuntu-update-notifier (0.5) lunar; urgency=medium + + * Add a frontend for config-file-conflict. + * Update Standards-version to 4.6.1, no changes needed. + + -- Simon Quigley Wed, 07 Dec 2022 13:26:39 -0600 + +lubuntu-update-notifier (0.4) hirsute; urgency=medium + + * Added internationalization support. + * Added packages version and description. + * Added security package mark and count. + + -- Hans P Möller Sun, 14 Feb 2021 21:06:03 -0300 + +lubuntu-update-notifier (0.3) groovy; urgency=medium + + * Added affected packages info. + * Move executables from /usr/lib to /usr/libexec. + * Added "Rules-Requires-Root: no" to debian/control. + + -- Hans P Möller Wed, 19 Aug 2020 10:23:52 -0400 + +lubuntu-update-notifier (0.2) groovy; urgency=medium + + [ Hans P Möller ] + * Change sleep time for notifier from 1 hour to 24. + * Added short description in control. + + [ Dan Simmons ] + * Drop debian/compat switch to debhlper-compat=13, no changes needed. + * Bump standards-version to 4.5.0, no changes needed. + + -- Dan Simmons Thu, 21 May 2020 19:49:57 -0400 + +lubuntu-update-notifier (0.1) focal; urgency=medium + + * Initial release. LP: #1840829 + + -- Hans P Möller Thu, 22 Aug 2019 23:23:51 -0400 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..75bca09 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: lubuntu-update-notifier +Section: admin +Priority: optional +Maintainer: Lubuntu Developers +Build-Depends: cmake, + debhelper-compat (= 13), + lxqt-sudo (>= 1.4.0-0ubuntu2), + qtbase5-dev, + qttools5-dev +Standards-Version: 4.6.2 +Rules-Requires-Root: no + +Package: lubuntu-update-notifier +Architecture: any +Depends: ${misc:Depends}, + ${shlibs:Depends} +Description: Lubuntu's update installer + Lubuntu Update is an enhanced, modern update installer for the Lubuntu + operating system. It is designed to: + * Be easy to use, + * Look nice, and + * Integrate well with the Lubuntu desktop. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..dd74cef --- /dev/null +++ b/debian/copyright @@ -0,0 +1,17 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://git.lubuntu.me/Lubuntu/lubuntu-update + +Files: * +Copyright: 2019-2024 Lubuntu Team + 2019 Hans P Möller + 2022 Simon Quigley +License: GPL-3+ + +License: GPL-3+ + 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 3 of the License, or + (at your option) any later version. + . + On Debian systems, the full text of the GNU General Public License version + 3 can be found in the file `/usr/share/common-licenses/GPL-3'. diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..a7688ae --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +lubuntu-update-notifier_1.0.0~alpha1_source.buildinfo admin optional diff --git a/debian/lubuntu-update-notifier.install b/debian/lubuntu-update-notifier.install new file mode 100644 index 0000000..65b7cde --- /dev/null +++ b/debian/lubuntu-update-notifier.install @@ -0,0 +1,2 @@ +lubuntu-update.desktop usr/share/applications +lubuntu-update-autostart.desktop etc/xdg/autostart diff --git a/debian/lubuntu-update-notifier.postinst b/debian/lubuntu-update-notifier.postinst new file mode 100644 index 0000000..e301f2a --- /dev/null +++ b/debian/lubuntu-update-notifier.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +# This file can be removed following the release of Lubuntu 24.04 LTS +# It's to ensure the old updater files get removed if necessary. + +rm -f /etc/xdg/autostart/upg-notifier-autostart.desktop +rm -f /home/*/.config/autostart/upg-notifier-autostart.desktop + +#DEBHELPER# diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3e81f54 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 + +export LC_ALL=C.UTF-8 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh ${@} diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..2dc08d1 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,2 @@ +# Wishlist +# lubuntu-update-notifier source: testsuite-autopkgtest-missing diff --git a/lubuntu-update-autostart.desktop b/lubuntu-update-autostart.desktop new file mode 100644 index 0000000..b2e5fb7 --- /dev/null +++ b/lubuntu-update-autostart.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Exec=/usr/bin/lubuntu-update +NoDisplay=true +Name=Lubuntu Update Autostart +Icon=system-software-update +Type=Application +Version=0.1