Hello!
This is update of perl SVN-Web. It solves problem with incorrect URLs while
you're browsing repository deeper than top level.
Now it's able to connect to remote repositories.
Lots of bugs were fixed.
Also add README for quick start.

btw, am I right about threaded perl in base?

Tested on amd64. OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/p5-SVN-Web/Makefile,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 Makefile
--- Makefile    11 Mar 2013 10:50:21 -0000      1.11
+++ Makefile    17 Jul 2013 12:49:24 -0000
@@ -3,8 +3,7 @@
 COMMENT=       subversion repository web frontend

 MODULES=       cpan
-DISTNAME=      SVN-Web-0.48
-REVISION=      2
+DISTNAME=      SVN-Web-0.53
 CATEGORIES=    devel perl5

 # Artistic
@@ -26,8 +25,7 @@ RUN_DEPENDS=  devel/subversion,-perl \
 #              www/p5-HTTP-Server-Simple
 BUILD_DEPENDS= ${RUN_DEPENDS}

-CONFIGURE_ENV= LD_PRELOAD=libpthread.so # XXX remove when perl is -lpthread
-MAKE_ENV=      LD_PRELOAD=libpthread.so # XXX remove when perl is -lpthread
+CONFIGURE_ARGS += --skip_questions

 CONFIGURE_STYLE=modbuild

Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/p5-SVN-Web/distinfo,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 distinfo
--- distinfo    5 Apr 2007 15:38:02 -0000       1.4
+++ distinfo    17 Jul 2013 12:49:24 -0000
@@ -1,5 +1,2 @@
-MD5 (SVN-Web-0.48.tar.gz) = NMIr5kg0vLxTsdysLkVXdQ==
-RMD160 (SVN-Web-0.48.tar.gz) = JE7U0FJuSAPNgPcYedeAwAx93WI=
-SHA1 (SVN-Web-0.48.tar.gz) = vUOxGzBiEb72Qfhv/8JfcrSgYFY=
-SHA256 (SVN-Web-0.48.tar.gz) = BA+SVTb5y2E2scqjqhfTVfFBsZgF/RtguX8Z4c4NmGU=
-SIZE (SVN-Web-0.48.tar.gz) = 66958
+SHA256 (SVN-Web-0.53.tar.gz) = SESxT2527GRMQSMHBXJap9I3T93+G+sjkQ6xtwiElUk=
+SIZE (SVN-Web-0.53.tar.gz) = 85155
Index: patches/patch-Build_PL
===================================================================
RCS file: patches/patch-Build_PL
diff -N patches/patch-Build_PL
--- patches/patch-Build_PL      12 Jul 2006 05:25:48 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,56 +0,0 @@
-$OpenBSD: patch-Build_PL,v 1.1 2006/07/12 05:25:48 sturm Exp $
---- Build.PL.orig      Wed Jun 28 18:14:15 2006
-+++ Build.PL   Mon Jul 10 07:44:34 2006
-@@ -79,10 +79,6 @@ looking for the necessary Perl modules.
-
- EOM
-
--if(Module::Build->y_n('==> Will you be using mod_perl?', 'n')) {
--    $requires{'Apache::Request'} = 0;
--}
--
- # ------------------------------------------------------------------------
-
- print <<EOM;
-@@ -95,8 +91,7 @@ environment.
-
- EOM
-
--$feature{run_apache_tests} =
--      Module::Build->y_n(q{==> Do you want to run the Apache tests?}, 'n');
-+$feature{run_apache_tests} = 0;
-
- while($feature{run_apache_tests}) {
-     $config_data{apache_path} =
-@@ -158,8 +153,7 @@ be run before installation to make sure
-
- EOM
-
--$feature{'run_svnweb-server_tests'} =
--      Module::Build->y_n(q{==> Do you want to test svnweb-server?}, 'y');
-+$feature{'run_svnweb-server_tests'} = 0;
-
- $requires{'HTTP::Server::Simple'} = 0 if $feature{'run_svnweb-server_tests'};
-
-@@ -173,8 +167,7 @@ currently being used by another service.
- EOM
-
-     until(defined $config_data{httpd_port}) {
--        $config_data{httpd_port} =
--        Module::Build->prompt('==> Please enter a spare port', 8080);
-+        $config_data{httpd_port} = 8080;
-
-       if($config_data{httpd_port} !~ /^\d+$/) {
-           print "The port must contain only digits.\n\n";
-@@ -216,11 +209,6 @@ SVN::Web can use plugins to turn e-mail
- Subversion commit messages in to clickable hyperlinks.
-
- EOM
--
--if(Module::Build->y_n('==> Do you want to install these plugins?', 'y')) {
--    $requires{'Template::Plugin::Clickable'} = 0;
--    $requires{'Template::Plugin::Clickable::Email'} = 0;
--}
-
- # ------------------------------------------------------------------------
-
Index: patches/patch-lib_SVN_Web_action_pm
===================================================================
RCS file: patches/patch-lib_SVN_Web_action_pm
diff -N patches/patch-lib_SVN_Web_action_pm
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-lib_SVN_Web_action_pm 17 Jul 2013 12:49:24 -0000
@@ -0,0 +1,11 @@
+$OpenBSD$
+--- lib/SVN/Web/action.pm.orig Wed Jul 17 13:52:00 2013
++++ lib/SVN/Web/action.pm      Wed Jul 17 13:53:22 2013
+@@ -241,6 +241,7 @@ sub recent_interesting_rev {
+     my $ra  = $self->{repos}{ra};
+
+     my @log_result;
++    $path =~ s!^/!!;
+     $ra->get_log([$path], $rev, 1, 1, 0, 1,
+                  sub { @log_result = @_; });
+
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/p5-SVN-Web/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 PLIST
--- pkg/PLIST   12 Jul 2006 05:25:48 -0000      1.2
+++ pkg/PLIST   17 Jul 2013 12:49:24 -0000
@@ -1,14 +1,18 @@
 @comment $OpenBSD: PLIST,v 1.2 2006/07/12 05:25:48 sturm Exp $
+@owner root
 bin/svnweb-install
 @comment bin/svnweb-server
 ${P5SITE}/SVN/
 ${P5SITE}/SVN/Web/
 ${P5SITE}/SVN/Web.pm
+${P5SITE}/SVN/Web/Blame.pm
 ${P5SITE}/SVN/Web/Browse.pm
 ${P5SITE}/SVN/Web/Checkout.pm
 ${P5SITE}/SVN/Web/ConfigData.pm
 ${P5SITE}/SVN/Web/Diff.pm
+${P5SITE}/SVN/Web/DiffParser.pm
 ${P5SITE}/SVN/Web/I18N/
+${P5SITE}/SVN/Web/I18N.pm
 ${P5SITE}/SVN/Web/I18N/en.po
 ${P5SITE}/SVN/Web/I18N/fr.po
 ${P5SITE}/SVN/Web/I18N/zh_cn.po
@@ -46,6 +50,10 @@ ${P5SITE}/SVN/Web/Template/plain/revisio
 ${P5SITE}/SVN/Web/Template/plain/view
 ${P5SITE}/SVN/Web/Template/plain/x
 ${P5SITE}/SVN/Web/Template/trac/
+${P5SITE}/SVN/Web/Template/trac/_action_menu
+${P5SITE}/SVN/Web/Template/trac/_diff
+${P5SITE}/SVN/Web/Template/trac/_log_msg
+${P5SITE}/SVN/Web/Template/trac/blame
 ${P5SITE}/SVN/Web/Template/trac/browse
 ${P5SITE}/SVN/Web/Template/trac/diff
 ${P5SITE}/SVN/Web/Template/trac/footer
@@ -60,12 +68,16 @@ ${P5SITE}/SVN/Web/Test.pm
 ${P5SITE}/SVN/Web/View.pm
 ${P5SITE}/SVN/Web/X.pm
 ${P5SITE}/SVN/Web/action.pm
+@man man/man1/svnweb-install.1
 @man man/man1/svnweb-server.1
 @man man/man3p/SVN::Web.3p
+@man man/man3p/SVN::Web::Blame.3p
 @man man/man3p/SVN::Web::Browse.3p
 @man man/man3p/SVN::Web::Checkout.3p
 @man man/man3p/SVN::Web::ConfigData.3p
 @man man/man3p/SVN::Web::Diff.3p
+@man man/man3p/SVN::Web::DiffParser.3p
+@man man/man3p/SVN::Web::I18N.3p
 @man man/man3p/SVN::Web::List.3p
 @man man/man3p/SVN::Web::Log.3p
 @man man/man3p/SVN::Web::RSS.3p
@@ -74,3 +86,4 @@ ${P5SITE}/SVN/Web/action.pm
 @man man/man3p/SVN::Web::View.3p
 @man man/man3p/SVN::Web::X.3p
 @man man/man3p/SVN::Web::action.3p
+share/doc/pkg-readmes/${FULLPKGNAME}
Index: pkg/README
===================================================================
RCS file: pkg/README
diff -N pkg/README
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkg/README  17 Jul 2013 12:49:24 -0000
@@ -0,0 +1,18 @@
+$OpenBSD: README-main,v 1.1 2013/03/22 15:00:29 kirby Exp $
+
++-----------------------------------------------------------------------
+| Running ${FULLPKGNAME} on OpenBSD
++-----------------------------------------------------------------------
+
+Create directory where cgi script would be accessible by httpd:
+       mkdir /var/www/htdocs/svnweb
+
+Run svnweb-install in /var/www/htdocs/svnweb.
+
+Edit config.yaml in /var/www/htdocs/svnweb to reflect reality.
+
+If you a running Apache, add following lines to /var/www/conf/httpd.conf:
+
+  <Directory /var/www/htdocs/svnweb>
+    Options All ExecCGI
+  </Directory>


Reply via email to