mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
add mod_musicindex 0.8.9
Apache module in C implements Perl module Apache::MP3 PR: 58807 Submitted by: Cheng-Lung Sung <clsung@dragon2.net>
This commit is contained in:
parent
c0e738018d
commit
9c118d4f8e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92974
@ -226,6 +226,7 @@
|
||||
SUBDIR += mod_limitipconn
|
||||
SUBDIR += mod_log_sql
|
||||
SUBDIR += mod_mp3
|
||||
SUBDIR += mod_musicindex
|
||||
SUBDIR += mod_mylo
|
||||
SUBDIR += mod_mysqluserdir
|
||||
SUBDIR += mod_pcgi2
|
||||
|
42
www/mod_musicindex/Makefile
Normal file
42
www/mod_musicindex/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# New ports collection makefile for: mod_musicindex
|
||||
# Date created: Nov 1 2003
|
||||
# Whom: clsung
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mod_musicindex
|
||||
PORTVERSION= 0.8.9
|
||||
CATEGORIES= www audio
|
||||
MASTER_SITES= http://www.esiee.fr/~puffin/musicindex/
|
||||
DISTNAME= libapache-mod-musicindex_${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Apache module in C implements Perl module Apache::MP3
|
||||
|
||||
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
|
||||
RUN_DEPENDS= ${APXS}:${APACHE_PORT}
|
||||
LIB_DEPENDS= ogg.4:${PORTSDIR}/audio/libogg \
|
||||
vorbis.2:${PORTSDIR}/audio/libvorbis \
|
||||
id3tag.1:${PORTSDIR}/audio/mad \
|
||||
mad.1:${PORTSDIR}/audio/mad
|
||||
|
||||
APXS?= ${LOCALBASE}/sbin/apxs
|
||||
APACHE_PORT?= ${PORTSDIR}/www/apache13
|
||||
USE_GMAKE= yes
|
||||
WRKSRC= ${WRKDIR}/libapache-mod-musicindex-${PORTVERSION}
|
||||
|
||||
DOCS_HTMLIMAGES= directory.png musicindex.css fetch.png \
|
||||
right_arrow.gif general.png sound.png
|
||||
|
||||
do-install:
|
||||
${APXS} -i -A -n musicindex ${WRKSRC}/mod_musicindex.so
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for f in ${DOCS_HTMLIMAGES}
|
||||
${INSTALL_DATA} ${WRKSRC}/musicindex/${f} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
www/mod_musicindex/distinfo
Normal file
1
www/mod_musicindex/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (libapache-mod-musicindex_0.8.9.tar.gz) = 49eede2e4935f32b7f5f60a4782aa9a0
|
13
www/mod_musicindex/files/patch-Makefile
Normal file
13
www/mod_musicindex/files/patch-Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
--- Makefile.orig Thu Oct 30 20:41:45 2003
|
||||
+++ Makefile Tue Nov 4 00:03:52 2003
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
# additional user defines, includes and libraries
|
||||
#DEF =
|
||||
-#INC =
|
||||
-#LIB =
|
||||
+INC = -I/usr/local/include
|
||||
+LIB = -L/usr/local/lib
|
||||
CFLAGS = -O2 -Wall
|
||||
DOCROOT = /var/www
|
||||
|
10
www/mod_musicindex/files/patch-playlist.h
Normal file
10
www/mod_musicindex/files/patch-playlist.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- playlist.h.orig Thu Oct 30 20:41:45 2003
|
||||
+++ playlist.h Tue Nov 4 00:03:01 2003
|
||||
@@ -51,5 +51,7 @@
|
||||
|
||||
mu_ent *new_ent(apr_pool_t *pool, mu_ent *head);
|
||||
|
||||
+#define FALSE 0
|
||||
+#define TRUE !FALSE
|
||||
|
||||
#endif
|
6
www/mod_musicindex/pkg-descr
Normal file
6
www/mod_musicindex/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
mod_musicindex is an Apache module aimed at being a C implementation of
|
||||
the Perl module Apache::MP3. It allows nice displaying of directories
|
||||
containing MP3 or Ogg Vorbis files, including sorting them on various
|
||||
fields, streaming/downloading them, constructing playlists, and searching.
|
||||
|
||||
WWW: http://www.esiee.fr/~puffin/musicindex/
|
26
www/mod_musicindex/pkg-message
Normal file
26
www/mod_musicindex/pkg-message
Normal file
@ -0,0 +1,26 @@
|
||||
************************************************************
|
||||
You've installed mod_musicindex
|
||||
|
||||
Edit your apache.conf or httpd.conf to enable and setup this
|
||||
module.
|
||||
|
||||
And sample Directory configuration should looks like this:
|
||||
|
||||
<Directory /usr/local/www/data/musicindex/>
|
||||
Options Indexes MultiViews FollowSymlinks
|
||||
AllowOverride None
|
||||
MusicLister
|
||||
MusicSortOrder artist album track title
|
||||
MusicFields title artist album track length bitrate
|
||||
MusicAllowDownload
|
||||
MusicAllowStream
|
||||
MusicAllowSearch
|
||||
MusicCachePath /tmp/musicindex
|
||||
</Directory>
|
||||
|
||||
Then do this to make it work effective:
|
||||
|
||||
# apachectl configtest (see if there are any config errors)
|
||||
# apachectl restart
|
||||
|
||||
************************************************************
|
10
www/mod_musicindex/pkg-plist
Normal file
10
www/mod_musicindex/pkg-plist
Normal file
@ -0,0 +1,10 @@
|
||||
libexec/apache/mod_musicindex.so
|
||||
@exec %D/sbin/apxs -e -A -n musicindex %D/%F
|
||||
@unexec %D/sbin/apxs -e -A -n musicindex %D/%F
|
||||
%%PORTDOCS%%%%DOCSDIR%%/directory.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/fetch.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/general.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/musicindex.css
|
||||
%%PORTDOCS%%%%DOCSDIR%%/right_arrow.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/sound.png
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user