]> granicus.if.org Git - shadow/commitdiff
* configure.in: SHADOWGRP added to AM_CONDITIONAL for the
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 22 Nov 2007 21:36:38 +0000 (21:36 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 22 Nov 2007 21:36:38 +0000 (21:36 +0000)
  generation of manpages.
* man/generate_translations.mak: Added pam/no_pam condition (like
  in man/Makefile.am).
* man/Makefile.am, man/generate_translations.mak: Added
  gshadow/no_gshadow condition.
* man/gpasswd.1.xml: Use the gshadow/no_gshadow condition to
  change the manpage depending on the shadow group support.

ChangeLog
configure.in
man/Makefile.am
man/generate_translations.mak
man/gpasswd.1.xml

index 125a3eda5e13096a378036bf2d8b8785a97c09ad..1907f1f25969dd1f0777d6a7edcf02fdb1b58abd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-11-22  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * configure.in: SHADOWGRP added to AM_CONDITIONAL for the
+       generation of manpages.
+       * man/generate_translations.mak: Added pam/no_pam condition (like
+       in man/Makefile.am).
+       * man/Makefile.am, man/generate_translations.mak: Added
+       gshadow/no_gshadow condition.
+       * man/gpasswd.1.xml: Use the gshadow/no_gshadow condition to
+       change the manpage depending on the shadow group support.
+
 2007-11-22  Nicolas François  <nicolas.francois@centraliens.net>
 
        * po/ru.po: Updated to 399t. Thanks to Yuri Kozlov <kozlov.y@gmail.com>.
index ad622e669029ec608d98f3fe4336167b53cb2622..a25560d1aee536dffab2b5755193f74ab639f41f 100644 (file)
@@ -240,6 +240,7 @@ AC_SEARCH_LIBS(gethostbyname, nsl)
 if test "$enable_shadowgrp" = "yes"; then
        AC_DEFINE(SHADOWGRP, 1, [Define to support the shadow group file.])
 fi
+AM_CONDITIONAL(SHADOWGRP, test "x$enable_shadowgrp" = "xyes")
 
 if test "$enable_man" = "yes"; then
        dnl
index e34657d6061276550f4a3ebe75e7d80c2de9c9e4..256a55f5b8d19b1d766270397260fa8fb69b492b 100644 (file)
@@ -119,10 +119,15 @@ PAM_COND=pam
 else
 PAM_COND=no_pam
 endif
-TUTU_COND=tutu
+
+if SHADOWGRP
+SHADOWGRP_COND=gshadow
+else
+SHADOWGRP_COND=no_gshadow
+endif
 
 %: %.xml
-       $(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(TUTU_COND)" \
+       $(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND)" \
                    -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
 
 grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
index 8976462e88a497bde72bdd48559ebdca282fa569..ba5cff2f0dd96ad555cf9d37e833dd68c53a78d6 100644 (file)
@@ -6,8 +6,20 @@ LANG=$(notdir $(CURDIR))
        xml2po -l $(LANG) -p $(LANG).po -o $@ ../$@
        sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
 
+if USE_PAM
+PAM_COND=pam
+else
+PAM_COND=no_pam
+endif
+if SHADOWGRP
+SHADOWGRP_COND=gshadow
+else
+SHADOWGRP_COND=no_gshadow
+endif
+
 %: %.xml
-       $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+       $(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND)" \
+                   -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
 
 grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
 
index 9456c123e4cecc3e1f2879bfc0039a907b0763a8..df6422ea4ce671bd54bfdfa46097b29f04916a84 100644 (file)
@@ -8,7 +8,12 @@
   </refmeta>
   <refnamediv id='name'>
     <refname>gpasswd</refname>
-    <refpurpose>administer the <filename>/etc/group</filename> file</refpurpose>
+    <refpurpose>
+      administer the <filename>/etc/group</filename>
+      <phrase condition="gshadow">and <filename>/etc/gshadow</filename>
+      files</phrase>
+      <phrase condition="no_gshadow">file</phrase>
+    </refpurpose>
   </refnamediv>
   <!-- body begins here -->
   <refsynopsisdiv id='synopsis'>
   <refsect1 id='description'>
     <title>DESCRIPTION</title>
     <para>
-      The <command>gpasswd</command> command is used to administer the
-      <filename>/etc/group</filename> file (and
-      <filename>/etc/gshadow</filename> file if compiled with SHADOWGRP
-      defined). Every group can have administrators, members and a password. 
+      The <command>gpasswd</command> command is used to administer
+      <filename>/etc/group</filename><phrase condition="gshadow">,
+      and <filename>/etc/gshadow</filename></phrase>.
+      Every group can have
+      <phrase condition="gshadow">administrators,</phrase>
+      members and a password.
+    </para>
+    <para condition="gshadow">
       System administrator can use the <option>-A</option> option to define
       group administrator(s) and the <option>-M</option> option to define
       members and has all rights of group administrators and members.
     </para>
     <para>
-      <command>gpasswd</command> called by a group administrator with a group
-      name only prompts for the group password. If a password is set the
-      members can still <citerefentry>
+      <command>gpasswd</command> called by
+      <phrase condition="gshadow">a group administrator</phrase>
+      <phrase condition="no_gshadow">a system administrator</phrase>
+      with a group name only prompts for the new password of the
+      <replaceable>group</replaceable>.
+    </para>
+    <para>
+      If a password is set the members can still <citerefentry>
       <refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
       </citerefentry> without a password, and non-members must supply the
       password.
 
   <refsect1 id='options'>
     <title>OPTIONS</title>
-    <para>
+    <para condition="gshadow">
       Except for the <option>-A</option> and <option>-M</option> options,
       the options cannot be combined.
+    </para>
+    <para condition="no_gshadow">
+      The options cannot be combined.
+    </para>
+    <para>
       The options which apply to the <command>gpasswd</command> command are:
     </para>
     <variablelist remap='IP'>
        </listitem>
       </varlistentry>
     </variablelist>
-    <variablelist remap='IP'>
+    <variablelist remap='IP' condition="gshadow">
       <varlistentry>
        <term>
          <option>-A</option> <replaceable>user</replaceable>,...
     </variablelist>
   </refsect1>
 
+  <refsect1 id='caveats'>
+    <title>CAVEATS</title>
+    <para>
+      This tool only operates on the <filename>/etc/group</filename>
+      <phrase condition="gshadow"> and <filename>/etc/gshadow</filename>
+      files.</phrase>
+      <phrase condition="no_gshadow">file.</phrase>
+      Thus you cannot change any NIS or LDAP group. This must be performed
+      on the corresponding server.
+    </para>
+  </refsect1>
+
   <refsect1 id='files'>
     <title>FILES</title>
     <variablelist>
          <para>Group account information.</para>
        </listitem>
       </varlistentry>
-      <varlistentry>
+      <varlistentry condition="gshadow">
        <term><filename>/etc/gshadow</filename></term>
        <listitem>
          <para>Secure group account information.</para>
       <citerefentry>
        <refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
       </citerefentry>,
-      <citerefentry>
-       <refentrytitle>gshadow</refentrytitle><manvolnum>5</manvolnum>
-      </citerefentry>,
       <citerefentry>
        <refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum>
       </citerefentry>,
       </citerefentry>,
       <citerefentry>
        <refentrytitle>group</refentrytitle><manvolnum>5</manvolnum>
-      </citerefentry>.
+      </citerefentry><phrase condition="gshadow">,
+      <citerefentry>
+       <refentrytitle>gshadow</refentrytitle><manvolnum>5</manvolnum>
+      </citerefentry></phrase>.
     </para>
   </refsect1>
 </refentry>