summaryrefslogtreecommitdiff
path: root/libre-testing/your-system-sanity
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2022-09-20 18:12:37 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-10-05 09:27:47 -0400
commit1fbb1bc06fa891f36639de941f1232ac1d1479b8 (patch)
tree83b1e32ce0d03ab44a1186c54bef351914267584 /libre-testing/your-system-sanity
parent80a61355b29ce19b18bddaac361ca15b390a2e52 (diff)
normalize 'your-*' PKGBUILDs and install hook messages
Diffstat (limited to 'libre-testing/your-system-sanity')
-rw-r--r--libre-testing/your-system-sanity/PKGBUILD27
-rw-r--r--libre-testing/your-system-sanity/your-system-sanity.hook24
2 files changed, 36 insertions, 15 deletions
diff --git a/libre-testing/your-system-sanity/PKGBUILD b/libre-testing/your-system-sanity/PKGBUILD
index 800f21131..0020c5ce2 100644
--- a/libre-testing/your-system-sanity/PKGBUILD
+++ b/libre-testing/your-system-sanity/PKGBUILD
@@ -1,26 +1,23 @@
-# Copyright (C) 2019 Freemor <freemor@freemor.ca>
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the CC0 1.0 License.
-# Maintainers: Parabola hackers <dev@lists.parabola.nu>
+# SPDX-License-Identifier: CC0-1.0
+# Maintainer: Parabola Hackers <dev@lists.parabola.nu>
+
pkgname=your-system-sanity
-pkgdesc="This package Warns about and fails to install/upgrade any offending Third Party Package Manager."
-license=('GPL3')
-url="https://git.parabola.nu/abslibre.git"
pkgver=0.2
pkgrel=2
-
-arch=('any')
-depends=('pacman')
-groups=('base' 'base-openrc')
+pkgdesc="This package Warns about and fails to install/upgrade any offending Third Party Package Manager."
+arch=(any)
+url=https://labs.parabola.nu/issues/1035 # TODO: add wiki article for 'url'
+license=(GPL3)
source=('TPPM.hook' 'TPPMwarn')
+
sha512sums=('452022078de19bc9353ee3f0a2bfca2142c56b99d21276ae4de00568dbf77e3701bd4edd6e70f7454b35602712d601ce08542afcce7a86370399318d09aa74ba'
'cc30673b8bdf63c8de6cb0cdd4397f93f3c855a051ce194cb3d2459f83728d8749b661dfab33ae961b64ba6ec4809946421806c596e459101f1da28d2fec6876')
-package() {
- cd "$srcdir"
- install -Dm755 TPPMwarn "$pkgdir"/usr/bin/TPPMwarn
- install -Dm644 TPPM.hook "$pkgdir"/etc/pacman.d/hooks/TPPM.hook
+package()
+{
+ install -Dm755 TPPMwarn "${pkgdir}"/usr/bin/TPPMwarn
+ install -Dm644 TPPM.hook "${pkgdir}"/etc/pacman.d/hooks/TPPM.hook
}
diff --git a/libre-testing/your-system-sanity/your-system-sanity.hook b/libre-testing/your-system-sanity/your-system-sanity.hook
new file mode 100644
index 000000000..9a7763850
--- /dev/null
+++ b/libre-testing/your-system-sanity/your-system-sanity.hook
@@ -0,0 +1,24 @@
+notice()
+{
+ cat <<EOF
+ The 'your-system-sanity' package detects other packages on your system,
+ which are known to facilitate installing other non-free packages,
+ or to otherwise disregard the authority of the system package manager,
+ and protects you from (accidentally) installing those in the future.
+
+ Also, as any other such packages are identified in the future,
+ an updated 'your-system-sanity' package will prompt you for their removal.
+
+ Your feedback/participation is important. It is _your_ system, after all.
+ If you notice any problems caused by this package, or notice some package
+ which does or does not deserve to be guarded, please do start a discussion.
+
+ * Bugs: https://labs.parabola.nu
+ * Forum: https://forum.parabola.nu
+ * Email: mailto:assist@lists.parabola.nu
+ * Chat: ircs://irc.libera.chat/#parabola
+EOF
+}
+
+pre_install() { notice ; }
+pre_upgrade() { notice ; }