munge init
This commit is contained in:
parent
03cf32b0f2
commit
09c2fe52c1
BIN
munge-0.5.13.tar.xz
Normal file
BIN
munge-0.5.13.tar.xz
Normal file
Binary file not shown.
117
munge.spec
Normal file
117
munge.spec
Normal file
@ -0,0 +1,117 @@
|
||||
Name: munge
|
||||
Version: 0.5.13
|
||||
Release: 3
|
||||
Summary: MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating and validating credentials.
|
||||
|
||||
License: GPLv3+ and LGPLv3+
|
||||
URL: https://dun.github.io/munge/
|
||||
Source0: https://github.com/dun/munge/releases/download/munge-%{version}/munge-%{version}.tar.xz
|
||||
|
||||
BuildRequires: gcc systemd-units zlib-devel bzip2-devel libgcrypt-devel
|
||||
|
||||
Provides: munge-libs = %{version}-%{release}
|
||||
Obsoletes: munge-libs < %{version}-%{release}
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
||||
%description
|
||||
MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating
|
||||
and validating credentials. It is designed to be highly scalable for use
|
||||
in an HPC cluster environment. It allows a process to authenticate the UID and
|
||||
GID of another local or remote process within a group of hosts having common
|
||||
users and groups. These hosts form a security realm that is defined by a shared
|
||||
cryptographic key. Clients within this security realm can create and validate
|
||||
credentials without the use of root privileges, reserved ports, or
|
||||
platform-specific methods.
|
||||
|
||||
%package devel
|
||||
Summary: Development tools for MUNGE
|
||||
Requires: munge = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Library files and header files for MUNGE development.
|
||||
|
||||
%package help
|
||||
Summary: Helpful information for MUNGE
|
||||
|
||||
%description help
|
||||
Documents and other helpful information for MUNGE.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --disable-static --with-crypto-lib=libgcrypt
|
||||
# Get rid of some rpaths for /usr/sbin
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
%make_build
|
||||
|
||||
%install
|
||||
|
||||
%make_install
|
||||
|
||||
rm %{buildroot}/%{_sysconfdir}/sysconfig/munge
|
||||
rm %{buildroot}/%{_initddir}/munge
|
||||
|
||||
rm %{buildroot}/%{_libdir}/libmunge.la
|
||||
|
||||
chmod 700 %{buildroot}%{_var}/lib/munge %{buildroot}%{_var}/log/munge
|
||||
chmod 700 %{buildroot}%{_sysconfdir}/munge
|
||||
|
||||
touch %{buildroot}%{_var}/run/munge/munged.pid
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart munge.service
|
||||
/sbin/ldconfig
|
||||
|
||||
%preun
|
||||
%systemd_preun munge.service
|
||||
|
||||
%pre
|
||||
getent group munge >/dev/null || groupadd -r munge
|
||||
getent passwd munge >/dev/null || \
|
||||
useradd -r -g munge -d %{_var}/run/munge -s /sbin/nologin \
|
||||
-c "Runs Uid 'N' Gid Emporium" munge
|
||||
exit 0
|
||||
|
||||
%post
|
||||
%systemd_post munge.service
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%{_bindir}/munge
|
||||
%{_bindir}/remunge
|
||||
%{_bindir}/unmunge
|
||||
%{_sbindir}/munged
|
||||
%{_unitdir}/munge.service
|
||||
|
||||
%attr(0700,munge,munge) %dir %{_var}/log/munge
|
||||
%attr(0700,munge,munge) %dir %{_sysconfdir}/munge
|
||||
%attr(0755,munge,munge) %dir %{_var}/run/munge/
|
||||
%attr(0644,munge,munge) %ghost %{_var}/run/munge/munged.pid
|
||||
%attr(0700,munge,munge) %dir %{_var}/lib/munge
|
||||
|
||||
%config(noreplace) %{_tmpfilesdir}/munge.conf
|
||||
|
||||
%{_libdir}/libmunge.so.2
|
||||
%{_libdir}/libmunge.so.2.0.0
|
||||
%doc AUTHORS JARGON COPYING COPYING.LESSER
|
||||
|
||||
%files devel
|
||||
%{_includedir}/munge.h
|
||||
%{_libdir}/libmunge.so
|
||||
%{_libdir}/pkgconfig/munge.pc
|
||||
|
||||
%files help
|
||||
%{_mandir}/man1/*.1.gz
|
||||
%{_mandir}/man7/munge.7.gz
|
||||
%{_mandir}/man8/munged.8.gz
|
||||
%{_mandir}/man3/*.3.gz
|
||||
%doc META NEWS QUICKSTART README doc
|
||||
|
||||
%changelog
|
||||
* Mon Mar 09 2020 Jiang Kai <jiangkai20@huawei.com> - 0.5.13-3
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user