diff options
author | aaron <aaron@FreeBSD.org> | 2005-12-20 05:24:39 +0800 |
---|---|---|
committer | aaron <aaron@FreeBSD.org> | 2005-12-20 05:24:39 +0800 |
commit | c7ff4e472356d9f72f83276b5ff54fbde920f442 (patch) | |
tree | 838489f429166a54efe1770193e011608fea60d5 /www | |
parent | 91e3034af5c3042408715c435118c13261ffb6dd (diff) | |
download | freebsd-ports-graphics-c7ff4e472356d9f72f83276b5ff54fbde920f442.tar.gz freebsd-ports-graphics-c7ff4e472356d9f72f83276b5ff54fbde920f442.tar.zst freebsd-ports-graphics-c7ff4e472356d9f72f83276b5ff54fbde920f442.zip |
- added OPTIONS
PR: 90101
Submitted by: Babak Farrokhi
Approved by: tobez
Diffstat (limited to 'www')
-rw-r--r-- | www/phpwiki13/Makefile | 45 | ||||
-rw-r--r-- | www/phpwiki13/files/pkg-message.in | 13 | ||||
-rw-r--r-- | www/phpwiki13/pkg-plist | 35 |
3 files changed, 68 insertions, 25 deletions
diff --git a/www/phpwiki13/Makefile b/www/phpwiki13/Makefile index 358ec417549..62520b390b6 100644 --- a/www/phpwiki13/Makefile +++ b/www/phpwiki13/Makefile @@ -7,6 +7,7 @@ PORTNAME= phpwiki PORTVERSION= 1.3.11p1 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= phpwiki @@ -17,24 +18,50 @@ COMMENT= A PHP WikiWikiWeb 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 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 + +PORT_DBDIR?= /var/db/ports +LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} +OPTIONSFILE?= ${PORT_DBDIR}/${LATEST_LINK}/options + +.if exists(${OPTIONSFILE}) +.include "${OPTIONSFILE}" +.endif + +.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 do-install: -${MKDIR} ${PREFIX}/${PHPWIKI} @@ -48,6 +75,10 @@ do-install: .for i in ${DOCFILES} @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i} .endfor + @(cd ${WRKSRC} && ${CP} -R doc/* ${DOCSDIR}/ ) .endif +post-install: + @${CAT} ${PKGMESSAGE} + .include <bsd.port.mk> diff --git a/www/phpwiki13/files/pkg-message.in b/www/phpwiki13/files/pkg-message.in new file mode 100644 index 00000000000..42b684eaba5 --- /dev/null +++ b/www/phpwiki13/files/pkg-message.in @@ -0,0 +1,13 @@ + +=========================================================== + +* 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 --git a/www/phpwiki13/pkg-plist b/www/phpwiki13/pkg-plist index 6a71c265a5e..f7e3bf8ccb5 100644 --- a/www/phpwiki13/pkg-plist +++ b/www/phpwiki13/pkg-plist @@ -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 -@dirrm %%PHPWIKI%%/doc @dirrm %%PHPWIKI%%/config @dirrm %%PHPWIKI%% @dirrm %%DOCSDIR%% |