diff options
author | wen <wen@FreeBSD.org> | 2013-09-07 15:54:25 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2013-09-07 15:54:25 +0800 |
commit | 434b31a6d1304a96b2432728117dfa7ee0b7e22d (patch) | |
tree | 3a2de7887891d31ecd965a385369be5279ee5410 /www | |
parent | 1bded653ec534beb441403fc29450ef7fe63c704 (diff) | |
download | freebsd-ports-gnome-434b31a6d1304a96b2432728117dfa7ee0b7e22d.tar.gz freebsd-ports-gnome-434b31a6d1304a96b2432728117dfa7ee0b7e22d.tar.zst freebsd-ports-gnome-434b31a6d1304a96b2432728117dfa7ee0b7e22d.zip |
- Copy mediawiki120 --> mediawiki121
Diffstat (limited to 'www')
-rw-r--r-- | www/mediawiki121/Makefile | 79 | ||||
-rw-r--r-- | www/mediawiki121/distinfo | 2 | ||||
-rw-r--r-- | www/mediawiki121/pkg-descr | 6 | ||||
-rw-r--r-- | www/mediawiki121/pkg-message | 11 |
4 files changed, 98 insertions, 0 deletions
diff --git a/www/mediawiki121/Makefile b/www/mediawiki121/Makefile new file mode 100644 index 000000000000..1e1180211f85 --- /dev/null +++ b/www/mediawiki121/Makefile @@ -0,0 +1,79 @@ +# Created by: Gerrit Beine <tux@pinguru.net> +# $FreeBSD$ + +PORTNAME= mediawiki +PORTVERSION= 1.20.7 +CATEGORIES= www +MASTER_SITES= http://dumps.wikimedia.org/mediawiki/${PORTVERSION:R}/ + +MAINTAINER= wen@FreeBSD.org +COMMENT= The wiki engine used by Wikipedia + +LICENSE= GPLv2 + +CONFLICTS= mediawiki-1.1[0-9].* + +FETCH_ARGS= -pr +USE_PHP= ctype iconv mbstring pcre session xml zlib readline dom +WANT_PHP_WEB= yes +MEDIAWIKIDIR?= www/mediawiki + +NO_BUILD= yes + +OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAP MEMCACHED APC EACCEL XCACHE IMAGICK +OPTIONS_DEFAULT=MYSQL APC + +MEMCACHED_DESC= use memcached +APC_DESC= use pecl-APC(Mediawiki recommended) +EACCEL_DESC= use eAccelerator (instead of pecl-APC) +XCACHE_DESC= use xCache (instead of pecl-APC) +IMAGICK_DESC= use ImageMagick + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MMYSQL} +USE_MYSQL= client +USE_PHP+= mysql +.endif + +.if ${PORT_OPTIONS:MPGSQL} +USE_PHP+= pgsql +.endif + +.if ${PORT_OPTIONS:MSQLITE} +USE_PHP+= sqlite3 +.endif + +.if ${PORT_OPTIONS:MLDAP} +USE_PHP+= ldap +.endif + +.if ${PORT_OPTIONS:MMEMCACHED} +RUN_DEPENDS= memcached:${PORTSDIR}/databases/memcached +.endif + +.if ${PORT_OPTIONS:MIMAGICK} +RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/graphics/pecl-imagick +.endif + +.if ${PORT_OPTIONS:MAPC} +RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC +.elif ${PORT_OPTIONS:MEACCEL} +RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/eaccelerator.so:${PORTSDIR}/www/eaccelerator +.elif ${PORT_OPTIONS:MXCACHE} +RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xcache.so:${PORTSDIR}/www/xcache +.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},@dirrm ${MEDIAWIKIDIR},p' >> ${TMPPLIST} + @${SED} -e 's|%%MEDIAWIKIDIR%%|${PREFIX}/${MEDIAWIKIDIR}|' ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/mediawiki121/distinfo b/www/mediawiki121/distinfo new file mode 100644 index 000000000000..c6ef5b709e0e --- /dev/null +++ b/www/mediawiki121/distinfo @@ -0,0 +1,2 @@ +SHA256 (mediawiki-1.20.7.tar.gz) = b53bcbf3b6e3dcd810ab73143c0028beb88547bcc7766a55f532703b7015b431 +SIZE (mediawiki-1.20.7.tar.gz) = 18556660 diff --git a/www/mediawiki121/pkg-descr b/www/mediawiki121/pkg-descr new file mode 100644 index 000000000000..dac83f83ccda --- /dev/null +++ b/www/mediawiki121/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/ diff --git a/www/mediawiki121/pkg-message b/www/mediawiki121/pkg-message new file mode 100644 index 000000000000..d98978fe6903 --- /dev/null +++ b/www/mediawiki121/pkg-message @@ -0,0 +1,11 @@ + + **** NOTE **** +Remember to check + +%%MEDIAWIKIDIR%%/INSTALL + +and + +%%MEDIAWIKIDIR%%/UPGRADE + +for details |