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