Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2015 11:24:19 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r389906 - in head/mail/squirrelmail-tmda-plugin: . files
Message-ID:  <201506171124.t5HBOJcw031572@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Wed Jun 17 11:24:19 2015
New Revision: 389906
URL: https://svnweb.freebsd.org/changeset/ports/389906

Log:
  Make build as non root, and cleanup.
  
  Sponsored by:	Absolight

Added:
  head/mail/squirrelmail-tmda-plugin/files/
  head/mail/squirrelmail-tmda-plugin/files/pkg-message.in   (contents, props changed)
Modified:
  head/mail/squirrelmail-tmda-plugin/Makefile
  head/mail/squirrelmail-tmda-plugin/pkg-plist

Modified: head/mail/squirrelmail-tmda-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-tmda-plugin/Makefile	Wed Jun 17 11:16:53 2015	(r389905)
+++ head/mail/squirrelmail-tmda-plugin/Makefile	Wed Jun 17 11:24:19 2015	(r389906)
@@ -3,7 +3,7 @@
 
 PORTNAME=	squirrelmail-tmda-plugin
 PORTVERSION=	1.0.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail
 MASTER_SITES=	http://www.squirrelmail.org/plugins/
 DISTNAME=	tmdatools 1.0.2 1.4.2 \(stable\)
@@ -17,6 +17,7 @@ RUN_DEPENDS=	tmda-filter:${PORTSDIR}/mai
 
 USES=		perl5
 NO_BUILD=	yes
+NO_ARCH=	yes
 
 SQUIRREL_PLUGIN_NAME=	tmdatools
 WRKSRC=		${WRKDIR}/tmdatools
@@ -30,6 +31,8 @@ PLIST_SUB+=	SQUIRRELDIR=squirrelmail
 .endif
 TMDATOOLDIR?=	${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
 PLIST_SUB+=	TMDATOOLDIR=plugins/${SQUIRREL_PLUGIN_NAME}
+SUB_LIST=	TMDATOOLDIR=${TMDATOOLDIR}
+SUB_FILES=	pkg-message
 
 pre-everything::
 	@${ECHO} "The plugin expects SquirrelMail install in ${SQUIRRELDIR}"
@@ -43,14 +46,7 @@ post-patch:
 	@${RM} ${WRKSRC}/tmdatools_config.php.sample.bak
 
 do-install:
-	@${MKDIR} ${STAGEDIR}${TMDATOOLDIR}
-	@${CP} -Rp ${WRKSRC}/ ${STAGEDIR}${TMDATOOLDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${TMDATOOLDIR}
-	@${RM} -f ${WRKSRC}/tmdatools_config.php.sample.bak
-
-post-install:
-	@${ECHO} ""
-	@${ECHO} "Refer to ${TMDATOOLDIR}/INSTALL and README for final installation/configuration instructions."
-	@${ECHO} ""
+	${MKDIR} ${STAGEDIR}${TMDATOOLDIR}
+	${CP} -Rp ${WRKSRC}/ ${STAGEDIR}${TMDATOOLDIR}
 
 .include <bsd.port.mk>

Added: head/mail/squirrelmail-tmda-plugin/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/squirrelmail-tmda-plugin/files/pkg-message.in	Wed Jun 17 11:24:19 2015	(r389906)
@@ -0,0 +1,2 @@
+Refer to %%TMDATOOLDIR%%/INSTALL and README for
+final installation/configuration instructions.

Modified: head/mail/squirrelmail-tmda-plugin/pkg-plist
==============================================================================
--- head/mail/squirrelmail-tmda-plugin/pkg-plist	Wed Jun 17 11:16:53 2015	(r389905)
+++ head/mail/squirrelmail-tmda-plugin/pkg-plist	Wed Jun 17 11:24:19 2015	(r389906)
@@ -14,5 +14,4 @@
 %%SQUIRRELDIR%%/%%TMDATOOLDIR%%/tools.php
 %%SQUIRRELDIR%%/%%TMDATOOLDIR%%/version
 %%SQUIRRELDIR%%/%%TMDATOOLDIR%%/viewer.php
-@dirrm %%SQUIRRELDIR%%/%%TMDATOOLDIR%%
 @exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin tmdatools; fi



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