View | Details | Raw Unified | Return to bug 76575
Collapse All | Expand All

(-)mod_musicindex/Makefile (-5 / +16 lines)
Lines 7-20 Link Here
7
7
8
PORTNAME=	mod_musicindex
8
PORTNAME=	mod_musicindex
9
PORTVERSION=	0.99.7
9
PORTVERSION=	0.99.7
10
PORTREVISION=	1
10
CATEGORIES=	www audio
11
CATEGORIES=	www audio
11
# Master site don't have a current version'd tarball...
12
# Master site doesn't have a current version'd tarball...
12
#MASTER_SITES=	http://www.esiee.fr/~puffin/musicindex/
13
#MASTER_SITES=	http://www.parisc-linux.org/~varenet/musicindex/
13
MASTER_SITES=	http://sheepkiller.nerim.net/
14
MASTER_SITES=	http://depot.fsck.ch/mirror/distfiles/
14
DISTNAME=	libapache-mod-musicindex_${PORTVERSION}
15
DISTNAME=	libapache-mod-musicindex_${PORTVERSION}
15
16
16
MAINTAINER=	apache@FreeBSD.org
17
MAINTAINER=	ports@fsck.ch
17
COMMENT=	Apache module in C implements Perl module Apache::MP3
18
COMMENT=	Apache module in C that implements the perl module Apache::MP3
18
19
19
LIB_DEPENDS=	vorbis.3:${PORTSDIR}/audio/libvorbis \
20
LIB_DEPENDS=	vorbis.3:${PORTSDIR}/audio/libvorbis \
20
		id3tag.2:${PORTSDIR}/audio/libid3tag \
21
		id3tag.2:${PORTSDIR}/audio/libid3tag \
Lines 27-32 Link Here
27
#WANT_APACHE=	YES
28
#WANT_APACHE=	YES
28
USE_GMAKE=	yes
29
USE_GMAKE=	yes
29
WRKSRC=		${WRKDIR}/libapache-mod-musicindex-${PORTVERSION}
30
WRKSRC=		${WRKDIR}/libapache-mod-musicindex-${PORTVERSION}
31
SUB_FILES=	pkg-message
30
32
31
PORTDOCS=	directory.png musicindex.css fetch.png \
33
PORTDOCS=	directory.png musicindex.css fetch.png \
32
		right_arrow.gif general.png sound.png
34
		right_arrow.gif general.png sound.png
Lines 39-43 Link Here
39
.if "${AP_VER}"=="2"
41
.if "${AP_VER}"=="2"
40
MAKE_ENV+=	APACHE_VERSION=2 APRCONFIG=${LOCALBASE}/lib/apache2/apr-config
42
MAKE_ENV+=	APACHE_VERSION=2 APRCONFIG=${LOCALBASE}/lib/apache2/apr-config
41
.endif
43
.endif
44
45
post-install:
46
.if !defined(NOPORTDOCS)
47
	${MKDIR} ${DOCSDIR}
48
	${CP} ${WRKSRC}/README ${DOCSDIR}
49
.endif
50
	@${ECHO_MSG} ""
51
	@${CAT} ${PKGMESSAGE}
52
	@${ECHO_MSG} ""
42
53
43
.include <bsd.port.post.mk>
54
.include <bsd.port.post.mk>
(-)mod_musicindex/files/patch-Makefile (-2 / +11 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	Mon Jan 17 21:44:36 2005
1
--- Makefile.orig	Wed Sep 15 18:34:27 2004
2
+++ Makefile	Mon Jan 17 21:51:06 2005
2
+++ Makefile	Sat Jan 22 14:58:01 2005
3
@@ -8,21 +8,16 @@
3
@@ -8,21 +8,16 @@
4
 ##  @todo autoconf/automake (i18n/apache2)
4
 ##  @todo autoconf/automake (i18n/apache2)
5
 
5
 
Lines 39-41 Link Here
39
 
39
 
40
 #   our own defines
40
 #   our own defines
41
 UNAME := $(shell uname)
41
 UNAME := $(shell uname)
42
@@ -90,8 +85,6 @@
43
 	$(INSTALL) -d $(DESTDIR)$(DOCROOT)/musicindex $(DESTDIR)$(LIBEXECDIR)
44
 	$(INSTALL) -m 0644 musicindex/*.* $(DESTDIR)$(DOCROOT)/musicindex
45
 	$(INSTALL) -m 0644 $(MOD_SO) $(DESTDIR)$(LIBEXECDIR)
46
-	@echo -e "\nDon't forget to edit your httpd.conf (see README for details):\n \
47
-		LoadModule musicindex_module $(DESTDIR)$(LIBEXECDIR)/$(MOD_SO)"
48
 
49
 #   how to compile the objects
50
 %.o: %.c %.h mod_musicindex.h
(-)mod_musicindex/files/pkg-message.in (+40 lines)
Line 0 Link Here
1
************************************************************
2
You've installed mod_musicindex
3
4
To enable it, you need to take the following steps:
5
6
1) Edit httpd.conf to make sure the module is loaded.
7
2) Mod_musicindex looks for a directory called musicindex below
8
   the apache DocumentRoot. Make sure it finds it by either changing
9
   the DocumentRoot directive in httpd.conf to %%LOCALBASE%%/www or by
10
   copying or linking %%LOCALBASE%%/www/musicindex into your DocumentRoot
11
3) Add a Directory configuration to your httpd.conf that should look
12
   something like this:
13
14
<Directory "/path/to/you/mp3/files/">
15
    Options Indexes MultiViews FollowSymlinks
16
    AllowOverride       None
17
    MusicLister         On
18
    MusicSortOrder      album disc track artist title length bitrate freq filetype filename uri
19
    MusicFields         title artist length bitrate
20
    MusicAllowDownload  On
21
    MusicAllowStream    Off
22
    MusicAllowSearch    On
23
    MusicPageTitle      Myname
24
    MusicCssDefault     musicindex.css
25
    MusicCachePath      /tmp/musicindex
26
    MusicIceServer      [ice.domain.my]:8000
27
    MusicCookieLife     300
28
</Directory>
29
30
4) Optionally consider setting an alias to your mp3 dir, so you can access
31
   the files by http://yourhost/music/ :
32
33
Alias /music/ /path/to/you/mp3/files/
34
35
5) To make your changes effective, restart apache:
36
37
# apachectl configtest (see if there are any config errors)
38
# apachectl restart
39
40
************************************************************
(-)mod_musicindex/pkg-descr (-1 / +1 lines)
Lines 3-6 Link Here
3
containing MP3 or Ogg Vorbis files, including sorting them on various 
3
containing MP3 or Ogg Vorbis files, including sorting them on various 
4
fields, streaming/downloading them, constructing playlists, and searching.
4
fields, streaming/downloading them, constructing playlists, and searching.
5
5
6
WWW: http://www.esiee.fr/~puffin/musicindex/
6
WWW: http://www.parisc-linux.org/~varenet/musicindex/
(-)mod_musicindex/pkg-message (-26 lines)
Lines 1-26 Link Here
1
************************************************************
2
You've installed mod_musicindex
3
4
Edit your apache.conf or httpd.conf to enable and setup this
5
module. 
6
7
And sample Directory configuration should looks like this:
8
9
<Directory /usr/local/www/data/musicindex/>
10
    Options Indexes MultiViews FollowSymlinks
11
    AllowOverride None
12
    MusicLister
13
    MusicSortOrder      artist album track title
14
    MusicFields         title artist album track length bitrate
15
    MusicAllowDownload
16
    MusicAllowStream
17
    MusicAllowSearch
18
    MusicCachePath      /tmp/musicindex
19
</Directory>
20
21
Then do this to make it work effective:
22
23
# apachectl configtest (see if there are any config errors)
24
# apachectl restart
25
26
************************************************************
(-)mod_musicindex/pkg-plist (-1 / +2 lines)
Lines 7-11 Link Here
7
www/musicindex/musicindex.css
7
www/musicindex/musicindex.css
8
www/musicindex/right_arrow.gif
8
www/musicindex/right_arrow.gif
9
www/musicindex/sound.png
9
www/musicindex/sound.png
10
%%PORTDOCS%%%%DOCSDIR%%/README
10
@dirrm www/musicindex
11
@dirrm www/musicindex
11
12
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 76575