From 4b58da4beb297cc52c4847d961000cadba7bf946 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sat, 10 Oct 2026 11:01:19 +0200 Subject: [PATCH] feat: add skeptical-updater 0.0.1 placeholder (packaging only, bumped by CI to the first upstream tag) --- .autoupdate | 6 ++++++ .gitignore | 15 ++++++++++++++ README.md | 20 ++++++++++++++++++ debian/changelog | 5 +++++ debian/control | 20 ++++++++++++++++++ debian/copyright | 48 ++++++++++++++++++++++++++++++++++++++++++++ debian/docs | 2 ++ debian/install | 1 + debian/rules | 6 ++++++ debian/source/format | 1 + debian/watch | 4 ++++ 11 files changed, 128 insertions(+) create mode 100644 .autoupdate create mode 100644 .gitignore create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/.autoupdate b/.autoupdate new file mode 100644 index 0000000..fef9f66 --- /dev/null +++ b/.autoupdate @@ -0,0 +1,6 @@ +# Autoupdater manifest - consumed by aur/.autoupdate +srchost="gitea" +srcmntr="source" +srcname="skeptical-updater" +verstrip="" +gui="false" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f4f180b --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# downloaded and generated tarballs +*.tar.gz +*.tar.xz +# built packages and build metadata +*.deb +*.dsc +*.changes +*.buildinfo +*.build +# debhelper build tree +debian/skeptical-updater/ +debian/.debhelper/ +debian/files +debian/*.substvars +debian/debhelper-build-stamp diff --git a/README.md b/README.md index b46c327..a279339 100644 --- a/README.md +++ b/README.md @@ -1 +1,21 @@ +# skeptical-updater Debian packaging for `skeptical-updater` package + +## Build + +The version in `debian/changelog` is a placeholder until CI bumps it to the +first upstream tag: to build by hand, bump it to an existing tag first. Needs +`build-essential`, `debhelper` and `devscripts` (`lintian` to check the result). + +```sh +v=0.1.0 # an existing upstream tag +dch -v "$v-1" "New upstream release." +b=$(mktemp -d) +curl -fL -o "$b/skeptical-updater_$v.orig.tar.gz" \ + "https://git.bjphoster.com/source/skeptical-updater/archive/$v.tar.gz" +mkdir "$b/src" +tar -xzf "$b/skeptical-updater_$v.orig.tar.gz" -C "$b/src" --strip-components=1 +cp -a debian "$b/src/" +(cd "$b/src" && dpkg-buildpackage -us -uc -b) +ls "$b"/*.deb +``` diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..96abc82 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +skeptical-updater (0.0.1-1) unstable; urgency=medium + + * Initial placeholder; bumped by CI to the first upstream tag. + + -- Bryan Joshua Pedini Sat, 10 Oct 2026 10:56:22 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f2061b2 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: skeptical-updater +Section: admin +Priority: optional +Maintainer: Bryan Joshua Pedini +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.6.2 +Homepage: https://git.bjphoster.com/source/skeptical-updater +Rules-Requires-Root: no + +Package: skeptical-updater +Architecture: all +Depends: bash (>= 4.3), ${misc:Depends} +Suggests: sudo +Description: manual, conscious update cycle for apt, dnf/yum, pacman/pman and zypper + skeptical-updater is a distribution-agnostic, single-file bash applet for a + manual, conscious update cycle. It wraps the native package manager (apt, + dnf/yum, pacman/pman, zypper), lists the packages that can be upgraded, lets + the user interrogate each one, and only then runs the native upgrade. + Packages the user has explicitly acknowledged are remembered in a state file + and never questioned again. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a3eee3e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,48 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: skeptical-updater +Upstream-Contact: Bryan Joshua Pedini +Source: https://git.bjphoster.com/source/skeptical-updater + +Files: * +Copyright: 2026 Bryan Joshua Pedini +License: GPL-2+ + +Files: debian/* +Copyright: 2026 Bryan Joshua Pedini +License: Expat + +License: GPL-2+ + 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, see . + . + On Debian systems, the complete text of the GNU General Public License + version 2 can be found in "/usr/share/common-licenses/GPL-2". + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..4aa935f --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README.md +docs/DESIGN.md diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..4f90cb0 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +skeptical-updater usr/bin diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..31431b2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +# The upstream makefile only drives Docker-based tests and a /usr/local install, +# so debhelper must not run it: debian/install places the applet. +%: + dh $@ --buildsystem=none diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..492fc02 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="filenamemangle=s%.*/archive/(\d[\d.]*)\.tar\.gz%skeptical-updater-$1.tar.gz%" \ + https://git.bjphoster.com/source/skeptical-updater/tags \ + .*/archive/(\d[\d.]*)\.tar\.gz