Spec fixes:
- improve readme, - remove tmpfilesdir/conf - make _rundir
This commit is contained in:
parent
850e4b0514
commit
11e658dc26
11
README.md
11
README.md
@ -4,16 +4,13 @@ The munge package.
|
|||||||
|
|
||||||
MUNGE (**M**UNGE **U**id '**N**' **G**id **E**mporium) is an authentication service for creating and validating credentials.
|
MUNGE (**M**UNGE **U**id '**N**' **G**id **E**mporium) is an authentication service for creating and validating credentials.
|
||||||
|
|
||||||
Before starting the service as the first time a secret key has to been created.
|
A secret key must be created before starting the service for the first time. This can be done with the following command:
|
||||||
|
```bash
|
||||||
For creating the key add store it to the file `/etc/munge/munge.key` use `/sbin/mungekey`.
|
sudo -u munge /usr/sbin/mungekey -v
|
||||||
For example:
|
|
||||||
```
|
|
||||||
sudo -u munge %{_sbindir}/mungekey -v
|
|
||||||
```
|
```
|
||||||
Please read `man 8 mungekey` for more information.
|
Please read `man 8 mungekey` for more information.
|
||||||
|
|
||||||
In the second step you can start and enable the munge service.
|
In the second step you can start and enable the munge service.
|
||||||
```bash
|
```bash
|
||||||
systemctl start munge
|
systemctl start munge
|
||||||
systemctl enalbe munge
|
systemctl enable munge
|
||||||
|
@ -75,8 +75,6 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|||||||
|
|
||||||
# Install extra files.
|
# Install extra files.
|
||||||
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/munge.conf
|
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/munge.conf
|
||||||
# Not installed by make
|
|
||||||
install -p -D -m 0644 src/etc/munge.tmpfiles.conf %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
||||||
|
|
||||||
# rm unneeded files.
|
# rm unneeded files.
|
||||||
# Exclude .la files
|
# Exclude .la files
|
||||||
@ -90,6 +88,7 @@ chmod 700 %{buildroot}%{_sysconfdir}/munge
|
|||||||
# Create and empty key file and pid file to be marked as a ghost file below.
|
# Create and empty key file and pid file to be marked as a ghost file below.
|
||||||
# i.e it is not actually included in the rpm, only the record
|
# i.e it is not actually included in the rpm, only the record
|
||||||
# of it is.
|
# of it is.
|
||||||
|
mkdir -p %{buildroot}%{_rundir}/munge
|
||||||
touch %{buildroot}%{_rundir}/munge/munged.pid
|
touch %{buildroot}%{_rundir}/munge/munged.pid
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -134,7 +133,6 @@ touch %{buildroot}%{_rundir}/munge/munged.pid
|
|||||||
%attr(0755,munge,munge) %dir /run/munge/
|
%attr(0755,munge,munge) %dir /run/munge/
|
||||||
%attr(0644,munge,munge) %ghost /run/munge/munged.pid
|
%attr(0644,munge,munge) %ghost /run/munge/munged.pid
|
||||||
|
|
||||||
%{_tmpfilesdir}/munge.conf
|
|
||||||
%{_sysusersdir}/munge.conf
|
%{_sysusersdir}/munge.conf
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/munge
|
%config(noreplace) %{_sysconfdir}/logrotate.d/munge
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/munge
|
%config(noreplace) %{_sysconfdir}/sysconfig/munge
|
||||||
@ -171,6 +169,11 @@ touch %{buildroot}%{_rundir}/munge/munged.pid
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 18 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.14-1
|
||||||
|
- remove tmpfiles.d
|
||||||
|
- make %%_rundir,
|
||||||
|
- improve readme
|
||||||
|
|
||||||
* Tue Nov 17 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.14-1
|
* Tue Nov 17 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.14-1
|
||||||
- Update to latest release
|
- Update to latest release
|
||||||
- Remove unneeded files
|
- Remove unneeded files
|
||||||
|
Loading…
Reference in New Issue
Block a user