Skip to content
Snippets Groups Projects
Commit 46791433 authored by Moe Jette's avatar Moe Jette
Browse files

add pam_slurm to a new rpm

parent 272b81db
No related branches found
No related tags found
No related merge requests found
...@@ -112,10 +112,6 @@ BuildRequires: ncurses-devel ...@@ -112,10 +112,6 @@ BuildRequires: ncurses-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
%endif %endif
%if %{slurm_with pam}
BuildRequires: pam-devel
%endif
%if %{slurm_with readline} %if %{slurm_with readline}
BuildRequires: readline-devel BuildRequires: readline-devel
%endif %endif
...@@ -287,6 +283,19 @@ Requires: slurm ...@@ -287,6 +283,19 @@ Requires: slurm
%description sjstat %description sjstat
Perl tool to print SLURM job state information. Perl tool to print SLURM job state information.
%if %{slurm_with pam}
%package pam_slurm
Summary: PAM module for restricting access to compute nodes via SLURM.
Group: System Environment/Base
Requires: slurm
BuildRequires: slurm-devel pam-devel
%description pam_slurm
This module restricts access to compute nodes in a cluster where the Simple
Linux Utility for Resource Managment (SLURM) is in use. Access is granted
to root, any user with an SLURM-launched job currently running on the node,
or any user who has allocated resources on the node according to the SLURM
%endif
############################################################################# #############################################################################
%prep %prep
...@@ -559,6 +568,13 @@ rm -rf $RPM_BUILD_ROOT ...@@ -559,6 +568,13 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/sjstat %{_bindir}/sjstat
############################################################################# #############################################################################
%if %{slurm_with pam}
%files slurm_pam
%defattr(-,root,root)
%{_libdir}/security/pam_slurm.so
%endif
#############################################################################
%pre %pre
#if [ -x /etc/init.d/slurm ]; then #if [ -x /etc/init.d/slurm ]; then
# if /etc/init.d/slurm status | grep -q running; then # if /etc/init.d/slurm status | grep -q running; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment