ports/156650: [PATCH] Update port: www/phpmp to 0.12.0
Chris Rees
utisoft at gmail.com
Mon Apr 25 18:10:10 UTC 2011
>Number: 156650
>Category: ports
>Synopsis: [PATCH] Update port: www/phpmp to 0.12.0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 25 18:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Chris Rees
>Release: FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD zeus.bayofrum.net 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Sun Feb 27 22:19:51 UTC 2011 root at zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386
>Description:
phpmp has undergone a total rewrite, but has not been published as a tarball anywhere. I got this from svn, but people have been using it for a while; Fedora for example have a package for it from Nov-2009 [1].
[1] http://orion.lcg.ufrj.br/RPMS/noarch/repoview/
>How-To-Repeat:
>Fix:
[file pkg-message added]
Please bear in mind the addition to UPDATING as well [2].
- Update to 0.12.0
Submitted by: Chris Rees (utisoft_at_gmail.com)
[2] http://www.bayofrum.net/~crees/patches/phpmp-0.12.0-UPDATING.diff
--- phpmp-0.12.0.diff begins here ---
Index: Makefile
===================================================================
RCS file: /exports/cvsroot-freebsd/ports/www/phpmp/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 24 Apr 2011 06:07:10 -0000 1.3
+++ Makefile 25 Apr 2011 18:03:50 -0000
@@ -6,32 +6,21 @@
#
PORTNAME= phpmp
-PORTVERSION= 0.11.0
-PORTREVISION= 2
+PORTVERSION= 0.12.0
CATEGORIES= www
-MASTER_SITES= SF/musicpd/phpMp/${PORTVERSION}
-DISTNAME= phpMp-${PORTVERSION}
+MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/
MAINTAINER= kevlo at FreeBSD.org
COMMENT= A web interface for music player daemon
+LICENSE= GPLv2
+
NO_BUILD= YES
USE_PHP= pcre sockets
-PHPMP?= www/phpmp
+PHPMP?= ${WWWDIR}
PLIST_SUB+= PHPMP=${PHPMP}
-post-patch:
-# Replace deprecated HTTP_(GET|POST)_VARS with _(GET|POST)
- @${REINPLACE_CMD} -e 's#HTTP\(_[^_]*\)_VARS#\1#' \
- ${WRKSRC}/playlist.php ${WRKSRC}/main_body.php
-# Stop clobbering config.php & disable volume control by default;
-# incremental volume changes no longer supported by musicpd
- @${MV} ${WRKSRC}/config.php ${WRKSRC}/config.php.sample
- @${REINPLACE_CMD} -e 's/^\(.display_volume[^"]*"\)yes/\1no/' \
- ${WRKSRC}/config.php.sample
- @${RM} ${WRKSRC}/*.bak
-
do-install:
@${MKDIR} ${PREFIX}/${PHPMP}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPMP}
@@ -39,6 +28,7 @@
@${CHMOD} -R 755 ${PREFIX}/${PHPMP}
post-install:
+ @${CAT} ${PKGMESSAGE}
@if [ ! -f ${PREFIX}/${PHPMP}/config.php ]; then \
${CP} -p ${PREFIX}/${PHPMP}/config.php.sample \
${PREFIX}/${PHPMP}/config.php ; \
Index: distinfo
===================================================================
RCS file: /exports/cvsroot-freebsd/ports/www/phpmp/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo 19 Mar 2011 12:36:26 -0000 1.2
+++ distinfo 25 Apr 2011 18:03:50 -0000
@@ -1,2 +1,2 @@
-SHA256 (phpMp-0.11.0.tar.gz) = 7f2a168632839f2c476275a1cff41ea3295b9ebbe85e4e3cc691609258ab0103
-SIZE (phpMp-0.11.0.tar.gz) = 20886
+SHA256 (phpmp-0.12.0.tar.gz) = a4f66925d46441568780b47068e067e007a2721676abe1a2077fbd09dc629fc3
+SIZE (phpmp-0.12.0.tar.gz) = 147
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg-message 25 Apr 2011 18:03:50 -0000
@@ -0,0 +1 @@
+For those updating from <=0.11.0, please see the UPDATING entry from 20110425
Index: pkg-plist
===================================================================
RCS file: /exports/cvsroot-freebsd/ports/www/phpmp/pkg-plist,v
retrieving revision 1.2
diff -u -r1.2 pkg-plist
--- pkg-plist 24 Apr 2011 06:07:10 -0000 1.2
+++ pkg-plist 25 Apr 2011 18:03:50 -0000
@@ -6,27 +6,16 @@
@unexec if cmp -s %D/%%PHPMP%%/config.php.sample %D/%%PHPMP%%/config.php; then rm -f %D/%%PHPMP%%/config.php; fi
%%PHPMP%%/config.php.sample
@exec if [ ! -f %D/%%PHPMP%%/config.php ] ; then cp -p %D/%F %B/config.php; fi
-%%PHPMP%%/find.php
-%%PHPMP%%/find_body.php
+%%PHPMP%%/features.php
%%PHPMP%%/index.php
%%PHPMP%%/info.php
%%PHPMP%%/info2html.php
-%%PHPMP%%/login.php
-%%PHPMP%%/login_body.php
%%PHPMP%%/main.php
-%%PHPMP%%/main_body.php
+%%PHPMP%%/mpd-favicon.ico
%%PHPMP%%/playlist.php
-%%PHPMP%%/playlist_body.php
-%%PHPMP%%/search.php
-%%PHPMP%%/search_body.php
%%PHPMP%%/sort.php
-%%PHPMP%%/stats.php
-%%PHPMP%%/stats_body.php
-%%PHPMP%%/stream.php
-%%PHPMP%%/stream_body.php
%%PHPMP%%/theme.php
%%PHPMP%%/transparent.gif
-%%PHPMP%%/update.php
-%%PHPMP%%/update_body.php
%%PHPMP%%/utils.php
+%%PHPMP%%/xml-parse.php
@dirrmtry %%PHPMP%%
--- phpmp-0.12.0.diff ends here ---
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list