]> git.pld-linux.org Git - packages/cvs-nserver.git/commitdiff
1.11.1.2
authorPaweł Gołaszewski <blues@pld-linux.org>
Sat, 21 Jul 2001 11:19:21 +0000 (11:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added --enable-setuid - now we have cvspasswd in package
- added making users in %pre
- cvspasswd patch - add DESTDIR and removes making cvspasswd with GID and
  UID - this is spec-work (where is no such users while building)

Changed files:
    cvs-nserver.spec -> 1.10

cvs-nserver.spec

index cbe6d152b0e482e7a5f82498da9873918a127f1c..413da91e11d3ce9818574ee7143e0da03bb40b3f 100644 (file)
@@ -4,14 +4,15 @@ Summary(fr):    Un syst
 Summary(pl):    Concurrent Versioning System
 Summary(tr):    Sürüm denetim sistemi
 Name:          cvs-nserver
-Version:       1.11.1.1
+Version:       1.11.1.2
 Release:       1
 License:       GPL
 Group:         Development/Version Control
 Group(pl):     Programowanie/Zarz±dzanie wersjami
 Source0:       http://alexm.here.ru/cvs-nserver/download/%{name}-%{version}.tar.gz
 # outdated, but maybe will be needed for checkpasswd (outside programs):
-Patch0:                cvs-nserver-PAM_fix.patch
+Patch0:                %{name}-cvspasswd.patch
+#Patch0:               cvs-nserver-PAM_fix.patch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -74,20 +75,56 @@ e
 saðlar.
 
 %prep
-%setup -q
+%setup -q 
+%patch0 -p1
 
 %build
 autoconf
 %configure \
        --enable-encryption \
        --enable-client \
-       --enable-server
+       --enable-server \
+       --enable-setuid
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} DESTDIR=$RPM_BUILD_ROOT install
 
+%pre
+if [ -n "`getgid cvs`" ]; then
+       if [ "`getgid cvs`" != "52" ]; then
+               echo "Warning: group cvs haven't gid=52. Correct this before installing cvs-nserver" 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/groupadd -g 52 -r -f cvs
+fi
+if [ -n "`getgid cvsadmin`" ]; then
+       if [ "`getgid cvsadmin`" != "53" ]; then
+               echo "Warning: group cvsadmin haven't gid=53. Correct this before installing cvs-nserver" 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/groupadd -g 53 -r -f cvsadmin
+fi
+if [ -n "`id -u cvs 2>/dev/null`" ]; then
+       if [ "`id -u cvs`" != "52" ]; then
+               echo "Warning: user cvs haven't uid=52. Correct this before installing cvs-nserver" 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/useradd -u 52 -r -d /home/cvsroot -s /bin/false -c "CVS user" -g cvs cvs 1>&2
+fi
+if [ -n "`id -u cvsadmin 2>/dev/null`" ]; then
+       if [ "`id -u cvsadmin`" != "53" ]; then
+               echo "Warning: user cvsadmin haven't uid=53. Correct this before installing cvs-nserver" 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/useradd -u 53 -r -d /home/cvsroot -s /bin/false -c "CVS user" -g cvs cvsadmin 1>&2
+fi
+
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -100,6 +137,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/cvs-nserver
 %attr(755,root,root) %{_bindir}/cvsbug
 %attr(755,root,root) %{_bindir}/rcs2log
+%attr(4750,cvsadmin,cvs) %{_bindir}/cvspasswd
 %{_mandir}/man1/cvs.1*
 %{_mandir}/man5/cvs.5*
 %{_mandir}/man8/*.8*
This page took 0.046699 seconds and 4 git commands to generate.