summaryrefslogtreecommitdiffstats
path: root/rpm/generic/zfs.spec.in
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-07-30 12:09:46 -0400
committerGitHub <[email protected]>2020-07-30 09:09:46 -0700
commit2f571dbe06e3d65a3ddadca54d94e4ee2798529d (patch)
treef29e8e016f223ec007a7707d92524c80ee8556ec /rpm/generic/zfs.spec.in
parent3a92552f755543c02c71aa29d680261907b1bea3 (diff)
Use correct prefix for share/pam-configs
Respect the configured install prefix. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Arvind Sankar <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #10604
Diffstat (limited to 'rpm/generic/zfs.spec.in')
-rw-r--r--rpm/generic/zfs.spec.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
index e0bed4cc4..e715c8569 100644
--- a/rpm/generic/zfs.spec.in
+++ b/rpm/generic/zfs.spec.in
@@ -348,6 +348,8 @@ image which is ZFS aware.
--with-udevdir=%{_udevdir} \
--with-udevruledir=%{_udevruledir} \
--with-dracutdir=%{_dracutdir} \
+ --with-pamconfigsdir=%{_datadir}/pam-configs \
+ --with-pammoduledir=%{_libdir}/security \
--with-python=%{__python} \
--with-pkgconfigdir=%{_pkgconfigdir} \
--disable-static \
@@ -355,7 +357,7 @@ image which is ZFS aware.
%{debuginfo} \
%{asan} \
%{systemd} \
- --with-pammoduledir=%{_libdir}/security %{pam} \
+ %{pam} \
%{pyzfs}
make %{?_smp_mflags}
@@ -472,7 +474,7 @@ systemctl --system daemon-reload >/dev/null || true
%attr(440, root, root) %config(noreplace) %{_sysconfdir}/sudoers.d/*
%if %{with pam}
%{_libdir}/security/*
-%{_pamconfigsdir}/*
+%{_datadir}/pam-configs/*
%endif
%files -n libzpool2