Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/subversion/
Date: Fri, 11 Jan 2019 09:43:04
Message-Id: 1547199771.713f702e51fd68bda3abb2665676d37db8b51835.polynomial-c@gentoo
1 commit: 713f702e51fd68bda3abb2665676d37db8b51835
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 11 09:42:31 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 11 09:42:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=713f702e
7
8 dev-vcs/subversion: Removed old.
9
10 Package-Manager: Portage-2.3.55, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-vcs/subversion/Manifest | 1 -
14 dev-vcs/subversion/subversion-1.10.2.ebuild | 527 ----------------------------
15 2 files changed, 528 deletions(-)
16
17 diff --git a/dev-vcs/subversion/Manifest b/dev-vcs/subversion/Manifest
18 index 14f0484e7bc..afc8ca812a0 100644
19 --- a/dev-vcs/subversion/Manifest
20 +++ b/dev-vcs/subversion/Manifest
21 @@ -1,5 +1,4 @@
22 DIST subversion-1.10.0_rc1-patches-1.tar.xz 2984 BLAKE2B 7c9619b95ca6b433a58dc5baf3a1e1b14ef0017f714af81762b975d50a37b743788a4da65cf7f9eb8e633cbc813ad8dd974b530a19ec2d3fc74b75921f8f0c17 SHA512 aa7a25a253ea2da99520399d292d3e1602985392bae6dc5582003fdb9719d654638754b6e370b68b184ee6729ba3833bd511c09b2cb36f8f476b42063f55fbb2
23 -DIST subversion-1.10.2.tar.bz2 8369762 BLAKE2B 1cd9ecf91818172ce60b8a38b1cb0eec0180725af58c09b9b5e62aa70fc2a7266d20b9fcfdafe993cbbb57f118dc9eb77126c199c3f4f2797fd50ef5f59b1f7e SHA512 ccbe860ec93a198745e40620cb7e005a85797e344a99ddbc0e24c32ad846976eae35cf5b3d62ba5751b998f0d40bbebbba72f484d92c92693bbb2112c989b129
24 DIST subversion-1.10.3.tar.bz2 8374465 BLAKE2B 48610f0edec52dad43a4fd971098ed5d8b43a5396fcc3fdaa42af6ff7ce4722300f0c32a342521072abcccbc32e1364a87fc644913cb4a3a21658793f5991234 SHA512 e753c76be2c7a7d1e47ef70a417f33ad48a5076ddbe02062b478b0baf8ce063f101aab3a86895e33f6277f273917b87d8c07b002e3e4f9fe3a750a2f8142ef6d
25 DIST subversion-1.11.0.tar.bz2 8490744 BLAKE2B 27b2172e1ebae5641fc2bc73fd77f479278bc0725645e6bf8f974932e5c313552c508cdeeddce101f12fb983398ff81fd2ca2408950513d4ad0bd2cae4fcf729 SHA512 d73cc800080529b1716a027fd3001d9c963a3cb69619d059498c99426cccc21a2985d1eeb5e1bff8d421fff477a9dff6f9be1c092470152452cf5e7175414e92
26 DIST subversion-1.11.1.tar.bz2 8499709 BLAKE2B f14bbe9b28dec32894a8c262d32f36e01c9866352f1c54b5468804e81c1eadb895cbe9e33783a9e7d4a7f54dfa3b25b762015b9ca4886a14628c434254995c77 SHA512 2d082f715bf592ffc6a19311a9320dbae2ff0ee126b0472ce1c3f10e9aee670f43d894889430e6d093620f7b69c611e9a26773bc7a2f8b599ec37540ecd84a8d
27
28 diff --git a/dev-vcs/subversion/subversion-1.10.2.ebuild b/dev-vcs/subversion/subversion-1.10.2.ebuild
29 deleted file mode 100644
30 index 6ee1436600b..00000000000
31 --- a/dev-vcs/subversion/subversion-1.10.2.ebuild
32 +++ /dev/null
33 @@ -1,527 +0,0 @@
34 -# Copyright 1999-2018 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=6
38 -
39 -PYTHON_COMPAT=( python2_7 )
40 -USE_RUBY="ruby25 ruby24 ruby23"
41 -DISTUTILS_OPTIONAL=1
42 -WANT_AUTOMAKE="none"
43 -GENTOO_DEPEND_ON_PERL="no"
44 -
45 -inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common flag-o-matic java-pkg-opt-2 libtool ltprune multilib perl-module ruby-single xdg-utils
46 -
47 -MY_P="${P/_/-}"
48 -DESCRIPTION="Advanced version control system"
49 -HOMEPAGE="https://subversion.apache.org/"
50 -SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2
51 - https://dev.gentoo.org/~polynomial-c/${PN}-1.10.0_rc1-patches-1.tar.xz"
52 -S="${WORKDIR}/${MY_P}"
53 -
54 -LICENSE="Subversion GPL-2"
55 -SLOT="0"
56 -[[ "${PV}" = *_rc* ]] || \
57 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
58 -IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kwallet nls perl python ruby sasl test vim-syntax"
59 -
60 -COMMON_DEPEND="
61 - app-arch/bzip2
62 - app-arch/lz4
63 - >=dev-db/sqlite-3.7.12
64 - >=dev-libs/apr-1.3:1
65 - >=dev-libs/apr-util-1.3:1
66 - dev-libs/expat
67 - dev-libs/libutf8proc:=
68 - sys-apps/file
69 - sys-libs/zlib
70 - berkdb? ( >=sys-libs/db-4.0.14:= )
71 - ctypes-python? ( ${PYTHON_DEPS} )
72 - gnome-keyring? (
73 - dev-libs/glib:2
74 - gnome-base/libgnome-keyring
75 - sys-apps/dbus
76 - )
77 - http? ( >=net-libs/serf-1.3.4 )
78 - kwallet? (
79 - dev-qt/qtcore:5
80 - dev-qt/qtdbus:5
81 - dev-qt/qtgui:5
82 - kde-frameworks/kcoreaddons:5
83 - kde-frameworks/ki18n:5
84 - kde-frameworks/kwallet:5
85 - sys-apps/dbus
86 - )
87 - perl? ( dev-lang/perl:= )
88 - python? ( ${PYTHON_DEPS} )
89 - ruby? ( ${RUBY_DEPS} )
90 - sasl? ( dev-libs/cyrus-sasl )"
91 -RDEPEND="${COMMON_DEPEND}
92 - apache2? ( www-servers/apache[apache2_modules_dav] )
93 - java? ( >=virtual/jre-1.5 )
94 - nls? ( virtual/libintl )
95 - perl? ( dev-perl/URI )"
96 -# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
97 -DEPEND="${COMMON_DEPEND}
98 - !!<sys-apps/sandbox-1.6
99 - ctypes-python? ( dev-python/ctypesgen )
100 - doc? ( app-doc/doxygen )
101 - gnome-keyring? ( virtual/pkgconfig )
102 - http? ( virtual/pkgconfig )
103 - java? ( >=virtual/jdk-1.5 )
104 - kwallet? (
105 - kde-frameworks/kdelibs4support:5
106 - virtual/pkgconfig
107 - )
108 - nls? ( sys-devel/gettext )
109 - perl? ( dev-lang/swig )
110 - python? ( dev-lang/swig )
111 - ruby? ( dev-lang/swig )
112 - test? ( ${PYTHON_DEPS} )"
113 -
114 -REQUIRED_USE="
115 - ctypes-python? ( ${PYTHON_REQUIRED_USE} )
116 - python? ( ${PYTHON_REQUIRED_USE} )
117 - test? (
118 - ${PYTHON_REQUIRED_USE}
119 - !dso
120 - )"
121 -
122 -want_apache
123 -
124 -pkg_setup() {
125 - if use berkdb ; then
126 - local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
127 - | grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
128 - | sed 's:.*b::')"
129 - einfo
130 - if [[ -z "${SVN_BDB_VERSION}" ]] ; then
131 - if [[ -n "${apu_bdb_version}" ]] ; then
132 - SVN_BDB_VERSION="${apu_bdb_version}"
133 - einfo "Matching db version to apr-util"
134 - else
135 - SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
136 - einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
137 - fi
138 - fi
139 - einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
140 - einfo
141 -
142 - if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
143 - eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
144 - eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
145 - eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
146 - eerror "Aborting to avoid possible run-time crashes."
147 - die "Berkeley DB version mismatch"
148 - fi
149 - fi
150 -
151 - depend.apache_pkg_setup
152 -
153 - java-pkg-opt-2_pkg_setup
154 -
155 - if ! use http ; then
156 - ewarn "WebDAV support is disabled. You need WebDAV to"
157 - ewarn "access repositories through the HTTP protocol."
158 - ewarn "Consider enabling \"http\" USE flag"
159 - echo -ne "\a"
160 - fi
161 -
162 - if use debug ; then
163 - append-cppflags -DSVN_DEBUG -DAP_DEBUG
164 - fi
165 -
166 - # http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@××××××××.com%3E
167 - [[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
168 -
169 - # Allow for custom repository locations.
170 - SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
171 -
172 - if use ruby ; then
173 - local rbslot
174 - RB_VER=""
175 - for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
176 - if has_version dev-lang/ruby:${rbslot} ; then
177 - RB_VER="${rbslot/.}"
178 - break
179 - fi
180 - done
181 - [[ -z "${RB_VER}" ]] && die "No useable ruby version found"
182 - fi
183 -}
184 -
185 -src_prepare() {
186 - eapply "${WORKDIR}/patches"
187 - eapply_user
188 -
189 - fperms +x build/transform_libtool_scripts.sh
190 -
191 - sed -i \
192 - -e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
193 - -e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
194 -
195 - # this bites us in particular on Solaris
196 - sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
197 - die "/bin/sh is not POSIX shell!"
198 -
199 - eautoconf
200 - elibtoolize
201 -
202 - sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
203 - -i build-outputs.mk || die "sed failed"
204 -
205 - if use python ; then
206 - # XXX: make python_copy_sources accept path
207 - S=${S}/subversion/bindings/swig/python python_copy_sources
208 - rm -r "${S}"/subversion/bindings/swig/python || die
209 - fi
210 -
211 - xdg_environment_reset
212 -}
213 -
214 -src_configure() {
215 - local myconf=(
216 - --libdir="${EPREFIX%/}/usr/$(get_libdir)"
217 - $(use_with apache2 apache-libexecdir)
218 - $(use_with apache2 apxs "${APXS}")
219 - $(use_with berkdb berkeley-db "db.h:${EPREFIX%/}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}")
220 - $(use_with ctypes-python ctypesgen "${EPREFIX%/}/usr")
221 - $(use_enable dso runtime-module-search)
222 - $(use_with gnome-keyring)
223 - $(use_enable java javahl)
224 - $(use_with java jdk "${JAVA_HOME}")
225 - $(use_with kwallet)
226 - $(use_enable nls)
227 - $(use_with sasl)
228 - $(use_with http serf)
229 - --with-apr="${EPREFIX%/}/usr/bin/apr-1-config"
230 - --with-apr-util="${EPREFIX%/}/usr/bin/apu-1-config"
231 - --disable-experimental-libtool
232 - --without-jikes
233 - --disable-mod-activation
234 - --disable-static
235 - )
236 -
237 - if use python || use perl || use ruby; then
238 - myconf+=( --with-swig )
239 - else
240 - myconf+=( --without-swig )
241 - fi
242 -
243 - if use java ; then
244 - myconf+=( --without-junit )
245 - fi
246 -
247 - case ${CHOST} in
248 - *-aix*)
249 - # avoid recording immediate path to sharedlibs into executables
250 - append-ldflags -Wl,-bnoipath
251 - ;;
252 - *-cygwin*)
253 - # no LD_PRELOAD support, no undefined symbols
254 - myconf+=( --disable-local-library-preloading LT_LDFLAGS=-no-undefined )
255 - ;;
256 - *-interix*)
257 - # loader crashes on the LD_PRELOADs...
258 - myconf+=( --disable-local-library-preloading )
259 - ;;
260 - *-solaris*)
261 - # need -lintl to link
262 - use nls && append-libs intl
263 - # this breaks installation, on x64 echo replacement is 32-bits
264 - myconf+=( --disable-local-library-preloading )
265 - ;;
266 - *-mint*)
267 - myconf+=( --enable-all-static --disable-local-library-preloading )
268 - ;;
269 - *)
270 - # inject LD_PRELOAD entries for easy in-tree development
271 - myconf+=( --enable-local-library-preloading )
272 - ;;
273 - esac
274 -
275 - #version 1.7.7 again tries to link against the older installed version and fails, when trying to
276 - #compile for x86 on amd64, so workaround this issue again
277 - #check newer versions, if this is still/again needed
278 - myconf+=( --disable-disallowing-of-undefined-references )
279 -
280 - # for build-time scripts
281 - if use ctypes-python || use python || use test; then
282 - python_setup
283 - fi
284 -
285 - if use python && [[ ${CHOST} == *-darwin* ]] ; then
286 - export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
287 - export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
288 - export ac_cv_python_compile="$(tc-getCC)"
289 - fi
290 -
291 - # allow overriding Python include directory
292 - ac_cv_path_RUBY=$(usex ruby "${EPREFIX%/}/usr/bin/ruby${RB_VER}" "none") \
293 - ac_cv_path_RDOC=$(usex ruby "${EPREFIX%/}/usr/bin/rdoc${RB_VER}" "none") \
294 - ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
295 - econf "${myconf[@]}"
296 -}
297 -
298 -src_compile() {
299 - emake local-all
300 -
301 - if use ctypes-python ; then
302 - # pre-generate .py files
303 - use ctypes-python && emake ctypes-python
304 -
305 - pushd subversion/bindings/ctypes-python >/dev/null || die
306 - distutils-r1_src_compile
307 - popd >/dev/null || die
308 - fi
309 -
310 - if use python ; then
311 - swig_py_compile() {
312 - local p=subversion/bindings/swig/python
313 - rm -f ${p} || die
314 - ln -s "${BUILD_DIR}" ${p} || die
315 -
316 - python_export PYTHON_INCLUDEDIR
317 - emake swig-py \
318 - swig_pydir="$(python_get_sitedir)/libsvn" \
319 - swig_pydir_extra="$(python_get_sitedir)/svn"
320 - }
321 -
322 - # this will give us proper BUILD_DIR for symlinking
323 - BUILD_DIR=python \
324 - python_foreach_impl swig_py_compile
325 - fi
326 -
327 - if use perl ; then
328 - emake swig-pl
329 - fi
330 -
331 - if use ruby ; then
332 - emake swig-rb
333 - fi
334 -
335 - if use java ; then
336 - emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
337 - fi
338 -
339 - if use extras ; then
340 - emake tools
341 - fi
342 -
343 - if use doc ; then
344 - doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
345 -
346 - if use java; then
347 - emake doc-javahl
348 - fi
349 - fi
350 -}
351 -
352 -src_test() {
353 - if has_version ~${CATEGORY}/${P} ; then
354 - default
355 -
356 - if use ctypes-python ; then
357 - python_test() {
358 - "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
359 - || die "ctypes-python tests fail with ${EPYTHON}"
360 - }
361 -
362 - distutils-r1_src_test
363 - fi
364 -
365 - if use python ; then
366 - swig_py_test() {
367 - pushd "${BUILD_DIR}" >/dev/null || die
368 - "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
369 - popd >/dev/null || die
370 - }
371 -
372 - BUILD_DIR=subversion/bindings/swig/python \
373 - python_foreach_impl swig_py_test
374 - fi
375 - else
376 - ewarn "The test suite shows errors when there is an older version of"
377 - ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
378 - ewarn "before running the test suite."
379 - ewarn "Test suite skipped."
380 - fi
381 -}
382 -
383 -src_install() {
384 - emake -j1 DESTDIR="${D}" local-install
385 -
386 - if use ctypes-python ; then
387 - pushd subversion/bindings/ctypes-python >/dev/null || die
388 - distutils-r1_src_install
389 - popd >/dev/null || die
390 - fi
391 -
392 - if use python ; then
393 - swig_py_install() {
394 - local p=subversion/bindings/swig/python
395 - rm -f ${p} || die
396 - ln -s "${BUILD_DIR}" ${p} || die
397 -
398 - emake \
399 - DESTDIR="${D}" \
400 - swig_pydir="$(python_get_sitedir)/libsvn" \
401 - swig_pydir_extra="$(python_get_sitedir)/svn" \
402 - install-swig-py
403 - }
404 -
405 - BUILD_DIR=python \
406 - python_foreach_impl swig_py_install
407 - fi
408 -
409 - if use perl ; then
410 - emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
411 - perl_delete_localpod
412 - find "${ED}" \( -name .packlist -o -name "*.bs" \) -delete || die
413 - fi
414 -
415 - if use ruby ; then
416 - emake DESTDIR="${D}" install-swig-rb
417 - fi
418 -
419 - if use java ; then
420 - emake DESTDIR="${D}" install-javahl
421 - java-pkg_regso "${ED%/}"/usr/$(get_libdir)/libsvnjavahl*$(get_libname)
422 - java-pkg_dojar "${ED%/}"/usr/$(get_libdir)/svn-javahl/svn-javahl.jar
423 - rm -fr "${ED%/}"/usr/$(get_libdir)/svn-javahl/*.jar
424 - fi
425 -
426 - # Install Apache module configuration.
427 - if use apache2 ; then
428 - keepdir "${APACHE_MODULES_CONFDIR}"
429 - insinto "${APACHE_MODULES_CONFDIR}"
430 - doins "${FILESDIR}/47_mod_dav_svn.conf"
431 - fi
432 -
433 - # Install Bash Completion, bug 43179.
434 - newbashcomp tools/client-side/bash_completion svn
435 - bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
436 - rm -f tools/client-side/bash_completion
437 -
438 - # Install hot backup script, bug 54304.
439 - newbin tools/backup/hot-backup.py svn-hot-backup
440 - rm -fr tools/backup
441 -
442 - # Install svnserve init-script and xinet.d snippet, bug 43245.
443 - newinitd "${FILESDIR}"/svnserve.initd3 svnserve
444 - newconfd "${FILESDIR}"/svnserve.confd svnserve
445 - insinto /etc/xinetd.d
446 - newins "${FILESDIR}"/svnserve.xinetd svnserve
447 -
448 - #adjust default user and group with disabled apache2 USE flag, bug 381385
449 - if ! use apache2 ; then
450 - sed -e "s\USER:-apache\USER:-svn\g" \
451 - -e "s\GROUP:-apache\GROUP:-svnusers\g" \
452 - -i "${ED%/}"/etc/init.d/svnserve || die
453 - sed -e "0,/apache/s//svn/" \
454 - -e "s:apache:svnusers:" \
455 - -i "${ED%/}"/etc/xinetd.d/svnserve || die
456 - fi
457 -
458 - # Install documentation.
459 - dodoc CHANGES COMMITTERS README
460 - dodoc tools/xslt/svnindex.{css,xsl}
461 - rm -fr tools/xslt
462 -
463 - # Install extra files.
464 - if use extras ; then
465 - cat <<- EOF > 80subversion-extras
466 - PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
467 - ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
468 - EOF
469 - doenvd 80subversion-extras
470 -
471 - emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
472 -
473 - find tools \( -name "*.bat" -o -name "*.in" -o -name ".libs" \) -print0 | xargs -0 rm -fr
474 - rm -fr tools/client-side/svnmucc
475 - rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
476 - rm -fr tools/{buildbot,dev,diff,po}
477 -
478 - insinto /usr/share/${PN}
479 - find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
480 - doins -r tools
481 - fi
482 -
483 - if use doc ; then
484 - docinto html
485 - dodoc -r doc/doxygen/html/*
486 -
487 - if use java ; then
488 - java-pkg_dojavadoc doc/javadoc
489 - fi
490 - fi
491 -
492 - prune_libtool_files --all
493 -
494 - cd "${ED%/}"/usr/share/locale
495 - for i in * ; do
496 - if [[ ${i} != *${LINGUAS}* ]] ; then
497 - rm -r ${i} || die
498 - fi
499 - done
500 -}
501 -
502 -pkg_preinst() {
503 - # Compare versions of Berkeley DB, bug 122877.
504 - if use berkdb && [[ -f "${EROOT}/usr/bin/svn" ]] ; then
505 - OLD_BDB_VERSION="$(scanelf -nq "${EROOT}/usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
506 - NEW_BDB_VERSION="$(scanelf -nq "${ED%/}/usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
507 - if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
508 - CHANGED_BDB_VERSION="1"
509 - fi
510 - fi
511 -}
512 -
513 -pkg_postinst() {
514 - if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
515 - ewarn "You upgraded from an older version of Berkeley DB and may experience"
516 - ewarn "problems with your repository. Run the following commands as root to fix it:"
517 - ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
518 - ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
519 - fi
520 -
521 - ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
522 -}
523 -
524 -pkg_postrm() {
525 - :
526 -}
527 -
528 -pkg_config() {
529 - # Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
530 - # already has EPREFIX in it
531 - einfo "Initializing the database in ${SVN_REPOS_LOC}..."
532 - if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
533 - echo "A Subversion repository already exists and I will not overwrite it."
534 - echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
535 - else
536 - mkdir -p "${SVN_REPOS_LOC}/conf"
537 -
538 - einfo "Populating repository directory..."
539 - # Create initial repository.
540 - "${EROOT}/usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
541 -
542 - einfo "Setting repository permissions..."
543 - SVNSERVE_USER="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
544 - SVNSERVE_GROUP="$(. "${EROOT}/etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
545 - if use apache2 ; then
546 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
547 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
548 - else
549 - [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
550 - [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
551 - fi
552 - chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
553 - chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
554 - echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
555 - echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
556 - echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
557 - echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
558 - echo "to finish the configuration."
559 - fi
560 -}