diff --git a/README.md b/README.md index 2f1fc27..c29be6a 100644 --- a/README.md +++ b/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. -Before starting the service as the first time a secret key has to been created. - -For creating the key add store it to the file `/etc/munge/munge.key` use `/sbin/mungekey`. -For example: -``` -sudo -u munge %{_sbindir}/mungekey -v +A secret key must be created before starting the service for the first time. This can be done with the following command: +```bash +sudo -u munge /usr/sbin/mungekey -v ``` Please read `man 8 mungekey` for more information. In the second step you can start and enable the munge service. ```bash systemctl start munge -systemctl enalbe munge +systemctl enable munge diff --git a/munge.spec b/munge.spec index 0e9a0d2..2df2cd4 100644 --- a/munge.spec +++ b/munge.spec @@ -75,8 +75,6 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool # Install extra files. 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. # 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. # i.e it is not actually included in the rpm, only the record # of it is. +mkdir -p %{buildroot}%{_rundir}/munge touch %{buildroot}%{_rundir}/munge/munged.pid %check @@ -134,7 +133,6 @@ touch %{buildroot}%{_rundir}/munge/munged.pid %attr(0755,munge,munge) %dir /run/munge/ %attr(0644,munge,munge) %ghost /run/munge/munged.pid -%{_tmpfilesdir}/munge.conf %{_sysusersdir}/munge.conf %config(noreplace) %{_sysconfdir}/logrotate.d/munge %config(noreplace) %{_sysconfdir}/sysconfig/munge @@ -171,6 +169,11 @@ touch %{buildroot}%{_rundir}/munge/munged.pid %changelog +* Wed Nov 18 2020 Ankur Sinha - 0.5.14-1 +- remove tmpfiles.d +- make %%_rundir, +- improve readme + * Tue Nov 17 2020 Ankur Sinha - 0.5.14-1 - Update to latest release - Remove unneeded files