[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Subversion on Red Hat Null

From: Tim Moloney <moloney_at_mrsl.com>
Date: 2002-09-11 16:49:01 CEST

Last night, I was playing around with the Red Hat Null beta release and
found a few things that others may be interested in.
- Null includes zlib 1.1.4
- Null includes db 4.0.14
- Null includes httpd 2.0.40

What this means to me is that
- I can get Subversion installed and working with *much* less effort
- I should be able to run *one* httpd to do all that I need (PHP, MySQL,
   LDAP, Subversion) although I haven't fully tested this yet
- It will be easier to create RPMs that lay in nicely with Red Hat's
   RPMs (not all RPMs install nicely due to dependencies, what files are
   in what RPMs, etc.)

I should note a couple things.
- I only did cursory testing. However, 'make check' and a simple
   repository create, import, and checkout worked flawlessly.
- The httpd 2.0.41 RPMS that I made are based on the STRIKER_2_0_41_PRE1
   CVS tag. Sander said that today he will create a PRE2 and hopefully
   create an APACHE_2_0_41 tag on Saturday.

I've attached my notes and supporting files in case anyone wants to
reproduce my work.

-- 
Tim Moloney
ManTech Real-time Systems Laboratory
2015 Cattlemen Road                             \     /
Sarasota, FL  34232                     .________\(O)/________.
(941) 377-6775 x208                        '  '  O(.)O  '  '

 Installing Subversion On A Stock Red Hat (null) Machine
=========================================================

- Build the httpd-2.0.41 RPMs.
    - Insert the Red Hat (null) Disc 5 CD.
    bash> mount /mnt/cdrom
    bash> rpm -ivh /mnt/cdrom/SRPMS/httpd-devel-2.0.40-1.src.rpm
    bash> eject
    bash> ~/sandbox/svn/archive/get_httpd
    bash> cd /usr/src/redhat/SOURCES
    bash> cp ~/sandbox/svn/httpd-2.0.41.tar.gz .
    bash> patch < ~/sandbox/svn/archive/httpd-2.0.36-sslink.patch.patch
    bash> cd ../SPECS
    bash> patch < ~/sandbox/svn/archive/httpd.spec.patch
    bash> rpmbuild -ba httpd.spec

- Install the httpd-2.0.41 RPMs.
    bash> rpm -Uvh /usr/src/redhat/RPMS/i386/*
    NOTE: There's a libapr.so vs libapr-0.so issue here.

- Build the neon-0.23.3 RPMs.
    bash> cd /usr/src/redhat/SOURCES
    bash> wget http://www.webdav.org/neon/neon-0.23.3.tar.gz
    bash> cd ../SPECS
    bash> cp ~/sandbox/svn/archive/neon.spec .
    bash> rpmbuild -ba neon.spec

- Install the neon-0.23.3 RPMs.
    bash> rpm -Uvh /usr/src/redhat/RPMS/i386/neon*

- Build the Subversion bootstrap client.
    bash> cd ~/sandbox/svn/archive
    bash> wget http://subversion.tigris.org/files/documents/15/718/subversion-r3033.tar.gz
    bash> cd ..
    bash> tar zxvf archive/subversion-r3033.tar.gz
    bash> cd subversion-r3033
    bash> ./configure
    bash> make

- Get the latest version of Subversion using the bootstrap client.
    bash> cd ~/sandbox/svn
    bash> subversion-r3033/subversion/clients/cmdline/svn checkout \
          http://svn.collab.net/repos/svn/trunk svn

- Install the latest version of Subversion.
    bash> sudo rm /usr/local/lib/libsvn*
    bash> cd ~/sandbox/svn/svn
    bash> ./autogen.sh
    bash> ./configure --with-apr=/usr/bin/apr-config \
          --with-apr-util=/usr/bin/apu-config
    bash> make
    bash> sudo make install
    bash> make check

- Create a test repository.
    bash> sudo mkdir /var/svn
    bash> sudo svnadmin create /var/svn/test
    bash> sudo chown -R apache.apache /var/svn/test

- Configure and start Apache 2.0.
    bash> sudo cp ~/sandbox/svn/archive/httpd.conf /etc/httpd/conf
    bash> sudo /etc/rc.d/init.d/httpd start

- Import files into the test repository.
    bash> cd ~/sandbox/svn
    bash> mkdir test
    - Fill it will a few small text files.
    bash> svn import -m 'imported test' http://localhost/svn/test test

- Check out the test repository.
    bash> cd ~/sandbox/svn
    bash> svn checkout http://localhost/svn/test test2
    bash> diff -r test test2
    Only in test2: .svn

- View the test repository with a web browser.
    - View http://localhost/svn/test in a web browser. The test
      repository should be visible and navigable.

--- httpd-2.0.36-sslink.patch.orig 2002-08-13 06:50:55.000000000 -0400
+++ httpd-2.0.36-sslink.patch 2002-09-10 00:11:42.000000000 -0400
@@ -42,15 +42,6 @@
    fi
  ])dnl
  
-@@ -430,7 +431,7 @@
- ap_ssltk_version="`$p/openssl version`"
- case "$ap_ssltk_version" in
- "OpenSSL "[[1-9]]* | \
-- "OpenSSL "0.9.[[6-9]][[e-z]]* | \
-+ "OpenSSL "0.9.[[6-9]]* | \
- "OpenSSL "0.[[1-9]][[0-9]]* )
- ap_cv_ssltk="`(cd $p/.. && pwd)`"
- break
 @@ -496,7 +497,7 @@
        APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag$ap_ssltk_libdir])
      fi

--- httpd.spec.orig 2002-09-10 00:04:56.000000000 -0400
+++ httpd.spec 2002-09-10 01:51:47.000000000 -0400
@@ -3,7 +3,7 @@
 
 Summary: Apache HTTP Server
 Name: httpd
-Version: 2.0.40
+Version: 2.0.41
 Release: 1
 URL: http://httpd.apache.org/
 Vendor: Red Hat, Inc.
@@ -270,6 +270,8 @@
 %{_sysconfdir}/httpd/conf.d/README
 
 %{_bindir}/ab
+%{_bindir}/apr-config
+%{_bindir}/apu-config
 %{_bindir}/ht*
 %{_bindir}/logresolve
 %{_sbindir}/httpd
@@ -277,7 +279,7 @@
 %{_sbindir}/rotatelogs
 %attr(4510,root,%{suexec_caller}) %{_sbindir}/suexec
 
-%{_libdir}/libapr.so.*
+%{_libdir}/libapr-0.so.*
 %{_libdir}/libaprutil.so.*
 
 %dir %{_libdir}/httpd
@@ -317,7 +319,7 @@
 
 %files devel
 %defattr(-,root,root)
-%{_libdir}/libapr.so
+%{_libdir}/libapr-0.so
 %{_libdir}/libaprutil.so
 %{_includedir}/httpd
 %{_sysconfdir}/httpd/build
@@ -326,6 +328,7 @@
 %dir %{_libdir}/httpd/build
 %{_libdir}/httpd/build/*.mk
 %{_libdir}/httpd/build/libtool
+%{_libdir}/httpd/build/instdso.sh
 
 %changelog
 * Mon Aug 12 2002 Joe Orton <jorton@redhat.com> 2.0.40-1

Summary: an HTTP and WebDAV client library, with a C interface
Name: neon
Version: 0.23.3
Release: 1
Copyright: LGPL
Group: Utilities/System
URL: http://www.webdav.org/neon
Source0: %{name}-%{version}.tar.gz
Packager: Tim Moloney
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Requires: expat
Requires: zlib >= 1.1.4
BuildPreReq: expat-devel
BuildPreReq: autoconf253 >= 2.53
BuildPreReq: automake15 >= 1.5
%description
an HTTP and WebDAV client library, with a C interface

%package devel
Group: Utilities/System
Summary: an HTTP and WebDAV client library, with a C interface
%description devel
an HTTP and WebDAV client library, with a C interface

%prep
%setup -q

sh ./autogen.sh
./configure --prefix=/usr --with-expat --with-ssl --enable-shared --with-force-ssl

%build
make

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog INSTALL.win32 NEWS README THANKS TODO
%doc doc/*
/usr/bin/*
/usr/man/man1/*
/usr/lib/*.so*

%files devel
%defattr(-,root,root)
/usr/include/*
/usr/man/man3/*
/usr/lib/*.a
/usr/lib/*.la

#
# General configuration
#
ServerRoot "/etc/httpd"
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
Listen 80
User apache
Group apache
UseCanonicalName Off

#
# Modules
#
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so

#
# Documents
#
DocumentRoot "/var/svn"
<Location /svn/test>
   DAV svn
   SVNPath /var/svn/test
</Location>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

  • application/x-java-vm attachment: get_httpd
Received on Wed Sep 11 16:49:03 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.