summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-04-30 21:16:44 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-04-30 21:16:44 +0000
commit96a370b50270d1d6a7f832394aadf478d2686f71 (patch)
tree0b5123a047370440be151cb332de3c1c48b668a5 /dev-util/subversion
parentFix missing dodir (bug #219007) and compatibility with gcc 4.3 (bug #219352).... (diff)
downloadhistorical-96a370b50270d1d6a7f832394aadf478d2686f71.tar.gz
historical-96a370b50270d1d6a7f832394aadf478d2686f71.tar.bz2
historical-96a370b50270d1d6a7f832394aadf478d2686f71.zip
version bump wrt #219395
Package-Manager: portage-2.1.5_rc6
Diffstat (limited to 'dev-util/subversion')
-rw-r--r--dev-util/subversion/ChangeLog9
-rw-r--r--dev-util/subversion/Manifest13
-rw-r--r--dev-util/subversion/files/1.5.0/70svn-gentoo.el12
-rw-r--r--dev-util/subversion/files/1.5.0/80subversion-extras2
-rw-r--r--dev-util/subversion/files/1.5.0/disable-unneeded-linking.patch81
-rw-r--r--dev-util/subversion/subversion-1.5.0_rc4.ebuild403
6 files changed, 515 insertions, 5 deletions
diff --git a/dev-util/subversion/ChangeLog b/dev-util/subversion/ChangeLog
index 874d7d941a6c..2ef664adbdc7 100644
--- a/dev-util/subversion/ChangeLog
+++ b/dev-util/subversion/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-util/subversion
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/ChangeLog,v 1.298 2008/04/13 16:49:23 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/ChangeLog,v 1.299 2008/04/30 21:16:43 hollow Exp $
+
+*subversion-1.5.0_rc4 (30 Apr 2008)
+
+ 30 Apr 2008; Benedikt Böhm <hollow@gentoo.org>
+ +files/1.5.0/70svn-gentoo.el, +files/1.5.0/80subversion-extras,
+ +files/1.5.0/disable-unneeded-linking.patch, +subversion-1.5.0_rc4.ebuild:
+ version bump wrt #219395
13 Apr 2008; Benedikt Böhm <hollow@gentoo.org> subversion-1.4.5.ebuild,
subversion-1.4.6.ebuild, subversion-1.4.6-r2.ebuild:
diff --git a/dev-util/subversion/Manifest b/dev-util/subversion/Manifest
index 17dd2fa17e5f..bd9870be224a 100644
--- a/dev-util/subversion/Manifest
+++ b/dev-util/subversion/Manifest
@@ -1,6 +1,9 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX 1.5.0/70svn-gentoo.el 435 RMD160 e9f4b2e5511523c124f9ba3781249db2860fe5a7 SHA1 c3a3081f79a579b848369cfae76662a98e97687e SHA256 a39bea9a821aa91c7990dd07e1c2d0cec79f1efaac04e2d61882b7c8d5346a34
+AUX 1.5.0/80subversion-extras 62 RMD160 c334b15a86eaf19129afa5b62558dd47504a4e3d SHA1 ba05e978e7ff7b047ec99225e4d932036c340d26 SHA256 758d07cf161fff5e0afef5791dca641d3af58192ad1e4874c5f5c2c285c1149d
+AUX 1.5.0/disable-unneeded-linking.patch 2409 RMD160 0d7c34cc83eff7d08369128762ed714fabcd1dde SHA1 92b80f6cb30fe569f79368aea66027a6da022c53 SHA256 2ef8fcd9fabfd1a71bdd50e1156cb9d421a7008fccd73b7ae3536e9a30886231
AUX 70svn-gentoo.el 331 RMD160 1de1310ae7e4bdbecef3c685ef8d7ff95b9aab87 SHA1 48eb99e9d494a4a674de32e599914df234b627cd SHA256 c0d733bd3f7c75c47acaea4fd0c816d45ee2cd765da70dc494666f38c91e3d87
AUX subversion-1.1.1-perl-vendor.patch 803 RMD160 04c3367b045050c73534f4662d2d7658547b8bd1 SHA1 96c6281b6ce8c618c4e7644240df8e8a8bba875a SHA256 03bca78f12845aabc39c089b9c5bd59e67556bd9b2dec2b06174a805ca95dcb4
AUX subversion-1.3.1-neon-config.patch 1237 RMD160 ccf7449e030afe6ef6388c12157831d5f2d59d6b SHA1 f05075b7c17be367cf83529e8558d8a1d14ace91 SHA256 6e0f152a8254b7e7c0b498ce011f1798d475b2acf18d779b4dfe0758de1f3049
@@ -16,15 +19,17 @@ AUX svnserve.xinetd 332 RMD160 c2fc4eb02da7e7405756fce650b8897f0a9da7f7 SHA1 d7d
AUX vc-svn.el 16847 RMD160 8665b9a34c8fd9acae40e18aac33026aff3a39d7 SHA1 4d1a5a9331ff96e943244a6d5538e4f0abeac9e7 SHA256 b4979d5df9fba02dbc8ad71d813229222e95ee1e8e89dec3060611d2d6be87aa
DIST subversion-1.4.5.tar.bz2 4722624 RMD160 159f3eac9168d856a19ffb235c5417757cd5a496 SHA1 acc80381cb670736ad626fee1eb04f36ba7e5fc8 SHA256 763b8c9c16c03adc3ad00ccf1b5b47a08b5ffe94e499d3c87bb02acbc1026b53
DIST subversion-1.4.6.tar.bz2 4680316 RMD160 ae63877b5d0eeb1c4f28c4388f97897efde7244c SHA1 a9c941e2309744f6a2986200698b60da057a7527 SHA256 6c480c3493b25c4b73fa62d5fef2f8dd40dde1eb1294c53d3495d864230fc124
+DIST subversion-1.5.0-rc4.tar.bz2 4760310 RMD160 42d77068b3ca035b1a6152a3b4c4e4af18489217 SHA1 b4a10cf4adda2b92f3e0e23a9dbf386206c7d9a4 SHA256 67d7bf354cbbce48e0718b60d3610661552696160f785a0ebd917e120462bd91
EBUILD subversion-1.4.5.ebuild 13743 RMD160 7361dda2a3124a316c48b723a5ff7807595c36cd SHA1 2421c432fbfcc751cad05f0fac858528d217aa6b SHA256 d900967828e6dfcb2735727a58704bafe1510ffa5bb730a7c8bf818e48a29d3a
EBUILD subversion-1.4.6-r2.ebuild 13840 RMD160 b0d9f65488c3ce2d5e0589644455c640e9819b80 SHA1 53b407836acb7c2e5c844eeb8aa4441859bcc2bf SHA256 d0ed7cc06676e2227af5a7dd801764bc27628b29462aa436c4c1553640c0276c
EBUILD subversion-1.4.6.ebuild 13829 RMD160 e26d9d16641a78664fdb283472b26e398b92c8a2 SHA1 3ac932f46971c2a94de2d64747e3adf20b943213 SHA256 bace8982529b24f8353814aafc125d755aee7e0dc4d5c87447936deacdaeab40
-MISC ChangeLog 51709 RMD160 61a18ed86195437858d8cffc8bb3eab34da83bc8 SHA1 6e0c2409b67c89ab82ec27dcc8b2f388aa11b068 SHA256 efffe6eebbcc16412320be0eaefbe70d97308f8c1a2a770a3cea04abef3ce427
+EBUILD subversion-1.5.0_rc4.ebuild 12815 RMD160 62b121fd56ce38971c7cb917a956f202c1b08ec8 SHA1 600d45c3fac4975674851154fbda71be08aa01a4 SHA256 098a1195af5b48ffb4d70b572ef27973be06382bfcc0650adfec3a3f3579d839
+MISC ChangeLog 51967 RMD160 3c2c6b6bd42a71f8de68a08e06cab265f28aefcd SHA1 39887118cae9146396e145a19adcb20b1cce56c9 SHA256 bab1c32405ffadb9f3b50dbd67980646c3d5d656ae2c82c53f06d140f020ab34
MISC metadata.xml 160 RMD160 a0f6e133e170b7477018d8584c20e8723f6914fa SHA1 a3b9b520ec43ee1f9b1c7b5c5b8745bf84454c03 SHA256 3c312146c4cb5b912d6f56292242ce3a85c629ca98ee7ef0a84ca575708b44fe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkgCOZ4ACgkQmPFBzbX68WE+TwCeJvxLDtLa67vUyNgE/oTSwWJf
-vekAnRyBpBYWDihpK5dpprBdGzbaLHYn
-=cRIw
+iEYEARECAAYFAkgY4cYACgkQmPFBzbX68WHJowCePInwkBq37uUpib7FWcswPxVb
+1v4An2kYdDmshw2LRYYmsx+ngEE9jcml
+=MANl
-----END PGP SIGNATURE-----
diff --git a/dev-util/subversion/files/1.5.0/70svn-gentoo.el b/dev-util/subversion/files/1.5.0/70svn-gentoo.el
new file mode 100644
index 000000000000..bb8cdfef005a
--- /dev/null
+++ b/dev-util/subversion/files/1.5.0/70svn-gentoo.el
@@ -0,0 +1,12 @@
+;;; svn site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(and (< emacs-major-version 22)
+ (add-to-list 'load-path "@SITELISP@/compat"))
+(add-to-list 'vc-handled-backends 'SVN)
+
+(defalias 'svn-examine 'svn-status)
+(autoload 'svn-status "dsvn" "Run `svn status'." t)
+(autoload 'svn-update "dsvn" "Run `svn update'." t)
+(autoload 'svn-status "psvn"
+ "Examine the status of Subversion working copy in directory DIR." t)
diff --git a/dev-util/subversion/files/1.5.0/80subversion-extras b/dev-util/subversion/files/1.5.0/80subversion-extras
new file mode 100644
index 000000000000..d3a741c2766d
--- /dev/null
+++ b/dev-util/subversion/files/1.5.0/80subversion-extras
@@ -0,0 +1,2 @@
+ROOTPATH=/usr/lib/subversion/bin
+PATH=/usr/lib/subversion/bin
diff --git a/dev-util/subversion/files/1.5.0/disable-unneeded-linking.patch b/dev-util/subversion/files/1.5.0/disable-unneeded-linking.patch
new file mode 100644
index 000000000000..6838cad357f6
--- /dev/null
+++ b/dev-util/subversion/files/1.5.0/disable-unneeded-linking.patch
@@ -0,0 +1,81 @@
+--- configure.ac
++++ configure.ac
+@@ -234,6 +234,8 @@
+ AC_DEFINE_UNQUOTED(SVN_FS_WANT_DB_PATCH, $SVN_FS_WANT_DB_PATCH,
+ [The desired patch version for the Berkeley DB])
+
++AC_SUBST(SVN_DB_LIBS)
++
+ SVN_LIB_SASL
+
+ if test "$svn_lib_sasl" = "yes"; then
+--- Makefile.in
++++ Makefile.in
+@@ -40,9 +40,10 @@
+ NEON_LIBS = @NEON_LIBS@
+ SVN_APR_LIBS = @SVN_APR_LIBS@
+ SVN_APRUTIL_LIBS = @SVN_APRUTIL_LIBS@
+-SVN_DB_LIBS =
+-SVN_SERF_LIBS = @SVN_SERF_LIBS@
++SVN_DB_LIBS = @SVN_DB_LIBS@
+ SVN_SASL_LIBS = @SVN_SASL_LIBS@
++SVN_SERF_LIBS = @SVN_SERF_LIBS@
++SVN_XML_LIBS = -lexpat
+ SVN_ZLIB_LIBS = @SVN_ZLIB_LIBS@
+
+ LIBS = @LIBS@
+--- build/ac-macros/aprutil.m4
++++ build/ac-macros/aprutil.m4
+@@ -72,16 +72,14 @@
+ AC_MSG_ERROR([apu-config --includes failed])
+ fi
+
+- dnl When APR stores the dependent libs in the .la file, we don't need
+- dnl --libs.
+- SVN_APRUTIL_LIBS="`$apu_config --link-libtool --libs`"
++ SVN_APRUTIL_LIBS="`$apu_config --link-libtool`"
+ if test $? -ne 0; then
+- AC_MSG_ERROR([apu-config --link-libtool --libs failed])
++ AC_MSG_ERROR([apu-config --link-libtool failed])
+ fi
+
+- SVN_APRUTIL_EXPORT_LIBS="`$apu_config --link-ld --libs`"
++ SVN_APRUTIL_EXPORT_LIBS="`$apu_config --link-ld`"
+ if test $? -ne 0; then
+- AC_MSG_ERROR([apu-config --link-ld --libs failed])
++ AC_MSG_ERROR([apu-config --link-ld failed])
+ fi
+
+ AC_SUBST(SVN_APRUTIL_INCLUDES)
+--- build/ac-macros/apr.m4
++++ build/ac-macros/apr.m4
+@@ -74,16 +74,14 @@
+ AC_MSG_ERROR([apr-config --prefix failed])
+ fi
+
+- dnl When APR stores the dependent libs in the .la file, we don't need
+- dnl --libs.
+- SVN_APR_LIBS="`$apr_config --link-libtool --libs`"
++ SVN_APR_LIBS="`$apr_config --link-libtool`"
+ if test $? -ne 0; then
+- AC_MSG_ERROR([apr-config --link-libtool --libs failed])
++ AC_MSG_ERROR([apr-config --link-libtool failed])
+ fi
+
+- SVN_APR_EXPORT_LIBS="`$apr_config --link-ld --libs`"
++ SVN_APR_EXPORT_LIBS="`$apr_config --link-ld`"
+ if test $? -ne 0; then
+- AC_MSG_ERROR([apr-config --link-ld --libs failed])
++ AC_MSG_ERROR([apr-config --link-ld failed])
+ fi
+
+ SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
+--- build/ac-macros/berkeley-db.m4
++++ build/ac-macros/berkeley-db.m4
+@@ -218,5 +218,6 @@
+
+ CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags"
+ LIBS="$svn_lib_berkeley_db_try_save_libs"
++ SVN_DB_LIBS="$svn_apu_bdb_lib"
+ ]
+ )
diff --git a/dev-util/subversion/subversion-1.5.0_rc4.ebuild b/dev-util/subversion/subversion-1.5.0_rc4.ebuild
new file mode 100644
index 000000000000..07997c497067
--- /dev/null
+++ b/dev-util/subversion/subversion-1.5.0_rc4.ebuild
@@ -0,0 +1,403 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/subversion-1.5.0_rc4.ebuild,v 1.1 2008/04/30 21:16:43 hollow Exp $
+
+EAPI="1"
+
+inherit autotools bash-completion confutils depend.apache elisp-common eutils flag-o-matic java-pkg-opt-2 libtool multilib perl-module python subversion
+
+DESCRIPTION="Advanced version control system"
+HOMEPAGE="http://subversion.tigris.org/"
+SRC_URI="http://subversion.tigris.org/downloads/${P/_/-}.tar.bz2"
+
+LICENSE="Subversion"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="apache2 berkdb debug doc emacs extras java nls perl python ruby sasl vim-syntax +webdav-neon webdav-serf"
+RESTRICT="test"
+
+CDEPEND=">=dev-libs/apr-1.2.8
+ >=dev-libs/apr-util-1.2.8
+ dev-libs/expat
+ sys-libs/zlib
+ berkdb? ( =sys-libs/db-4* )
+ doc? ( app-doc/doxygen )
+ emacs? ( virtual/emacs )
+ ruby? ( >=dev-lang/ruby-1.8.2 )
+ sasl? ( dev-libs/cyrus-sasl )
+ webdav-neon? ( >=net-misc/neon-0.28 )
+ webdav-serf? ( net-libs/serf )"
+
+RDEPEND="${CDEPEND}
+ java? ( >=virtual/jre-1.4 )
+ nls? ( virtual/libintl )
+ perl? ( dev-perl/URI )"
+
+DEPEND="${CDEPEND}
+ java? ( >=virtual/jdk-1.4 )
+ nls? ( sys-devel/gettext )"
+
+want_apache
+
+S="${WORKDIR}"/${P/_/-}
+
+# Allow for custom repository locations.
+# This can't be in pkg_setup because the variable needs to be available to
+# pkg_config.
+: ${SVN_REPOS_LOC:=/var/svn}
+
+pkg_setup() {
+ confutils_use_depend_built_with_all berkdb dev-libs/apr-util berkdb
+ java-pkg-opt-2_pkg_setup
+
+ if ! use webdav-neon && ! use webdav-serf; then
+ ewarn
+ ewarn "WebDAV support is disabled. You need WebDAV to"
+ ewarn "access repositories through the HTTP protocol."
+ ewarn
+ ewarn "WebDAV support needs one of the following USE flags enabled:"
+ ewarn " webdav-neon webdav-serf"
+ ewarn
+ ewarn "You can do this by enabling one of these flags in /etc/portage/package.use:"
+ ewarn " =${CATEGORY}/${PF} webdav-neon webdav-serf"
+ ewarn
+ ebeep
+ fi
+
+ if use webdav-neon && use webdav-serf; then
+ einfo
+ einfo "Both neon and serf are enabled for WebDAV support."
+ einfo "Defaulting to neon."
+ einfo
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/1.5.0/disable-unneeded-linking.patch
+
+ sed -e 's:@bindir@/svn-contrib:@libdir@/subversion/bin:' \
+ -e 's:@bindir@/svn-tools:@libdir@/subversion/bin:' \
+ -i Makefile.in
+
+ eautoreconf
+}
+
+src_compile() {
+ local myconf=
+
+ if use python || use perl || use ruby; then
+ myconf="${myconf} --with-swig"
+ else
+ myconf="${myconf} --without-swig"
+ fi
+
+ if use debug; then
+ append-cppflags -DSVN_DEBUG -DAP_DEBUG
+ fi
+
+ append-flags -fno-strict-aliasing
+
+ econf ${myconf} \
+ $(use_with apache2 apxs "${APXS}") \
+ $(use_with berkdb berkeley-db) \
+ $(use_enable java javahl) \
+ $(use_with java jdk "${JAVA_HOME}") \
+ $(use_enable nls) \
+ $(use_with sasl) \
+ $(use_with webdav-neon neon /usr) \
+ $(use_with webdav-serf serf /usr) \
+ --with-apr=/usr/bin/apr-1-config \
+ --with-apr-util=/usr/bin/apu-1-config \
+ --disable-experimental-libtool \
+ --without-jikes \
+ --without-junit \
+ --disable-mod-activation \
+ --enable-runtime-module-search
+
+ # Respect the user LDFLAGS when building Subversion SWIG bindings.
+ export SWIG_LDFLAGS="${LDFLAGS}"
+
+ emake local-all || die "Building of core Subversion failed"
+
+ if use python; then
+ emake swig-py || die "Building of Subversion Python bindings failed"
+ fi
+
+ if use perl; then
+ emake -j1 swig-pl || die "Building of Subversion Perl bindings failed"
+ fi
+
+ if use ruby; then
+ emake swig-rb || die "Building of Subversion Ruby bindings failed"
+ fi
+
+ if use java; then
+ make JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl \
+ || die "Building of Subversion JavaHL library failed"
+ fi
+
+ if use emacs; then
+ elisp-compile contrib/client-side/emacs/dsvn.el || die "Compilation of Emacs module failed"
+ elisp-compile contrib/client-side/emacs/psvn.el || die "Compilation of Emacs module failed"
+ elisp-compile doc/svn-doc.el || die "Compilation of Emacs module failed"
+ elisp-compile doc/tools/svnbook.el || die "Compilation of Emacs module failed"
+ fi
+
+ if use extras; then
+ emake contrib || die "Building of contrib failed"
+ emake tools || die "Building of tools failed"
+ fi
+
+ if use doc; then
+ doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
+
+ if use java; then
+ emake doc-javahl || die "Building of Subversion JavaHL library HTML documentation failed"
+ fi
+ fi
+}
+
+src_install() {
+ python_version
+ PYTHON_DIR=/usr/$(get_libdir)/python${PYVER}
+
+ emake -j1 DESTDIR="${D}" local-install || die "Installation of core of Subversion failed"
+
+ if use python; then
+ emake -j1 DESTDIR="${D}" DISTUTIL_PARAM="--prefix=${D}" LD_LIBRARY_PATH="-L${D}/usr/$(get_libdir)" install-swig-py \
+ || die "Installation of Subversion Python bindings failed"
+
+ # Move Python bindings.
+ dodir "${PYTHON_DIR}/site-packages"
+ mv "${D}"/usr/$(get_libdir)/svn-python/svn "${D}${PYTHON_DIR}/site-packages"
+ mv "${D}"/usr/$(get_libdir)/svn-python/libsvn "${D}${PYTHON_DIR}/site-packages"
+ rm -Rf "${D}"/usr/$(get_libdir)/svn-python
+ fi
+
+ if use perl; then
+ emake -j1 DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl || die "Installation of Subversion Perl bindings failed"
+ fixlocalpod
+ fi
+
+ if use ruby; then
+ emake -j1 DESTDIR="${D}" install-swig-rb || die "Installation of Subversion Ruby bindings failed"
+ fi
+
+ if use java; then
+ emake -j1 DESTDIR="${D}" install-javahl || die "Installation of Subversion JavaHL library failed"
+ java-pkg_regso "${D}"/usr/$(get_libdir)/libsvnjavahl*.so
+ java-pkg_dojar "${D}"/usr/$(get_libdir)/svn-javahl/svn-javahl.jar
+ rm -Rf "${D}"/usr/$(get_libdir)/svn-javahl/*.jar
+ fi
+
+ # Install Apache module configuration.
+ if use apache2; then
+ dodir "${APACHE_MODULES_CONFDIR}"
+ cat <<EOF >"${D}/${APACHE_MODULES_CONFDIR}"/47_mod_dav_svn.conf
+<IfDefine SVN>
+LoadModule dav_svn_module modules/mod_dav_svn.so
+<IfDefine SVN_AUTHZ>
+LoadModule authz_svn_module modules/mod_authz_svn.so
+</IfDefine>
+
+# Example configuration:
+#<Location /svn/repos>
+# DAV svn
+# SVNPath ${SVN_REPOS_LOC}/repos
+# AuthType Basic
+# AuthName "Subversion repository"
+# AuthUserFile ${SVN_REPOS_LOC}/conf/svnusers
+# Require valid-user
+#</Location>
+</IfDefine>
+EOF
+ fi
+
+ # Install Bash Completion, bug 43179.
+ dobashcompletion tools/client-side/bash_completion subversion
+ rm -f tools/client-side/bash_completion
+
+ # Install hot backup script, bug 54304.
+ newbin tools/backup/hot-backup.py svn-hot-backup
+ rm -fr tools/backup
+
+ # Install svn_load_dirs.pl.
+ if use perl; then
+ newbin contrib/client-side/svn_load_dirs/svn_load_dirs.pl svn-load-dirs
+ fi
+ rm -f contrib/client-side/svn_load_dirs/svn_load_dirs.pl
+
+ # Install svnserve init-script and xinet.d snippet, bug 43245.
+ newinitd "${FILESDIR}"/svnserve.initd svnserve
+ if use apache2; then
+ newconfd "${FILESDIR}"/svnserve.confd svnserve
+ else
+ newconfd "${FILESDIR}"/svnserve.confd2 svnserve
+ fi
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/svnserve.xinetd svnserve
+
+ # Install documentation.
+ dodoc BUGS CHANGES COMMITTERS HACKING INSTALL README TRANSLATING
+ dodoc tools/xslt/svnindex.{css,xsl}
+ rm -fr tools/xslt
+
+ # Install Vim syntax files.
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins contrib/client-side/vim/svn.vim
+ fi
+ rm -f contrib/client-side/vim/svn.vim
+
+ # Install Emacs Lisps.
+ if use emacs; then
+ elisp-install ${PN} contrib/client-side/emacs/dsvn.el*
+ elisp-install ${PN} contrib/client-side/emacs/psvn.el*
+ elisp-install ${PN} doc/svn-doc.el*
+ elisp-install ${PN} doc/tools/svnbook.el*
+ elisp-site-file-install "${FILESDIR}"/1.5.0/70svn-gentoo.el
+ fi
+ rm -fr contrib/client-side/emacs
+
+ # Install extra files.
+ if use extras; then
+ doenvd "${FILESDIR}"/1.5.0/80subversion-extras
+
+ emake DESTDIR="${D}" install-contrib || die "Installation of contrib failed"
+ emake DESTDIR="${D}" install-tools || die "Installation of tools failed"
+
+ find contrib tools '(' -name "*.bat" -o -name "*.in" -o -name ".libs" ')' -print0 | xargs -0 rm -fr
+ rm -fr contrib/client-side/{svn-push,svnmucc}
+ rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
+ rm -fr tools/{buildbot,dev,diff,po}
+
+ insinto /usr/share/${PN}
+ doins -r contrib tools
+ fi
+
+ if use doc; then
+ dohtml doc/doxygen/html/*
+
+ insinto /usr/share/doc/${PF}
+ doins -r notes
+ ecompressdir /usr/share/doc/${PF}/notes
+
+ if use java; then
+ doins -r doc/javadoc
+ fi
+ fi
+}
+
+pkg_preinst() {
+ # Compare versions of Berkeley DB, bug 122877.
+ if use berkdb && [[ -f "${ROOT}usr/bin/svn" ]] ; then
+ OLD_BDB_VERSION="$(scanelf -qn "${ROOT}usr/lib/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
+ NEW_BDB_VERSION="$(scanelf -qn "${D}usr/lib/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
+ if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
+ CHANGED_BDB_VERSION=1
+ fi
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+ use perl && perl-module_pkg_postinst
+
+ elog "Subversion Server Notes"
+ elog "-----------------------"
+ elog
+ elog "If you intend to run a server, a repository needs to be created using"
+ elog "svnadmin (see man svnadmin) or the following command to create it in"
+ elog "${SVN_REPOS_LOC}:"
+ elog
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog
+ elog "Subversion has multiple server types, take your pick:"
+ elog
+ elog " - svnserve daemon: "
+ elog " 1. Edit /etc/conf.d/svnserve"
+ elog " 2. Start daemon: /etc/init.d/svnserve start"
+ elog " 3. Make persistent: rc-update add svnserve default"
+ elog
+ elog " - svnserve via xinetd:"
+ elog " 1. Edit /etc/xinetd.d/svnserve (remove disable line)"
+ elog " 2. Restart xinetd.d: /etc/init.d/xinetd restart"
+ elog
+ elog " - svn over ssh:"
+ elog " 1. Fix the repository permissions:"
+ elog " groupadd svnusers"
+ elog " chown -R root:svnusers ${SVN_REPOS_LOC}/repos/"
+ elog " chmod -R g-w ${SVN_REPOS_LOC}/repos"
+ elog " chmod -R g+rw ${SVN_REPOS_LOC}/repos/db"
+ elog " chmod -R g+rw ${SVN_REPOS_LOC}/repos/locks"
+ elog " 2. Create an svnserve wrapper in /usr/local/bin to set the umask you"
+ elog " want, for example:"
+ elog " #!/bin/bash"
+ elog " . /etc/conf.d/svnserve"
+ elog " umask 002"
+ elog " exec /usr/bin/svnserve \${SVNSERVE_OPTS} \"\$@\""
+ elog
+
+ if use apache2; then
+ elog " - http-based server:"
+ elog " 1. Edit /etc/conf.d/apache2 to include both \"-D DAV\" and \"-D SVN\""
+ elog " 2. Create an htpasswd file:"
+ elog " htpasswd2 -m -c ${SVN_REPOS_LOC}/conf/svnusers USERNAME"
+ elog
+ fi
+
+ elog "If you intend to use svn-hot-backup, you can specify the number of"
+ elog "backups to keep per repository by specifying an environment variable."
+ elog "If you want to keep e.g. 2 backups, do the following:"
+ elog "echo '# hot-backup: Keep that many repository backups around' > /etc/env.d/80subversion"
+ elog "echo 'SVN_HOTBACKUP_BACKUPS_NUMBER=2' >> /etc/env.d/80subversion"
+ elog
+
+ if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
+ ewarn "You upgraded from an older version of Berkeley DB and may experience"
+ ewarn "problems with your repository. Run the following commands as root to fix it:"
+ ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
+ ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+ use perl && perl-module_pkg_postrm
+}
+
+pkg_config() {
+ if [[ ! -x "${ROOT}usr/bin/svnadmin" ]] ; then
+ die "You seem to only have built the Subversion client"
+ fi
+
+ einfo ">>> Initializing the database in ${ROOT}${SVN_REPOS_LOC} ..."
+ if [[ -e "${ROOT}${SVN_REPOS_LOC}/repos" ]] ; then
+ echo "A Subversion repository already exists and I will not overwrite it."
+ echo "Delete ${ROOT}${SVN_REPOS_LOC}/repos first if you're sure you want to have a clean version."
+ else
+ mkdir -p "${ROOT}${SVN_REPOS_LOC}/conf"
+
+ einfo ">>> Populating repository directory ..."
+ # Create initial repository.
+ "${ROOT}usr/bin/svnadmin" create "${ROOT}${SVN_REPOS_LOC}/repos"
+
+ einfo ">>> Setting repository permissions ..."
+ SVNSERVE_USER="$(. "${ROOT}etc/conf.d/svnserve" ; echo "${SVNSERVE_USER}")"
+ SVNSERVE_GROUP="$(. "${ROOT}etc/conf.d/svnserve" ; echo "${SVNSERVE_GROUP}")"
+ if use apache2 ; then
+ [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
+ [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
+ else
+ [[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
+ [[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
+ enewgroup "${SVNSERVE_GROUP}"
+ enewuser "${SVNSERVE_USER}" -1 -1 ${SVN_REPOS_LOC} "${SVNSERVE_GROUP}"
+ fi
+ chown -Rf "${SVNSERVE_USER}:${SVNSERVE_GROUP}" "${ROOT}${SVN_REPOS_LOC}/repos"
+ chmod -Rf 755 "${ROOT}${SVN_REPOS_LOC}/repos"
+ fi
+}