Skip to content

Commit 0f8fe2a

Browse files
committed
define the pam directory at the top level
1 parent 2947707 commit 0f8fe2a

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ rc_bindir = rc_libexecdir / 'bin'
107107
rc_sbindir = rc_libexecdir / 'sbin'
108108
rc_shdir = rc_libexecdir / 'sh'
109109
sbindir = rootprefix / get_option('sbindir')
110+
pamdir = get_option('sysconfdir') / 'pam.d'
110111

111112
crypt_dep = []
112113

src/rc/meson.build

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,9 @@ executable('start-stop-daemon',
101101
install_dir: sbindir)
102102

103103
if get_option('pam')
104-
pam_dir = get_option('sysconfdir') / 'pam.d'
105-
106104
install_data('start-stop-daemon.pam',
107105
rename : 'start-stop-daemon',
108-
install_dir : pam_dir)
106+
install_dir : pamdir)
109107
endif
110108

111109
executable('supervise-daemon',
@@ -119,11 +117,9 @@ executable('supervise-daemon',
119117
install_dir: sbindir)
120118

121119
if get_option('pam')
122-
pam_dir = get_option('sysconfdir') / 'pam.d'
123-
124120
install_data('supervise-daemon.pam',
125121
rename : 'supervise-daemon',
126-
install_dir : pam_dir)
122+
install_dir : pamdir)
127123
endif
128124

129125
if os == 'Linux'

0 commit comments

Comments
 (0)