aboutsummaryrefslogtreecommitdiff
path: root/swaylock
diff options
context:
space:
mode:
Diffstat (limited to 'swaylock')
-rw-r--r--swaylock/meson.build17
-rw-r--r--swaylock/pam/swaylock.freebsd6
-rw-r--r--swaylock/pam/swaylock.linux (renamed from swaylock/pam/swaylock)0
3 files changed, 19 insertions, 4 deletions
diff --git a/swaylock/meson.build b/swaylock/meson.build
index 63f694b9..675b8c69 100644
--- a/swaylock/meson.build
+++ b/swaylock/meson.build
@@ -24,7 +24,16 @@ executable(
install: true
)
-install_data(
- 'pam/swaylock',
- install_dir: sysconfdir + '/pam.d/'
-)
+if is_freebsd
+ install_data(
+ 'pam/swaylock.freebsd',
+ install_dir: sysconfdir + '/pam.d/',
+ rename: 'swaylock'
+ )
+else
+ install_data(
+ 'pam/swaylock.linux',
+ install_dir: sysconfdir + '/pam.d/',
+ rename: 'swaylock'
+ )
+endif
diff --git a/swaylock/pam/swaylock.freebsd b/swaylock/pam/swaylock.freebsd
new file mode 100644
index 00000000..603fc185
--- /dev/null
+++ b/swaylock/pam/swaylock.freebsd
@@ -0,0 +1,6 @@
+#
+# PAM configuration file for the swaylock screen locker. By default, it includes
+# the 'passwd' configuration file (see /etc/pam.d/passwd)
+#
+
+auth include passwd
diff --git a/swaylock/pam/swaylock b/swaylock/pam/swaylock.linux
index 6a36b0d6..6a36b0d6 100644
--- a/swaylock/pam/swaylock
+++ b/swaylock/pam/swaylock.linux