diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/maintainer-scripts/adduser | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/maintainer-scripts/adduser')
4 files changed, 20 insertions, 0 deletions
diff --git a/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/debian/postinst b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/debian/postinst new file mode 100755 index 0000000..51a4df4 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/debian/postinst @@ -0,0 +1,14 @@ +#! /bin/sh +# excerpt from postinst script for pulseaudio + +case "$1" in + configure) + if ! getent passwd pulse >/dev/null; then + adduser --disabled-password --quiet --system \ + --home /var/run/pulse --no-create-home\ + --gecos "PulseAudio daemon" --group pulse + fi + ;; +esac + +exit 0 diff --git a/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/fill-values b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/fill-values new file mode 100644 index 0000000..b2fefca --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: home-in-var-run +Description: Test for {pre,post}inst script which calls adduser --home /var/run diff --git a/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/desc b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/desc new file mode 100644 index 0000000..075b41a --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/desc @@ -0,0 +1,2 @@ +Testname: home-in-var-run +Check: maintainer-scripts/adduser diff --git a/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/hints b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/hints new file mode 100644 index 0000000..ed262f1 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/adduser/home-in-var-run/eval/hints @@ -0,0 +1 @@ +home-in-var-run (binary): adduser-with-home-var-run [postinst:9] |