[ypserv] Adjust yppush man page and add a comment how to assign options to yppush (#712239)

Jan Horak hhorak at fedoraproject.org
Tue Jun 14 13:35:41 UTC 2011


commit 3518de8c9335e63cf04dc8ce59872d2af87da39d
Author: Honza Horák <hhorak at redhat.com>
Date:   Tue Jun 14 15:23:07 2011 +0200

    Adjust yppush man page and add a comment how to assign options
    to yppush (#712239)

 ypserv-2.25-portmanfix.patch |   44 ++++++++++++++++++++++++++++++++++++++++++
 ypserv.spec                  |    8 ++++++-
 2 files changed, 51 insertions(+), 1 deletions(-)
---
diff --git a/ypserv-2.25-portmanfix.patch b/ypserv-2.25-portmanfix.patch
new file mode 100644
index 0000000..1ebef19
--- /dev/null
+++ b/ypserv-2.25-portmanfix.patch
@@ -0,0 +1,44 @@
+diff -up ypserv-2.25/scripts/ypMakefile.in.portmanfix ypserv-2.25/scripts/ypMakefile.in
+--- ypserv-2.25/scripts/ypMakefile.in.portmanfix	2011-06-14 15:03:52.876412140 +0200
++++ ypserv-2.25/scripts/ypMakefile.in	2011-06-14 15:03:52.905412140 +0200
+@@ -22,6 +22,14 @@ B=
+ # /var/yp/ypservers.
+ NOPUSH=true
+ 
++# yppush copies updated NIS databases (or maps) from the master NIS server 
++# to the slave servers within a NIS domain and listens for their answer. 
++# yppush will ask portmap to assign it a random port number to listen on 
++# by default. To specify a fixed port number or any aditional options, 
++# edit variable YPPUSH_ARGS.
++# e.g. YPPUSH_ARGS = --port 836
++YPPUSH_ARGS = 
++
+ # We do not put password entries with lower UIDs (the root and system
+ # entries) in the NIS password database, for security. MINUID is the
+ # lowest uid that will be included in the password maps. If you
+@@ -128,7 +136,7 @@ all:  passwd group hosts rpc services ne
+ 
+ DBLOAD = $(YPBINDIR)/makedbm -c -m `$(YPBINDIR)/yphelper --hostname`
+ MKNETID = $(YPBINDIR)/mknetid
+-YPPUSH = $(YPSBINDIR)/yppush
++YPPUSH = $(YPSBINDIR)/yppush $(YPPUSH_ARGS)
+ MERGER = $(YPBINDIR)/yphelper
+ DOMAIN = `basename \`pwd\``
+ LOCALDOMAIN = `/bin/domainname`
+diff -up ypserv-2.25/yppush/yppush.8.portmanfix ypserv-2.25/yppush/yppush.8
+--- ypserv-2.25/yppush/yppush.8.portmanfix	2010-09-24 12:13:12.000000000 +0200
++++ ypserv-2.25/yppush/yppush.8	2011-06-14 15:04:48.361412162 +0200
+@@ -192,6 +192,13 @@ first constructs a list of NIS slave ser
+ within the
+ \fIdomain\&.\fR
+ A destination host (or a list of hosts with multiple \-h commands) can also be specified on the command line\&. A "transfer map" request is sent to the NIS serger at each slave, along with the information needed by the transfer agent ypxfr(8) to callback to yppush, which may be printed the result to stderr\&. Messages are also printed when a transfer is not possible; for instance when the request message is undeliverable\&.
++
++To specify a port number or use any other 
++\fByppush\fR
++options you can edit 
++\fI/var/yp/Makefile\fR
++directly.
++
+ .SH "OPTIONS"
+ .PP
+ \fB\-d \fR\fIdomain\fR
diff --git a/ypserv.spec b/ypserv.spec
index 756548e..32c386c 100644
--- a/ypserv.spec
+++ b/ypserv.spec
@@ -2,7 +2,7 @@ Summary: The NIS (Network Information Service) server
 Url: http://www.linux-nis.org/nis/ypserv/index.html
 Name: ypserv
 Version: 2.25
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
@@ -25,6 +25,7 @@ Patch6: ypserv-2.19-slp-warning.patch
 Patch7: ypserv-2.24-manfix.patch
 Patch8: ypserv-2.24-aliases.patch
 Patch9: ypserv-2.25-systemd.patch
+Patch10: ypserv-2.25-portmanfix.patch
 BuildRequires: gdbm-devel
 
 %description
@@ -55,6 +56,7 @@ machines.
 %patch7 -p1 -b .manfix
 %patch8 -p1 -b .aliases
 %patch9 -p1 -b .systemd
+%patch10 -p1 -b .portmanfix
 
 %build
 cp etc/README etc/README.etc
@@ -152,6 +154,10 @@ exit 0
 %{_includedir}/*/*
 
 %changelog
+* Wed Jun 14 2011 Honza Horak <hhorak at redhat.com> - 2.25-3
+- Adjust yppush man page and add a comment how to assign options 
+  to yppush (#712239)
+
 * Wed May 10 2011 Honza Horak <hhorak at redhat.com> - 2.25-2
 - Add systemd native services files for ypserv, ypxfrd and yppasswdd
   (#696903)


More information about the scm-commits mailing list