]> git.pld-linux.org Git - packages/cvs.git/commitdiff
- changed useradd option: s/-m/-M/
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 12 Apr 2001 20:55:38 +0000 (20:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- moved fix-info-dir to post/postun of base package

Changed files:
    cvs.spec -> 1.55

cvs.spec

index f61c87060a7abb4693b7299e21d048e914ffed30..203f797025bbfaac6cbbe2842d24a04f3ed09f32 100644 (file)
--- a/cvs.spec
+++ b/cvs.spec
@@ -131,11 +131,17 @@ gzip -9nf doc/*.ps BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README ChangeLog \
 
 rm -f contrib/{.cvsignore,Makefile*,*.pl,*.sh,*.csh}
 
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
 %pre pserver
 if [ "$1" = 1 ]; then
        # Add user and group
        getgid cvs >/dev/null 2>&1 || %{_sbindir}/groupadd -f -g 52 cvs
-       id -u cvs >/dev/null 2>&1 || %{_sbindir}/useradd -g cvs -m -d /home/cvsroot -u 52 -s /bin/false cvs 2>/dev/null
+       id -u cvs >/dev/null 2>&1 || %{_sbindir}/useradd -g cvs -M -d /home/cvsroot -u 52 -s /bin/false cvs 2>/dev/null
 fi
 
 %post pserver
@@ -147,7 +153,6 @@ fi
 if [ -f /var/lock/subsys/rc-inetd ]; then
        /etc/rc.d/init.d/rc-inetd reload
 fi
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun pserver
 if [ "$1" = "0" ]; then
@@ -158,7 +163,6 @@ if [ "$1" = "0" ]; then
                /etc/rc.d/init.d/rc-inetd reload
        fi
 fi
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.05331 seconds and 4 git commands to generate.