1 Summary: Concurrent Versions System - nserver
2 Summary(de): Concurrent-Versioning-System - nserver
3 Summary(fr): Un système pour maintenir à jour des fichiers - nserver
4 Summary(pl): Concurrent Versions System - nserver
5 Summary(tr): Sürüm denetim sistemi - nserver
10 Group: Development/Version Control
11 Source0: http://alexm.here.ru/cvs-nserver/download/%{name}-%{version}.tar.gz
12 Source1: %{name}.inetd
13 Source2: cvs-pserver.inetd
14 Patch0: %{name}-cvspasswd.patch
15 Patch1: %{name}-info.patch
16 # outdated, but maybe will be needed for checkpasswd (outside programs):
17 Patch3: %{name}-PAM_fix.patch
18 BuildRequires: autoconf
19 BuildRequires: texinfo
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _cvsroot /home/cvsroot
25 CVS is a version control system, which allows you to keep old versions
26 of files (usually source code), keep a log of who, when, and why
27 changes occurred, etc., like RCS or SCCS. Unlike the simpler systems,
28 CVS does not just operate on one file at a time or one directory at a
29 time, but operates on hierarchical collections of directories
30 consisting of version controlled files. CVS helps to manage releases
31 and to control the concurrent editing of source files among multiple
32 authors. CVS allows triggers to enable/log/control various operations
33 and works well over a wide area network.
36 CVS ist ein Frontend für das RCS(1)-Revisionskontrollsystem, das den
37 Begriff der Revisionskontrolle von einer Sammlung von Dateien in einem
38 einzelnen Verzeichnis auf eine ganze Hierarchie ausweitet, bestehend
39 aus revisionskontrollierten Dateien. Diese Verzeichnisse und Dateien
40 lassen sich zu einer Software-Release kombinieren. CVS bietet die
41 Funktionen, die zur Verwaltung von Software-Releases und zur
42 Überwachung der gleichzeitigen Bearbeitung von Quelldateien durch
43 mehrere Software- Entwickler notwendig sind.
46 "CVS" signifie "Concurrent Version System". C'est un système de
47 comparaison de versions de fichiers, qui peut garder une trace des
48 changements apportés à des fichiers (le plus souvent, les fichiers des
49 sources d'un programme). CVS conserve seulement les différences, et
50 non l'intégralité d'un fichier récent et d'un fichier plus ancien. A
51 chaque modification d'un fichier, CVS garde (entre autres) le nom de
52 la personne ayant fait la modification, la raison justifiant cette
53 modification, et la date à laquelle celle-ci a eu lieu. CVS est très
54 utile pour gérer la mise en commun des modifications apportées par
55 plusieurs personnes travaillant en parallèle sur les mêmes fichiers.
56 Au lieu de garder plusieurs versions des fichiers dans un seul
57 répertoire, CVS crée une série de répertoires, chacun contenant une
58 nouvelle version des fichiers. Ces répertoires et ces fichiers peuvent
59 ensuite être regroupés pour former la version la plus à jour du
60 logiciel. Installez ce package si vous avez besoin d'utiliser un
61 système de contrôle de version.
64 CVS jest nak³adk± na rcs (Revision Control System, czyli w wolnym
65 t³umaczeniu system kontroli wersji zasobów), który rozszerza
66 mo¿liwo¶ci rcs'a z narzêdzia do kontroli zbioru plików w pojedynczym
67 katalogu o mo¿liwo¶æ kontroli zbioru hierarchicznie u³o¿onych
68 katalogów z plikami. Z pomoc± CVS w ³atwy sposób mo¿na zarz±dzaæ kodem
69 ¼ród³owym opracowywanym przez nawet bardzo du¿e zespó³y programistów
70 umo¿liwiaj±c ¶ledzenie i kontrolê wszystkich zmian w trakcie pracy nad
71 projektami i wypuszczaniem pe³nych wersji oprogramowania (release).
74 CVS (Concurrent Versioning System), tek bir dizindeki dosya
75 topluluðunun sürüm denetimini, denetimi yapýlmýþ dizinlerin hiyerarþik
76 topluluðuna geniþleten rcs(1) sürüm denetim sisteminin ön yüzüdür. Bu
77 dizin ve dosyalar, bir yazýlým yayýný oluþturma amacýyla biraraya
78 getirilebilir. CVS, bu yazýlým yayýnlarýnýn yönetilmesini ve kaynak
79 dosyalarý bakýmýnýn birden çok yazýlým geliþtiricisi tarafýndan
80 eþzamanlý olarak yapýlmasýný kontrol etmek için gereken iþlevleri
83 %package -n cvs-nclient
84 Summary: Concurrent Versions System - common
85 Summary(pl): Concurrent Versions System - wspólne
86 Group: Development/Version Control
88 %description -n cvs-nclient
89 Client and some common files.
91 %description -l pl -n cvs-nclient
92 Klient CVS i trochê wspólnych plików.
94 %package -n cvs-npserver
95 Summary: Concurrent Versions System - pserver
96 Summary(pl): Concurrent Versions System - pserver
97 Group: Development/Version Control
98 Requires: cvs-nserver-common
100 Obsoletes: cvs-nserver
102 %description -n cvs-npserver
105 %description -l pl -n cvs-npserver
116 --enable-encryption \
124 rm -rf $RPM_BUILD_ROOT
125 install -d $RPM_BUILD_ROOT/{etc/sysconfig/rc-inetd,%{_cvsroot}}
127 %{__make} DESTDIR=$RPM_BUILD_ROOT install
129 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cvs-nserver
130 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cvs-pserver
132 cat << EOF >$RPM_BUILD_ROOT%{_bindir}/cvs-pserver-script
134 CVSPASSWD=%{_bindir}/cvspasswd \
135 exec %{_bindir}/cvs-pserver %{_cvsroot} -- \
136 %{_bindir}/cvschkpw %{_bindir}/cvs pserver
139 cat << EOF >$RPM_BUILD_ROOT%{_bindir}/cvs-nserver-script
141 CVSPASSWD=%{_bindir}/cvspasswd \
142 exec %{_bindir}/cvs-nserver %{_cvsroot} -- \
143 %{_bindir}/cvschkpw %{_bindir}/cvs nserver
146 mv -f $RPM_BUILD_ROOT%{_datadir}/cvs-nserver/contrib/rcs2log \
147 $RPM_BUILD_ROOT%{_bindir}
149 gzip -9nf AUTHORS BUGS NEWS NEWS.nserver PROJECTS TODO FAQ FAQ.nserver
152 rm -rf $RPM_BUILD_ROOT
155 if [ -n "`getgid cvs`" ]; then
156 if [ "`getgid cvs`" != "52" ]; then
157 echo "Warning: group cvs haven't gid=52. Correct this before installing cvs-nserver" 1>&2
161 echo "Making group cvs GID=52"
162 /usr/sbin/groupadd -g 52 -r -f cvs
164 if [ -n "`getgid cvsadmin`" ]; then
165 if [ "`getgid cvsadmin`" != "53" ]; then
166 echo "Warning: group cvsadmin haven't gid=53. Correct this before installing cvs-nserver" 1>&2
170 echo "Making group cvsadmin GID=53"
171 /usr/sbin/groupadd -g 53 -r -f cvsadmin
173 if [ -n "`id -u cvs 2>/dev/null`" ]; then
174 if [ "`id -u cvs`" != "52" ]; then
175 echo "Warning: user cvs haven't uid=52. Correct this before installing cvs-nserver" 1>&2
179 echo "Making user cvs UID=52"
180 /usr/sbin/useradd -u 52 -r -d %{_cvsroot} -s /bin/false -c "CVS user" -g cvs cvs 1>&2
182 if [ -n "`id -u cvsadmin 2>/dev/null`" ]; then
183 if [ "`id -u cvsadmin`" != "53" ]; then
184 echo "Warning: user cvsadmin haven't uid=53. Correct this before installing cvs-nserver" 1>&2
188 echo "Making user cvsadmin UID=53"
189 /usr/sbin/useradd -u 53 -r -d %{_cvsroot} -s /bin/false -c "CVS user" -g cvsadmin -G cvs cvsadmin 1>&2
192 if [ "$1" = 1 ]; then
193 echo "Initialise repository"
194 %{_bindir}/cvs -d :local:%{_cvsroot} init
195 chown -R cvsadmin.cvsadmin %{_cvsroot}/CVSROOT
197 if [ -f /var/lock/subsys/rc-inetd ]; then
198 /etc/rc.d/init.d/rc-inetd reload
202 if [ "$1" = "0" ]; then
203 echo "Removing group cvs GID=52"
204 /usr/sbin/userdel cvs
205 echo "Removing group cvsadmin GID=53"
206 /usr/sbin/userdel cvsadmin
207 echo "Removing user cvs UID=52"
208 /usr/sbin/groupdel cvs
209 echo "Removing user cvsadmin UID=53"
210 /usr/sbin/groupdel cvsadmin
212 if [ -f /var/lock/subsys/rc-inetd ]; then
213 /etc/rc.d/init.d/rc-inetd reload
217 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
219 %post -n cvs-npserver
220 if [ "$1" = 1 ]; then
221 echo "Initialise repository"
222 %{_bindir}/cvs -d :local:%{_cvsroot} init
223 chown -R cvsadmin.cvsadmin %{_cvsroot}/CVSROOT
225 if [ -f /var/lock/subsys/rc-inetd ]; then
226 /etc/rc.d/init.d/rc-inetd reload
229 %postun -n cvs-npserver
230 if [ -f /var/lock/subsys/rc-inetd ]; then
231 /etc/rc.d/init.d/rc-inetd reload
234 %postun -n cvs-nclient
235 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_bindir}/cvs-nserver*
240 %doc NEWS.nserver.gz FAQ.nserver.gz
241 /etc/sysconfig/rc-inetd/cvs-nserver
242 %attr(4754,cvsadmin,cvs) %{_bindir}/cvspasswd
243 %attr(755,root,root) %{_bindir}/cvschkpw
244 %attr(755,root,root) %{_bindir}/rcs2log
245 %dir %{_datadir}/cvs-nserver/contrib/*
246 %attr(770,cvsadmin,cvs) %dir %{_cvsroot}
247 %{_mandir}/man8/cvs-server.8*
248 %{_mandir}/man8/cvs-nserver.8*
250 %files -n cvs-nclient
251 %defattr(644,root,root,755)
252 %doc {AUTHORS,BUGS,NEWS,PROJECTS,TODO,FAQ}.gz
253 %attr(755,root,root) %{_bindir}/cvs
254 %attr(755,root,root) %{_bindir}/cvsbug
256 %{_mandir}/man[15]/cvs.*
257 %{_mandir}/man8/cvsbug.8*
259 %files -n cvs-npserver
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_bindir}/cvs-pserver*
262 /etc/sysconfig/rc-inetd/cvs-pserver
263 %{_mandir}/man8/cvs-pserver.8*