Upstream 0.5.11
Use upstream's systemd files. Fix incorrect dates in changelogs. Fix systemd scriptlets #850219 Use buildroot macro everywhere.
This commit is contained in:
parent
59ff1ef343
commit
7b0caca958
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
munge-0.5.9.tar.bz2
|
munge-0.5.9.tar.bz2
|
||||||
/munge-0.5.10.tar.bz2
|
/munge-0.5.10.tar.bz2
|
||||||
|
/munge-0.5.11.tar.bz2
|
||||||
|
89
munge.spec
89
munge.spec
@ -1,6 +1,6 @@
|
|||||||
Name: munge
|
Name: munge
|
||||||
Version: 0.5.10
|
Version: 0.5.11
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Enables uid & gid authentication across a host cluster
|
Summary: Enables uid & gid authentication across a host cluster
|
||||||
|
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -9,19 +9,17 @@ URL: http://munge.googlecode.com/
|
|||||||
Source0: http://munge.googlecode.com/files/munge-%{version}.tar.bz2
|
Source0: http://munge.googlecode.com/files/munge-%{version}.tar.bz2
|
||||||
Source1: create-munge-key
|
Source1: create-munge-key
|
||||||
Source2: munge.logrotate
|
Source2: munge.logrotate
|
||||||
Source3: munged.service
|
|
||||||
Source4: munged-tmpfiles.conf
|
|
||||||
|
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
BuildRequires: zlib-devel%{?_isa} bzip2-devel%{?_isa} openssl-devel%{?_isa}
|
BuildRequires: zlib-devel bzip2-devel openssl-devel
|
||||||
Requires: munge-libs%{?_isa} = %{version}-%{release}
|
Requires: munge-libs = %{version}-%{release}
|
||||||
|
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
|
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd
|
||||||
Requires(post): systemd-sysv
|
Requires(preun): systemd
|
||||||
Requires(preun): systemd-units
|
Requires(postun): systemd
|
||||||
Requires(postun): systemd-units
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating
|
MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating
|
||||||
@ -54,8 +52,6 @@ Runtime libraries for using MUNGE.
|
|||||||
%setup -q
|
%setup -q
|
||||||
cp -p %{SOURCE1} create-munge-key
|
cp -p %{SOURCE1} create-munge-key
|
||||||
cp -p %{SOURCE2} munge.logrotate
|
cp -p %{SOURCE2} munge.logrotate
|
||||||
cp -p %{SOURCE3} munged.service
|
|
||||||
cp -p %{SOURCE4} munged-tmpfiles.conf
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
@ -67,48 +63,39 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
# Install extra files.
|
# Install extra files.
|
||||||
install -p -D -m 644 munged.service $RPM_BUILD_ROOT/%{_unitdir}/munged.service
|
install -p -m 755 create-munge-key %{buildroot}/%{_sbindir}/create-munge-key
|
||||||
install -p -D -m 644 munged-tmpfiles.conf $RPM_BUILD_ROOT/%{_sysconfdir}/tmpfiles.d/munged.conf
|
install -p -D -m 644 munge.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/munge
|
||||||
install -p -m 755 create-munge-key $RPM_BUILD_ROOT/%{_sbindir}/create-munge-key
|
|
||||||
install -p -D -m 644 munge.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/munge
|
|
||||||
|
|
||||||
# rm unneeded files.
|
# rm unneeded files.
|
||||||
rm $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/munge
|
rm %{buildroot}/%{_sysconfdir}/sysconfig/munge
|
||||||
rm $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/munge
|
#
|
||||||
|
rm %{buildroot}/%{_initddir}/munge
|
||||||
|
|
||||||
# Exclude .la files
|
# Exclude .la files
|
||||||
rm $RPM_BUILD_ROOT/%{_libdir}/libmunge.la
|
rm %{buildroot}/%{_libdir}/libmunge.la
|
||||||
|
|
||||||
|
|
||||||
# Fix a few permissions
|
# Fix a few permissions
|
||||||
chmod 700 $RPM_BUILD_ROOT%{_var}/lib/munge $RPM_BUILD_ROOT%{_var}/log/munge
|
chmod 700 %{buildroot}%{_var}/lib/munge %{buildroot}%{_var}/log/munge
|
||||||
chmod 700 $RPM_BUILD_ROOT%{_sysconfdir}/munge
|
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.
|
||||||
touch $RPM_BUILD_ROOT%{_var}/run/munge/munged.pid
|
touch %{buildroot}%{_var}/run/munge/munged.pid
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart munge.service
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
# Package upgrade, not uninstall
|
|
||||||
/bin/systemctl try-restart munged.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
%systemd_preun munge.service
|
||||||
# Package removal, not upgrade
|
|
||||||
/bin/systemctl --no-reload disable munged.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop munged.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group munge >/dev/null || groupadd -r munge
|
getent group munge >/dev/null || groupadd -r munge
|
||||||
@ -119,18 +106,7 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
%systemd_post munge.service
|
||||||
# Initial installation
|
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%triggerun -- munge < 0.5.10-3
|
|
||||||
# Save the current service runlevel info
|
|
||||||
/usr/bin/systemd-sysv-convert --save munge >/dev/null 2>&1 ||:
|
|
||||||
|
|
||||||
# Run these because the SysV package being removed won't do them
|
|
||||||
/sbin/chkconfig --del munge >/dev/null 2>&1 || :
|
|
||||||
/bin/systemctl try-restart munged.service >/dev/null 2>&1 || :
|
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
@ -146,18 +122,18 @@ fi
|
|||||||
%{_mandir}/man1/unmunge.1.gz
|
%{_mandir}/man1/unmunge.1.gz
|
||||||
%{_mandir}/man7/munge.7.gz
|
%{_mandir}/man7/munge.7.gz
|
||||||
%{_mandir}/man8/munged.8.gz
|
%{_mandir}/man8/munged.8.gz
|
||||||
%{_unitdir}/munged.service
|
%{_unitdir}/munge.service
|
||||||
|
|
||||||
%attr(0700,munge,munge) %dir %{_var}/log/munge
|
%attr(0700,munge,munge) %dir %{_var}/log/munge
|
||||||
%attr(0700,munge,munge) %dir %{_sysconfdir}/munge
|
%attr(0700,munge,munge) %dir %{_sysconfdir}/munge
|
||||||
%attr(0755,munge,munge) %ghost %dir %{_var}/run/munge
|
%attr(0755,munge,munge) %dir %{_var}/run/munge/
|
||||||
%attr(0644,munge,munge) %ghost %{_var}/run/munge/munged.pid
|
%attr(0644,munge,munge) %ghost %{_var}/run/munge/munged.pid
|
||||||
%attr(0700,munge,munge) %dir %{_var}/lib/munge
|
%attr(0700,munge,munge) %dir %{_var}/lib/munge
|
||||||
|
|
||||||
%config(noreplace) %{_sysconfdir}/tmpfiles.d/munged.conf
|
%config(noreplace) %{_tmpfilesdir}/munge.conf
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/munge
|
%config(noreplace) %{_sysconfdir}/logrotate.d/munge
|
||||||
|
|
||||||
%doc AUTHORS BUGS ChangeLog
|
%doc AUTHORS
|
||||||
%doc JARGON META NEWS QUICKSTART README
|
%doc JARGON META NEWS QUICKSTART README
|
||||||
%doc doc
|
%doc doc
|
||||||
|
|
||||||
@ -169,6 +145,7 @@ fi
|
|||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/munge.h
|
%{_includedir}/munge.h
|
||||||
%{_libdir}/libmunge.so
|
%{_libdir}/libmunge.so
|
||||||
|
%{_libdir}/pkgconfig/munge.pc
|
||||||
%{_mandir}/man3/munge.3.gz
|
%{_mandir}/man3/munge.3.gz
|
||||||
%{_mandir}/man3/munge_ctx.3.gz
|
%{_mandir}/man3/munge_ctx.3.gz
|
||||||
%{_mandir}/man3/munge_ctx_copy.3.gz
|
%{_mandir}/man3/munge_ctx_copy.3.gz
|
||||||
@ -187,6 +164,12 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 30 2013 Steve Traylen <steve.traylen@cern.ch> - 0.5.11-1
|
||||||
|
- Upstream 0.5.11
|
||||||
|
- Use upstream's systemd files.
|
||||||
|
- Fix incorrect dates in changelogs.
|
||||||
|
- Fix systemd scriptlets #850219
|
||||||
|
- Use buildroot macro everywhere.
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.10-6
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.10-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
@ -240,11 +223,11 @@ fi
|
|||||||
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.5.8-5
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.5.8-5
|
||||||
- rebuilt with new openssl
|
- rebuilt with new openssl
|
||||||
|
|
||||||
* Thu Jul 22 2009 Steve Traylen <steve.traylen@cern.ch> - 0.5.8-4
|
* Wed Jul 22 2009 Steve Traylen <steve.traylen@cern.ch> - 0.5.8-4
|
||||||
- Expand defattr with 4th argument for default directory perms.
|
- Expand defattr with 4th argument for default directory perms.
|
||||||
- Explict attr for non 0644 files and 0755 directories.
|
- Explict attr for non 0644 files and 0755 directories.
|
||||||
|
|
||||||
* Thu Jul 22 2009 Steve Traylen <steve.traylen@cern.ch> - 0.5.8-3
|
* Wed Jul 22 2009 Steve Traylen <steve.traylen@cern.ch> - 0.5.8-3
|
||||||
- Append -DGNU_SOURCE to default CFLAGS.
|
- Append -DGNU_SOURCE to default CFLAGS.
|
||||||
|
|
||||||
* Wed Jul 22 2009 Steve Traylen <steve.traylen@cern.ch> - 0.5.8-2
|
* Wed Jul 22 2009 Steve Traylen <steve.traylen@cern.ch> - 0.5.8-2
|
||||||
|
@ -1 +0,0 @@
|
|||||||
D /var/run/munge 0755 munge root -
|
|
@ -1,21 +0,0 @@
|
|||||||
# SystemD File for munged
|
|
||||||
# Steve Traylen <steve.traylen@cern.ch>
|
|
||||||
# Ferbruay 5th 2012.
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Start/Stop the MUNGE authentication service.
|
|
||||||
After=syslog.target auditd.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
User=munge
|
|
||||||
# Start up will fail if /etc/munge/munge.key does not exist
|
|
||||||
# A fresh key can be generated with /usr/sbin/create-munge-key
|
|
||||||
ExecStartPre=/usr/bin/test -r /etc/munge/munge.key
|
|
||||||
ExecStart=/usr/sbin/munged
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
PIDFile=/var/run/munge/munged.pid
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user