diff options
author | Philippe Audeoud <jadawin@FreeBSD.org> | 2012-12-17 16:30:49 +0000 |
---|---|---|
committer | Philippe Audeoud <jadawin@FreeBSD.org> | 2012-12-17 16:30:49 +0000 |
commit | 51fd56421d7b86212377a05af6ec5e01fc3ee36b (patch) | |
tree | 2081e6a791c10d6072b43f6eef0073077629a1e3 /net-p2p | |
parent | 7b44243d6eef0c6e3f0ba04401a0a0a36a1e5dac (diff) |
- Update to 0.2.81
- Convert to new options framework
- Patch php files because of php 5.4 issues not corrected upstream
Notes
Notes:
svn path=/head/; revision=309110
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/rtgui/Makefile | 26 | ||||
-rw-r--r-- | net-p2p/rtgui/distinfo | 4 |
2 files changed, 20 insertions, 10 deletions
diff --git a/net-p2p/rtgui/Makefile b/net-p2p/rtgui/Makefile index c585fe7b0aa9..b13dead68a7c 100644 --- a/net-p2p/rtgui/Makefile +++ b/net-p2p/rtgui/Makefile @@ -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> diff --git a/net-p2p/rtgui/distinfo b/net-p2p/rtgui/distinfo index 5aa16904a73f..6c808e3a7291 100644 --- a/net-p2p/rtgui/distinfo +++ b/net-p2p/rtgui/distinfo @@ -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 |