Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jun 2014 12:39:59 +0000 (UTC)
From:      Stefan Esser <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356110 - head/security/phpdeadlock
Message-ID:  <201406011239.s51Cdx9Y043915@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Sun Jun  1 12:39:59 2014
New Revision: 356110
URL: http://svnweb.freebsd.org/changeset/ports/356110
QAT: https://qat.redports.org/buildarchive/r356110/

Log:
  Add stage support.
  
  Approved by:	antoine (mentor)

Modified:
  head/security/phpdeadlock/Makefile
  head/security/phpdeadlock/pkg-plist

Modified: head/security/phpdeadlock/Makefile
==============================================================================
--- head/security/phpdeadlock/Makefile	Sun Jun  1 12:38:08 2014	(r356109)
+++ head/security/phpdeadlock/Makefile	Sun Jun  1 12:39:59 2014	(r356110)
@@ -11,8 +11,10 @@ DISTNAME=	Deadlock-${PORTVERSION}-Stable
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Web-based user authentication/password protection system
 
-WRKSRC=	${WRKDIR}/Deadlock-1.01
-DLURL?=	${PORTNAME}
+LICENSE=	GPLv2
+
+WRKSRC=		${WRKDIR}/Deadlock-1.01
+DLURL?=		${PORTNAME}
 DLDIR=		www/${DLURL}
 PORTDOCS=	CHANGES.txt COPYING.txt UPGRADE.txt
 
@@ -23,8 +25,8 @@ NO_BUILD=	yes
 
 SUB_FILES=	pkg-message
 SUB_LIST=	DLURL=${DLURL} DLDIR=${DLDIR}
+PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
 
-NO_STAGE=	yes
 post-extract:
 	@cd ${WRKDIR} && ${MV} "Deadlock v1.01" Deadlock-1.01
 
@@ -32,19 +34,8 @@ post-patch:
 	@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} {} \;
 
 do-install:
-	@cd ${WRKSRC}/deadlock && ${COPYTREE_SHARE} . ${WWWDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
-	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
-		${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
-	@${CHMOD} 777 ${WWWDIR}/db_config.php
-	@${ECHO_CMD} '@exec ${CHMOD} 777 \
-		${WWWDIR:S|^${PREFIX}/|%D/|}/db_config.php' >> ${TMPPLIST}
-
-post-install:
-.if !defined(NOPORTDOCS)
-	@${INSTALL} -d ${DOCSDIR}
-	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
-	@${CAT} ${PKGMESSAGE}
+	@cd ${WRKSRC}/deadlock && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
+	@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
+	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/security/phpdeadlock/pkg-plist
==============================================================================
--- head/security/phpdeadlock/pkg-plist	Sun Jun  1 12:38:08 2014	(r356109)
+++ head/security/phpdeadlock/pkg-plist	Sun Jun  1 12:39:59 2014	(r356110)
@@ -1,3 +1,5 @@
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
 %%WWWDIR%%/.htaccess
 %%WWWDIR%%/admin/.htaccess
 %%WWWDIR%%/admin/bulkemail.php
@@ -13,7 +15,9 @@
 %%WWWDIR%%/admin/userlist.php
 %%WWWDIR%%/admin/userrequests.php
 %%WWWDIR%%/admin/validateuser.php
+@mode 777
 %%WWWDIR%%/db_config.php
+@mode
 %%WWWDIR%%/fckeditor/_documentation.html
 %%WWWDIR%%/fckeditor/_whatsnew.html
 %%WWWDIR%%/fckeditor/editor/css/behaviors/disablehandles.htc



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