Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www/mediawiki139: New port, copied from www/mediawiki138
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.
- Loading branch information
Showing
5 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
PORTNAME= mediawiki | ||
PORTVERSION= 1.39.0 | ||
CATEGORIES= www | ||
MASTER_SITES= https://releases.wikimedia.org/mediawiki/${PORTVERSION:R}/ | ||
PKGNAMESUFFIX= 138${PHP_PKGNAMESUFFIX} | ||
|
||
MAINTAINER= wen@FreeBSD.org | ||
COMMENT= Wiki engine used by Wikipedia | ||
WWW= https://www.mediawiki.org/ | ||
|
||
LICENSE= GPLv2 | ||
|
||
CONFLICTS= mediawiki13[5-8] | ||
|
||
USES= cpe php:flavors shebangfix | ||
SHEBANG_FILES= maintenance/dev/*.sh \ | ||
maintenance/storage/make-blobs | ||
SHEBANG_LANG= hhvm | ||
hhvm_OLD_CMD= /usr/bin/hhvm | ||
hhvm_CMD= ${LOCALBASE}/bin/hhvm # not installed by anything yet | ||
USE_PHP= ctype dom fileinfo filter hash iconv intl json mbstring openssl \ | ||
pcre readline session xml xmlreader zlib | ||
MEDIAWIKIDIR?= www/mediawiki | ||
|
||
NO_BUILD= yes | ||
PLIST= ${WRKDIR}/plist | ||
|
||
SUB_FILES= pkg-message | ||
SUB_LIST= MEDIAWIKIDIR=${PREFIX}/${MEDIAWIKIDIR} | ||
|
||
OPTIONS_DEFINE= LDAP MEMCACHED IMAGICK SOCKETS | ||
OPTIONS_SINGLE= DB | ||
OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE | ||
OPTIONS_DEFAULT= MYSQL SOCKETS | ||
|
||
MEMCACHED_DESC= Use memcached | ||
IMAGICK_DESC= Use ImageMagick | ||
SOCKETS_DESC= Use sockets | ||
|
||
MYSQL_USES= mysql | ||
MYSQL_USE= php=mysqli | ||
PGSQL_USE= php=pgsql | ||
SQLITE_USE= php=sqlite3 | ||
LDAP_USE= php=ldap | ||
SOCKETS_USE= php=sockets | ||
|
||
MEMCACHED_RUN_DEPENDS= memcached:databases/memcached | ||
IMAGICK_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:graphics/pecl-imagick@${PHP_FLAVOR} | ||
|
||
pre-install: | ||
@${FIND} -s -d ${WRKSRC} -not -type d | ${SED} "s?${WRKSRC}?${MEDIAWIKIDIR}?g" >>${PLIST} | ||
@${ECHO} "@dir %%WWWDIR%%/cache" >> ${PLIST} | ||
@${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST} | ||
@${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST} | ||
@${ECHO} "@mode 0755" >> ${PLIST} | ||
@${ECHO} "@dir %%WWWDIR%%/images" >> ${PLIST} | ||
@${ECHO} "@mode" >> ${PLIST} | ||
@${ECHO_CMD} "@owner" >> ${PLIST} | ||
@${ECHO_CMD} "@group" >> ${PLIST} | ||
@${ECHO} @dir ${MEDIAWIKIDIR} >> ${PLIST} | ||
|
||
do-install: | ||
@${MKDIR} ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR} | ||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR} | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1669987031 | ||
SHA256 (mediawiki-1.39.0.tar.gz) = 5ffe7815e00ecf9190d1c401b0185588e8e73c27688ee32697a6cfceb17a9388 | ||
SIZE (mediawiki-1.39.0.tar.gz) = 55728839 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ type: install | ||
message: <<EOM | ||
Remember to check | ||
|
||
%%MEDIAWIKIDIR%%/INSTALL | ||
|
||
and | ||
|
||
%%MEDIAWIKIDIR%%/UPGRADE | ||
|
||
for details | ||
EOM | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
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. |