Date: Wed, 9 Jan 2008 19:59:37 -0500 (EST) From: Greg Larkin <glarkin@sourcehosting.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: glarkin@sourcehosting.net Subject: ports/119511: [maintainer update] www/webcalendar: Makefile cleanups Message-ID: <200801100059.m0A0xb2Y009639@ports.entropy.prv> Resent-Message-ID: <200801100100.m0A101Pp045174@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 119511 >Category: ports >Synopsis: [maintainer update] www/webcalendar: Makefile cleanups >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Jan 10 01:00:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Greg Larkin >Release: FreeBSD 6.1-SECURITY i386 >Organization: SourceHosting.net, LLC >Environment: System: FreeBSD ports.entropy.prv 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Thu Apr 26 14:24:01 UTC 2007 >Description: Incorporated changes that Beech R. suggested for the webcalendar-devel port before it was committed. Removed file(s): - pkg-plist Port maintainer (glarkin@sourcehosting.net) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- WebCalendar-1.0.5_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/www/webcalendar.orig/Makefile /usr/ports/www/webcalendar/Makefile --- /usr/ports/www/webcalendar.orig/Makefile Tue Mar 20 14:28:49 2007 +++ /usr/ports/www/webcalendar/Makefile Wed Jan 9 19:57:02 2008 @@ -7,9 +7,10 @@ PORTNAME= WebCalendar PORTVERSION= 1.0.5 +PORTREVISION= 1 CATEGORIES= www -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= webcalendar +MASTER_SITES= SF +MASTER_SITE_SUBDIR= ${PORTNAME:L} DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= glarkin@sourcehosting.net @@ -18,23 +19,24 @@ USE_PHP= pcre session WANT_PHP_WEB= yes NO_BUILD= yes +CONFLICTS= WebCalendar-devel-[0-9]* WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -WCURL?= ${PORTNAME:L} +WCURL?= ${MASTER_SITE_SUBDIR} WCDIR?= www/${WCURL} PLIST= ${WRKDIR}/pkg-plist SUB_FILES= pkg-message SUB_LIST= WCURL=${WCURL} WCDIR=${WCDIR} -DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME} -DOCS= docs/README \ - docs/WebCalendar-Database.html \ - docs/WebCalendar-DeveloperGuide.html \ - docs/WebCalendar-Styling.html \ - docs/WebCalendar-SysAdmin.html \ - docs/newwin.gif +DOCSDIR= ${PREFIX}/share/doc/${MASTER_SITE_SUBDIR} +PORTDOCS= README \ + WebCalendar-Database.html \ + WebCalendar-DeveloperGuide.html \ + WebCalendar-Styling.html \ + WebCalendar-SysAdmin.html \ + newwin.gif OPTIONS= MYSQL "Use MySQL database backend (default)" On \ PGSQL "Use PostgreSQL database backend" Off \ @@ -92,22 +94,20 @@ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm ${WCDIR}/|' >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${WCDIR} >> ${PLIST} - @${CAT} pkg-plist >> ${PLIST} @${ECHO_CMD} @dirrmtry www/data-dist >> ${PLIST} @${ECHO_CMD} @dirrmtry www/data >> ${PLIST} do-install: - @${MKDIR} ${PREFIX}/${WCDIR} - ${CP} -R ${WRKSRC}/* ${PREFIX}/${WCDIR} - ${CHOWN} -R www:www ${PREFIX}/${WCDIR} - ${FIND} ${PREFIX}/${WCDIR} -type f | ${XARGS} ${CHMOD} 644 + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${WCDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WCDIR} + @${FIND} ${PREFIX}/${WCDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 + @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ + ${WCDIR:S|^|%D/|}' >> ${TMPPLIST} post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for i in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor + @cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} diff -ruN --exclude=CVS /usr/ports/www/webcalendar.orig/pkg-plist /usr/ports/www/webcalendar/pkg-plist --- /usr/ports/www/webcalendar.orig/pkg-plist Wed Jun 22 04:15:02 2005 +++ /usr/ports/www/webcalendar/pkg-plist Wed Dec 31 19:00:00 1969 @@ -1,8 +0,0 @@ -@comment The full PLIST will be generated in pre-install phase -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/WebCalendar-Database.html -%%PORTDOCS%%%%DOCSDIR%%/WebCalendar-DeveloperGuide.html -%%PORTDOCS%%%%DOCSDIR%%/WebCalendar-Styling.html -%%PORTDOCS%%%%DOCSDIR%%/WebCalendar-SysAdmin.html -%%PORTDOCS%%%%DOCSDIR%%/newwin.gif -%%PORTDOCS%%@dirrm %%DOCSDIR%% --- WebCalendar-1.0.5_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?200801100059.m0A0xb2Y009639>