Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2014 19:00:52 +0600 (BDT)
From:      Muhammad Moinur Rahman <5u623l20@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        wen@FreeBSD.org
Subject:   ports/190407: [PATCH] www/mahara: update to 1.9.1, Add STAGE support
Message-ID:  <201405301300.s4UD0qCZ078723@bofh.1asiacom.net>
Resent-Message-ID: <201405301310.s4UDA0hw041623@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190407
>Category:       ports
>Synopsis:       [PATCH] www/mahara: update to 1.9.1, Add STAGE support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 30 13:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Muhammad Moinur Rahman
>Release:        FreeBSD 11.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD bofh.1asiacom.net 11.0-CURRENT FreeBSD 11.0-CURRENT #2 r265972: Wed May 14 02:05:04 BDT
>Description:
- Update to 1.9.1
- Add STAGE support

For Committer's reference:
http://pdr.s.ubze.ro/bulk/latest-per-pkg/mahara/1.9.1/

Port maintainer (wen@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 1.02 (mode: update, diff: ports)
>How-To-Repeat:
>Fix:

--- mahara-1.9.1.patch begins here ---
diff -ruN /usr/ports//www/mahara/Makefile ./Makefile
--- /usr/ports//www/mahara/Makefile	2014-01-22 23:00:46.000000000 +0600
+++ ./Makefile	2014-05-30 19:00:08.451385748 +0600
@@ -2,29 +2,22 @@
 # $FreeBSD: head/www/mahara/Makefile 340722 2014-01-22 17:00:46Z mat $
 
 PORTNAME=	mahara
-PORTVERSION=	1.1.8
+PORTVERSION=	1.9.1
 CATEGORIES=	www
-MASTER_SITES=	http://launchpad.net/${PORTNAME}/1.1/${PORTVERSION}/+download/
+MASTER_SITES=	http://launchpad.net/${PORTNAME}/1.9/${PORTVERSION}/+download/
 
 MAINTAINER=	wen@FreeBSD.org
 COMMENT=	An open source ePortfolio system
 
-USE_BZIP2=	yes
+LICENSE=	GPLv3
+
+USES=tar:bzip2
 USE_PHP=	session json curl xml xmlrpc openssl simplexml
 
 OPTIONS_DEFINE=	MYSQL PGSQL
 OPTIONS_DEFAULT=	MYSQL
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMYSQL}
-USE_PHP+=	mysql
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USE_PHP+=	pgsql
-.endif
+MYSQL_USE=	PHP=mysql
+PGSQL_USE=	PHP=pgsql
 
 NO_BUILD=	yes
 PLIST=		${WRKDIR}/plist
@@ -39,21 +32,18 @@
 pre-install:
 	@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MAHARADIR}?g" >${PLIST}
 	@${FIND} -s -d ${WRKSRC} -type d  | ${SED} "s?${WRKSRC}?@dirrm ${MAHARADIR}?g" >> ${PLIST}
-	@${ECHO} @dirrm ${MAHARADATADIR} >> ${PLIST}
+	@${ECHO} @dirrmtry ${MAHARADATADIR} >> ${PLIST}
 
 do-install:
-	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
-	@${INSTALL} -d ${PREFIX}/${MAHARADATADIR}
-
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
-	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
-	@${CHMOD} -R 755 ${WWWDIR}
-	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >> ${TMPPLIST}
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
+	@${INSTALL} -d ${STAGEDIR}${PREFIX}/${MAHARADATADIR}
 
-	@${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR}
-	@${ECHO_CMD} '@exec ${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR}' >> ${TMPPLIST}
+	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
+	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' >> ${TMPPLIST}
+	@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
+	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}' >> ${TMPPLIST}
 
-post-install:
-	@${CAT} ${PKGMESSAGE}
+	@${CHMOD} -R a+w ${STAGEDIR}${PREFIX}/${MAHARADATADIR}
+	@${ECHO_CMD} '@exec ${CHMOD} -R a+w ${STAGEDIR}${PREFIX}/${MAHARADATADIR}' >> ${TMPPLIST}
 
 .include <bsd.port.mk>
diff -ruN /usr/ports//www/mahara/distinfo ./distinfo
--- /usr/ports//www/mahara/distinfo	2014-01-22 21:30:13.000000000 +0600
+++ ./distinfo	2014-05-29 22:37:38.894441459 +0600
@@ -1,2 +1,2 @@
-SHA256 (mahara-1.1.8.tar.bz2) = a3314472449e8c79468dfd7bf1fa3bf6f251b5f335ec268755eb56fc2a62da87
-SIZE (mahara-1.1.8.tar.bz2) = 2180468
+SHA256 (mahara-1.9.1.tar.bz2) = a282bcded2df88efc87a2e5a3bd377659ca15688339b4ec58aab8dbb3041c542
+SIZE (mahara-1.9.1.tar.bz2) = 7022289
--- mahara-1.9.1.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405301300.s4UD0qCZ078723>