X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=cvs-nserver.spec;h=7a61e9a3e271b4eb66e09a9913f5884de1379b4e;hb=3e9523312093b6fa3b0148cdbc0c1dde0acc27e7;hp=be77dcde6056b3eccffffd0953d7c60899d31bf6;hpb=59e9282ca6cd1d583449c69452b905ed1b04f4f6;p=packages%2Fcvs-nserver.git diff --git a/cvs-nserver.spec b/cvs-nserver.spec index be77dcd..7a61e9a 100644 --- a/cvs-nserver.spec +++ b/cvs-nserver.spec @@ -1,18 +1,31 @@ -Summary: Concurrent Versions System -Summary(de): Concurrent-Versioning-System -Summary(fr): Un système pour maintenir à jour des fichiers -Summary(pl): Concurrent Versioning System -Summary(tr): Sürüm denetim sistemi +Summary: Concurrent Versions System - nserver +Summary(de): Concurrent-Versioning-System - nserver +Summary(fr): Un système pour maintenir à jour des fichiers - nserver +Summary(pl): Concurrent Versions System - nserver +Summary(tr): Sürüm denetim sistemi - nserver Name: cvs-nserver -Version: 1.10.8.4 +Version: 1.11.1.52 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 -Patch0: cvs-nserver-PAM_fix.patch +Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Source1: %{name}.inetd +Source2: cvs-pserver.inetd +Patch0: %{name}-cvspasswd.patch +Patch1: %{name}-info.patch +Patch2: %{name}-am_ac.patch +Patch3: %{name}-cvspass.patch +Patch4: %{name}-home_etc.patch +Patch5: %{name}-ssl-link.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: openssl-devel >= 0.9.7 +BuildRequires: texinfo +BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _cvsroot /home/services/cvsroot + %description CVS is a version control system, which allows you to keep old versions of files (usually source code), keep a log of who, when, and why @@ -56,9 +69,9 @@ syst CVS jest nak³adk± na rcs (Revision Control System, czyli w wolnym t³umaczeniu system kontroli wersji zasobów), który rozszerza mo¿liwo¶ci rcs'a z narzêdzia do kontroli zbioru plików w pojedynczym -katalogu o mo¿liwo¶æ kontroli zbioru hierarchicznie u³o¿onych katalogów -z plikami. Z pomoc± CVS w ³atwy sposób mo¿na zarz±dzaæ kodem ¼ród³owym -opracowywanym przez nawet bardzo du¿e zespó³y programistów +katalogu o mo¿liwo¶æ kontroli zbioru hierarchicznie u³o¿onych +katalogów z plikami. Z pomoc± CVS w ³atwy sposób mo¿na zarz±dzaæ kodem +¼ród³owym opracowywanym przez nawet bardzo du¿e zespó³y programistów umo¿liwiaj±c ¶ledzenie i kontrolê wszystkich zmian w trakcie pracy nad projektami i wypuszczaniem pe³nych wersji oprogramowania (release). @@ -72,49 +85,231 @@ dosyalar eþzamanlý olarak yapýlmasýný kontrol etmek için gereken iþlevleri saðlar. +%package client +Summary: Concurrent Versions System - client +Summary(pl): Concurrent Versions System - klient +Group: Development/Version Control +Obsoletes: cvs-npclient +Obsoletes: cvs +Provides: cvs = %{version} + +%description client +CVS client. + +%description client -l pl +Klient CVS. + +%package common +Summary: Concurrent Versions System - common files +Summary(pl): Concurrent Versions System - wspólne pliki +Group: Development/Version Control +Requires(pre): /usr/bin/getgid +Requires(pre): /bin/id +Requires(pre): /usr/sbin/groupadd +Requires(pre): /usr/sbin/useradd +Requires(pre): cvs-nserver-client +Requires(pre): fileutils +Requires(postun): /usr/sbin/userdel +Requires(postun): /usr/sbin/groupdel +Requires: cvs-nserver-client +Obsoletes: cvs-nserver +Obsoletes: cvs + +%description common +CVS - common server files. + +%description common -l pl +Wspólne pliki serwerów CVS. + +%package pserver +Summary: Concurrent Versions System - pserver +Summary(pl): Concurrent Versions System - pserver +Group: Development/Version Control +PreReq: rc-inetd +Requires: cvs-nserver-common +Obsoletes: cvs-npserver +Obsoletes: cvs-pserver + +%description pserver +CVS server - pserver files. + +%description pserver -l pl +Serwer CVS - pliki pservera. + +%package nserver +Summary: Concurrent Versions System - nserver +Summary(pl): Concurrent Versions System - nserver +Group: Development/Version Control +PreReq: rc-inetd +Requires: cvs-nserver-common +Obsoletes: cvs-nserver + +%description nserver +CVS server - nserver files. + +%description nserver -l pl +Serwer CVS - pliki nservera. + %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 %build +%{__aclocal} +%{__autoconf} +%{__automake} %configure \ - --enable-pam + --enable-encryption \ + --enable-client \ + --enable-server \ + --enable-setuid \ + --with-openssl \ + --without-gssapi %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} installdirs -%{__make} PAMDIR=$RPM_BUILD_ROOT/etc/pam.d install -%{__make} install-setuid -rm -f $RPM_BUILD_ROOT%{_prefix}/info/cvs* -%{__make} install-info +install -d $RPM_BUILD_ROOT/{etc/sysconfig/rc-inetd,%{_cvsroot}} + +%{__make} DESTDIR=$RPM_BUILD_ROOT install -gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*,%{_mandir}/man?/*} \ - BUGS FAQ HACKING MINOR-BUGS NEWS PROJECTS README TESTS TODO +install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cvs-nserver +install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cvs-pserver + +cat << EOF >$RPM_BUILD_ROOT%{_bindir}/cvs-pserver-script +#!/bin/sh +CVSPASSWD=%{_bindir}/cvspasswd \ +exec %{_bindir}/cvs-pserver %{_cvsroot} -- \ +%{_bindir}/cvschkpw %{_bindir}/cvs pserver +EOF + +cat << EOF >$RPM_BUILD_ROOT%{_bindir}/cvs-nserver-script +#!/bin/sh +CVSPASSWD=%{_bindir}/cvspasswd \ +exec %{_bindir}/cvs-nserver %{_cvsroot} -- \ +%{_bindir}/cvschkpw %{_bindir}/cvs nserver +EOF + +mv -f $RPM_BUILD_ROOT%{_datadir}/cvs-nserver/contrib/rcs2log \ + $RPM_BUILD_ROOT%{_bindir} %clean rm -rf $RPM_BUILD_ROOT -%files +%post -n cvs-nserver-client +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 + +%postun -n cvs-nserver-client +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 + +%pre -n cvs-nserver-common +if [ -n "`getgid cvs`" ]; then + if [ "`getgid cvs`" != "52" ]; then + echo "Error: group cvs doesn't have gid=52. Correct this before installing cvs-nserver." 1>&2 + exit 1 + fi +else + echo "Adding group cvs GID=52." + /usr/sbin/groupadd -g 52 -r -f cvs +fi +if [ -n "`getgid cvsadmin`" ]; then + if [ "`getgid cvsadmin`" != "53" ]; then + echo "Error: group cvsadmin doesn't have gid=53. Correct this before installing cvs-nserver." 1>&2 + exit 1 + fi +else + echo "Adding group cvsadmin GID=53." + /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 "Error: user cvs doesn't have uid=52. Correct this before installing cvs-nserver." 1>&2 + exit 1 + fi +else + echo "Adding user cvs UID=52." + /usr/sbin/useradd -u 52 -r -d %{_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 "Error: user cvsadmin doesn't have uid=53. Correct this before installing cvs-nserver." 1>&2 + exit 1 + fi +else + echo "Adding user cvsadmin UID=53." + /usr/sbin/useradd -u 53 -r -d %{_cvsroot} -s /bin/false -c "CVS user" -g cvsadmin -G cvs cvsadmin 1>&2 +fi +if [ "$1" = 1 ]; then + echo "Initializing repository..." + %{_bindir}/cvs -d :local:%{_cvsroot} init + chown -R cvsadmin.cvsadmin %{_cvsroot}/CVSROOT +fi + +%postun -n cvs-nserver-common +if [ "$1" = "0" ]; then + echo "Removing user cvs." + /usr/sbin/userdel cvs + echo "Removing user cvsadmin." + /usr/sbin/userdel cvsadmin + echo "Removing group cvs." + /usr/sbin/groupdel cvs + echo "Removing group cvsadmin." + /usr/sbin/groupdel cvsadmin +fi + +%post -n cvs-nserver-pserver +if [ -f /var/lock/subsys/rc-inetd ]; then + /etc/rc.d/init.d/rc-inetd reload +fi + +%postun -n cvs-nserver-pserver +if [ -f /var/lock/subsys/rc-inetd ]; then + /etc/rc.d/init.d/rc-inetd reload +fi + +%post -n cvs-nserver-nserver +if [ -f /var/lock/subsys/rc-inetd ]; then + /etc/rc.d/init.d/rc-inetd reload +fi + +%postun -n cvs-nserver-nserver +if [ -f /var/lock/subsys/rc-inetd ]; then + /etc/rc.d/init.d/rc-inetd reload +fi + +%files -n cvs-nserver-client %defattr(644,root,root,755) -%doc *.gz +%doc AUTHORS BUGS ChangeLog FAQ FAQ.nserver NEWS NEWS.nserver PROJECTS +%doc README README.checkpassword TODO %attr(755,root,root) %{_bindir}/cvs -%attr(755,root,root) %{_bindir}/cvschkpw -%attr(755,root,root) %{_bindir}/cvspasswd -%attr(755,root,root) %{_bindir}/cvs-pserver -%attr(755,root,root) %{_bindir}/cvs-nserver -%attr(755,root,root) %{_bindir}/checkpassword -%attr(755,root,root) %{_bindir}/checkpassword-pam %attr(755,root,root) %{_bindir}/cvsbug -%attr(755,root,root) %{_bindir}/rcs2log -/etc/pam.d/cvspserver -%{_mandir}/man1/cvs.1* -%{_mandir}/man5/cvs.5* +%{_infodir}/cvs* +%{_mandir}/man[15]/cvs.* %{_mandir}/man8/cvsbug.8* -%{_mandir}/man8/cvs-nserver.8* -%{_mandir}/man8/cvs-pserver.8* + +%files -n cvs-nserver-common +%defattr(644,root,root,755) +%attr(4754,cvsadmin,cvs) %{_bindir}/cvspasswd +%attr(755,root,root) %{_bindir}/cvschkpw +%attr(755,root,root) %{_bindir}/rcs2log +%dir %{_datadir}/cvs-nserver/contrib/* +%attr(770,cvsadmin,cvs) %dir %{_cvsroot} %{_mandir}/man8/cvs-server.8* -%{_infodir}/cvs* -%{_libdir}/cvs + +%files -n cvs-nserver-pserver +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/cvs-pserver* +/etc/sysconfig/rc-inetd/cvs-pserver +%{_mandir}/man8/cvs-pserver.8* + +%files -n cvs-nserver-nserver +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/cvs-nserver* +%doc NEWS.nserver FAQ.nserver +/etc/sysconfig/rc-inetd/cvs-nserver +%{_mandir}/man8/cvs-nserver.8*