subversion - Version control system intended to be a replacement for CVS ChangeLog

HOWTO


# Subversion 1.7.3
# ================
# Slackware 12.0: subversion 1.4.4
# Slackware 12.1: subversion 1.4.6
# Slackware 12.2: subversion 1.5.4
# Slackware 13.0: subversion 1.6.4
# Slackware 13.1: subversion 1.6.11
# Slackware 13.37: subversion 1.6.16

# Below we use the /usr prefix to install Subversion under.  If you want
# to uninstall Subversion from either /usr or /usr/local, skip down to the
# bottom for instructions.

# Prerequisites:
# Apache Portable Runtime 0.9.7 and APR-util
#  If you'd rather, you can install APR and APR-util from the Subversion
#   dependency package (subversion-deps-x.x.x.tar.bz2).
#  If you want Berkeley DB support, you need to build APR-util with support for it;
#   BDB 4.3.27 is the recommended version.  You only need BDB support if you
#   will have local BDB-based Subversion repositories.
# pkg-config
# neon 0.25.x, 0.26.x, 0.27.x, or 0.28.x
#  or serf
# sqlite
# doxygen (optional; for documentation)
# expat
# SASL
# D-Bus
# gnome-keyring
# zlib
# Python >= 2.0
# JDK (optional; see subversion/bindings/java/README)
# Perl
# Ruby 1.8.x (it says 1.9.x is too new)
# swig (optional; see subversion/bindings/swig/INSTALL)
# OpenSSL (optional; tells libneon to use it)
# iconv (unless you use --disable-nls)
# Apache >= 2.0.49 or svnserve (if you want your own remotely
#  accessible repository)

cd
test -f installed/subversion-1.7.3.tar.bz2 &&
mv installed/subversion-1.7.3.tar.bz2 .
test ! -f subversion-1.7.3.tar.bz2 &&
wget http://mirrors.ibiblio.org/apache/subversion/subversion-1.7.3.tar.bz2

# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "867fb0a5db00710cf8dce0bdfa094b3b  subversion-1.7.3.tar.bz2" | \
md5sum -c

# Verify tarball w/ sha1sum:
echo "624d4070361c0e8d7cf4f5c667629e72459b122d  \
subversion-1.7.3.tar.bz2" | sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 4E24517C > /dev/null 2>&1 || gpg --recv-keys 4E24517C ) &&
wget -nc http://www.apache.org/dist/subversion/\
subversion-1.7.3.tar.bz2.asc &&
  gpg --verify subversion-1.7.3.tar.bz2.asc &&
   rm subversion-1.7.3.tar.bz2.asc

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "subversion-*" -exec rm -r {} \;
tar xjvf ~/subversion-1.7.3.tar.bz2
cd subversion-1.7.3
test $UID = 0 && chown -R root:root .

# Read ./README and ./INSTALL, and ./CHANGES if you're upgrading

# If you have Apache 2.x installed, but you don't want Subversion to use it,
# pass --without-apache to configure.  In order for the Subversion modules
# to work, Apache has to have been built with --enable-dav --enable-dav-fs
#
# If you do have Apache 2.x installed, this will allow DSO support for
# the Apache module:
# --with-apxs=/usr/local/apache2/bin/apxs

# If you have both neon and serf installed and want to build serf support,
# pass --with-serf --without-neon to configure

# --with-ssl enables neon to use SSL (if it has SSL support built-in)

./configure --prefix=/usr --mandir=/usr/man --disable-nls --with-ssl
make

## If make fails with an error like this:
# /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:
# cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib

# Become root to install it
su

# Remove Slackware package, clean up old shared libraries, and
test -x /sbin/removepkg && /sbin/removepkg subversion
rm -f /usr/lib/libsvn_*

# Install the new version
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .

# If you have Apache 2.x installed, it should have installed the Subversion
# modules into Apache's modules directory (/usr/local/apache2/modules) and
# updated your httpd.conf (unless you passed --disable-mod-activation to
# configure) to use them (look for LoadModule lines).

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/subversion-*.tar.*
mv subversion-1.7.3.tar.bz2 installed/

# Read the Subversion book here:
# http://svnbook.red-bean.com/


# If you ever need to uninstall Subversion, this should do it:
cd
su
test -x /sbin/removepkg && /sbin/removepkg subversion
for pfx in /usr /usr/local;
do
  ( cd ${pfx}/bin ; rm -f svn svnadmin svndumpfilter svnlook svnserve \
   svnversion )
  test -d ${pfx}/include/subversion-1 && rm -r ${pfx}/include/subversion-1
  ( cd ${pfx}/man/man1 ; rm -f svn.1 svnadmin.1 svndumpfilter.1 svnlook.1 \
   svnversion.1 )
  rm -f ${pfx}/info/svn-design.info ${pfx}/lib/libsvn_* \
   ${pfx}/man/man5/svnserve.conf.5 ${pfx}/man/man8/svnserve.8
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "subversion-*" -exec rm -r {} \;
rm -f ~/installed/subversion-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2012-03-06 10:09pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]