From b345b1fe8e9c50dccb2488816944d037bcf7f8b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Hor=C3=A1k?= Date: Tue, 2 Aug 2011 14:22:18 +0200 Subject: [PATCH] Update to new upstream version Simplified systemd snippets in spec file --- ypserv.spec | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ypserv.spec b/ypserv.spec index 32c386c..a7185ec 100644 --- a/ypserv.spec +++ b/ypserv.spec @@ -1,8 +1,8 @@ Summary: The NIS (Network Information Service) server Url: http://www.linux-nis.org/nis/ypserv/index.html Name: ypserv -Version: 2.25 -Release: 3%{?dist} +Version: 2.26 +Release: 1%{?dist} License: GPLv2 Group: System Environment/Daemons Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2 @@ -14,6 +14,7 @@ Requires: gawk, make, portmap, bash >= 2.0 Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units +Requires(post): systemd-sysv Patch0: ypserv-2.5-redhat.patch Patch1: ypserv-2.21-path.patch @@ -27,6 +28,7 @@ Patch8: ypserv-2.24-aliases.patch Patch9: ypserv-2.25-systemd.patch Patch10: ypserv-2.25-portmanfix.patch BuildRequires: gdbm-devel +BuildRequires: systemd-units %description The Network Information Service (NIS) is a system that provides @@ -73,11 +75,11 @@ rm -rf $RPM_BUILD_ROOT #make install ROOT=$RPM_BUILD_ROOT %makeinstall libexecdir=$RPM_BUILD_ROOT%{_libdir}/yp INSTALL_PROGRAM=install -mkdir -p $RPM_BUILD_ROOT/lib/systemd/system/ $RPM_BUILD_ROOT%{_sysconfdir} +mkdir -p $RPM_BUILD_ROOT%{_unitdir} $RPM_BUILD_ROOT%{_sysconfdir} install -m644 etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir} -install -m644 %{SOURCE1} $RPM_BUILD_ROOT/lib/systemd/system/ypserv.service -install -m644 %{SOURCE2} $RPM_BUILD_ROOT/lib/systemd/system/yppasswdd.service -install -m644 %{SOURCE3} $RPM_BUILD_ROOT/lib/systemd/system/ypxfrd.service +install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/ypserv.service +install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/yppasswdd.service +install -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir}/ypxfrd.service mkdir -p $RPM_BUILD_ROOT/etc/sysconfig cat >$RPM_BUILD_ROOT/etc/sysconfig/yppasswdd </dev/null 2>&1 || : - /bin/systemctl --no-reload disable ypserv.service >/dev/null 2>&1 || : - /bin/systemctl stop ypxfrd.service >/dev/null 2>&1 || : - /bin/systemctl --no-reload disable ypxfrd.service >/dev/null 2>&1 || : - /bin/systemctl stop yppasswdd.service >/dev/null 2>&1 || : - /bin/systemctl --no-reload disable yppasswdd.service >/dev/null 2>&1 || : + /bin/systemctl stop ypserv.service ypxfrd.service yppasswdd.service >/dev/null 2>&1 || : + /bin/systemctl --no-reload disable ypserv.service ypxfrd.service yppasswdd.service >/dev/null 2>&1 || : fi %postun /bin/systemctl daemon-reload >/dev/null 2>&1 || : if [ "$1" -ge "1" ] ; then # Package upgrade, not uninstall - /bin/systemctl try-restart ypserv.service >/dev/null 2>&1 || : - /bin/systemctl try-restart ypxfrd.service >/dev/null 2>&1 || : - /bin/systemctl try-restart yppasswdd.service >/dev/null 2>&1 || : + /bin/systemctl try-restart ypserv.service ypxfrd.service yppasswdd.service >/dev/null 2>&1 || : fi exit 0 @@ -147,13 +143,17 @@ exit 0 %config(noreplace) %{_sysconfdir}/ypserv.conf %config(noreplace) %{_sysconfdir}/sysconfig/yppasswdd %config(noreplace) /var/yp/* -/lib/systemd/system/* +%{_unitdir}/* %{_libdir}/yp %{_sbindir}/* %{_mandir}/*/* %{_includedir}/*/* %changelog +* Tue Aug 02 2011 Honza Horak - 2.26-1 +- Update to new upstream version + Simplified systemd snippets in spec file + * Wed Jun 14 2011 Honza Horak - 2.25-3 - Adjust yppush man page and add a comment how to assign options to yppush (#712239)