Fri, 10 Aug 2012 14:34:00 +0200
Import package vendor original specs for necessary manipulations.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/subversion/fsl.subversion Fri Aug 10 14:34:00 2012 +0200 1.3 @@ -0,0 +1,16 @@ 1.4 +## 1.5 +## fsl.subversion -- OSSP fsl configuration 1.6 +## 1.7 + 1.8 +ident .*(svnserve)/.+ q{ 1.9 + prefix( 1.10 + prefix="%b %d %H:%M:%S %N <%L> $1[%P]: " 1.11 + ) 1.12 + -> { 1.13 + debug: file( 1.14 + path="@l_prefix@/var/subversion/subversion.log", 1.15 + perm=0664 1.16 + ) 1.17 + } 1.18 +}; 1.19 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/subversion/rc.subversion Fri Aug 10 14:34:00 2012 +0200 2.3 @@ -0,0 +1,80 @@ 2.4 +#!@l_prefix@/bin/openpkg rc 2.5 +## 2.6 +## rc.subversion -- Run-Commands 2.7 +## 2.8 + 2.9 +%config 2.10 + subversion_enable="$openpkg_rc_def" 2.11 + subversion_env="no" 2.12 + subversion_daemon="no" 2.13 + subversion_daemon_user="@l_rusr@" 2.14 + subversion_daemon_host="127.0.0.1" 2.15 + subversion_daemon_port="3690" 2.16 + subversion_daemon_root="@l_prefix@/var/subversion/default" 2.17 + subversion_daemon_pidfile="@l_prefix@/var/subversion/subversion.pid" 2.18 + subversion_daemon_logfile="@l_prefix@/var/subversion/subversion.log" 2.19 + subversion_daemon_log_prolog="true" 2.20 + subversion_daemon_log_epilog="true" 2.21 + subversion_daemon_log_numfiles="10" 2.22 + subversion_daemon_log_minsize="1M" 2.23 + subversion_daemon_log_complevel="9" 2.24 + 2.25 +%common 2.26 + subversion_signal () { 2.27 + [ -f $subversion_daemon_pidfile ] \ 2.28 + && kill -$1 `cat $subversion_daemon_pidfile` 2.29 + } 2.30 + 2.31 +%status -u @l_susr@ -o 2.32 + subversion_usable="unknown" 2.33 + subversion_active="no" 2.34 + rcService subversion enable yes && \ 2.35 + subversion_signal 0 && subversion_active="yes" 2.36 + echo "subversion_enable=\"$subversion_enable\"" 2.37 + echo "subversion_usable=\"$subversion_usable\"" 2.38 + echo "subversion_active=\"$subversion_active\"" 2.39 + 2.40 +%start -u @l_susr@ 2.41 + rcService subversion enable yes || exit 0 2.42 + rcService subversion active yes && exit 0 2.43 + if rcVarIsYes subversion_daemon; then 2.44 + su - $subversion_daemon_user -c \ 2.45 + "@l_prefix@/bin/svnserve --daemon \ 2.46 + --listen-host $subversion_daemon_host \ 2.47 + --listen-port $subversion_daemon_port \ 2.48 + --root $subversion_daemon_root \ 2.49 + --pid-file $subversion_daemon_pidfile" 2.50 + fi 2.51 + 2.52 +%stop -u @l_susr@ 2.53 + rcService subversion enable yes || exit 0 2.54 + rcService subversion active no && exit 0 2.55 + if rcVarIsYes subversion_daemon; then 2.56 + subversion_signal TERM 2.57 + sleep 2 2.58 + rm -f $subversion_daemon_pidfile 2>/dev/null || true 2.59 + fi 2.60 + 2.61 +%restart -u @l_susr@ 2.62 + rcService subversion enable yes || exit 0 2.63 + rcService subversion active no && exit 0 2.64 + rc subversion stop start 2.65 + 2.66 +%daily -u @l_susr@ 2.67 + rcService subversion enable yes || exit 0 2.68 + shtool rotate -f \ 2.69 + -n $subversion_daemon_log_numfiles -s $subversion_daemon_log_minsize -d \ 2.70 + -z $subversion_daemon_log_complevel -m 664 -o @l_susr@ -g @l_sgrp@ \ 2.71 + -P "$subversion_daemon_log_prolog" \ 2.72 + -E "$subversion_daemon_log_epilog; rc subversion restart" \ 2.73 + $subversion_daemon_logfile 2.74 + 2.75 +%env 2.76 + rcService subversion enable yes || exit 0 2.77 + if rcVarIsYes subversion_env; then 2.78 + if [ ".$BASH" != . ]; then 2.79 + shopt -s extglob progcomp 2.80 + . @l_prefix@/etc/subversion/bashrc 2.81 + fi 2.82 + fi 2.83 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/subversion/subversion.config Fri Aug 10 14:34:00 2012 +0200 3.3 @@ -0,0 +1,39 @@ 3.4 +## 3.5 +## config -- Subversion global configuration file 3.6 +## 3.7 + 3.8 +# [auth] 3.9 +# store-passwords = no 3.10 +# store-auth-creds = no 3.11 + 3.12 +# [helpers] 3.13 +# editor-cmd = @l_prefix@/bin/vim 3.14 +# diff-cmd = @l_prefix@/bin/diff0 3.15 +# diff3-cmd = @l_prefix@/bin/diff3 3.16 +# diff3-has-program-arg = true 3.17 + 3.18 +# [tunnels] 3.19 +# ssh = $SVN_SSH ssh 3.20 +# rsh = $SVN_RSH rsh 3.21 + 3.22 +# [miscellany] 3.23 +# global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store 3.24 +# log-encoding = latin1 3.25 +# use-commit-times = yes 3.26 +# enable-auto-props = yes 3.27 + 3.28 +# [auto-props] 3.29 +# *.c = svn:eol-style=native 3.30 +# *.cpp = svn:eol-style=native 3.31 +# *.h = svn:eol-style=native 3.32 +# *.dsp = svn:eol-style=CRLF 3.33 +# *.dsw = svn:eol-style=CRLF 3.34 +# *.sh = svn:eol-style=native;svn:executable 3.35 +# *.txt = svn:eol-style=native 3.36 +# *.png = svn:mime-type=image/png 3.37 +# *.jpg = svn:mime-type=image/jpeg 3.38 +# *.gif = svn:mime-type=image/gif 3.39 +# *.xml = svn:eol-style=native 3.40 +# *.tex = svn:eol-style=native 3.41 +# Makefile = svn:eol-style=native 3.42 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/subversion/subversion.patch Fri Aug 10 14:34:00 2012 +0200 4.3 @@ -0,0 +1,69 @@ 4.4 +Index: configure 4.5 +--- configure.orig 2012-02-10 16:45:29.000000000 +0100 4.6 ++++ configure 2012-02-15 10:31:57.000000000 +0100 4.7 +@@ -5956,6 +5956,11 @@ 4.8 + ac_sub_cache_file="$ac_dots$cache_file" ;; 4.9 + esac 4.10 + 4.11 ++ args="$args --prefix=$prefix/libexec/subversion/neon" 4.12 ++ if [ ".$with_ssl" = .yes ]; then 4.13 ++ args="$args --with-ssl" 4.14 ++ fi 4.15 ++ 4.16 + # The eval makes quoting arguments work. 4.17 + if eval $SHELL $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --with-apr=$apr_config --with-apr-util=$apu_config 4.18 + then : 4.19 +Index: subversion/mod_dav_svn/repos.c 4.20 +--- subversion/mod_dav_svn/repos.c.orig 2012-02-02 17:13:30.000000000 +0100 4.21 ++++ subversion/mod_dav_svn/repos.c 2012-02-15 10:31:57.000000000 +0100 4.22 +@@ -3507,6 +3507,7 @@ 4.23 + */ 4.24 + ap_fputs(output, bb, 4.25 + " </ul>\n <hr noshade><em>Powered by " 4.26 ++ "<a href=\"http://www.openpkg.org/\">OpenPKG</a> " 4.27 + "<a href=\"http://subversion.apache.org/\">" 4.28 + "Apache Subversion" 4.29 + "</a> version " SVN_VERSION "." 4.30 +Index: subversion/svnserve/cyrus_auth.c 4.31 +--- subversion/svnserve/cyrus_auth.c.orig 2011-06-23 18:43:25.000000000 +0200 4.32 ++++ subversion/svnserve/cyrus_auth.c 2012-02-15 10:31:57.000000000 +0100 4.33 +@@ -110,7 +110,7 @@ 4.34 + status = svn_ra_svn__sasl_common_init(pool); 4.35 + if (status) 4.36 + return svn_error_wrap_apr(status, 4.37 +- _("Could not initialize the SASL library")); 4.38 ++ _("Could not initialize the SASL library (svnserve: APR failure)")); 4.39 + 4.40 + /* The second parameter tells SASL to look for a configuration file 4.41 + named subversion.conf. */ 4.42 +@@ -120,7 +120,7 @@ 4.43 + svn_error_t *err = svn_error_create(SVN_ERR_RA_NOT_AUTHORIZED, NULL, 4.44 + sasl_errstring(result, NULL, NULL)); 4.45 + return svn_error_quick_wrap(err, 4.46 +- _("Could not initialize the SASL library")); 4.47 ++ _("Could not initialize the SASL library (svnserve)")); 4.48 + } 4.49 + return SVN_NO_ERROR; 4.50 + } 4.51 +Index: subversion/svnserve/main.c 4.52 +--- subversion/svnserve/main.c.orig 2011-06-21 20:00:13.000000000 +0200 4.53 ++++ subversion/svnserve/main.c 2012-02-15 10:31:57.000000000 +0100 4.54 +@@ -59,6 +59,10 @@ 4.55 + 4.56 + #include "server.h" 4.57 + 4.58 ++#ifdef SVN_HAVE_SASL 4.59 ++#include <syslog.h> 4.60 ++#endif 4.61 ++ 4.62 + /* The strategy for handling incoming connections. Some of these may be 4.63 + unavailable due to platform limitations. */ 4.64 + enum connection_handling_mode { 4.65 +@@ -446,6 +450,7 @@ 4.66 + 4.67 + #ifdef SVN_HAVE_SASL 4.68 + SVN_INT_ERR(cyrus_init(pool)); 4.69 ++ openlog("svnserve", LOG_NDELAY|LOG_PID, LOG_DAEMON); 4.70 + #endif 4.71 + 4.72 + /* Check library versions */
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/subversion/subversion.servers Fri Aug 10 14:34:00 2012 +0200 5.3 @@ -0,0 +1,29 @@ 5.4 +## 5.5 +## servers -- Subversion global servers configuration file 5.6 +## 5.7 + 5.8 +# [groups] 5.9 +# group1 = *.example.com 5.10 +# group2 = *.example.net 5.11 + 5.12 +# [group1] 5.13 +# http-proxy-host = proxy1.some-domain-name.com 5.14 +# http-proxy-port = 80 5.15 +# http-proxy-username = blah 5.16 +# http-proxy-password = doubleblah 5.17 +# http-timeout = 60 5.18 +# neon-debug-mask = 130 5.19 + 5.20 +# [group2] 5.21 +# http-proxy-host = proxy2.some-domain-name.com 5.22 +# http-proxy-port = 9000 5.23 + 5.24 +# [global] 5.25 +# http-proxy-exceptions = *.exception.com, www.internal-site.org 5.26 +# http-proxy-host = defaultproxy.whatever.com 5.27 +# http-proxy-port = 7000 5.28 +# http-proxy-username = defaultusername 5.29 +# http-proxy-password = defaultpassword 5.30 +# http-compression = no 5.31 +# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem 5.32 +
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/subversion/subversion.spec Fri Aug 10 14:34:00 2012 +0200 6.3 @@ -0,0 +1,238 @@ 6.4 +## 6.5 +## subversion.spec -- OpenPKG RPM Package Specification 6.6 +## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> 6.7 +## 6.8 +## Permission to use, copy, modify, and distribute this software for 6.9 +## any purpose with or without fee is hereby granted, provided that 6.10 +## the above copyright notice and this permission notice appear in all 6.11 +## copies. 6.12 +## 6.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 6.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 6.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 6.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 6.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 6.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 6.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 6.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 6.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 6.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 6.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6.24 +## SUCH DAMAGE. 6.25 +## 6.26 + 6.27 +# package version 6.28 +%define V_dist 1.7.5 6.29 +%define V_opkg 1.7.5 6.30 +%define V_book_html 20120518 6.31 +%define V_book_pdf 20120518 6.32 + 6.33 +# package information 6.34 +Name: subversion 6.35 +Summary: Subversion Source Revision Control System 6.36 +URL: http://subversion.apache.org/ 6.37 +Vendor: Apache Software Foundation 6.38 +Packager: OpenPKG Foundation e.V. 6.39 +Distribution: OpenPKG Community 6.40 +Class: BASE 6.41 +Group: SCM 6.42 +License: Apache/BSD 6.43 +Version: %{V_opkg} 6.44 +Release: 20120714 6.45 + 6.46 +# package options 6.47 +%option with_fsl yes 6.48 +%option with_db no 6.49 +%option with_sasl no 6.50 + 6.51 +# list of sources 6.52 +Source0: http://www.apache.org/dist/subversion/subversion-%{V_dist}.tar.bz2 6.53 +Source1: http://download.openpkg.org/components/versioned/subversion/svn-book-%{V_book_html}.html 6.54 +Source2: http://download.openpkg.org/components/versioned/subversion/svn-book-%{V_book_pdf}.pdf 6.55 +Source3: subversion.config 6.56 +Source4: subversion.servers 6.57 +Source5: rc.subversion 6.58 +Source6: fsl.subversion 6.59 +Patch0: subversion.patch 6.60 + 6.61 +# build information 6.62 +BuildPreReq: OpenPKG, openpkg >= 20100101, make, libtool, sed, pkgconfig 6.63 +PreReq: OpenPKG, openpkg >= 20100101 6.64 +BuildPreReq: diffutils, openssl, zlib, libiconv, expat, serf, neon, apr, sqlite 6.65 +PreReq: diffutils, openssl, zlib, libiconv, expat, serf, neon, apr, sqlite 6.66 +%if "%{with_fsl}" == "yes" 6.67 +BuildPreReq: fsl 6.68 +PreReq: fsl 6.69 +%endif 6.70 +%if "%{with_db}" == "yes" 6.71 +BuildPreReq: db 6.72 +PreReq: db 6.73 +%endif 6.74 +%if "%{with_sasl}" == "yes" 6.75 +BuildPreReq: sasl 6.76 +PreReq: sasl 6.77 +%endif 6.78 + 6.79 +%description 6.80 + Subversion is a modern Version Control System (VCS) providing most 6.81 + current CVS features, versioned directories/renames/meta-data, 6.82 + atomic commits, cheap branching and tagging, native client/server 6.83 + architecture, and the choice of database or plain-file repository 6.84 + implementations. 6.85 + 6.86 +%track 6.87 + prog subversion = { 6.88 + version = %{V_dist} 6.89 + url = http://subversion.apache.org/download/ 6.90 + regex = subversion-(\d+\.\d+.\d+)\.tar\.bz2 6.91 + } 6.92 + 6.93 +%prep 6.94 + %setup -q 6.95 + %patch -p0 6.96 + 6.97 + # patch: correctly pass --disable-shared to sub-directories 6.98 + %{l_shtool} subst \ 6.99 + -e 's;\($ac_abs_srcdir/configure $ac_configure_args\);\1 --disable-shared;' \ 6.100 + configure 6.101 + 6.102 + # patch: adjust path to configuration directory 6.103 + %{l_shtool} subst \ 6.104 + -e 's;/etc/subversion;%{l_prefix}/etc/subversion;g' \ 6.105 + subversion/libsvn_subr/config_impl.h \ 6.106 + subversion/libsvn_subr/config_file.c 6.107 + 6.108 +%build 6.109 + # configure package 6.110 + CC="%{l_cc}" \ 6.111 + CFLAGS="%{l_cflags -O}" \ 6.112 + CPPFLAGS="%{l_cppflags libxml2 .} -DSQLITE_THREADSAFE=1" \ 6.113 +%if "%{with_sasl}" == "yes" && "%{with_db}" == "yes" 6.114 + LDFLAGS="%{l_ldflags} `pkg-config db sasl --libs-only-L` %{l_fsl_ldflags}" \ 6.115 + LIBS="`pkg-config db sasl --libs-only-l` -lz %{l_fsl_libs}" \ 6.116 +%else 6.117 +%if "%{with_sasl}" == "yes" 6.118 + LDFLAGS="%{l_ldflags} `pkg-config sasl --libs-only-L` %{l_fsl_ldflags}" \ 6.119 + LIBS="`pkg-config sasl --libs-only-l` `pkg-config apr-util-1 --libs-only-l` -lz %{l_fsl_libs}" \ 6.120 +%else 6.121 + LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \ 6.122 + LIBS="`pkg-config apr-util-1 --libs-only-l` -lz %{l_fsl_libs}" \ 6.123 +%endif 6.124 +%endif 6.125 + CONFIG_SHELL="%{l_bash}" \ 6.126 + ./configure \ 6.127 + --prefix=%{l_prefix} \ 6.128 + --mandir=%{l_prefix}/man \ 6.129 +%if "%{with_db}" == "yes" 6.130 + --with-berkeley-db="db.h:%{l_prefix}/include:%{l_prefix}/lib:db" \ 6.131 +%else 6.132 + --without-berkeley-db \ 6.133 +%endif 6.134 + --with-sqlite=%{l_prefix} \ 6.135 + --with-ssl=openssl \ 6.136 + --with-zlib=%{l_prefix} \ 6.137 + --with-apr=%{l_prefix} \ 6.138 + --with-apr-util=%{l_prefix} \ 6.139 + --with-neon=%{l_prefix} \ 6.140 + --with-serf=%{l_prefix} \ 6.141 +%if "%{with_sasl}" == "yes" 6.142 + --with-sasl \ 6.143 +%else 6.144 + --without-sasl \ 6.145 +%endif 6.146 + --without-gssapi \ 6.147 + --without-apxs \ 6.148 + --disable-nls \ 6.149 + --disable-shared \ 6.150 + --enable-static 6.151 + 6.152 + # build package 6.153 + %{l_make} %{l_mflags} 6.154 + 6.155 +%install 6.156 + # install package 6.157 + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 6.158 + 6.159 + # strip down installation 6.160 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.exp 6.161 + rm -f $RPM_BUILD_ROOT%{l_prefix}/include/subversion-1/svn-revision.txt 6.162 + rm -f $RPM_BUILD_ROOT%{l_prefix}/include/subversion-1/mod_dav_svn.h 6.163 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc 6.164 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/build-1 6.165 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 6.166 + 6.167 + # install Subversion default global configuration files 6.168 + %{l_shtool} mkdir -f -p -m 755 \ 6.169 + $RPM_BUILD_ROOT%{l_prefix}/etc/subversion 6.170 + %{l_shtool} install -c -m 644 %{l_value -s -a} \ 6.171 + %{SOURCE subversion.config} \ 6.172 + $RPM_BUILD_ROOT%{l_prefix}/etc/subversion/config 6.173 + %{l_shtool} install -c -m 644 \ 6.174 + %{SOURCE subversion.servers} \ 6.175 + $RPM_BUILD_ROOT%{l_prefix}/etc/subversion/servers 6.176 + 6.177 + # install Subversion Bash command completion 6.178 + %{l_shtool} install -c -m 644 \ 6.179 + tools/client-side/bash_completion \ 6.180 + $RPM_BUILD_ROOT%{l_prefix}/etc/subversion/bashrc 6.181 + 6.182 + # install Subversion book 6.183 + %{l_shtool} mkdir -f -p -m 755 \ 6.184 + $RPM_BUILD_ROOT%{l_prefix}/share/subversion 6.185 + %{l_shtool} install -c -m 644 \ 6.186 + %{SOURCE svn-book-%{V_book_pdf}.pdf} \ 6.187 + $RPM_BUILD_ROOT%{l_prefix}/share/subversion/svn-book.pdf 6.188 + %{l_shtool} install -c -m 644 \ 6.189 + %{SOURCE svn-book-%{V_book_html}.html} \ 6.190 + $RPM_BUILD_ROOT%{l_prefix}/share/subversion/svn-book.html 6.191 + 6.192 + # install run-command script 6.193 + %{l_shtool} mkdir -f -p -m 755 \ 6.194 + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d 6.195 + %{l_shtool} install -c -m 755 %{l_value -s -a} \ 6.196 + %{SOURCE rc.subversion} \ 6.197 + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ 6.198 + 6.199 + # install OSSP fsl configuration 6.200 + %{l_shtool} mkdir -f -p -m 755 \ 6.201 + $RPM_BUILD_ROOT%{l_prefix}/etc/fsl 6.202 + %{l_shtool} install -c -m 644 %{l_value -s -a} \ 6.203 + %{SOURCE fsl.subversion} \ 6.204 + $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ 6.205 + 6.206 + # create directory for default repository and svnserve pidfile 6.207 + %{l_shtool} mkdir -f -p -m 755 \ 6.208 + $RPM_BUILD_ROOT%{l_prefix}/var/subversion 6.209 + 6.210 + # determine installation files 6.211 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 6.212 + %{l_files_std} \ 6.213 + '%config %{l_prefix}/etc/subversion/*' \ 6.214 + '%config %{l_prefix}/etc/fsl/fsl.subversion' \ 6.215 + '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/subversion' \ 6.216 + '%doc %{l_prefix}/share/subversion/svn-book.*' 6.217 + 6.218 +%files -f files 6.219 + 6.220 +%clean 6.221 + 6.222 +%post 6.223 + # create default repository 6.224 + if [ ! -d $RPM_INSTALL_PREFIX/var/subversion/default ]; then 6.225 + su - %{l_rusr} -c \ 6.226 + "$RPM_INSTALL_PREFIX/bin/svnadmin create \ 6.227 + $RPM_INSTALL_PREFIX/var/subversion/default" 6.228 + fi 6.229 + 6.230 + # after upgrade, restart service 6.231 + [ $1 -eq 2 ] || exit 0 6.232 + eval `%{l_rc} subversion status 2>/dev/null` 6.233 + [ ".$subversion_active" = .yes ] && %{l_rc} subversion restart 6.234 + exit 0 6.235 + 6.236 +%preun 6.237 + # before erase, stop service 6.238 + [ $1 -eq 0 ] || exit 0 6.239 + %{l_rc} subversion stop 2>/dev/null 6.240 + exit 0 6.241 +