Blame SOURCES/ypbind-2.5-helpman.patch

5d0eef
diff -up ypbind-mt-2.5/man/ypbind.8.xml.helpman ypbind-mt-2.5/man/ypbind.8.xml
5d0eef
--- ypbind-mt-2.5/man/ypbind.8.xml.helpman	2018-06-04 15:30:38.000000000 +0200
5d0eef
+++ ypbind-mt-2.5/man/ypbind.8.xml	2018-06-07 16:16:56.967024495 +0200
5d0eef
@@ -39,21 +39,33 @@
5d0eef
   <refsynopsisdiv id='synopsis'>
5d0eef
   <cmdsynopsis>
5d0eef
     <command>ypbind</command>
5d0eef
-      <arg choice='opt'>-c </arg>
5d0eef
-      <group choice='opt'><arg choice='plain'>-d </arg><arg choice='plain'>-debug </arg></group>
5d0eef
-      <arg choice='opt'>-verbose </arg>
5d0eef
-      <group choice='opt'><arg choice='plain'>-n </arg><arg choice='plain'>-forground </arg></group>
5d0eef
-      <arg choice='opt'>-broadcast </arg>
5d0eef
-      <arg choice='opt'>-broken-server </arg>
5d0eef
-      <arg choice='opt'>-ypset </arg>
5d0eef
-      <arg choice='opt'>-ypsetme </arg>
5d0eef
-      <arg choice='opt'>-no-ping </arg>
5d0eef
+      <group choice='opt'>
5d0eef
+          <arg choice='plain'>-broadcast </arg>
5d0eef
+          <arg choice='plain'>-ypset </arg>
5d0eef
+          <arg choice='plain'>-ypsetme </arg>
5d0eef
+      </group>
5d0eef
       <arg choice='opt'>-f <replaceable>configfile</replaceable></arg>
5d0eef
+      <arg choice='opt'>-no-ping </arg>
5d0eef
+      <arg choice='opt'>-broken-server </arg>
5d0eef
       <arg choice='opt'>-local-only </arg>
5d0eef
-      <arg choice='opt'>-ping-interval <replaceable>ping-interval</replaceable></arg>
5d0eef
+
5d0eef
+      <group choice='opt'>
5d0eef
+          <arg choice='plain'>-ping-interval <replaceable>ping-interval</replaceable></arg>
5d0eef
+          <arg choice='plain'>-i <replaceable>ping-interval</replaceable></arg>
5d0eef
+      </group>
5d0eef
+
5d0eef
+      <group choice='opt'><arg choice='plain'>-d </arg><arg choice='plain'>-debug </arg></group>
5d0eef
+      <group choice='opt'><arg choice='plain'>-v </arg><arg choice='plain'>-verbose </arg></group>
5d0eef
+      <group choice='opt'><arg choice='plain'>-n </arg><arg choice='plain'>-foreground </arg></group>
5d0eef
+      <arg choice='opt'>-p <replaceable>port</replaceable></arg>
5d0eef
   </cmdsynopsis>
5d0eef
   <cmdsynopsis>
5d0eef
     <command>ypbind</command>
5d0eef
+      <arg choice='plain'>-c </arg>
5d0eef
+      <arg choice='opt'>-f <replaceable>configfile</replaceable></arg>
5d0eef
+    </cmdsynopsis>
5d0eef
+  <cmdsynopsis>
5d0eef
+    <command>ypbind</command>
5d0eef
       <arg choice='plain'>--version </arg>
5d0eef
     </cmdsynopsis>
5d0eef
   </refsynopsisdiv>
5d0eef
@@ -88,6 +100,8 @@
5d0eef
 
5d0eef
     <para>Unless the option
5d0eef
 <option>-debug</option>
5d0eef
+or
5d0eef
+<option>-foreground</option>
5d0eef
 is used, ypbind detaches itself from the controlling terminal and puts
5d0eef
 itself into background.
5d0eef
 <command>ypbind</command>
5d0eef
@@ -132,6 +146,57 @@ If the file does not exist or if there a
5d0eef
 <command>ypbind</command>
5d0eef
 exit.</para>
5d0eef
 
5d0eef
+<para>
5d0eef
+In Fedora we use systemd for starting services. We need to finish starting
5d0eef
+process of <command>ypbind</command> service not before service is fully
5d0eef
+started, which means <command>ypbind</command> daemon is prepared to answer.
5d0eef
+There is a test script <filename>/usr/libexec/ypbind-post-waitbind</filename>
5d0eef
+used in ypbind.service, that waits for <command>ypbind</command> daemon to be
5d0eef
+fully connected to NIS server and waits by default up to 45s.  Sometimes this
5d0eef
+is not enough, because network set up can take longer than 45s during boot, so
5d0eef
+starting ypbind.service fails. User can increase the timeout by setting an
5d0eef
+environment variable NISTIMEOUT in <filename>/etc/sysconfig/ypbind</filename>.
5d0eef
+For example NISTIMEOUT=180 means <command>ypbind</command> will wait up to 180
5d0eef
+seconds for binding to a NIS server.  Another option is to enable
5d0eef
+NetworkManager-wait- online.service, which will make <command>ypbind</command>
5d0eef
+to wait until network is properly set up.
5d0eef
+</para>
5d0eef
+
5d0eef
+<para>
5d0eef
+In case something needs to be changed in the ypbind.service, it is adviced not
5d0eef
+to change the ypbind.service directly, but rather to create a new file under
5d0eef
+<filename>/etc/systemd/system/ypbind.service.d/</filename>, i.e. if we need to
5d0eef
+start <command>ypbind</command> before service foo.service, we can create file
5d0eef
+<filename>/etc/systemd/system/ypbind.service.d/wait-foo.conf</filename> with
5d0eef
+the following content:
5d0eef
+</para>
5d0eef
+
5d0eef
+<para>
5d0eef
+<programlisting>
5d0eef
+[Service]
5d0eef
+Before=foo.service
5d0eef
+</programlisting>
5d0eef
+</para>
5d0eef
+<para>
5d0eef
+If you need to pass other arguments to <command>ypbind</command> daemon withing
5d0eef
+systemd unit file, you can set these arguments as OTHER_YPBIND_OPTS environment
5d0eef
+variable in <filename>/etc/sysconfig/ypbind</filename>. For example in order to
5d0eef
+set a fixed port <command>ypbind</command> should run on, you can specify
5d0eef
+OTHER_YPBIND_OPTS="-p 876" in <filename>/etc/sysconfig/ypbind</filename>.
5d0eef
+</para>
5d0eef
+
5d0eef
+<para>
5d0eef
+DHCP client by defualt changes <filename>/etc/yp.conf</filename> in case DHCP
5d0eef
+server sends NIS configuration in the respond. In that case
5d0eef
+<filename>/etc/dhcp/dhclient.d/nis.sh</filename> changes
5d0eef
+<filename>/etc/yp.conf</filename> according such configuration and creates a
5d0eef
+back-up copy of the original configuration file into
5d0eef
+<filename>/var/lib/dhclient/nis.conf.predhclient.$interface</filename>.  In
5d0eef
+order to disable changing <filename>/etc/yp.conf</filename> by DHCP client, add
5d0eef
+PEERNIS=no into <filename>/etc/sysconfig/network</filename>.
5d0eef
+</para>
5d0eef
+
5d0eef
+
5d0eef
   </refsect1>
5d0eef
 
5d0eef
   <refsect1 id='options'>
5d0eef
@@ -256,6 +321,15 @@ With this options another frequency in s
5d0eef
   </listitem>
5d0eef
   </varlistentry>
5d0eef
   <varlistentry>
5d0eef
+  <term><option>-p</option> port</term>
5d0eef
+  <listitem>
5d0eef
+<para>Lets
5d0eef
+<command>ypbind</command>
5d0eef
+listen on a specified port number, rather than asking portmapper to assingn a
5d0eef
+port for it.</para>
5d0eef
+  </listitem>
5d0eef
+  </varlistentry>
5d0eef
+  <varlistentry>
5d0eef
   <term><option>--version</option></term>
5d0eef
   <listitem>
5d0eef
 <para>Prints the version number</para>
5d0eef
diff -up ypbind-mt-2.5/man/yp.conf.5.xml.helpman ypbind-mt-2.5/man/yp.conf.5.xml
5d0eef
--- ypbind-mt-2.5/man/yp.conf.5.xml.helpman	2018-06-07 16:29:01.853560699 +0200
5d0eef
+++ ypbind-mt-2.5/man/yp.conf.5.xml	2018-06-07 16:33:59.302833043 +0200
5d0eef
@@ -97,6 +97,14 @@
5d0eef
       first the given servers before falling back to broadcasting
5d0eef
       for a running server.
5d0eef
     </para>
5d0eef
+    <para>
5d0eef
+      Content of <filename>/etc/yp.conf</filename> can be changed by DHCP client,
5d0eef
+      for more info see
5d0eef
+      <citerefentry>
5d0eef
+          <refentrytitle>ypbind</refentrytitle>
5d0eef
+          <manvolnum>8</manvolnum>
5d0eef
+      </citerefentry>.
5d0eef
+    </para>
5d0eef
   </refsect1>
5d0eef
 
5d0eef
   <refsect1 id='see_also'>