Date: Mon, 1 Jul 2024 09:46:51 GMT From: Wen Heping <wen@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f38a56e9a2f8 - main - www/mediawiki142: New port, copied from www/mediawiki141 Message-ID: <202407010946.4619kpaR021833@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=f38a56e9a2f8568dc0451c41be2aac1e2ba0f722 commit f38a56e9a2f8568dc0451c41be2aac1e2ba0f722 Author: Wen Heping <wen@FreeBSD.org> AuthorDate: 2024-07-01 09:45:25 +0000 Commit: Wen Heping <wen@FreeBSD.org> CommitDate: 2024-07-01 09:46:13 +0000 www/mediawiki142: New port, copied from www/mediawiki141 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/Makefile | 1 + www/mediawiki142/Makefile | 63 +++++++++++++++++++++++++++++++++++ www/mediawiki142/distinfo | 3 ++ www/mediawiki142/files/pkg-message.in | 15 +++++++++ www/mediawiki142/pkg-descr | 4 +++ 5 files changed, 86 insertions(+) diff --git a/www/Makefile b/www/Makefile index c7fbd6a8d8af..59d16aeaf3a1 100644 --- a/www/Makefile +++ b/www/Makefile @@ -345,6 +345,7 @@ SUBDIR += mediawiki139 SUBDIR += mediawiki140 SUBDIR += mediawiki141 + SUBDIR += mediawiki142 SUBDIR += mergelog SUBDIR += mhonarc SUBDIR += micro_httpd diff --git a/www/mediawiki142/Makefile b/www/mediawiki142/Makefile new file mode 100644 index 000000000000..046a0a3cb1ac --- /dev/null +++ b/www/mediawiki142/Makefile @@ -0,0 +1,63 @@ +PORTNAME= mediawiki +PORTVERSION= 1.42.1 +CATEGORIES= www +MASTER_SITES= https://releases.wikimedia.org/mediawiki/${PORTVERSION:R}/ +PKGNAMESUFFIX= 142${PHP_PKGNAMESUFFIX} + +MAINTAINER= wen@FreeBSD.org +COMMENT= Wiki engine used by Wikipedia +WWW= https://www.mediawiki.org/ + +LICENSE= GPLv2 + +CONFLICTS= mediawiki139 mediawiki140 mediawiki141 + +USES= cpe php:flavors shebangfix +SHEBANG_FILES= maintenance/storage/make-blobs + +USE_PHP= ctype dom fileinfo filter iconv intl mbstring \ + 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> diff --git a/www/mediawiki142/distinfo b/www/mediawiki142/distinfo new file mode 100644 index 000000000000..54b4c3f42886 --- /dev/null +++ b/www/mediawiki142/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1719820116 +SHA256 (mediawiki-1.42.1.tar.gz) = ec87af95a35dd09c34d52e02795652a030ab72955e431f08ca722a73737eba53 +SIZE (mediawiki-1.42.1.tar.gz) = 89149379 diff --git a/www/mediawiki142/files/pkg-message.in b/www/mediawiki142/files/pkg-message.in new file mode 100644 index 000000000000..b05e89945b5f --- /dev/null +++ b/www/mediawiki142/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: <<EOM +Remember to check + +%%MEDIAWIKIDIR%%/INSTALL + +and + +%%MEDIAWIKIDIR%%/UPGRADE + +for details +EOM +} +] diff --git a/www/mediawiki142/pkg-descr b/www/mediawiki142/pkg-descr new file mode 100644 index 000000000000..88e2e7b358ef --- /dev/null +++ b/www/mediawiki142/pkg-descr @@ -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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407010946.4619kpaR021833>