Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2012 09:32:52 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305960 - head/mail/squirrelmail
Message-ID:  <201210160932.q9G9WqNE005621@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Tue Oct 16 09:32:51 2012
New Revision: 305960
URL: http://svn.freebsd.org/changeset/ports/305960

Log:
  Rather than using cp -R and warning about umask values, use cpio.
  As a result, this picks up an .htaccess in DOCSDIR that we were missing
  before.
  Also, prevent a patch remnant from getting installed.
  PORTREVISION bumped for plist change.
  
  Feature safe:	yes

Modified:
  head/mail/squirrelmail/Makefile

Modified: head/mail/squirrelmail/Makefile
==============================================================================
--- head/mail/squirrelmail/Makefile	Tue Oct 16 09:28:20 2012	(r305959)
+++ head/mail/squirrelmail/Makefile	Tue Oct 16 09:32:51 2012	(r305960)
@@ -7,7 +7,7 @@
 
 PORTNAME=	squirrelmail
 PORTVERSION=	1.4.22
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail www
 MASTER_SITES=	SF/${PORTNAME}/stable/${PORTVERSION}
 DISTNAME=	${PORTNAME}-webmail-${PORTVERSION}
@@ -40,7 +40,7 @@ PLIST_SUB=	PORTVERSION=${PORTVERSION} \
 SUB_FILES=	pkg-message pkg-install pkg-deinstall
 SUB_LIST=	SQUIRRELDIR=${SQUIRRELDIR} SMUSER=${SMUSER} SMGROUP=${SMGROUP}
 
-PORTDOCS=	*
+PORTDOCS=	* .htaccess
 
 CONFLICTS=	squirreloutlook-[0-9]*
 
@@ -82,7 +82,7 @@ post-patch:
 # Rearrange the documentation
 do-build:
 	@${MV} ${WRKSRC}/themes/README.themes ${WRKSRC}/doc/
-	@cd ${WRKSRC} ; for f in `find plugins -name "README*" -or \
+	@cd ${WRKSRC} ; for f in `${FIND} plugins -name "README*" -or \
 		-name INSTALL -or -name CHANGES -or -name HISTORY`; \
 		do \
 		${MKDIR} doc/`dirname $$f` ; \
@@ -93,26 +93,23 @@ do-build:
 	${MV} plugins/squirrelspell/doc/* doc/plugins/squirrelspell ; \
 	${RM} -f doc/plugins/squirrelspell/index.php ; \
 	${RM} -rf plugins/squirrelspell/doc
+	@${FIND} ${WRKSRC} -name '*.orig' -delete
 	@${ECHO} "left_refresh=300" >> ${WRKSRC}/data/default_pref
 	@${MV} ${WRKSRC}/config/config_local.php ${WRKSRC}/config/config_local.php.sample
 
-pre-install:
-	@${ECHO} "Your umask should be lax while installing this. Like, 022 or something."
-	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-
 do-install:
 	${MKDIR} ${PREFIX}/etc/periodic/daily
 	${INSTALL_SCRIPT} ${FILESDIR}/111.clean-squirrelmail ${PREFIX}/etc/periodic/daily
 	${MKDIR} ${SQUIRRELDIR}
-	@${CP} -pv ${WRKSRC}/index.php ${SQUIRRELDIR}
-	@${CP} -pv ${WRKSRC}/configure ${SQUIRRELDIR}
+	${INSTALL_DATA} ${WRKSRC}/index.php ${SQUIRRELDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/configure ${SQUIRRELDIR}
 .for DIR in class config data functions help images include locale plugins po src themes
-	@${CP} -rpv ${WRKSRC}/${DIR} ${SQUIRRELDIR}
+	cd ${WRKSRC} && ${FIND} ${DIR} | ${CPIO} -pdmu --quiet ${SQUIRRELDIR}
 .endfor
 	${CHOWN} -R ${SMUSER}:${SMGROUP} ${SQUIRRELDIR}/data
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
-	@${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR}
+	cd ${WRKSRC}/doc && ${FIND} . | ${CPIO} -pdmu --quiet ${DOCSDIR}
 .endif
 
 post-install:



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