diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8595927 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +fake-proxmox-subscription (1.0.0-1) trixie; urgency=medium + + * Initial release + + -- Arslan Masood Wed, 21 Aug 2025 23:30:35 +0300 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c9dde99 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: fake-proxmox-subscription +Section: misc +Priority: optional +Maintainer: Arslan Masood +Uploaders: Arslan Masood +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), +Standards-Version: 4.7.0 +Homepage: https://github.com/Arszilla/fake-proxmox-subscription +Vcs-Browser: https://github.com/Arszilla/fake-proxmox-subscription +Vcs-Git: https://github.com/Arszilla/fake-proxmox-subscription.git + +Package: fake-proxmox-subscription +Architecture: all +Depends: + ${misc:Depends}, + ${shlibs:Depends}, + python3:any, +Description: Remove "No valid subscription" dialog box in Proxmox products + A package to disables the "No valid subscription" dialog on all Proxmox + products (in theory), regardless of their version. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..27f6f3e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/Arszilla/fake-proxmox-subscription +Upstream-Name: fake-proxmox-subscription +Upstream-Contact: Arslan Masood + +Files: usr/* +Copyright: + 2025 Arslan Masood + 2019-2024 Jamesits +License: GLWTS + +Files: debian/* +Copyright: 2025 Arslan Masood +License: GLWTS + +License: GLWTS + GLWTS(Good Luck With That Shit) Public License + Copyright (c) Every-fucking-one, except the Author + . + Everyone is permitted to copy, distribute, modify, merge, sell, publish, + sublicense or whatever the fuck they want with this software but at their + OWN RISK. + . + Preamble + . + The author has absolutely no fucking clue what the code in this project + does. It might just fucking work or not, there is no third option. + . + . + GOOD LUCK WITH THAT SHIT PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION, AND MODIFICATION + . + 0. You just DO WHATEVER THE FUCK YOU WANT TO as long as you NEVER LEAVE + A FUCKING TRACE TO TRACK THE AUTHOR of the original product to blame for + or held responsible. + . + IN NO EVENT SHALL THE AUTHORS 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. + . + Good luck and Godspeed. diff --git a/debian/fake-proxmox-subscription.install b/debian/fake-proxmox-subscription.install new file mode 100644 index 0000000..d9b9c21 --- /dev/null +++ b/debian/fake-proxmox-subscription.install @@ -0,0 +1,3 @@ +usr/bin/fake-proxmox-subscription usr/bin/ +usr/lib/systemd/system/fake-proxmox-subscription.service usr/lib/systemd/system/ +usr/lib/systemd/system/fake-proxmox-subscription.timer usr/lib/systemd/system/ diff --git a/scripts/postinst b/debian/fake-proxmox-subscription.postinst similarity index 96% rename from scripts/postinst rename to debian/fake-proxmox-subscription.postinst index ad8ed91..87a35fa 100755 --- a/scripts/postinst +++ b/debian/fake-proxmox-subscription.postinst @@ -23,7 +23,7 @@ after_upgrade() { fi # Execute the fake-proxmox-subscription script: - /usr/bin/fake-proxmox-subscription + fake-proxmox-subscription } after_install() { @@ -38,7 +38,7 @@ after_install() { fi # Execute the fake-proxmox-subscription script: - /usr/bin/fake-proxmox-subscription + fake-proxmox-subscription } if { [ "${1}" = "configure" ] && [ -z "${2}" ]; } || [ "${1}" = "abort-remove" ]; then diff --git a/scripts/postrm b/debian/fake-proxmox-subscription.postrm similarity index 100% rename from scripts/postrm rename to debian/fake-proxmox-subscription.postrm diff --git a/scripts/prerm b/debian/fake-proxmox-subscription.prerm similarity index 100% rename from scripts/prerm rename to debian/fake-proxmox-subscription.prerm diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1a08679 --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +%: + dh $@ + +override_dh_install: + dh_install + + chmod 0755 usr/bin/fake-proxmox-subscription + chmod 0644 usr/lib/systemd/system/fake-proxmox-subscription.service + chmod 0644 usr/lib/systemd/system/fake-proxmox-subscription.timer + 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/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..08b7637 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/Arszilla/fake-proxmox-subscription/issues +Bug-Submit: https://github.com/Arszilla/fake-proxmox-subscription/issues/new +Repository-Browse: https://github.com/Arszilla/fake-proxmox-subscription +Repository: https://github.com/Arszilla/fake-proxmox-subscription.git diff --git a/nfpm.yaml b/nfpm.yaml deleted file mode 100644 index db06427..0000000 --- a/nfpm.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: "pve-fake-subscription" -arch: "all" -platform: "linux" -version: "0.0.11" -version_schema: "semver" -version_metadata: "git" - -epoch: 0 -release: 1 -section: "admin" -priority: "optional" - -maintainer: "Nobody " - -depends: -- python3 -description: | - Pollute the subscription cache of Proxmox VE (>=5.0), Proxmox Mail Gateway (>=5.0) & Proxmox Backup Server (>=1.0) so it won't alert you on dashboard login -vendor: "none" -homepage: "https://github.com/Jamesits/pve-fake-subscription" -license: "GLWTS(Good Luck With That Shit) Public License" - -contents: -- src: "./usr/bin/pve-fake-subscription" - dst: "/usr/bin/pve-fake-subscription" - file_info: - mode: 0755 -- src: "./usr/lib/systemd" - dst: "/usr/lib/systemd" - file_info: - mode: 0644 -- src: "./usr/share/doc/pve-fake-subscription" - dst: "/usr/share/doc/pve-fake-subscription" - file_info: - mode: 0644 - -scripts: - postinstall: "./scripts/postinst" - preremove: "./scripts/prerm" - postremove: "./scripts/postrm" diff --git a/package.sh b/package.sh deleted file mode 100755 index 21d60da..0000000 --- a/package.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set -Eeuo pipefail -cd "$( dirname "${BASH_SOURCE[0]}" )" || exit 1 - -OUT_DIR="out" - -rm -rf "${OUT_DIR}" -mkdir -p "${OUT_DIR}" - -# build package -nfpm pkg --packager deb --target "${OUT_DIR}" - -# generate checksum -pushd "${OUT_DIR}" >/dev/null -sha256sum -b -- * > sha256sum.txt -popd >/dev/null diff --git a/usr/share/doc/pve-fake-subscription/copyright b/usr/share/doc/pve-fake-subscription/copyright deleted file mode 100644 index 2f77829..0000000 --- a/usr/share/doc/pve-fake-subscription/copyright +++ /dev/null @@ -1,7 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: pve-fake-subscription -Source: https://github.com/Jamesits/pve-fake-subscription - -Files: * -Copyright: 2019 Nobody -License: GLWTS(Good Luck With That Shit) Public License