diff options
author | 2018-09-03 10:59:18 -0400 | |
---|---|---|
committer | 2018-09-03 10:59:18 -0400 | |
commit | e4afd33d478c14fd82e585eefe36b5576d78c5bb (patch) | |
tree | dd7397f8494a9ef8493674d550bafbc0333a8376 /swaylock | |
parent | Merge pull request #2563 from taiyu-len/fix/misaligned-pointer-access (diff) | |
parent | Change _XOPEN_SOURCE defines to _POSIX_C_SOURCE (diff) | |
download | sway-e4afd33d478c14fd82e585eefe36b5576d78c5bb.tar.gz sway-e4afd33d478c14fd82e585eefe36b5576d78c5bb.tar.zst sway-e4afd33d478c14fd82e585eefe36b5576d78c5bb.zip |
Merge pull request #2542 from sghctoma/fix-freebsd-build
FreeBSD fixes
Diffstat (limited to 'swaylock')
-rw-r--r-- | swaylock/meson.build | 17 | ||||
-rw-r--r-- | swaylock/pam/swaylock.freebsd | 6 | ||||
-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( | |||
24 | install: true | 24 | install: true |
25 | ) | 25 | ) |
26 | 26 | ||
27 | install_data( | 27 | if is_freebsd |
28 | 'pam/swaylock', | 28 | install_data( |
29 | install_dir: sysconfdir + '/pam.d/' | 29 | 'pam/swaylock.freebsd', |
30 | ) | 30 | install_dir: sysconfdir + '/pam.d/', |
31 | rename: 'swaylock' | ||
32 | ) | ||
33 | else | ||
34 | install_data( | ||
35 | 'pam/swaylock.linux', | ||
36 | install_dir: sysconfdir + '/pam.d/', | ||
37 | rename: 'swaylock' | ||
38 | ) | ||
39 | 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 @@ | |||
1 | # | ||
2 | # PAM configuration file for the swaylock screen locker. By default, it includes | ||
3 | # the 'passwd' configuration file (see /etc/pam.d/passwd) | ||
4 | # | ||
5 | |||
6 | 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 | |||