ports/58807: New port: www/mod_musixindex

Cheng-Lung Sung clsung at dragon2.net
Sat Nov 1 15:40:13 UTC 2003


>Number:         58807
>Category:       ports
>Synopsis:       New port: www/mod_musixindex
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 01 07:40:11 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.9-RELEASE FreeBSD 4.9-RELEASE #5: Wed Oct 29 20:13:25 CST 2003 root at sungsung.csie.nctu.edu.tw:/usr/obj/usr/src/sys/SUNGSUNG i386

>Description:
- new port:
mod_musicindex is an Apache module aimed at being a C implementation of the
Perl module Apache::MP3 (http://search.cpan.org/dist/Apache-MP3/).
>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_musicindex
#	mod_musicindex/files
#	mod_musicindex/files/patch-Makefile
#	mod_musicindex/files/patch-playlist.h
#	mod_musicindex/Makefile
#	mod_musicindex/distinfo
#	mod_musicindex/pkg-descr
#	mod_musicindex/pkg-message
#	mod_musicindex/pkg-plist
#
echo c - mod_musicindex
mkdir -p mod_musicindex > /dev/null 2>&1
echo c - mod_musicindex/files
mkdir -p mod_musicindex/files > /dev/null 2>&1
echo x - mod_musicindex/files/patch-Makefile
sed 's/^X//' >mod_musicindex/files/patch-Makefile << 'END-of-mod_musicindex/files/patch-Makefile'
X-rw-r--r--  1 clsung  staff  3087 Nov  1 20:09 Makefile
X-rw-r--r--  1 clsung  staff  3049 Oct 30 20:41 Makefile.orig
END-of-mod_musicindex/files/patch-Makefile
echo x - mod_musicindex/files/patch-playlist.h
sed 's/^X//' >mod_musicindex/files/patch-playlist.h << 'END-of-mod_musicindex/files/patch-playlist.h'
X-rw-r--r--  1 clsung  staff  1599 Nov  1 20:10 playlist.h
X-rw-r--r--  1 clsung  staff  1563 Oct 30 20:41 playlist.h.orig
END-of-mod_musicindex/files/patch-playlist.h
echo x - mod_musicindex/Makefile
sed 's/^X//' >mod_musicindex/Makefile << 'END-of-mod_musicindex/Makefile'
X# New ports collection makefile for:	mod_musicindex
X# Date created:				Nov 1 2003
X# Whom:					clsung
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_musicindex
XPORTVERSION=	0.8.9
XCATEGORIES=	www audio
XMASTER_SITES=	http://www.esiee.fr/~puffin/musicindex/
XDISTNAME=	libapache-mod-musicindex_${PORTVERSION}
X
XMAINTAINER=	ports at FreeBSD.org
XCOMMENT=	Apache module in C implements Perl module Apache::MP3
X
XBUILD_DEPENDS=	${APXS}:${APACHE_PORT}
XRUN_DEPENDS=	${APXS}:${APACHE_PORT}
XLIB_DEPENDS=	ogg.4:${PORTSDIR}/audio/libogg \
X		vorbis.2:${PORTSDIR}/audio/libvorbis \
X		id3tag.1:${PORTSDIR}/audio/mad \
X		mad.1:${PORTSDIR}/audio/mad
X
XAPXS?=		${LOCALBASE}/sbin/apxs
XAPACHE_PORT?=	${PORTSDIR}/www/apache13
XUSE_GMAKE=	yes
XWRKSRC=		${WRKDIR}/libapache-mod-musicindex-${PORTVERSION}
X
XDOCS_HTMLIMAGES=	directory.png musicindex.css fetch.png \
X			right_arrow.gif general.png sound.png
X
Xdo-install:
X	${APXS} -i -A -n musicindex ${WRKSRC}/mod_musicindex.so
X.if !defined(NOPORTDOCS)
X	@${INSTALL} -d -m 0755 ${DATADIR}
X.for f in ${DOCS_HTMLIMAGES}
X	${INSTALL_DATA} ${WRKSRC}/musicindex/${f} ${DATADIR}
X.endfor
X.endif
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-mod_musicindex/Makefile
echo x - mod_musicindex/distinfo
sed 's/^X//' >mod_musicindex/distinfo << 'END-of-mod_musicindex/distinfo'
XMD5 (libapache-mod-musicindex_0.8.9.tar.gz) = 49eede2e4935f32b7f5f60a4782aa9a0
END-of-mod_musicindex/distinfo
echo x - mod_musicindex/pkg-descr
sed 's/^X//' >mod_musicindex/pkg-descr << 'END-of-mod_musicindex/pkg-descr'
Xmod_musicindex is an Apache module aimed at being a C implementation of 
Xthe Perl module Apache::MP3. It allows nice displaying of directories 
Xcontaining MP3 or Ogg Vorbis files, including sorting them on various 
Xfields, streaming/downloading them, constructing playlists, and searching.
X
XWWW: http://www.esiee.fr/~puffin/musicindex/
END-of-mod_musicindex/pkg-descr
echo x - mod_musicindex/pkg-message
sed 's/^X//' >mod_musicindex/pkg-message << 'END-of-mod_musicindex/pkg-message'
X************************************************************
XYou've installed mod_musicindex
X
XEdit your apache.conf or httpd.conf to enable and setup this
Xmodule. 
X
XAnd sample Directory configuration should looks like this:
X
X<Directory /usr/local/www/data/musicindex/>
X    Options Indexes MultiViews FollowSymlinks
X    AllowOverride None
X    MusicLister
X    MusicSortOrder      artist album track title
X    MusicFields         title artist album track length bitrate
X    MusicAllowDownload
X    MusicAllowStream
X    MusicAllowSearch
X    MusicCachePath      /tmp/musicindex
X</Directory>
X
XThen do this to make it work effective:
X
X# apachectl configtest (see if there are any config errors)
X# apachectl restart
X
X************************************************************
END-of-mod_musicindex/pkg-message
echo x - mod_musicindex/pkg-plist
sed 's/^X//' >mod_musicindex/pkg-plist << 'END-of-mod_musicindex/pkg-plist'
Xlibexec/apache/mod_musicindex.so
X at exec %D/sbin/apxs -e -A -n musicindex %D/%F
X at unexec %D/sbin/apxs -e -A -n musicindex %D/%F
X%%PORTDOCS%%share/mod_musicindex/directory.png
X%%PORTDOCS%%share/mod_musicindex/fetch.png
X%%PORTDOCS%%share/mod_musicindex/general.png
X%%PORTDOCS%%share/mod_musicindex/musicindex.css
X%%PORTDOCS%%share/mod_musicindex/right_arrow.gif
X%%PORTDOCS%%share/mod_musicindex/sound.png
X%%PORTDOCS%%@dirrm share/mod_musicindex
END-of-mod_musicindex/pkg-plist
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list