Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2013 07:09:38 GMT
From:      Jason Helfman <jgh@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/178785: mail/dracmail: adoption of optionsNG, and standardize installation in favor of CP
Message-ID:  <201305200709.r4K79cnA024629@freefall.freebsd.org>
Resent-Message-ID: <201305200710.r4K7A0QV024684@freefall.freebsd.org>

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

>Number:         178785
>Category:       ports
>Synopsis:       mail/dracmail: adoption of optionsNG, and standardize installation in favor of CP
>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:   Mon May 20 07:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Jason Helfman
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r250391: Wed May 8 23:39:18 UTC 2013 peter@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64


	
>Description:
Trim historical header
Trim COMMENT
Use new options framework (use default naming (ie. pgsql) )
Use COPYTREE_SHARE in favor of non-standard CP installation
Drop post-install target
>How-To-Repeat:
	
>Fix:
Index: mail/dracmail/Makefile
===================================================================
--- mail/dracmail/Makefile	(revision 318575)
+++ mail/dracmail/Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	dracmail
-# Date created:				14 January 2011
-# Whom:					jamrich.majo@gmail.com
-#
+# Created by: jamrich.majo@gmail.com
 # $FreeBSD$
-#
 
 PORTNAME=	dracmail
 PORTVERSION=	0.1.2
@@ -12,42 +8,38 @@
 DISTNAME=	dracMail-${PORTVERSION}_release
 
 MAINTAINER=	fgheorghe@dracmail.net
-COMMENT=	DracMail is a webmail interface built using PHP
+COMMENT=	Webmail interface built using PHP
 
 RUN_DEPENDS+=	php:${PORTSDIR}/lang/php5
 
 USE_PHP+=	mysql imap dom tidy iconv mbstring
 USE_MYSQL=	yes
 NO_BUILD=	yes
-WWWOWN=		www
-WWWGRP=		${WWWOWN}
+SHAREOWN=	${WWWOWN}
+SHAREGRP=	${WWWGRP}
 
 PKGMESSAGE=	${WRKDIR}/${PORTNAME}/pkg-message
-SUB_FILES=      pkg-message
+SUB_FILES=	pkg-message
 PLIST_DIRSTRY=	%%WWWDIR%%
 
-OPTIONS=	POSTGRE "Use PostgreSQL Database" off \
-		APACHE "Use Apache webserver" on \
-		LIGHTTPD "Use Lighttpd webserver" off
+OPTIONS_DEFINE=	PGSQL APACHE LIGHTTPD
+OPTIONS_DEFAULT=	APACHE
 
 .include <bsd.port.options.mk>
 
-.if defined(WITH_POSTGRE)
+.if ${PORT_OPTIONS:MPGSQL}
 USE_PHP+=	pgsql
 .endif
-.if defined(WITH_APACHE)
+.if ${PORT_OPTIONS:MAPACHE}
 USE_APACHE_RUN=	22
 .endif
-.if defined(WITH_LIGHTTPD)
+.if ${PORT_OPTIONS:MLIGHTTPD}
 RUN_DEPENDS+=	lighttpd:${PORTSDIR}/www/lighttpd
 .endif
 
 do-install:
 	@${MKDIR} ${WWWDIR}
-	@${CP} -r ${WRKDIR}/* ${WWWDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
-
-post-install:
+	@ (cd @{WRKDIR} && ${COPYTREE_SHARE} \* ${WWWDIR} )
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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