mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 01:41:30 +00:00
6de777a986
The "login" PAM configuration means somathing entirely different on FreeBSD than on Linux: if you try to authenticate as the calling user, it OKs the request without prompting for password. The "passwd" config implements the desired functionality, therefore it should be used by swaylock.
40 lines
598 B
Meson
40 lines
598 B
Meson
sysconfdir = get_option('sysconfdir')
|
|
|
|
executable(
|
|
'swaylock', [
|
|
'main.c',
|
|
'password.c',
|
|
'render.c',
|
|
'seat.c'
|
|
],
|
|
include_directories: [sway_inc],
|
|
dependencies: [
|
|
cairo,
|
|
client_protos,
|
|
gdk_pixbuf,
|
|
libpam,
|
|
math,
|
|
pango,
|
|
pangocairo,
|
|
xkbcommon,
|
|
wayland_client,
|
|
wlroots,
|
|
],
|
|
link_with: [lib_sway_common, lib_sway_client],
|
|
install: true
|
|
)
|
|
|
|
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
|