summaryrefslogtreecommitdiff
path: root/packages/sys-apps/openrc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sys-apps/openrc')
-rw-r--r--packages/sys-apps/openrc/files/system-services.pam7
-rw-r--r--packages/sys-apps/openrc/openrc-0.34.11-r4.exheres-0 (renamed from packages/sys-apps/openrc/openrc-0.34.11-r3.exheres-0)9
2 files changed, 13 insertions, 3 deletions
diff --git a/packages/sys-apps/openrc/files/system-services.pam b/packages/sys-apps/openrc/files/system-services.pam
new file mode 100644
index 0000000..a964f33
--- /dev/null
+++ b/packages/sys-apps/openrc/files/system-services.pam
@@ -0,0 +1,7 @@
+auth sufficient pam_permit.so
+account include system-auth
+session optional pam_loginuid.so
+session required pam_limits.so
+session required pam_env.so
+session required pam_unix.so
+session optional pam_permit.so
diff --git a/packages/sys-apps/openrc/openrc-0.34.11-r3.exheres-0 b/packages/sys-apps/openrc/openrc-0.34.11-r4.exheres-0
index 54b04d0..50af632 100644
--- a/packages/sys-apps/openrc/openrc-0.34.11-r3.exheres-0
+++ b/packages/sys-apps/openrc/openrc-0.34.11-r4.exheres-0
@@ -142,9 +142,12 @@ src_install() {
insinto /etc/logrotate.d
newins "${FILES}"/openrc.logrotate openrc
- insinto /etc/pam.d
- newins "${FILES}"/start-stop-daemon.pam start-stop-daemon
- newins "${FILES}"/start-stop-daemon.pam supervise-daemon
+ if option pam; then
+ insinto /etc/pam.d
+ newins "${FILES}"/system-services.pam system-services
+ newins "${FILES}"/start-stop-daemon.pam start-stop-daemon
+ newins "${FILES}"/start-stop-daemon.pam supervise-daemon
+ fi
dodoc ChangeLog *.md
if option newnet; then