From 14d17ed14571a95a2d94e7207ec2cbe0580598c2 Mon Sep 17 00:00:00 2001 From: Philip Meulengracht Date: Thu, 5 Sep 2024 10:20:09 +0200 Subject: [PATCH] slices: add libpam-pwquality and dependencies --- slices/libpam-pwquality.yaml | 22 +++++++++++++++++++ slices/libpwquality-common.yaml | 13 +++++++++++ slices/libpwquality1.yaml | 17 ++++++++++++++ .../integration/libpam-pwquality/task.yaml | 12 ++++++++++ 4 files changed, 64 insertions(+) create mode 100644 slices/libpam-pwquality.yaml create mode 100644 slices/libpwquality-common.yaml create mode 100644 slices/libpwquality1.yaml create mode 100644 tests/spread/integration/libpam-pwquality/task.yaml diff --git a/slices/libpam-pwquality.yaml b/slices/libpam-pwquality.yaml new file mode 100644 index 000000000..b2277e524 --- /dev/null +++ b/slices/libpam-pwquality.yaml @@ -0,0 +1,22 @@ +package: libpam-pwquality + +essential: + - libpam-pwquality_copyright + +slices: + libs: + essential: + - libc6_libs + - libpam-runtime_pam-defaults + - libpam0g_libs + - libpwquality1_libs + contents: + /usr/lib/*-linux-*/security/pam_pwquality.so: + + pam-config: + contents: + /usr/share/pam-configs/pwquality: + + copyright: + contents: + /usr/share/doc/libpam-pwquality/copyright: diff --git a/slices/libpwquality-common.yaml b/slices/libpwquality-common.yaml new file mode 100644 index 000000000..56e48cef9 --- /dev/null +++ b/slices/libpwquality-common.yaml @@ -0,0 +1,13 @@ +package: libpwquality-common + +essential: + - libpwquality-common_copyright + +slices: + config: + contents: + /etc/security/pwquality.conf: + + copyright: + contents: + /usr/share/doc/libpwquality-common/copyright: diff --git a/slices/libpwquality1.yaml b/slices/libpwquality1.yaml new file mode 100644 index 000000000..a4d0696aa --- /dev/null +++ b/slices/libpwquality1.yaml @@ -0,0 +1,17 @@ +package: libpwquality1 + +essential: + - libpwquality1_copyright + +slices: + libs: + essential: + - libc6_libs + - libcrack2_libs + - libpwquality-common_config + contents: + /usr/lib/*-linux-*/libpwquality.so.1*: + + copyright: + contents: + /usr/share/doc/libpwquality1/copyright: diff --git a/tests/spread/integration/libpam-pwquality/task.yaml b/tests/spread/integration/libpam-pwquality/task.yaml new file mode 100644 index 000000000..e35a24497 --- /dev/null +++ b/tests/spread/integration/libpam-pwquality/task.yaml @@ -0,0 +1,12 @@ +summary: Integration tests for libpam-pwquality + +execute: | + rootfs="$(install-slices libpam-pwquality_libs)" + + # simple test that just ensures slices install and + # that the primary library is valid file + + apt install --update -y gcc + arch=$(gcc -dumpmachine) + + test -f ${rootfs}/usr/lib/${arch}/security/pam_pwquality.so