remove separate pam directory

This commit is contained in:
William Hubbs 2021-12-29 19:04:06 -06:00
parent cab458e27a
commit fd70988587
5 changed files with 16 additions and 24 deletions

View File

@ -195,9 +195,6 @@ subdir('etc')
subdir('init.d')
subdir('local.d')
subdir('man')
if get_option('pam')
subdir('pam')
endif
if get_option('pkgconfig')
subdir('pkgconfig')
endif

View File

@ -1,9 +0,0 @@
pam_dir = get_option('sysconfdir') / 'pam.d'
pam_files = [
'start-stop-daemon',
'supervise-daemon',
]
install_data(pam_files,
install_dir : pam_dir)

View File

@ -1,6 +0,0 @@
#%PAM-1.0
auth required pam_permit.so
account required pam_permit.so
password required pam_deny.so
session optional pam_limits.so

View File

@ -1,6 +0,0 @@
#%PAM-1.0
auth required pam_permit.so
account required pam_permit.so
password required pam_deny.so
session optional pam_limits.so

View File

@ -100,6 +100,14 @@ executable('start-stop-daemon',
install: true,
install_dir: sbindir)
if get_option('pam')
pam_dir = get_option('sysconfdir') / 'pam.d'
install_data('start-stop-daemon.pam',
rename : 'start-stop-daemon',
install_dir : pam_dir)
endif
executable('supervise-daemon',
['supervise-daemon.c', rc_misc_c, rc_plugin_c, rc_schedules_c,
usage_c, version_h],
@ -110,6 +118,14 @@ executable('supervise-daemon',
install: true,
install_dir: sbindir)
if get_option('pam')
pam_dir = get_option('sysconfdir') / 'pam.d'
install_data('supervise-daemon.pam',
rename : 'supervise-daemon',
install_dir : pam_dir)
endif
if os == 'Linux'
executable('openrc-init',
['openrc-init.c', rc_plugin_c, rc_wtmp_c, version_h],