- Update to 0.2.81

- Convert to new options framework
- Patch php files because of php 5.4 issues not corrected upstream
This commit is contained in:
Philippe Audeoud 2012-12-17 16:30:49 +00:00
parent 7b44243d6e
commit 51fd56421d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309110
2 changed files with 20 additions and 10 deletions

View File

@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= rtgui
PORTVERSION= 0.2.7
PORTREVISION= 3
PORTVERSION= 0.2.81
CATEGORIES= net-p2p www
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
EXTRACT_SUFX= .tgz
@ -10,17 +9,22 @@ EXTRACT_SUFX= .tgz
MAINTAINER= jadawin@FreeBSD.org
COMMENT= A web based front end for rTorrent
OPTIONS= APACHE "Use Apache for web interface" On \
LIGHTTPD "Use LightHTTPD for web interface" Off
OPTIONS_DEFINE= APACHE LIGHTTPD
OPTIONS_RADIO= HTTP
OPTIONS_RADIO_HTTP= APACHE LIGHTTPD
OPTIONS_DEFAULTS= APACHE
BUILD_DEPENDS+= xmlrpc-c-config:${PORTSDIR}/net/xmlrpc-c
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if !defined(WITHOUT_APACHE)
.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN= 22+
BUILD_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/mod_scgi.so:${PORTSDIR}/www/mod_scgi
.elif defined(WITH_LIGHTTPD)
.endif
.if ${PORT_OPTIONS:MLIGHTTPD}
RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd
.endif
@ -35,12 +39,18 @@ SUB_FILES= pkg-message
SUB_LIST= WWWDIR=${WWWDIR} \
PORTNAME=${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's/import_request_variables("gp","r_")/extract(\$_REQUEST, EXTR_PREFIX_ALL|EXTR_REFS, "r")/' ${WRKSRC}/*.php
@${FIND} ${WRKSRC} -name "*.bak" -delete
do-install:
${MKDIR} ${WWWDIR}
${RM} ${WRKSRC}/functions.php~
${RM} ${WRKSRC}/index.php~
${CP} -r ${WRKSRC}/* ${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (rtgui-0.2.7.tgz) = 8548f0aaca5d275a8c698a7ce9e53a553e7034b95e034f3f07f16154de27281b
SIZE (rtgui-0.2.7.tgz) = 49272
SHA256 (rtgui-0.2.81.tgz) = 75890ed99ac39afa473063d85acfc9f29219a4d6a54e6e1e1d0d0dd4942be7da
SIZE (rtgui-0.2.81.tgz) = 57152