aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-10-05 23:38:21 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-10-05 23:38:21 +0300
commit348ad0a87056c4c6ee198874c89700211f3a10f5 (patch)
tree2e8d255f10dbc1d09aa2bb760a65dccb7a6dccfc /testdata/repos
parentaddons.git: add helping message on failure on git remote setup (diff)
downloadpkgcheck-348ad0a87056c4c6ee198874c89700211f3a10f5.tar.gz
pkgcheck-348ad0a87056c4c6ee198874c89700211f3a10f5.tar.bz2
pkgcheck-348ad0a87056c4c6ee198874c89700211f3a10f5.zip
BannedEapiCommand: add some extra user/group commands
Add some commands which should never be called in ebuild to the banned list. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata/repos')
-rw-r--r--testdata/repos/standalone/BadCommandsCheck/BannedEapiCommand/BannedEapiCommand-2.ebuild14
1 files changed, 14 insertions, 0 deletions
diff --git a/testdata/repos/standalone/BadCommandsCheck/BannedEapiCommand/BannedEapiCommand-2.ebuild b/testdata/repos/standalone/BadCommandsCheck/BannedEapiCommand/BannedEapiCommand-2.ebuild
new file mode 100644
index 00000000..1282287f
--- /dev/null
+++ b/testdata/repos/standalone/BadCommandsCheck/BannedEapiCommand/BannedEapiCommand-2.ebuild
@@ -0,0 +1,14 @@
+EAPI=6
+
+DESCRIPTION="Ebuild using banned commands"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="0"
+LICENSE="BSD"
+
+pkg_preinst() {
+ usermod -s /bin/bash uucp || die
+}
+
+pkg_postrm() {
+ usermod -s /bin/false uucp || die
+}