ports/90101: update port www/phpwiki13 - Add OPTIONS

Babak Farrokhi babak at farrokhi.net
Thu Dec 8 12:50:18 UTC 2005


>Number:         90101
>Category:       ports
>Synopsis:       update port www/phpwiki13 - Add OPTIONS
>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 Dec 08 12:50:03 GMT 2005
>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:
	
- Add OPTIONS to choose database backend
- Move additional docs to DOCSDIR
- Add pkg-message
- Updated pkg-plist to reflect new changes
>How-To-Repeat:
	
>Fix:

	

--- phpwiki13.patch begins here ---
diff -ruN phpwiki13.orig/Makefile phpwiki13/Makefile
--- phpwiki13.orig/Makefile	Thu Dec  8 14:21:39 2005
+++ phpwiki13/Makefile	Thu Dec  8 16:07:33 2005
@@ -1,12 +1,13 @@
 # New ports collection makefile for:	phpwiki
-# Date created:		09.Oct 2003
-# Whom:			dirk.meyer at dinoex.sub.org
+# Date created:		29-NOV-2005
+# Whom:			babak at farrokhi.net
 #
 # $FreeBSD: ports/www/phpwiki13/Makefile,v 1.13 2005/11/30 17:10:25 pav Exp $
 #
 
 PORTNAME=	phpwiki
 PORTVERSION=	1.3.11p1
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	phpwiki
@@ -17,24 +18,46 @@
 CONFLICTS+=	phpwiki-1.2*
 LATEST_LINK=	phpwiki13
 
-.if !defined(WITHOUT_PHP_DEPENDS)
-USE_PHP=	ctype pcre posix session tokenizer xml zlib mysql
-.if defined(WITH_CDB) || defined(WITH_DB4) || defined(WITH_GDBM) || defined(WITH_INIFILE)
-USE_PHP+=	dba
-.endif
-.endif
+USE_PHP=	ctype pcre posix session tokenizer xml zlib
 
 NO_BUILD=	YES
 PHP4_PORT?=	www/mod_php4
 PHPWIKI?=	www/data-dist/phpwiki
 PLIST_SUB+=	PHPWIKI=${PHPWIKI}
+SUB_FILES=	pkg-message
 ROOTFILES=	GoogleSearch.wsdl PhpWiki.wsdl RPC2.php SOAP.php \
 		configurator.php favicon.ico getimg.php gforge.php \
 		index.php passencrypt.php wiki
-ROOTDIRS=	config doc lib locale pgsrc schemas tests themes uploads
+ROOTDIRS=	config lib locale pgsrc schemas tests themes uploads
 DOCFILES=	INSTALL LICENSE README TODO UPGRADING
 
-do-configure:
+OPTIONS=	MYSQL "Use MySQL backend" on \
+		PGSQL "Use PostgreSQL backend" off \
+		DB4   "Use Berkeley DB4 backend" off
+
+.if defined(PHP_VER) && ${PHP_VER} == 5
+		OPTIONS+=       SQLITE "Use SQLite backend" off
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_DB4)
+USE_PHP+=       dba
+.endif
+
+.if !defined(WITHOUT_MYSQL)
+USE_PHP+=	mysql
+.endif
+
+.if defined(WITH_PGSQL)
+USE_PHP+=	pgsql
+.endif
+
+.if defined(WITH_SQLITE)
+USE_PHP+=	sqlite
+.endif
+
+.include "${PORTSDIR}/Mk/bsd.php.mk"
 
 do-install:
 	-${MKDIR} ${PREFIX}/${PHPWIKI}
@@ -48,6 +71,10 @@
 .for i in ${DOCFILES}
 	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
 .endfor
+	@(cd ${WRKSRC} && ${CP} -R doc/* ${DOCSDIR}/ )
 .endif
 
-.include <bsd.port.mk>
+post-install:
+	@${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff -ruN phpwiki13.orig/files/pkg-message.in phpwiki13/files/pkg-message.in
--- phpwiki13.orig/files/pkg-message.in	Thu Jan  1 03:30:00 1970
+++ phpwiki13/files/pkg-message.in	Thu Dec  8 15:46:41 2005
@@ -0,0 +1,12 @@
+
+===========================================================
+
+* If this is your first install, read the installation 
+  instructions to setup your database, located at:
+  %%DOCSDIR%%/INSTALL.*:
+
+* If you are upgrading from an older version of phpwiki, please 
+  read upgrade instructions located at:
+  %%DOCSDIR%%/UPGRADING
+
+===========================================================
diff -ruN phpwiki13.orig/pkg-plist phpwiki13/pkg-plist
--- phpwiki13.orig/pkg-plist	Thu Dec  8 14:21:39 2005
+++ phpwiki13/pkg-plist	Thu Dec  8 15:40:40 2005
@@ -3,6 +3,23 @@
 %%DOCSDIR%%/README
 %%DOCSDIR%%/TODO
 %%DOCSDIR%%/UPGRADING
+%%DOCSDIR%%/CREDITS
+%%DOCSDIR%%/HISTORY
+%%DOCSDIR%%/INSTALL.MacOSX
+%%DOCSDIR%%/INSTALL.flatfile
+%%DOCSDIR%%/INSTALL.mSQL
+%%DOCSDIR%%/INSTALL.mysql
+%%DOCSDIR%%/INSTALL.oci8
+%%DOCSDIR%%/INSTALL.pgsql
+%%DOCSDIR%%/INSTALL.sqlite
+%%DOCSDIR%%/README.coding
+%%DOCSDIR%%/README.foaf
+%%DOCSDIR%%/README.fpdf
+%%DOCSDIR%%/README.phpwiki-auth
+%%DOCSDIR%%/README.phpwiki-cache
+%%DOCSDIR%%/README.security
+%%DOCSDIR%%/THEMES
+%%DOCSDIR%%/phpwiki_architecture.png
 %%PHPWIKI%%/GoogleSearch.wsdl
 %%PHPWIKI%%/PhpWiki.wsdl
 %%PHPWIKI%%/RPC2.php
@@ -14,23 +31,6 @@
 %%PHPWIKI%%/config/make-dbhelper.pl
 %%PHPWIKI%%/config/phpwiki.spec
 %%PHPWIKI%%/configurator.php
-%%PHPWIKI%%/doc/CREDITS
-%%PHPWIKI%%/doc/HISTORY
-%%PHPWIKI%%/doc/INSTALL.MacOSX
-%%PHPWIKI%%/doc/INSTALL.flatfile
-%%PHPWIKI%%/doc/INSTALL.mSQL
-%%PHPWIKI%%/doc/INSTALL.mysql
-%%PHPWIKI%%/doc/INSTALL.oci8
-%%PHPWIKI%%/doc/INSTALL.pgsql
-%%PHPWIKI%%/doc/INSTALL.sqlite
-%%PHPWIKI%%/doc/README.coding
-%%PHPWIKI%%/doc/README.foaf
-%%PHPWIKI%%/doc/README.fpdf
-%%PHPWIKI%%/doc/README.phpwiki-auth
-%%PHPWIKI%%/doc/README.phpwiki-cache
-%%PHPWIKI%%/doc/README.security
-%%PHPWIKI%%/doc/THEMES
-%%PHPWIKI%%/doc/phpwiki_architecture.png
 %%PHPWIKI%%/favicon.ico
 %%PHPWIKI%%/getimg.php
 %%PHPWIKI%%/gforge.php
@@ -1616,7 +1616,6 @@
 @dirrm %%PHPWIKI%%/lib/DbSession
 @dirrm %%PHPWIKI%%/lib/ASCIIMathPHP
 @dirrm %%PHPWIKI%%/lib
- at dirrm %%PHPWIKI%%/doc
 @dirrm %%PHPWIKI%%/config
 @dirrm %%PHPWIKI%%
 @dirrm %%DOCSDIR%%
--- phpwiki13.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list