[Midnightbsd-cvs] mports: mports/www: add mediawiki.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Oct 15 17:45:01 EDT 2008
Log Message:
-----------
add mediawiki. (we need this at work)
Modified Files:
--------------
mports/www:
Makefile (r1.85 -> r1.86)
Added Files:
-----------
mports/www/mediawiki:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-message (r1.1)
mports/www/mediawiki/files:
patch-index.php (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/www/Makefile,v
retrieving revision 1.85
retrieving revision 1.86
diff -L www/Makefile -L www/Makefile -u -r1.85 -r1.86
--- www/Makefile
+++ www/Makefile
@@ -49,6 +49,7 @@
SUBDIR += linuxpluginwrapper
SUBDIR += lynx
SUBDIR += man2web
+ SUBDIR += mediawiki
SUBDIR += midori
SUBDIR += mod_perl2
SUBDIR += moinmoin
--- /dev/null
+++ www/mediawiki/pkg-message
@@ -0,0 +1,9 @@
+Remember to check
+
+%%MEDIAWIKIDIR%%/INSTALL
+
+and
+
+%%MEDIAWIKIDIR%%/UPGRADE
+
+for details
--- /dev/null
+++ www/mediawiki/pkg-descr
@@ -0,0 +1,6 @@
+MediaWiki is the collaborative editing software that runs Wikipedia,
+the free encyclopedia, and other projects.
+It's designed to handle a large number of users and pages without imposing
+too rigid a structure or workflow.
+
+WWW: http://www.mediawiki.org/
--- /dev/null
+++ www/mediawiki/Makefile
@@ -0,0 +1,72 @@
+# New ports collection makefile for: www/mediawiki
+# Date created: February 1st 2005
+# Whom: Gerrit Beine <tux at pinguru.net>
+#
+# $MidnightBSD: mports/www/mediawiki/Makefile,v 1.1 2008/10/15 21:44:58 laffer1 Exp $
+# $FreeBSD: ports/www/mediawiki/Makefile,v 1.48 2008/10/05 11:24:08 miwi Exp $
+#
+
+PORTNAME= mediawiki
+PORTVERSION= 1.13.2
+CATEGORIES= www
+MASTER_SITES= http://download.wikimedia.org/mediawiki/1.13/
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= The wiki engine used by Wikipedia
+LICENSE= gpl2
+
+USE_PHP= iconv mbstring pcre session xml zlib readline dom
+WANT_PHP_WEB= yes
+MEDIAWIKIDIR?= www/mediawiki
+
+OPTIONS= PGSQL "Use PostgreSQL (instead of MySQL)" off \
+ LDAP "Use LDAP authentication" off \
+ TEXVC "Use built-in TeX rendering" off \
+ IMAGICK "Use ImageMagick" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PGSQL)
+USE_PHP+= pgsql
+.else
+IGNORE_WITH_MYSQL= 323
+USE_MYSQL= yes
+USE_PHP+= mysql
+.endif
+
+.if defined(WITH_LDAP)
+USE_PHP+= ldap
+.endif
+
+.if defined(WITH_TEXVC)
+RUN_DEPENDS+= latex:${PORTSDIR}/print/latex
+BUILD_DEPENDS+= ocaml:${PORTSDIR}/lang/ocaml
+
+USE_GMAKE=yes
+WITH_IMAGICK=yes
+.endif
+
+.if defined(WITH_IMAGICK)
+RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/graphics/pecl-imagick
+.endif
+
+RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/eaccelerator.so:${PORTSDIR}/www/eaccelerator
+
+do-build:
+.if defined(WITH_TEXVC)
+ @(cd ${WRKSRC}/math && ${GMAKE})
+.endif
+
+do-install:
+ @${MKDIR} ${PREFIX}/${MEDIAWIKIDIR}
+ ${CP} -r ${WRKSRC}/ ${PREFIX}/${MEDIAWIKIDIR}
+ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${MEDIAWIKIDIR}
+
+post-install:
+ @${FIND} ${WRKSRC}/${file} -not -type d \
+ | ${SED} -ne 's,^${WRKSRC},${MEDIAWIKIDIR},p' >> ${TMPPLIST}
+ @${FIND} -d ${WRKSRC}/${file} -type d \
+ | ${SED} -ne 's,^${WRKSRC}, at dirrm ${MEDIAWIKIDIR},p' >> ${TMPPLIST}
+ @${SED} -e 's|%%MEDIAWIKIDIR%%|${PREFIX}/${MEDIAWIKIDIR}|' ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ www/mediawiki/distinfo
@@ -0,0 +1,3 @@
+MD5 (mediawiki-1.13.2.tar.gz) = e10f791ba9ecd02dd751a5676cc84405
+SHA256 (mediawiki-1.13.2.tar.gz) = 8c6db8a15f538fe0d8f67f2bcc711929d38f87f99191474733cc218d91fb3792
+SIZE (mediawiki-1.13.2.tar.gz) = 9050636
--- /dev/null
+++ www/mediawiki/files/patch-index.php
@@ -0,0 +1,11 @@
+--- config/index.php.orig Sat Oct 14 02:06:36 2006
++++ config/index.php Sun Dec 3 16:18:18 2006
+@@ -434,7 +434,7 @@
+ $diff3locations = array( "/usr/bin", "/usr/local/bin", "/opt/csw/bin", "/usr/gnu/bin", "/usr/sfw/bin" ) + explode( $sep, getenv( "PATH" ) );
+ $diff3names = array( "gdiff3", "diff3", "diff3.exe" );
+
+-$diff3versioninfo = array( '$1 --version 2>&1', 'diff3 (GNU diffutils)' );
++$diff3versioninfo = array('$1 --version 2>&1', 'diff3 - GNU diffutils');
+ foreach ($diff3locations as $loc) {
+ $exe = locate_executable($loc, $diff3names, $diff3versioninfo);
+ if ($exe !== false) {
More information about the Midnightbsd-cvs
mailing list