mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	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.
		
			
				
	
	
		
			39 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			39 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
 |