Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2008 12:17:02 GMT
From:      Gerrit Beine <gerrit.beine@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/121936: Repocopy port: www/mediawiki -> www/mediawiki111
Message-ID:  <200803211217.m2LCH2gN012744@www.freebsd.org>
Resent-Message-ID: <200803211220.m2LCK30E028971@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121936
>Category:       ports
>Synopsis:       Repocopy port: www/mediawiki -> www/mediawiki111
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 21 12:20:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Gerrit Beine
>Release:        FreeBSD 7.0-RELEASE
>Organization:
Beine Computer
>Environment:
FreeBSD tb.vmware.beine-computer.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Repocopy www/mediawiki to www/mediawiki111 for preparing upgrade to MediaWiki 1.12.0
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mediawiki111
#	mediawiki111/files
#	mediawiki111/files/patch-index.php
#	mediawiki111/Makefile
#	mediawiki111/distinfo
#	mediawiki111/pkg-descr
#	mediawiki111/pkg-message
#
echo c - mediawiki111
mkdir -p mediawiki111 > /dev/null 2>&1
echo c - mediawiki111/files
mkdir -p mediawiki111/files > /dev/null 2>&1
echo x - mediawiki111/files/patch-index.php
sed 's/^X//' >mediawiki111/files/patch-index.php << 'END-of-mediawiki111/files/patch-index.php'
X--- config/index.php.orig	Sat Oct 14 02:06:36 2006
X+++ config/index.php	Sun Dec  3 16:18:18 2006
X@@ -434,7 +434,7 @@
X $diff3locations = array( "/usr/bin", "/usr/local/bin", "/opt/csw/bin", "/usr/gnu/bin", "/usr/sfw/bin" ) + explode( $sep, getenv( "PATH" ) );
X $diff3names = array( "gdiff3", "diff3", "diff3.exe" );
X 
X-$diff3versioninfo = array( '$1 --version 2>&1', 'diff3 (GNU diffutils)' );
X+$diff3versioninfo = array('$1 --version 2>&1', 'diff3 - GNU diffutils');
X foreach ($diff3locations as $loc) {
X 	$exe = locate_executable($loc, $diff3names, $diff3versioninfo);
X 	if ($exe !== false) {
END-of-mediawiki111/files/patch-index.php
echo x - mediawiki111/Makefile
sed 's/^X//' >mediawiki111/Makefile << 'END-of-mediawiki111/Makefile'
X# New ports collection makefile for:	www/mediawiki
X# Date created:				February 1st 2005
X# Whom:	      				Gerrit Beine <tux@pinguru.net>
X#
X# $FreeBSD: ports/www/mediawiki/Makefile,v 1.42 2008/03/10 13:16:29 rafan Exp $
X#
X
XPORTNAME=	mediawiki
XPORTVERSION=	1.11.2
XCATEGORIES=	www
XMASTER_SITES=	http://download.wikimedia.org/mediawiki/1.11/
X
XMAINTAINER=	gerrit.beine@gmx.de
XCOMMENT=	The wiki engine used by Wikipedia
X
XCONFLICTS=	mediawiki-1.[0-9].* mediawiki-1.1[02-9].*
X
XUSE_PHP=	iconv mbstring pcre session xml zlib readline
XIGNORE_WITH_PHP=	4
XWANT_PHP_WEB=	yes
XMEDIAWIKIDIR?=	www/mediawiki
X
XOPTIONS=	PGSQL "Use PostgreSQL (instead of MySQL)" off \
X		LDAP "Use LDAP authentication" off \
X		TEXVC "Use built-in TeX rendering" off \
X		APC "Use pecl-APC" on \
X		EACCEL "Use eAccelerator (instead of pecl-APC)" off \
X		IMAGICK "Use ImageMagick" off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_PGSQL)
XUSE_PHP+=	pgsql
X.else
XIGNORE_WITH_MYSQL=	323
XUSE_MYSQL=	yes
XUSE_PHP+=	mysql
X.endif
X
X.if defined(WITH_LDAP)
XUSE_PHP+=	ldap
X.endif
X
X.if defined(WITH_TEXVC)
XRUN_DEPENDS+=	latex:${PORTSDIR}/print/latex
XBUILD_DEPENDS+=	ocaml:${PORTSDIR}/lang/ocaml
X
XUSE_GMAKE=yes
XWITH_IMAGICK=yes
X.endif
X
X.if defined(WITH_IMAGICK)
XRUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/graphics/pecl-imagick
X.endif
X
X.if defined(WITH_APC) || defined(WITH_EACCEL)
X.if defined(WITH_EACCEL)
XRUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/eaccelerator.so:${PORTSDIR}/www/eaccelerator
X.else
XRUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC
X.endif
X.endif
X
Xdo-build:
X.if defined(WITH_TEXVC)
X	@(cd ${WRKSRC}/math && ${GMAKE})
X.endif
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/${MEDIAWIKIDIR}
X	${CP} -r ${WRKSRC}/ ${PREFIX}/${MEDIAWIKIDIR}
X	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${MEDIAWIKIDIR}
X
Xpost-install:
X	@${FIND} ${WRKSRC}/${file} -not -type d \
X		| ${SED} -ne 's,^${WRKSRC},${MEDIAWIKIDIR},p' >> ${TMPPLIST}
X	@${FIND} -d ${WRKSRC}/${file} -type d \
X		| ${SED} -ne 's,^${WRKSRC},@dirrm ${MEDIAWIKIDIR},p' >> ${TMPPLIST}
X	@${SED} -e 's|%%MEDIAWIKIDIR%%|${PREFIX}/${MEDIAWIKIDIR}|' ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mediawiki111/Makefile
echo x - mediawiki111/distinfo
sed 's/^X//' >mediawiki111/distinfo << 'END-of-mediawiki111/distinfo'
XMD5 (mediawiki-1.11.2.tar.gz) = 12e81f27a37b15b9d1ed110d6f48b35f
XSHA256 (mediawiki-1.11.2.tar.gz) = 3516fd7f0069e30b1ed6b6fea3794047ac08baf3cf71085c6943605efafd806f
XSIZE (mediawiki-1.11.2.tar.gz) = 4880707
END-of-mediawiki111/distinfo
echo x - mediawiki111/pkg-descr
sed 's/^X//' >mediawiki111/pkg-descr << 'END-of-mediawiki111/pkg-descr'
XMediaWiki is the collaborative editing software that runs Wikipedia,
Xthe free encyclopedia, and other projects.
XIt's designed to handle a large number of users and pages without imposing
Xtoo rigid a structure or workflow.
X
XWWW: http://www.mediawiki.org/
END-of-mediawiki111/pkg-descr
echo x - mediawiki111/pkg-message
sed 's/^X//' >mediawiki111/pkg-message << 'END-of-mediawiki111/pkg-message'
X
X	**** NOTE ****
XRemember to check
X
X%%MEDIAWIKIDIR%%/INSTALL
X
Xand
X
X%%MEDIAWIKIDIR%%/UPGRADE
X
Xfor details
END-of-mediawiki111/pkg-message
exit



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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803211217.m2LCH2gN012744>