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