|
|
@@ -37,9 +37,9 @@ Distribution: OpenPKG [CORE]
|
|
|
Group: SCM
|
|
|
License: GPL
|
|
|
Version: %{V_cvs}
|
|
|
-Release: 20030717
|
|
|
+Release: 20030718
|
|
|
|
|
|
-# optional support for applying the RSE patches
|
|
|
+# package options
|
|
|
%option with_fsl yes
|
|
|
%option with_rse_patches yes
|
|
|
%option with_rse_patch_cvsuser_caller cvs
|
|
|
@@ -130,8 +130,6 @@ AutoReqProv: no
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
- %{l_shtool} mkdir -f -p -m 755 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/var
|
|
|
( cd cvs-%{V_cvs}
|
|
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/rcs2log
|
|
|
@@ -159,11 +157,18 @@ AutoReqProv: no
|
|
|
%{SOURCE fsl.cvs} \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
|
|
|
|
|
|
+ # install ghost log
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/cvs
|
|
|
+ %{l_shtool} install -c /dev/null \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/cvs/cvs.log
|
|
|
+
|
|
|
# determine installation files
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
%{l_files_std} \
|
|
|
'%not %dir %{l_prefix}/etc/fsl' \
|
|
|
'%config %{l_prefix}/etc/fsl/fsl.cvs' \
|
|
|
+ '%ghost %attr(644,%{l_musr},%{l_mgrp}) %{l_prefix}/var/cvs/cvs.log' \
|
|
|
'%attr(1777,-,-) %{l_prefix}/var/cvs/tmp'
|
|
|
|
|
|
%files -f files
|
|
|
@@ -171,3 +176,16 @@ AutoReqProv: no
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+%post
|
|
|
+ # after upgrade, restart service
|
|
|
+ [ $1 -eq 2 ] || exit 0
|
|
|
+ eval `%{l_rc} cvs status 2>/dev/null`
|
|
|
+ [ ".$cvs_active" = .yes ] && %{l_rc} cvs restart
|
|
|
+ exit 0
|
|
|
+
|
|
|
+%preun
|
|
|
+ # before erase, stop service
|
|
|
+ [ $1 -eq 0 ] || exit 0
|
|
|
+ %{l_rc} cvs stop 2>/dev/null
|
|
|
+ exit 0
|
|
|
+
|