ports/93288: update port www/pmwiki - UnBROKEN

Babak Farrokhi babak at farrokhi.net
Mon Feb 13 14:50:30 UTC 2006


>Number:         93288
>Category:       ports
>Synopsis:       update port www/pmwiki - UnBROKEN
>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:   Mon Feb 13 14:50:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Babak Farrokhi
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD royalway.propagation.net 5.4-STABLE FreeBSD 5.4-STABLE #6: Thu Jun 30 05:11:17 CDT 2005 root at royalway.propagation.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	
clean up Makefile to make it work on read-only ports tree
>How-To-Repeat:
	
>Fix:

	

--- pmwiki.patch begins here ---
diff -ruN pmwiki.orig/Makefile pmwiki/Makefile
--- pmwiki.orig/Makefile	Mon Feb 13 15:32:12 2006
+++ pmwiki/Makefile	Mon Feb 13 18:03:13 2006
@@ -16,22 +16,21 @@
 MAINTAINER=	babak at farrokhi.net
 COMMENT=	A WikiWikiWeb clone using PHP
 
-BROKEN=		Does not build with read-only ports tree
-
 USE_PHP=	mbstring
 PHP4_PORT?=	www/mod_php4
 WANT_PHP_WEB=	yes
 
 WRKSRC=		${WRKDIR}/${DISTNAME}
 NO_BUILD=	yes
-PKGMESSAGE=	${WRKDIR}/pkg-message
 
 PLIST_SUB+=	PMWIKIDIR=${PMWIKIDIR}
+SUB_LIST+=	PMWIKIDIR=${PMWIKIDIR}
+SUB_FILES=	pkg-message
 
 pre-fetch:
 .if !defined(PMWIKIDIR)
 	@${ECHO_MSG} ""
-	@${ECHO_MSG} "Define PMWIKIDIR to override default of 'www/data/pmwiki'."
+	@${ECHO_MSG} "Define PMWIKIDIR to override default of ${PMWIKIDIR}."
 	@${ECHO_MSG} ""
 .endif
 
@@ -39,18 +38,10 @@
 WWWUSER?=	www
 WWWGROUP?=	www
 
-post-configure:
-	@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' -e 's#%%PMWIKIDIR%%#${PMWIKIDIR}#g' pkg-message > ${PKGMESSAGE}
-
 do-install:
 	@${MKDIR} -m 755 ${PREFIX}/${PMWIKIDIR}
 	@${CP} -R ${WRKSRC}/ ${PREFIX}/${PMWIKIDIR}
 	@${CHOWN} ${WWWUSER}:${WWWGROUP} ${PREFIX}/${PMWIKIDIR}
-
-pre-install:
-	cd ${WRKSRC} && ${FIND} -s * -type f | ${SED} -e 's|^|${PMWIKIDIR}/|' > ${PLIST} \
-	&& ${FIND} -d * -type d | ${SED} -e 's|^|@dirrm ${PMWIKIDIR}/|' >> ${PLIST} \
-	&& ${ECHO_MSG} "@unexec rmdir ${PMWIKIDIR} 2>/dev/null || true" >> ${PLIST}
 
 post-install:
 	@${MKDIR} -m 775 ${PREFIX}/${PMWIKIDIR}/wiki.d
diff -ruN pmwiki.orig/files/pkg-message.in pmwiki/files/pkg-message.in
--- /dev/null	Thu Jan  1 03:30:00 1970
+++ pmwiki/files/pkg-message.in	Sun Mar  6 12:06:45 2005
@@ -0,0 +1,10 @@
+**********************************************************************
+
+ Before the first use of PmWiki, copy sample-config.php to config.php
+
+ in %%PREFIX%%/%%PMWIKIDIR%%
+
+ Please visit 'http://{host.domain}/pmwiki/pmwiki.php' in a
+ web-browser and follow the configuration instructions.
+
+**********************************************************************
diff -ruN pmwiki.orig/pkg-message pmwiki/pkg-message
--- pmwiki.orig/pkg-message	Mon Feb 13 15:32:12 2006
+++ pmwiki/pkg-message	Thu Jan  1 03:30:00 1970
@@ -1,10 +0,0 @@
-**********************************************************************
-
- Before the first use of PmWiki, copy sample-config.php to config.php
-
- in %%PREFIX%%/%%PMWIKIDIR%%
-
- Please visit 'http://{host.domain}/pmwiki/pmwiki.php' in a
- web-browser and follow the configuration instructions.
-
-**********************************************************************
--- pmwiki.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list