import of p5-Apache-MP3-2.18

mod_perl class for generating browsable MP3 directory lists

MAINTAINER=     Nikolay Sturm <nikolay.sturm@desy.de>
This commit is contained in:
pvalchev 2001-08-08 19:02:03 +00:00
parent 35530dec65
commit b7bae4341b
6 changed files with 144 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/08/08 19:02:03 pvalchev Exp $
COMMENT= "mod_perl class for generating browsable MP3 directory lists"
DISTNAME= Apache-MP3-2.18
PKGNAME= p5-${DISTNAME}
CATEGORIES= www audio
NEED_VERSION= 1.433
MAINTAINER= Nikolay Sturm <nikolay.sturm@desy.de>
# GPL or Artistic License ("same as Perl")
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Apache
BUILD_DEPENDS= ${LOCALBASE}/lib/mod_perl.so::www/mod_perl
RUN_DEPENDS= ${BUILD_DEPENDS} \
${LOCALBASE}/libdata/perl5/site_perl/MP3/Info.pm::audio/p5-MP3-Info
CONFIGURE_STYLE= perl
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/apache_mp3
${INSTALL_DATA} ${WRKSRC}/apache_mp3/* ${PREFIX}/share/examples/apache_mp3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Apache-MP3-2.18.tar.gz) = f3ec4d08f475c8d349fdb0e5225c4584
RMD160 (Apache-MP3-2.18.tar.gz) = 6c6075a4262ee740b1d49942c01469e62d1c30da
SHA1 (Apache-MP3-2.18.tar.gz) = 6e762a09f767b4dce8d358c4bf290ff482b9f85f

View File

@ -0,0 +1,26 @@
#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/08/08 19:02:03 pvalchev Exp $
#
# apache_mp3 de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONF=`/usr/sbin/apxs -q SYSCONFDIR`/httpd.conf
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you"
echo "| need to perform these steps as root:"
echo "|"
echo "| delete the directory apache_mp3 in your webserver's DirectoryRoot;"
echo "| edit ${CONF}"
echo "| and remove the <Location> entries dealing with your mp3 files."
echo "|"
echo "| Do not do this if you plan on re-installing the $1"
echo "| package at some future time."
echo "+---------------"
echo
exit 0

View File

@ -0,0 +1,17 @@
Apache::MP3 version 2.x
This module takes a hierarchy of directories containing MP3 files and
presents it as a browsable song library for streaming over the web.
It requires the Apache web server, the mod_perl embedded Perl
interpreter, and the MP3::Info module.
MP3 files are displayed in a list that shows the MP3 title, artist,
duration and bitrate. Subdirectories are displayed with "CD" icons.
The user can download an MP3 file to disk by clicking on its title,
stream it to an MP3 decoder by clicking on the "play" link. Users can
also stream the entire contents of a directory, or select a subset of
songs to play.
A DEMO is available at http://www.modperl.com/Songs. In this demo,
stream time is limited to 30 seconds in order to avoid copyright
infringement.

View File

@ -0,0 +1,49 @@
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.1.1.1 2001/08/08 19:02:03 pvalchev Exp $
#
# apache_mp3 installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONF=`/usr/sbin/apxs -q SYSCONFDIR`/httpd.conf
do_notice()
{
echo
echo "+---------------"
echo "| To finish the installation of $1, you need to copy the"
echo "| directory ${PREFIX}/share/examples/apache_mp3 to your webserver's"
echo "| DocumentRoot and read the documentation by issuing"
echo "|"
echo "| perldoc Apache::MP3"
echo "|"
echo "| to find out how to setup your ${CONF}."
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
do_notice $1
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,19 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/08/08 19:02:03 pvalchev Exp $
libdata/perl5/site_perl/Apache/MP3.pm
libdata/perl5/site_perl/Apache/MP3/Playlist.pm
libdata/perl5/site_perl/Apache/MP3/Resample.pm
libdata/perl5/site_perl/Apache/MP3/Sorted.pm
man/man3/Apache::MP3.3p
man/man3/Apache::MP3::Playlist.3p
man/man3/Apache::MP3::Resample.3p
man/man3/Apache::MP3::Sorted.3p
share/examples/apache_mp3/apache_mp3.css
share/examples/apache_mp3/apache_mp3_help.gif
share/examples/apache_mp3/back.gif
share/examples/apache_mp3/cd_icon.gif
share/examples/apache_mp3/cd_icon_small.gif
share/examples/apache_mp3/playlist.gif
share/examples/apache_mp3/right_arrow.gif
share/examples/apache_mp3/sound.gif
@dirrm share/examples/apache_mp3
@dirrm libdata/perl5/site_perl/Apache/MP3