ports/189932: [patch] Add staging support to www/asterisk-stat

Joseph Benden joe at thrallingpenguin.com
Sun May 18 23:30:00 UTC 2014


>Number:         189932
>Category:       ports
>Synopsis:       [patch] Add staging support to www/asterisk-stat
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 18 23:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Benden
>Release:        FreeBSD 11
>Organization:
>Environment:
FreeBSD lucy 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r264887: Thu Apr 24 12:43:46 MST 2014     root at lucy:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Adds staging support and portlint LIB_DEPENDS cleanup for www/asterisk-stat.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/asterisk-stat/Makefile b/www/asterisk-stat/Makefile
index fac50c7..7be700a 100644
--- a/www/asterisk-stat/Makefile
+++ b/www/asterisk-stat/Makefile
@@ -11,7 +11,7 @@ DISTNAME=	${PORTNAME}-v${PORTVERSION:S/./_/g}
 MAINTAINER=	jfkimura at yahoo.co.jp
 COMMENT=	ASTERISK call detail records analyzer
 
-LIB_DEPENDS=	gd:${PORTSDIR}/graphics/gd
+LIB_DEPENDS=	libgd.so:${PORTSDIR}/graphics/gd
 
 NO_BUILD=	yes
 USE_PHP=	session gd pcre
@@ -25,7 +25,6 @@ SUB_LIST+=	ASTERISKDIR=${ASTERISKDIR}
 OPTIONS_DEFINE=	PGSQL
 PGSQL_DESC=	Use PostgreSQL instead of MySQL
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MGSQL}
@@ -51,11 +50,11 @@ post-patch:
 		${WRKSRC}/export_pdf.php.orig
 
 do-install:
-	@${MKDIR} ${ASTERISKDIR}
+	@${MKDIR} ${STAGEDIR}${ASTERISKDIR}
 	@${MV} ${WRKSRC}/lib/defines.php ${WRKSRC}/lib/defines.php-dist
-	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${ASTERISKDIR})
-	${MKDIR} ${PREFIX}/etc/asterisk
-	${INSTALL_DATA} ${FILESDIR}/cdr_${ASTERISKSTATDB}.tbl ${PREFIX}/etc/asterisk
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${ASTERISKDIR}
+	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${ASTERISKDIR})
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/asterisk
+	${INSTALL_DATA} ${FILESDIR}/cdr_${ASTERISKSTATDB}.tbl ${STAGEDIR}${PREFIX}/etc/asterisk
+	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${ASTERISKDIR}
 
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list