aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2023-12-27 15:11:36 +0000
committerWen Heping <wen@FreeBSD.org>2023-12-27 15:12:51 +0000
commit183809190723b9b1b6cc88cd72a732c29730d38a (patch)
tree8c363dda9759c4b2e52625583319753a00ed7117
parent01d8a208802353bd814aaaf7d1b33dfdee0083fc (diff)
downloadports-183809190723b9b1b6cc88cd72a732c29730d38a.tar.gz
ports-183809190723b9b1b6cc88cd72a732c29730d38a.zip
www/mediawiki141: New port, copied from www/mediawiki140
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.
-rw-r--r--www/Makefile1
-rw-r--r--www/mediawiki141/Makefile66
-rw-r--r--www/mediawiki141/distinfo3
-rw-r--r--www/mediawiki141/files/pkg-message.in15
-rw-r--r--www/mediawiki141/pkg-descr4
5 files changed, 89 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 165f459e18b4..cef2e99ca51d 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -352,6 +352,7 @@
SUBDIR += mediawiki135
SUBDIR += mediawiki139
SUBDIR += mediawiki140
+ SUBDIR += mediawiki141
SUBDIR += mergelog
SUBDIR += mhonarc
SUBDIR += micro_httpd
diff --git a/www/mediawiki141/Makefile b/www/mediawiki141/Makefile
new file mode 100644
index 000000000000..8cd2263e0973
--- /dev/null
+++ b/www/mediawiki141/Makefile
@@ -0,0 +1,66 @@
+PORTNAME= mediawiki
+PORTVERSION= 1.41.0
+CATEGORIES= www
+MASTER_SITES= https://releases.wikimedia.org/mediawiki/${PORTVERSION:R}/
+PKGNAMESUFFIX= 141${PHP_PKGNAMESUFFIX}
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= Wiki engine used by Wikipedia
+WWW= https://www.mediawiki.org/
+
+LICENSE= GPLv2
+
+CONFLICTS= mediawiki13[5-9] mediawiki140
+
+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 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/mediawiki141/distinfo b/www/mediawiki141/distinfo
new file mode 100644
index 000000000000..f62e9be5204c
--- /dev/null
+++ b/www/mediawiki141/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703689627
+SHA256 (mediawiki-1.41.0.tar.gz) = f3842b72aa7a25888f1ec632323dd890417739a120d951c485f850e0cccb421b
+SIZE (mediawiki-1.41.0.tar.gz) = 115573782
diff --git a/www/mediawiki141/files/pkg-message.in b/www/mediawiki141/files/pkg-message.in
new file mode 100644
index 000000000000..b05e89945b5f
--- /dev/null
+++ b/www/mediawiki141/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/mediawiki141/pkg-descr b/www/mediawiki141/pkg-descr
new file mode 100644
index 000000000000..88e2e7b358ef
--- /dev/null
+++ b/www/mediawiki141/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.