Initialize Git Repository: 'Trash-Bin'
All checks were successful
Trash Bin / Trash Bin (amd64, bookworm trixie noble, main) (push) Successful in 11s
Trash Bin / Trash Bin (arm64, bookworm trixie noble, main) (push) Successful in 11s

This commit is contained in:
Cantibra
2026-03-19 14:16:33 +01:00
commit e6f5656be1
13 changed files with 612 additions and 0 deletions

9
trash-bin/DEBIAN/control Normal file
View File

@@ -0,0 +1,9 @@
Package: trash-bin
Version:
Architecture:
Installed-Size:
Priority: optional
Section: misc
Homepage: http://www.privlab.it
Maintainer: PrivLab <repository@privlab.it>
Description: Trashbin for the Bash environment

38
trash-bin/DEBIAN/postinst Normal file
View File

@@ -0,0 +1,38 @@
#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
fi
case "${1}" in
configure)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper unmask 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'trash-bin.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if /usr/bin/deb-systemd-helper --quiet was-enabled 'trash-bin.timer'; then
/usr/bin/deb-systemd-helper enable 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
else
/usr/bin/deb-systemd-helper update-state 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
if [ -n "${2}" ]; then
_dh_action='restart'
else
_dh_action='start'
fi
/usr/bin/deb-systemd-invoke "${_dh_action}" 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
esac

33
trash-bin/DEBIAN/postrm Normal file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
fi
case "${1}" in
remove)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper mask 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper mask 'trash-bin.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
purge)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper purge 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper purge 'trash-bin.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'trash-bin.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/rm --force --recursive '/var/trash'
;;
esac

17
trash-bin/DEBIAN/prerm Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/sh
set -e
set -u
case "${1}" in
remove)
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
/usr/bin/deb-systemd-invoke stop 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-invoke stop 'trash-bin.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-invoke disable 'trash-bin.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
esac