Update to 4.00.
Note: no longer supports Apache 1.x and mod_perl 1.x. PR: ports/95809 Submitted by: Dominic Mitchell <dom -at- happygiraffe.net> (maintainer)
This commit is contained in:
parent
3ed55fc3c4
commit
94361dbd9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159818
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= Apache-MP3
|
||||
PORTVERSION= 3.05
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 4.00
|
||||
CATEGORIES= www audio perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR=Apache
|
||||
@ -17,8 +16,10 @@ MAINTAINER= dom@happygiraffe.net
|
||||
COMMENT= MP3 browsing and streaming under mod_perl and Apache
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/Audio/Wav.pm:${PORTSDIR}/audio/p5-Audio-Wav \
|
||||
${SITE_PERL}/CGI/Session.pm:${PORTSDIR}/www/p5-CGI-Session \
|
||||
${SITE_PERL}/MPEG/MP3Info.pm:${PORTSDIR}/audio/p5-MP3-Info \
|
||||
${SITE_PERL}/${PERL_ARCH}/Ogg/Vorbis.pm:${PORTSDIR}/audio/p5-libvorbis
|
||||
${SITE_PERL}/${PERL_ARCH}/Ogg/Vorbis/Header.pm:${PORTSDIR}/audio/p5-Ogg-Vorbis-Header \
|
||||
${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= YES
|
||||
@ -41,13 +42,4 @@ BUILD_DEPENDS+= ${SITE_PERL}/Locale/Maketext.pm:${PORTSDIR}/devel/p5-Locale-Make
|
||||
RUN_DEPENDS+= ${SITE_PERL}/Locale/Maketext.pm:${PORTSDIR}/devel/p5-Locale-Maketext
|
||||
.endif
|
||||
|
||||
.if defined(WITH_APACHE2)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
|
||||
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
|
||||
EXTRA_PATCHES= ${PATCHDIR}/mod_perl2.patch
|
||||
.else
|
||||
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
|
||||
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (Apache-MP3-3.05.tar.gz) = f2009b0ddc7f17c1c1ccee391d187935
|
||||
SHA256 (Apache-MP3-3.05.tar.gz) = 8ceb7c99dd26e8342fa073b1000a6997cf9181904263e74477fb84dbcbc6475d
|
||||
SIZE (Apache-MP3-3.05.tar.gz) = 330594
|
||||
MD5 (Apache-MP3-4.00.tar.gz) = 78a30a3e889a9b4a11387d6342bfc82f
|
||||
SHA256 (Apache-MP3-4.00.tar.gz) = 041c3331d301bff88395d0848002b601acf9a9c84140ec8b0d029593e88796a2
|
||||
SIZE (Apache-MP3-4.00.tar.gz) = 328384
|
||||
|
@ -1,57 +0,0 @@
|
||||
--- MP3.pm.orig Mon Oct 6 16:06:10 2003
|
||||
+++ MP3.pm Thu Jun 9 15:37:04 2005
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
BEGIN {
|
||||
require mod_perl;
|
||||
- require Apache::compat if $mod_perl::VERSION >= 1.99;
|
||||
+ require Apache2::compat if $mod_perl::VERSION >= 1.99;
|
||||
}
|
||||
|
||||
use Apache;
|
||||
-use Apache::Constants qw(:common REDIRECT HTTP_NO_CONTENT DIR_MAGIC_TYPE HTTP_NOT_MODIFIED);
|
||||
+use Apache::Constants qw(:common REDIRECT HTTP_NO_CONTENT HTTP_NOT_MODIFIED);
|
||||
use Apache::MP3::L10N;
|
||||
use IO::File;
|
||||
use Socket 'sockaddr_in';
|
||||
@@ -25,6 +25,8 @@
|
||||
|
||||
use constant DEBUG => 0;
|
||||
|
||||
+use constant DIR_MAGIC_TYPE => 'httpd/unix-directory';
|
||||
+
|
||||
# defaults:
|
||||
use constant BASE_DIR => '/apache_mp3';
|
||||
use constant STYLESHEET => 'apache_mp3.css';
|
||||
@@ -75,7 +77,7 @@
|
||||
}
|
||||
END
|
||||
|
||||
-sub handler ($$) {
|
||||
+sub handler : method {
|
||||
my $class = shift;
|
||||
my $obj = $class->new(@_) or die "Can't create object: $!";
|
||||
return $obj->run();
|
||||
@@ -415,14 +417,14 @@
|
||||
my $self = shift;
|
||||
my $dir = shift;
|
||||
|
||||
- unless ($self->r->path_info){
|
||||
- #Issue an external redirect if the dir isn't tailed with a '/'
|
||||
- my $uri = $self->r->uri;
|
||||
- my $query = $self->r->args;
|
||||
- $query = "?" . $query if defined $query;
|
||||
- $self->r->header_out(Location => "$uri/$query");
|
||||
- return REDIRECT;
|
||||
- }
|
||||
+# unless ($self->r->path_info){
|
||||
+# #Issue an external redirect if the dir isn't tailed with a '/'
|
||||
+# my $uri = $self->r->uri;
|
||||
+# my $query = $self->r->args;
|
||||
+# $query = "?" . $query if defined $query;
|
||||
+# $self->r->header_out(Location => "$uri/$query");
|
||||
+# return REDIRECT;
|
||||
+# }
|
||||
|
||||
return $self->list_directory($dir);
|
||||
}
|
Loading…
Reference in New Issue
Block a user