commit ypserv for openSUSE:Factory
Hello community,
here is the log from the commit of package ypserv for openSUSE:Factory checked in at 2014-11-29 08:39:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ypserv (Old)
and /work/SRC/openSUSE:Factory/.ypserv.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ypserv"
Changes:
--------
--- /work/SRC/openSUSE:Factory/ypserv/ypserv.changes 2014-10-25 08:33:26.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ypserv.new/ypserv.changes 2014-11-29 08:39:26.000000000 +0100
@@ -1,0 +2,24 @@
+Wed Nov 5 14:58:41 CET 2014 - kukuk@suse.de
+
+- Update to version 3.0
+ - evyerthing is now ported
+
+-------------------------------------------------------------------
+Mon Nov 3 11:04:15 CET 2014 - kukuk@suse.de
+
+- Update to version 2.99.3
+ - Implement -p option for ypserv
+
+-------------------------------------------------------------------
+Sat Nov 1 20:48:26 CET 2014 - kukuk@suse.de
+
+- Update to version 2.99.2
+ - At least everything compiles now
+
+-------------------------------------------------------------------
+Fri Oct 31 16:43:58 CET 2014 - kukuk@suse.de
+
+- Update to version 2.99.1
+ - Start porting to use ti-rpc interfaces for IPv6 support
+
+-------------------------------------------------------------------
Old:
----
ypserv-2.32.1.tar.bz2
New:
----
yppasswdd.init
ypserv-3.0.tar.bz2
ypserv.init
ypxfrd.init
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ypserv.spec ++++++
--- /var/tmp/diff_new_pack.0MWcwa/_old 2014-11-29 08:39:28.000000000 +0100
+++ /var/tmp/diff_new_pack.0MWcwa/_new 2014-11-29 08:39:28.000000000 +0100
@@ -17,22 +17,20 @@
Name: ypserv
-BuildRequires: gdbm-devel
-BuildRequires: openslp-devel
-BuildRequires: pkgconfig(libsystemd-daemon)
-%{?systemd_requires}
-Requires: gawk
-Requires: make
-Requires: rpcbind
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Version: 2.32.1
+Version: 3.0
Release: 0
Url: http://www.linux-nis.org/nis/ypserv/
Summary: YP - (NIS)-Server
License: GPL-2.0
Group: Productivity/Networking/NIS
PreReq: %fillup_prereq
+%if %{suse_version} < 1310
+PreReq: %insserv_prereq
+%endif
Source: ypserv-%{version}.tar.bz2
+Source1: ypserv.init
+Source2: yppasswdd.init
+Source3: ypxfrd.init
Source4: sysconfig.ypserv
Source5: SuSEfirewall2.ypserv
Source6: ypserv.service
@@ -40,6 +38,22 @@
Source8: ypxfrd.service
Source9: yppasswdd-systemd-exec
Patch: ypserv-2.32.diff
+BuildRequires: gdbm-devel
+BuildRequires: openslp-devel
+BuildRequires: pkgconfig
+%if %{suse_version} >= 1310
+BuildRequires: pkgconfig(libnis) >= 2.99.8
+BuildRequires: pkgconfig(libsystemd-daemon)
+BuildRequires: pkgconfig(libtirpc)
+%{?systemd_requires}
+%else
+BuildRequires: libnis-devel >= 2.99.8
+BuildRequires: libtirpc-devel
+%endif
+Requires: gawk
+Requires: make
+Requires: rpcbind
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Network Information Service (NIS) provides a simple network
@@ -70,8 +84,12 @@
%install
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
-mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/yp
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/yp
+%if %{suse_version} >= 1310
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
+%else
+mkdir -p $RPM_BUILD_ROOT/etc/init.d
+%endif
DOCDIR=%{_defaultdocdir}/yp
install -d -m 755 $RPM_BUILD_ROOT${DOCDIR}
install -d -m 755 $RPM_BUILD_ROOT${DOCDIR}/ypserv
@@ -83,18 +101,30 @@
install -m 644 %SOURCE4 $RPM_BUILD_ROOT/var/adm/fillup-templates/
# install SuSEfirewall2 service script
install -m 644 %SOURCE5 $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services/ypserv
+%if %{suse_version} >= 1310
# install systemd files
install -m 644 %SOURCE6 $RPM_BUILD_ROOT%{_unitdir}/ypserv.service
install -m 644 %SOURCE7 $RPM_BUILD_ROOT%{_unitdir}/yppasswdd.service
install -m 644 %SOURCE8 $RPM_BUILD_ROOT%{_unitdir}/ypxfrd.service
-install -m 755 %SOURCE9 $RPM_BUILD_ROOT%{_libexecdir}/yp/yppasswdd-systemd-exec
-# Remove files which should not be included:
-rm $RPM_BUILD_ROOT%{_libexecdir}/yp/match_printcap
+install -m 755 %SOURCE9 $RPM_BUILD_ROOT%{_prefix}/lib/yp/yppasswdd-systemd-exec
# create symlink for rcypserv, rcyppasswdd, rcypxfrd
ln -s /sbin/service $RPM_BUILD_ROOT%{_sbindir}/rcypserv
ln -s /sbin/service $RPM_BUILD_ROOT%{_sbindir}/rcyppasswdd
ln -s /sbin/service $RPM_BUILD_ROOT%{_sbindir}/rcypxfrd
+%else
+# install init scripts
+install -m 755 %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/ypserv
+install -m 755 %SOURCE2 $RPM_BUILD_ROOT/etc/init.d/yppasswdd
+install -m 755 %SOURCE3 $RPM_BUILD_ROOT/etc/init.d/ypxfrd
+ln -sf ../../etc/init.d/yppasswdd $RPM_BUILD_ROOT/usr/sbin/rcyppasswdd
+ln -sf ../../etc/init.d/ypxfrd $RPM_BUILD_ROOT/usr/sbin/rcypxfrd
+ln -sf ../../etc/init.d/ypserv $RPM_BUILD_ROOT/usr/sbin/rcypserv
+%endif
+# Remove files which should not be included:
+rm $RPM_BUILD_ROOT%{_prefix}/lib/yp/match_printcap
+%if %{suse_version} >= 1310
+# Systemd services
%pre
%service_add_pre ypserv.service
%service_add_pre yppasswdd.service
@@ -116,6 +146,20 @@
%service_del_postun yppasswdd.service
%service_del_postun ypxfrd.service
+%else
+# LSB init script
+%post
+%{fillup_and_insserv ypserv ypxfrd yppasswdd}
+
+%preun
+%stop_on_removal ypserv ypxfrd yppasswdd
+
+%postun
+%restart_on_update ypserv ypxfrd yppasswdd
+%insserv_cleanup
+
+%endif
+
%files
%defattr(-,root,root)
%doc NEWS README TODO COPYING ChangeLog
@@ -124,11 +168,18 @@
%config(noreplace) /var/yp/securenets
%config(noreplace) /etc/ypserv.conf
%config /etc/sysconfig/SuSEfirewall2.d/services/ypserv
-%dir %{_libexecdir}/yp
+%dir %{_prefix}/lib/yp
%dir /var/yp
+%if %{suse_version} >= 1310
%{_unitdir}/ypserv.service
%{_unitdir}/yppasswdd.service
%{_unitdir}/ypxfrd.service
+%{_prefix}/lib/yp/yppasswdd-systemd-exec
+%else
+%config /etc/init.d/yppasswdd
+%config /etc/init.d/ypserv
+%config /etc/init.d/ypxfrd
+%endif
%doc %{_mandir}/man5/netgroup.5.gz
%doc %{_mandir}/man5/ypserv.conf.5.gz
%doc %{_mandir}/man8/makedbm.8.gz
@@ -145,16 +196,15 @@
%doc %{_mandir}/man8/ypxfr.8.gz
%doc %{_mandir}/man8/ypxfrd.8.gz
/usr/include/rpcsvc/ypxfrd.x
-%{_libexecdir}/yp/makedbm
-%{_libexecdir}/yp/create_printcap
-%{_libexecdir}/yp/mknetid
-%{_libexecdir}/yp/pwupdate
-%{_libexecdir}/yp/revnetgroup
-%{_libexecdir}/yp/yphelper
-%{_libexecdir}/yp/ypinit
-%{_libexecdir}/yp/ypxfr
-%{_libexecdir}/yp/ypxfr_*
-%{_libexecdir}/yp/yppasswdd-systemd-exec
+%{_prefix}/lib/yp/makedbm
+%{_prefix}/lib/yp/create_printcap
+%{_prefix}/lib/yp/mknetid
+%{_prefix}/lib/yp/pwupdate
+%{_prefix}/lib/yp/revnetgroup
+%{_prefix}/lib/yp/yphelper
+%{_prefix}/lib/yp/ypinit
+%{_prefix}/lib/yp/ypxfr
+%{_prefix}/lib/yp/ypxfr_*
%{_sbindir}/rpc.ypxfrd
%{_sbindir}/rpc.yppasswdd
%{_sbindir}/yppush
++++++ yppasswdd.init ++++++
#! /bin/bash
# Copyright (c) 2002, 2004 SuSE Linux AG
# Copyright (c) 2000, 2001 SuSE GmbH
#
# Author: Thorsten Kukuk
participants (1)
-
root@hilbert.suse.de