[PR #2614] [MERGED] Refactor Debian/Ubuntu packaging #2763

Closed
opened 2025-12-29 04:18:52 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2614
Author: @nblock
Created: 5/19/2025
Status: Merged
Merged: 5/21/2025
Merged by: @nblock

Base: mainHead: pkg


📝 Commits (3)

  • e54b377 Refactor Debian/Ubuntu package
  • 2ce0b90 Drop syslog.target and systemd-managed /var/run
  • 5bc5ed5 Drop support for Ubuntu 20.04

📊 Changes

12 files changed (+193 additions, -122 deletions)

View changed files

📝 .goreleaser.yml (+19 -6)
📝 CHANGELOG.md (+2 -0)
docs/packaging/README.md (+0 -5)
docs/packaging/postinstall.sh (+0 -88)
docs/packaging/postremove.sh (+0 -15)
📝 docs/setup/install/official.md (+3 -3)
📝 mkdocs.yml (+0 -3)
packaging/README.md (+5 -0)
packaging/deb/postinst (+87 -0)
packaging/deb/postrm (+42 -0)
packaging/deb/prerm (+34 -0)
📝 packaging/systemd/headscale.service (+1 -2)

📄 Description

Please see commit messages for details.

NOTE: If this is merged, it needs to be part of 0.27.0 as the migration in the package checks for that version. The script output of various scenarios is attached. The only difference is that maintainer scripts are executed with set -ex instead of set -e to allow introspection.

See: #2278
See: #2133
Fixes: #2311

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

ubuntu2204-scenario-install-purge-install.txt
lintian.txt
debian12-scenario-reinstall-same.txt
debian12-scenario-oldest-to-dev.txt
debian12-scenario-new-install.txt
debian12-scenario-latest-to-dev.txt
debian12-scenario-install-remove-install.txt
debian12-scenario-install-purge-install.txt
debian11-scenario-reinstall-same.txt
debian11-scenario-oldest-to-dev.txt
debian11-scenario-new-install.txt
debian11-scenario-latest-to-dev.txt
debian11-scenario-install-remove-install.txt
ubuntu2404-scenario-reinstall-same.txt
ubuntu2404-scenario-oldest-to-dev.txt
ubuntu2404-scenario-new-install.txt
ubuntu2404-scenario-latest-to-dev.txt
ubuntu2404-scenario-install-remove-install.txt
ubuntu2404-scenario-install-purge-install.txt
ubuntu2204-scenario-reinstall-same.txt
ubuntu2204-scenario-oldest-to-dev.txt
ubuntu2204-scenario-new-install.txt
ubuntu2204-scenario-latest-to-dev.txt
ubuntu2204-scenario-install-remove-install.txt
debian11-scenario-install-purge-install.txt
piparts.txt


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2614 **Author:** [@nblock](https://github.com/nblock) **Created:** 5/19/2025 **Status:** ✅ Merged **Merged:** 5/21/2025 **Merged by:** [@nblock](https://github.com/nblock) **Base:** `main` ← **Head:** `pkg` --- ### 📝 Commits (3) - [`e54b377`](https://github.com/juanfont/headscale/commit/e54b3770fa85b3f1a4a32a50f0d04512237480c1) Refactor Debian/Ubuntu package - [`2ce0b90`](https://github.com/juanfont/headscale/commit/2ce0b900bb15ba720d9a3fe0c9cb4f8ff3579e2d) Drop syslog.target and systemd-managed /var/run - [`5bc5ed5`](https://github.com/juanfont/headscale/commit/5bc5ed5e39972d1f830c40299573bcdd0f5647e7) Drop support for Ubuntu 20.04 ### 📊 Changes **12 files changed** (+193 additions, -122 deletions) <details> <summary>View changed files</summary> 📝 `.goreleaser.yml` (+19 -6) 📝 `CHANGELOG.md` (+2 -0) ➖ `docs/packaging/README.md` (+0 -5) ➖ `docs/packaging/postinstall.sh` (+0 -88) ➖ `docs/packaging/postremove.sh` (+0 -15) 📝 `docs/setup/install/official.md` (+3 -3) 📝 `mkdocs.yml` (+0 -3) ➕ `packaging/README.md` (+5 -0) ➕ `packaging/deb/postinst` (+87 -0) ➕ `packaging/deb/postrm` (+42 -0) ➕ `packaging/deb/prerm` (+34 -0) 📝 `packaging/systemd/headscale.service` (+1 -2) </details> ### 📄 Description Please see commit messages for details. NOTE: If this is merged, it needs to be part of 0.27.0 as the migration in the package checks for that version. The script output of various scenarios is attached. The only difference is that maintainer scripts are executed with `set -ex` instead of `set -e` to allow introspection. See: #2278 See: #2133 Fixes: #2311 - [x] have read the [CONTRIBUTING.md](./CONTRIBUTING.md) file - [x] raised a GitHub issue or discussed it on the projects chat beforehand - [ ] added unit tests - [ ] added integration tests - [x] updated documentation if needed - [x] updated CHANGELOG.md --- [ubuntu2204-scenario-install-purge-install.txt](https://github.com/user-attachments/files/20326848/ubuntu2204-scenario-install-purge-install.txt) [lintian.txt](https://github.com/user-attachments/files/20326852/lintian.txt) [debian12-scenario-reinstall-same.txt](https://github.com/user-attachments/files/20326853/debian12-scenario-reinstall-same.txt) [debian12-scenario-oldest-to-dev.txt](https://github.com/user-attachments/files/20326854/debian12-scenario-oldest-to-dev.txt) [debian12-scenario-new-install.txt](https://github.com/user-attachments/files/20326855/debian12-scenario-new-install.txt) [debian12-scenario-latest-to-dev.txt](https://github.com/user-attachments/files/20326856/debian12-scenario-latest-to-dev.txt) [debian12-scenario-install-remove-install.txt](https://github.com/user-attachments/files/20326857/debian12-scenario-install-remove-install.txt) [debian12-scenario-install-purge-install.txt](https://github.com/user-attachments/files/20326858/debian12-scenario-install-purge-install.txt) [debian11-scenario-reinstall-same.txt](https://github.com/user-attachments/files/20326859/debian11-scenario-reinstall-same.txt) [debian11-scenario-oldest-to-dev.txt](https://github.com/user-attachments/files/20326860/debian11-scenario-oldest-to-dev.txt) [debian11-scenario-new-install.txt](https://github.com/user-attachments/files/20326861/debian11-scenario-new-install.txt) [debian11-scenario-latest-to-dev.txt](https://github.com/user-attachments/files/20326862/debian11-scenario-latest-to-dev.txt) [debian11-scenario-install-remove-install.txt](https://github.com/user-attachments/files/20326863/debian11-scenario-install-remove-install.txt) [ubuntu2404-scenario-reinstall-same.txt](https://github.com/user-attachments/files/20326864/ubuntu2404-scenario-reinstall-same.txt) [ubuntu2404-scenario-oldest-to-dev.txt](https://github.com/user-attachments/files/20326865/ubuntu2404-scenario-oldest-to-dev.txt) [ubuntu2404-scenario-new-install.txt](https://github.com/user-attachments/files/20326866/ubuntu2404-scenario-new-install.txt) [ubuntu2404-scenario-latest-to-dev.txt](https://github.com/user-attachments/files/20326867/ubuntu2404-scenario-latest-to-dev.txt) [ubuntu2404-scenario-install-remove-install.txt](https://github.com/user-attachments/files/20326868/ubuntu2404-scenario-install-remove-install.txt) [ubuntu2404-scenario-install-purge-install.txt](https://github.com/user-attachments/files/20326869/ubuntu2404-scenario-install-purge-install.txt) [ubuntu2204-scenario-reinstall-same.txt](https://github.com/user-attachments/files/20326870/ubuntu2204-scenario-reinstall-same.txt) [ubuntu2204-scenario-oldest-to-dev.txt](https://github.com/user-attachments/files/20326871/ubuntu2204-scenario-oldest-to-dev.txt) [ubuntu2204-scenario-new-install.txt](https://github.com/user-attachments/files/20326872/ubuntu2204-scenario-new-install.txt) [ubuntu2204-scenario-latest-to-dev.txt](https://github.com/user-attachments/files/20326875/ubuntu2204-scenario-latest-to-dev.txt) [ubuntu2204-scenario-install-remove-install.txt](https://github.com/user-attachments/files/20326876/ubuntu2204-scenario-install-remove-install.txt) [debian11-scenario-install-purge-install.txt](https://github.com/user-attachments/files/20326877/debian11-scenario-install-purge-install.txt) [piparts.txt](https://github.com/user-attachments/files/20326879/piparts.txt) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 04:18:52 +01:00
adam closed this issue 2025-12-29 04:18:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2763