diff options
author | clement <clement@FreeBSD.org> | 2005-01-23 04:56:55 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2005-01-23 04:56:55 +0800 |
commit | f18a40f933bcc500d628c1d9d91c35b1b2045ba0 (patch) | |
tree | 0e0203835e7870146d4e96bfd34a3ef12a75b25f /www/mod_musicindex | |
parent | 5318ec8aaab357f8c5708f166b539e02984ce9b4 (diff) | |
download | freebsd-ports-gnome-f18a40f933bcc500d628c1d9d91c35b1b2045ba0.tar.gz freebsd-ports-gnome-f18a40f933bcc500d628c1d9d91c35b1b2045ba0.tar.zst freebsd-ports-gnome-f18a40f933bcc500d628c1d9d91c35b1b2045ba0.zip |
- Cleanup the ports and update pkg-message
- Pass maintainership to submitter
PR: ports/76575
Submitted by: Tobias Roth <ports@fsck.ch>
Diffstat (limited to 'www/mod_musicindex')
-rw-r--r-- | www/mod_musicindex/Makefile | 21 | ||||
-rw-r--r-- | www/mod_musicindex/files/patch-Makefile | 13 | ||||
-rw-r--r-- | www/mod_musicindex/files/pkg-message.in | 40 | ||||
-rw-r--r-- | www/mod_musicindex/pkg-descr | 2 | ||||
-rw-r--r-- | www/mod_musicindex/pkg-message | 26 | ||||
-rw-r--r-- | www/mod_musicindex/pkg-plist | 3 |
6 files changed, 70 insertions, 35 deletions
diff --git a/www/mod_musicindex/Makefile b/www/mod_musicindex/Makefile index 5125cc6a0c7b..abb376ea820c 100644 --- a/www/mod_musicindex/Makefile +++ b/www/mod_musicindex/Makefile @@ -7,14 +7,15 @@ PORTNAME= mod_musicindex PORTVERSION= 0.99.7 +PORTREVISION= 1 CATEGORIES= www audio -# Master site don't have a current version'd tarball... -#MASTER_SITES= http://www.esiee.fr/~puffin/musicindex/ -MASTER_SITES= http://sheepkiller.nerim.net/ +# Master site doesn't have a current version'd tarball... +#MASTER_SITES= http://www.parisc-linux.org/~varenet/musicindex/ +MASTER_SITES= http://depot.fsck.ch/mirror/distfiles/ DISTNAME= libapache-mod-musicindex_${PORTVERSION} -MAINTAINER= apache@FreeBSD.org -COMMENT= Apache module in C implements Perl module Apache::MP3 +MAINTAINER= ports@fsck.ch +COMMENT= Apache module in C that implements the perl module Apache::MP3 LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \ id3tag.2:${PORTSDIR}/audio/libid3tag \ @@ -27,6 +28,7 @@ CFLAGS+= -I${LOCALBASE}/include #WANT_APACHE= YES USE_GMAKE= yes WRKSRC= ${WRKDIR}/libapache-mod-musicindex-${PORTVERSION} +SUB_FILES= pkg-message PORTDOCS= directory.png musicindex.css fetch.png \ right_arrow.gif general.png sound.png @@ -40,4 +42,13 @@ MAKE_ENV+= APXS=${APXS} CPPFLAGS="${CPPFLAGS}" LDFLAGS="-L${LOCALBASE}/lib" MAKE_ENV+= APACHE_VERSION=2 APRCONFIG=${LOCALBASE}/lib/apache2/apr-config .endif +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + @${ECHO_MSG} "" + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} "" + .include <bsd.port.post.mk> diff --git a/www/mod_musicindex/files/patch-Makefile b/www/mod_musicindex/files/patch-Makefile index 784e7ef1f656..8b493b01a650 100644 --- a/www/mod_musicindex/files/patch-Makefile +++ b/www/mod_musicindex/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Mon Jan 17 21:44:36 2005 -+++ Makefile Mon Jan 17 21:51:06 2005 +--- Makefile.orig Wed Sep 15 18:34:27 2004 ++++ Makefile Sat Jan 22 14:58:01 2005 @@ -8,21 +8,16 @@ ## @todo autoconf/automake (i18n/apache2) @@ -39,3 +39,12 @@ # our own defines UNAME := $(shell uname) +@@ -90,8 +85,6 @@ + $(INSTALL) -d $(DESTDIR)$(DOCROOT)/musicindex $(DESTDIR)$(LIBEXECDIR) + $(INSTALL) -m 0644 musicindex/*.* $(DESTDIR)$(DOCROOT)/musicindex + $(INSTALL) -m 0644 $(MOD_SO) $(DESTDIR)$(LIBEXECDIR) +- @echo -e "\nDon't forget to edit your httpd.conf (see README for details):\n \ +- LoadModule musicindex_module $(DESTDIR)$(LIBEXECDIR)/$(MOD_SO)" + + # how to compile the objects + %.o: %.c %.h mod_musicindex.h diff --git a/www/mod_musicindex/files/pkg-message.in b/www/mod_musicindex/files/pkg-message.in new file mode 100644 index 000000000000..182f8f3b9c3b --- /dev/null +++ b/www/mod_musicindex/files/pkg-message.in @@ -0,0 +1,40 @@ +************************************************************ +You've installed mod_musicindex + +To enable it, you need to take the following steps: + +1) Edit httpd.conf to make sure the module is loaded. +2) Mod_musicindex looks for a directory called musicindex below + the apache DocumentRoot. Make sure it finds it by either changing + the DocumentRoot directive in httpd.conf to %%LOCALBASE%%/www or by + copying or linking %%LOCALBASE%%/www/musicindex into your DocumentRoot +3) Add a Directory configuration to your httpd.conf that should look + something like this: + +<Directory "/path/to/you/mp3/files/"> + Options Indexes MultiViews FollowSymlinks + AllowOverride None + MusicLister On + MusicSortOrder album disc track artist title length bitrate freq filetype filename uri + MusicFields title artist length bitrate + MusicAllowDownload On + MusicAllowStream Off + MusicAllowSearch On + MusicPageTitle Myname + MusicCssDefault musicindex.css + MusicCachePath /tmp/musicindex + MusicIceServer [ice.domain.my]:8000 + MusicCookieLife 300 +</Directory> + +4) Optionally consider setting an alias to your mp3 dir, so you can access + the files by http://yourhost/music/ : + +Alias /music/ /path/to/you/mp3/files/ + +5) To make your changes effective, restart apache: + +# apachectl configtest (see if there are any config errors) +# apachectl restart + +************************************************************ diff --git a/www/mod_musicindex/pkg-descr b/www/mod_musicindex/pkg-descr index 7fa3617468d2..2a8f507362c6 100644 --- a/www/mod_musicindex/pkg-descr +++ b/www/mod_musicindex/pkg-descr @@ -3,4 +3,4 @@ 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/ +WWW: http://www.parisc-linux.org/~varenet/musicindex/ diff --git a/www/mod_musicindex/pkg-message b/www/mod_musicindex/pkg-message deleted file mode 100644 index 40abf20f0eea..000000000000 --- a/www/mod_musicindex/pkg-message +++ /dev/null @@ -1,26 +0,0 @@ -************************************************************ -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 - -************************************************************ diff --git a/www/mod_musicindex/pkg-plist b/www/mod_musicindex/pkg-plist index 652665e62bb2..788c1125e8ea 100644 --- a/www/mod_musicindex/pkg-plist +++ b/www/mod_musicindex/pkg-plist @@ -7,5 +7,6 @@ www/musicindex/general.png www/musicindex/musicindex.css www/musicindex/right_arrow.gif www/musicindex/sound.png +%%PORTDOCS%%%%DOCSDIR%%/README @dirrm www/musicindex - +%%PORTDOCS%%@dirrm %%DOCSDIR%% |