diff --git a/net-im/ejabberd/Makefile b/net-im/ejabberd/Makefile index 7f6e69792765..4b9ec2c6bb00 100644 --- a/net-im/ejabberd/Makefile +++ b/net-im/ejabberd/Makefile @@ -1,199 +1,198 @@ PORTNAME= ejabberd -PORTVERSION= 21.12 +PORTVERSION= 22.05 CATEGORIES= net-im +# See https://github.com/processone/ejabberd/issues/3819 +PATCHFILES= 75a771bfec3626145d404349fdaec4f0eef83bbc.patch:-p1 +PATCH_SITES+= https://github.com/processone/ejabberd/commit/ + MAINTAINER= ashish@FreeBSD.org COMMENT= Free and Open Source distributed fault-tolerant Jabber server LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_riscv64= fails to build: Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension BUILD_DEPENDS= erlc:lang/erlang RUN_DEPENDS= erl:lang/erlang LIB_DEPENDS= libexpat.so:textproc/expat2 \ libyaml.so:textproc/libyaml \ libgd.so:graphics/gd \ libpng.so:graphics/png \ libwebp.so:graphics/webp USES= compiler:c11 cpe gmake pkgconfig shebangfix ssl jpeg \ autoreconf:build USERS= ejabberd GROUPS= ${USERS} GNU_CONFIGURE= yes USE_RC_SUBR= ${PORTNAME} NOPRECIOUSMAKEVARS= yes CPE_VENDOR= process-one USE_GITHUB= yes GH_ACCOUNT= processone -GH_TUPLE= erlang-lager:lager:${LAGER_VER}:lager/deps/lager \ - processone:p1_utils:${P1_UTILS_VER}:p1_utils/deps/p1_utils \ +GH_TUPLE= processone:p1_utils:${P1_UTILS_VER}:p1_utils/deps/p1_utils \ processone:cache_tab:${CACHE_TAB_VER}:cache_tab/deps/cache_tab \ processone:fast_tls:${FAST_TLS_VER}:fast_tls/deps/fast_tls \ processone:stringprep:${STRINGPREP_VER}:stringprep/deps/stringprep \ processone:fast_xml:${FAST_XML_VER}:fast_xml/deps/fast_xml \ processone:xmpp:${XMPP_VER}:xmpp/deps/xmpp \ processone:fast_yaml:${FAST_YAML_VER}:fast_yaml/deps/fast_yaml \ davisp:jiffy:${JIFFY_VER}:jiffy/deps/jiffy \ processone:p1_oauth2:${P1_OAUTH2_VER}:p1_oauth2/deps/p1_oauth2 \ potatosalad:erlang-jose:${JOSE_VER}:jose/deps/jose \ processone:eimp:${EIMP_VER}:eimp/deps/eimp \ - DeadZen:goldrush:${GOLDRUSH_VER}:goldrush/deps/goldrush \ dvv:base64url:${BASE64URL_VER}:base64url/deps/base64url \ processone:ezlib:${EZLIB_VER}:ezlib/deps/ezlib \ processone:pkix:${PKIX_VER}:pkix/deps/pkix \ processone:mqtree:${MQTREE_VER}:mqtree/deps/mqtree \ processone:yconf:${YCONF_VER}:yconf/deps/yconf \ processone:p1_acme:${P1_ACME_VER}:p1_acme/deps/p1_acme \ benoitc:erlang-idna:${IDNA_VER}:idna/deps/idna \ benoitc:unicode_util_compat:${UNICODE_UTIL_COMPAT_VER}:unicode_util_compat/deps/unicode_util_compat OPTIONS_DEFINE= ODBC PAM DOCS LUA MYSQL PGSQL REDIS SIP SQLITE \ STUN TOOLS FULLXML OPTIONS_DEFAULT=STUN EJABBERD_LIBDIR=lib/erlang/lib MAKE_ENV= PORTVERSION=${PORTVERSION} CONFIGURE_ARGS+=--localstatedir=/var --libdir=${PREFIX}/${EJABBERD_LIBDIR} MAKE_ARGS= "CPPFLAGS=${CPPFLAGS}" "CFLAGS=${CFLAGS}" "LDFLAGS=${LDFLAGS}" CPPFLAGS+= -I${LOCALBASE}/include CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib SUBS= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \ EJABBERD_LIBDIR=${EJABBERD_LIBDIR} \ BASE64URL_VER=${BASE64URL_VER} \ CACHE_TAB_VER=${CACHE_TAB_VER} EIMP_VER=${EIMP_VER} \ EPAM_VER=${EPAM_VER} EREDIS_VER=${EREDIS_VER} \ ESIP_VER=${ESIP_VER} EZLIB_VER=${EZLIB_VER} \ FAST_TLS_VER=${FAST_TLS_VER} \ FAST_XML_VER=${FAST_XML_VER} \ FAST_YAML_VER=${FAST_YAML_VER} \ - GOLDRUSH_VER=${GOLDRUSH_VER} \ IDNA_VER=${IDNA_VER} \ JIFFY_VER=${JIFFY_VER} JOSE_VER=${JOSE_VER} \ - LAGER_VER=${LAGER_VER} LUERL_VER=${LUERL_VER} \ + LUERL_VER=${LUERL_VER} \ MQTREE_VER=${MQTREE_VER} \ P1_ACME_VER=${P1_ACME_VER} \ P1_MYSQL_VER=${P1_MYSQL_VER} \ P1_OAUTH2_VER=${P1_OAUTH2_VER} \ P1_PGSQL_VER=${P1_PGSQL_VER} \ P1_UTILS_VER=${P1_UTILS_VER} PKIX_VER=${PKIX_VER} \ SQLITE3_VER=${SQLITE3_VER} \ STRINGPREP_VER=${STRINGPREP_VER} STUN_VER=${STUN_VER} \ UNICODE_UTIL_COMPAT_VER=${UNICODE_UTIL_COMPAT_VER} \ XMPP_VER=${XMPP_VER} YCONF_VER=${YCONF_VER} SUB_FILES= pkg-message pkg-install PLIST_SUB= ${SUBS} SUB_LIST= ${SUBS} \ USERS=${USERS} GROUPS=${GROUPS} SHAREMODE=${SHAREMODE} \ SHAREOWN=${SHAREOWN} SHAREGRP=${SHAREGRP} \ EJABBERD_LIBDIR=${EJABBERD_LIBDIR} SHEBANG_FILES= ${WRKSRC}/ejabberdctl.template BASE64URL_VER= 1.0.1 -CACHE_TAB_VER= 1.0.29 -EIMP_VER= 1.0.21 +CACHE_TAB_VER= 1.0.30 +EIMP_VER= 1.0.22 EJABBERD_PO_VER= 0.0.0 EPAM_VER= 1.0.12 EREDIS_VER= 1.2.0 -ESIP_VER= 1.0.45 -EZLIB_VER= 1.0.10 -FAST_TLS_VER= 1.1.13 -FAST_XML_VER= 1.1.48 -FAST_YAML_VER= 1.0.32 -GOLDRUSH_VER= 0.1.9 +ESIP_VER= 1.0.47 +EZLIB_VER= 1.0.12 +FAST_TLS_VER= 1.1.15 +FAST_XML_VER= 1.1.49 +FAST_YAML_VER= 1.0.33 IDNA_VER= 6.0.0 -JIFFY_VER= 1.0.5 +JIFFY_VER= 1.1.1 JOSE_VER= 1.11.1 -LAGER_VER= 3.9.1 -LUERL_VER= 0.3 -MQTREE_VER= 1.0.14 -P1_ACME_VER= 1.0.16 +LUERL_VER= 1.0 +MQTREE_VER= 1.0.15 +P1_ACME_VER= 1.0.19 P1_MYSQL_VER= 1.0.19 -P1_OAUTH2_VER= 0.6.10 -P1_PGSQL_VER= 1.1.16 -P1_UTILS_VER= 1.0.23 -PKIX_VER= 1.0.8 +P1_OAUTH2_VER= 0.6.11 +P1_PGSQL_VER= 1.1.18 +P1_UTILS_VER= 1.0.25 +PKIX_VER= 1.0.9 SQLITE3_VER= 1.1.13 -STRINGPREP_VER= 1.0.27 -STUN_VER= 1.0.47 +STRINGPREP_VER= 1.0.28 +STUN_VER= 1.2.2 UNICODE_UTIL_COMPAT_VER= 0.4.1 -XMPP_VER= 1.5.6 -YCONF_VER= 1.0.12 +XMPP_VER= 1.5.8 +YCONF_VER= 1.0.13 OPTIONS_SUB= yes SIP_DESC= SIP support STUN_DESC= STUN/TURN support TOOLS_DESC= Build development tools FULLXML_DESC= Full XML support PAM_CONFIGURE_ENABLE= pam PAM_GH_TUPLE= processone:epam:${EPAM_VER}:epam/deps/epam ODBC_CONFIGURE_ENABLE= odbc MYSQL_CONFIGURE_ENABLE= mysql MYSQL_GH_TUPLE= processone:p1_mysql:${P1_MYSQL_VER}:p1_mysql/deps/p1_mysql PGSQL_CONFIGURE_ENABLE= pgsql PGSQL_GH_TUPLE= processone:p1_pgsql:${P1_PGSQL_VER}:p1_pgsql/deps/p1_pgsql REDIS_CONFIGURE_ENABLE= redis REDIS_GH_TUPLE= wooga:eredis:v${EREDIS_VER}:eredis/deps/eredis REDIS_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-deps_eredis_src_eredis.app.src SIP_CONFIGURE_ENABLE= sip SIP_GH_TUPLE= processone:esip:${ESIP_VER}:esip/deps/esip SIP_IMPLIES= STUN STUN_CONFIGURE_ENABLE= stun STUN_GH_TUPLE= processone:stun:${STUN_VER}:stun/deps/stun SQLITE_CONFIGURE_ENABLE=sqlite SQLITE_GH_TUPLE= processone:erlang-sqlite3:${SQLITE3_VER}:sqlite3/deps/sqlite3 TOOLS_CONFIGURE_ENABLE= tools TOOLS_GH_TUPLE=processone:ejabberd-po:e909d88:ejabberdpo/deps/ejabberd_po FULLXML_CONFIGURE_ENABLE= full-xml SQLITE_USES= sqlite DOCS_MAKE_ARGS_OFF= NOPORTDOCS=yes LUA_CONFIGURE_ENABLE= lua LUA_GH_TUPLE= rvirding:luerl:v${LUERL_VER}:luerl/deps/luerl .include pre-everything:: @if ${PKG_BIN} query %n-%v net-im/ejabberd; then \ ${ECHO_MSG} needs to be uninstalled, before this port build could proceed. ; \ ${ECHO_MSG} For details: https://github.com/processone/ejabberd/issues/2194 ; \ ${ECHO_MSG} Sorry for the inconvenience. ; \ exit 1; \ fi post-patch: @${REINPLACE_CMD} -e 's,^convert,${LOCALBASE}/bin/convert,' ${WRKSRC}/tools/captcha.sh @${REINPLACE_CMD} -e 's,%%PORTVERSION%%,${PORTVERSION},' ${WRKSRC}/configure.ac pre-configure: cd ${WRKSRC} && ${SH} autogen.sh @${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/configure pre-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR} post-install-PAM-on: ${INSTALL} -m 444 ${FILESDIR}/pam_ejabberd \ ${STAGEDIR}${PREFIX}/etc/pam.d/ejabberd ${INSTALL} -m 0750 ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/epam-${EPAM_VER}/priv/bin/epam \ ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/bin/epam @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/epam-${EPAM_VER}/priv/bin/epam \ ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/bin/epam post-install: @${FIND} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR} -type f \ -name '*.so' -exec ${STRIP_CMD} {} \; @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/bin/captcha.sh \ ${STAGEDIR}${DATADIR} @${CHMOD} +x ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/eimp-${EIMP_VER}/priv/bin/eimp @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/lib/eimp-${EIMP_VER}/priv/bin/eimp @cd ${WRKSRC}/sql && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/sql .include diff --git a/net-im/ejabberd/distinfo b/net-im/ejabberd/distinfo index 05f93444d4d1..b55a18739cff 100644 --- a/net-im/ejabberd/distinfo +++ b/net-im/ejabberd/distinfo @@ -1,63 +1,61 @@ -TIMESTAMP = 1639154089 -SHA256 (processone-ejabberd-21.12_GH0.tar.gz) = 0bd140d0a3569c8cc530eebd2040a8f525c9928eff62fe22fbf3c8e55d01e9f8 -SIZE (processone-ejabberd-21.12_GH0.tar.gz) = 2495058 -SHA256 (erlang-lager-lager-3.9.1_GH0.tar.gz) = 13316ba3006b174cf6b085ad13ed19ec0f618f10b83fc3530a072cdf4b50668b -SIZE (erlang-lager-lager-3.9.1_GH0.tar.gz) = 273932 -SHA256 (processone-p1_utils-1.0.23_GH0.tar.gz) = 05f29bc55a51840c84f4055b89d4cc312078badc5571a5962f15348fa5d87015 -SIZE (processone-p1_utils-1.0.23_GH0.tar.gz) = 65338 -SHA256 (processone-cache_tab-1.0.29_GH0.tar.gz) = b11299eebafab6f1f5670650c48b10d9fa607ab092b4be8a976982e3f2b37526 -SIZE (processone-cache_tab-1.0.29_GH0.tar.gz) = 60908 -SHA256 (processone-fast_tls-1.1.13_GH0.tar.gz) = 5377671fed74a61518a742bc52d73941039d6e3c6e192133c7feaf5a83e1275b -SIZE (processone-fast_tls-1.1.13_GH0.tar.gz) = 81247 -SHA256 (processone-stringprep-1.0.27_GH0.tar.gz) = cdc2ffa6ba2171f55b78e69cfce5dab6099cbb6bc6955d88c5c53b0cf24d13af -SIZE (processone-stringprep-1.0.27_GH0.tar.gz) = 100037 -SHA256 (processone-fast_xml-1.1.48_GH0.tar.gz) = bc6219b31b58baa9769d60c0acd681d49d201fc86f32810f98a2578c81743873 -SIZE (processone-fast_xml-1.1.48_GH0.tar.gz) = 108340 -SHA256 (processone-xmpp-1.5.6_GH0.tar.gz) = bde03ad371aad3e171ebe94a5b3b84daa4b8dd7ee37e9979ff373cd65370e725 -SIZE (processone-xmpp-1.5.6_GH0.tar.gz) = 557828 -SHA256 (processone-fast_yaml-1.0.32_GH0.tar.gz) = 6d5c823dd895b736b98325d88893a63c054964d7bde9a8e150fc4df5f4165065 -SIZE (processone-fast_yaml-1.0.32_GH0.tar.gz) = 59969 -SHA256 (davisp-jiffy-1.0.5_GH0.tar.gz) = e5acdee0beacc7b0fcd099d360f83d8d7d77c3029bd4d5ff5270494af36e5929 -SIZE (davisp-jiffy-1.0.5_GH0.tar.gz) = 1896318 -SHA256 (processone-p1_oauth2-0.6.10_GH0.tar.gz) = 625e6d96a212cc2cf8a63c36ee698072791d85acbaae18e5820ba144cdaca869 -SIZE (processone-p1_oauth2-0.6.10_GH0.tar.gz) = 214205 +TIMESTAMP = 1652983300 +SHA256 (processone-ejabberd-22.05_GH0.tar.gz) = b8e93b51ae3cb650a2870fae1b6705404bb155289e97be7e9a54961a9effb959 +SIZE (processone-ejabberd-22.05_GH0.tar.gz) = 2527957 +SHA256 (processone-p1_utils-1.0.25_GH0.tar.gz) = c62f93ab5ea8d9251d9acda2abf576352d50f4a3299972549180a5387656746a +SIZE (processone-p1_utils-1.0.25_GH0.tar.gz) = 47802 +SHA256 (processone-cache_tab-1.0.30_GH0.tar.gz) = c506d2aa2e59f1e0086ce32234618189d557a767312179cc1c8df19754131ca2 +SIZE (processone-cache_tab-1.0.30_GH0.tar.gz) = 60913 +SHA256 (processone-fast_tls-1.1.15_GH0.tar.gz) = 3e460c915d3459bc403c5b9ab11c6c952e291aaaa4e8f1064d151f9be24ce262 +SIZE (processone-fast_tls-1.1.15_GH0.tar.gz) = 83705 +SHA256 (processone-stringprep-1.0.28_GH0.tar.gz) = 33dca9b95671d6946621e4d9d8baff6d8ed046d5629b745e4726dbdd0ec96f37 +SIZE (processone-stringprep-1.0.28_GH0.tar.gz) = 100057 +SHA256 (processone-fast_xml-1.1.49_GH0.tar.gz) = 02bcdb0a4350080a10b52de85c11de982e5f7cf2150f5b1b888f7a95ccb31265 +SIZE (processone-fast_xml-1.1.49_GH0.tar.gz) = 108442 +SHA256 (processone-xmpp-1.5.8_GH0.tar.gz) = 166d80cd14fcf2a56ab43968122bdb454a0380672ff55cb4d6ecad52ed6a7f51 +SIZE (processone-xmpp-1.5.8_GH0.tar.gz) = 557974 +SHA256 (processone-fast_yaml-1.0.33_GH0.tar.gz) = 754af5b8ba6eee3d72aaf0830e234f9deb9e1638aabaf2e3fdd50b2c0e1934e7 +SIZE (processone-fast_yaml-1.0.33_GH0.tar.gz) = 60314 +SHA256 (davisp-jiffy-1.1.1_GH0.tar.gz) = a999351d956d3ed10c33a6dd7e9435e674e519b5b82a46d60361afdb83062fd8 +SIZE (davisp-jiffy-1.1.1_GH0.tar.gz) = 1674571 +SHA256 (processone-p1_oauth2-0.6.11_GH0.tar.gz) = 2a33d96ab007b77759f48613a65794351569e7d2d800700b71e50448eed0e3b8 +SIZE (processone-p1_oauth2-0.6.11_GH0.tar.gz) = 214437 SHA256 (potatosalad-erlang-jose-1.11.1_GH0.tar.gz) = 87cdcb9df6f943c97772e5d90bed87555a72c8957ce2cb901df259050e18e7bb SIZE (potatosalad-erlang-jose-1.11.1_GH0.tar.gz) = 281125 -SHA256 (processone-eimp-1.0.21_GH0.tar.gz) = 25e4e1178280d6fb98ee5e582ade393f7c5404c546638bcde86a6ebcb6757d90 -SIZE (processone-eimp-1.0.21_GH0.tar.gz) = 3478113 -SHA256 (DeadZen-goldrush-0.1.9_GH0.tar.gz) = 6fb8ac6345d940396ecf89d4ce6b9b809039f336d85d7a54239e85106a807612 -SIZE (DeadZen-goldrush-0.1.9_GH0.tar.gz) = 24548 +SHA256 (processone-eimp-1.0.22_GH0.tar.gz) = 7023b86bc7cf3551fd876a1361ceb2443bdf1c1be9f98a4d9a9a90eda3353b51 +SIZE (processone-eimp-1.0.22_GH0.tar.gz) = 3478737 SHA256 (dvv-base64url-1.0.1_GH0.tar.gz) = 7ef7210effd25ac1f82f190fcfaef53e49d7bc40bb94112c4aa07266c32a851b SIZE (dvv-base64url-1.0.1_GH0.tar.gz) = 2726 -SHA256 (processone-ezlib-1.0.10_GH0.tar.gz) = cef52f8f28229bf7229b53d225a6a9865acf5bdeaf16a40f81bbeb226615be99 -SIZE (processone-ezlib-1.0.10_GH0.tar.gz) = 50086 -SHA256 (processone-pkix-1.0.8_GH0.tar.gz) = 257171bec3fe495cd390c3a987131893a0a1a0b22e5973ac3cba9c354cb72324 -SIZE (processone-pkix-1.0.8_GH0.tar.gz) = 413346 -SHA256 (processone-mqtree-1.0.14_GH0.tar.gz) = b0b5506f43fd2ef8f72b3d5f42ece4dd22d872f9be2a9120affb7c6ae047597f -SIZE (processone-mqtree-1.0.14_GH0.tar.gz) = 265443 -SHA256 (processone-yconf-1.0.12_GH0.tar.gz) = e88f74c3950630e0ca7be41cbe2332d3ca600241f37779a862bdcc46f9031877 -SIZE (processone-yconf-1.0.12_GH0.tar.gz) = 223962 -SHA256 (processone-p1_acme-1.0.16_GH0.tar.gz) = 58d4b7e97e677bd5a8aa3c1e52514a37cfa0985cad8b5f45cd05889843c4fdd9 -SIZE (processone-p1_acme-1.0.16_GH0.tar.gz) = 222562 +SHA256 (processone-ezlib-1.0.12_GH0.tar.gz) = f2e7a3d17bbd752ad3ffd8a24c7948bf7c211c67c953a98c03110ddc497798d1 +SIZE (processone-ezlib-1.0.12_GH0.tar.gz) = 49803 +SHA256 (processone-pkix-1.0.9_GH0.tar.gz) = a9adf7d16494c1a1b572b46fc9ee1d28996b3d4bcb7a433395dfe120cee0c0ae +SIZE (processone-pkix-1.0.9_GH0.tar.gz) = 406218 +SHA256 (processone-mqtree-1.0.15_GH0.tar.gz) = 8d6b2d780d3d6e23a2d205406b30bf96c722f6c8b336a83182d5455e665ae866 +SIZE (processone-mqtree-1.0.15_GH0.tar.gz) = 265445 +SHA256 (processone-yconf-1.0.13_GH0.tar.gz) = 1a6be23d9a697baa5474f4791007ec043fb72189239e93cc029f264814469f54 +SIZE (processone-yconf-1.0.13_GH0.tar.gz) = 223970 +SHA256 (processone-p1_acme-1.0.19_GH0.tar.gz) = d880ab7e150bb81580231f53adc8e8b69ebe6ae49a0050069f5828837308de4e +SIZE (processone-p1_acme-1.0.19_GH0.tar.gz) = 223303 SHA256 (benoitc-erlang-idna-6.0.0_GH0.tar.gz) = d57e20ee88018ff0431e0275e91ada5915782870c9981fc798bcd05589031d6f SIZE (benoitc-erlang-idna-6.0.0_GH0.tar.gz) = 740802 SHA256 (benoitc-unicode_util_compat-0.4.1_GH0.tar.gz) = daca2a0d9469b6d8b766f72168ff5576b1e902d1b026a659d6ef0073adb996fa SIZE (benoitc-unicode_util_compat-0.4.1_GH0.tar.gz) = 416975 -SHA256 (rvirding-luerl-v0.3_GH0.tar.gz) = 37c6d2be8ecc624a8bf469b80609c4e3f2f079c30886575c31c46391dfedfec6 -SIZE (rvirding-luerl-v0.3_GH0.tar.gz) = 95182 +SHA256 (rvirding-luerl-v1.0_GH0.tar.gz) = b84672c703b3e098e03ed1baa7806388e173f6a289516269a02cff65dd1c66b1 +SIZE (rvirding-luerl-v1.0_GH0.tar.gz) = 120855 SHA256 (processone-p1_mysql-1.0.19_GH0.tar.gz) = 587f77bf5489f157d67ef2bc86be9dda0905043fcda5814ddb285c716edd685c SIZE (processone-p1_mysql-1.0.19_GH0.tar.gz) = 27476 SHA256 (processone-epam-1.0.12_GH0.tar.gz) = 110ef1701cae4ed507b2959e2b929984300e6d60553c892bcab0a16e5667fa90 SIZE (processone-epam-1.0.12_GH0.tar.gz) = 49074 -SHA256 (processone-p1_pgsql-1.1.16_GH0.tar.gz) = 6e6a382ae7bc1ae825a15c99b8924f82dfa31ffe56f78f5bc2a60cee9c45b20c -SIZE (processone-p1_pgsql-1.1.16_GH0.tar.gz) = 27160 +SHA256 (processone-p1_pgsql-1.1.18_GH0.tar.gz) = 07f1c1aabb4851b9eb6cba920e0fd7c80e99bb1e89b66819f2e32d502138c0ce +SIZE (processone-p1_pgsql-1.1.18_GH0.tar.gz) = 27186 SHA256 (wooga-eredis-v1.2.0_GH0.tar.gz) = 31a2e61d8d5a9631bda6e72e74abd6042292a39323acb6df94c050a41eb1f1a3 SIZE (wooga-eredis-v1.2.0_GH0.tar.gz) = 28568 -SHA256 (processone-esip-1.0.45_GH0.tar.gz) = 63e8ded8252478f34079ccc30ddfdbb1ce74c6a482a8222e848ccee6268795f6 -SIZE (processone-esip-1.0.45_GH0.tar.gz) = 90984 +SHA256 (processone-esip-1.0.47_GH0.tar.gz) = 1de406bc59c30e2697b8b29cc0ad0e370e6f5a5d777d37e022d195586b80643d +SIZE (processone-esip-1.0.47_GH0.tar.gz) = 91238 SHA256 (processone-erlang-sqlite3-1.1.13_GH0.tar.gz) = 02019845df226bc1286a4948aa94f5ff055e8730d45808cbee6af7df0da4c27a SIZE (processone-erlang-sqlite3-1.1.13_GH0.tar.gz) = 1920452 -SHA256 (processone-stun-1.0.47_GH0.tar.gz) = f9b82949b54778a4b766dca5509eef4475e1dbc165a449974dbd0cc54c6f84a2 -SIZE (processone-stun-1.0.47_GH0.tar.gz) = 41277 +SHA256 (processone-stun-1.2.2_GH0.tar.gz) = beae0be29729579312533d0da29e423b2cb010e5c4708be7166617ef96bd9f14 +SIZE (processone-stun-1.2.2_GH0.tar.gz) = 41090 SHA256 (processone-ejabberd-po-e909d88_GH0.tar.gz) = 400fdfacd6dc75bd21c84a60b74266df8049267228ec9fc62c0ba0f445d35226 SIZE (processone-ejabberd-po-e909d88_GH0.tar.gz) = 649749 +SHA256 (75a771bfec3626145d404349fdaec4f0eef83bbc.patch) = c2f6738ad61964d9d6e1ec79e2d934392085c3830914f20fe04204a5eff73630 +SIZE (75a771bfec3626145d404349fdaec4f0eef83bbc.patch) = 8302 diff --git a/net-im/ejabberd/files/patch-Makefile.in b/net-im/ejabberd/files/patch-Makefile.in index 77b2eec8c56f..ed43d8c90f92 100644 --- a/net-im/ejabberd/files/patch-Makefile.in +++ b/net-im/ejabberd/files/patch-Makefile.in @@ -1,76 +1,74 @@ ---- Makefile.in.orig 2021-07-22 13:51:43 UTC +--- Makefile.in.orig 2022-05-19 17:55:51 UTC +++ Makefile.in -@@ -22,7 +22,7 @@ SBINDIR = $(DESTDIR)@sbindir@ - LIBDIR = $(DESTDIR)@libdir@ +@@ -22,7 +22,7 @@ SBINDIR = @sbindir@ + LIBDIR = @libdir@ # /lib/ejabberd/ --EJABBERDDIR = $(DESTDIR)@libdir@/ejabberd -+EJABBERDDIR = $(DESTDIR)@libdir@/erlang/lib/ejabberd-$(PORTVERSION) +-EJABBERDDIR = @libdir@/ejabberd ++EJABBERDDIR = @libdir@/erlang/lib/ejabberd-$(PORTVERSION) # /share/doc/ejabberd PACKAGE_TARNAME = @PACKAGE_TARNAME@ @@ -66,7 +66,7 @@ SQLDIR = $(PRIVDIR)/sql LUADIR = $(PRIVDIR)/lua # /var/lib/ejabberd/ --SPOOLDIR = $(DESTDIR)@localstatedir@/lib/ejabberd -+SPOOLDIR = $(DESTDIR)@localstatedir@/spool/ejabberd +-SPOOLDIR = @localstatedir@/lib/ejabberd ++SPOOLDIR = @localstatedir@/spool/ejabberd # /var/log/ejabberd/ - LOGDIR = $(DESTDIR)@localstatedir@/log/ejabberd -@@ -185,7 +185,7 @@ + LOGDIR = @localstatedir@/log/ejabberd +@@ -198,7 +198,7 @@ DEPIX:=$(words $(subst /, ,$(DEPSDIR))) LIBIX:=$(shell expr "$(DEPIX)" + 2) ELIXIR_TO_DEST=$(LIBDIR) $(call VERSIONED_DEP,$(word 2,$(1))) $(wordlist 5,1000,$(1)) -DEPS_TO_DEST=$(LIBDIR) $(call VERSIONED_DEP,$(word 2,$(1))) $(wordlist 3,1000,$(1)) +DEPS_TO_DEST=$(LIBDIR)/ejabberd-$(PORTVERSION)/lib $(call VERSIONED_DEP,$(word 2,$(1))) $(wordlist 3,1000,$(1)) MAIN_TO_DEST=$(LIBDIR) $(call VERSIONED_DEP,ejabberd) $(1) TO_DEST_SINGLE=$(if $(subst X$(DEPSBASE)X,,X$(word 1,$(1))X),$(call MAIN_TO_DEST,$(1)),$(if $(subst XlibX,,X$(word $(LIBIX),$(1))X),$(call DEPS_TO_DEST,$(wordlist $(DEPIX),1000,$(1))),$(call ELIXIR_TO_DEST,$(wordlist $(DEPIX),1000,$(1))))) - TO_DEST=$(foreach path,$(1),$(call JOIN_PATHS,$(call TO_DEST_SINGLE,$(subst /, ,$(path))))) -@@ -266,9 +266,7 @@ install: copy-files - # - # Configuration files - $(INSTALL) -d -m 750 $(G_USER) $(ETCDIR) -- [ -f $(ETCDIR)/ejabberd.yml ] \ -- && $(INSTALL) -b -m 640 $(G_USER) ejabberd.yml.example $(ETCDIR)/ejabberd.yml-new \ -- || $(INSTALL) -b -m 640 $(G_USER) ejabberd.yml.example $(ETCDIR)/ejabberd.yml -+ $(INSTALL) -m 640 $(G_USER) ejabberd.yml.example $(ETCDIR) - $(SED) -e "s*{{rootdir}}*@prefix@*g" \ - -e "s*{{installuser}}*@INSTALLUSER@*g" \ + TO_DEST=$(foreach path,$(1),$(call JOIN_PATHS,$(DESTDIR)$(call TO_DEST_SINGLE,$(subst /, ,$(path))))) +@@ -305,6 +305,7 @@ ejabberdctl.example: vars.config -e "s*{{bindir}}*@bindir@*g" \ -@@ -277,16 +275,15 @@ install: copy-files - -e "s*{{localstatedir}}*@localstatedir@*g" \ - -e "s*{{docdir}}*@docdir@*g" \ + -e "s*{{libdir}}*@libdir@*g" \ -e "s*{{erl}}*@ERL@*g" \ + -e "s*lib/erlang/lib/ejabberd*lib/erlang/lib/ejabberd-$(PORTVERSION)*" \ -e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template \ > ejabberdctl.example -- [ -f $(ETCDIR)/ejabberdctl.cfg ] \ -- && $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg-new \ -- || $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg -- $(INSTALL) -b -m 644 $(G_USER) inetrc $(ETCDIR)/inetrc -+ $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(ETCDIR) -+ $(INSTALL) -b -m 644 $(G_USER) inetrc $(ETCDIR)/inetrc.example + +@@ -312,17 +313,13 @@ install: copy-files ejabberdctl.example + # + # Configuration files + $(INSTALL) -d -m 750 $(G_USER) $(DESTDIR)$(ETCDIR) +- [ -f $(DESTDIR)$(ETCDIR)/ejabberd.yml ] \ +- && $(INSTALL) -b -m 640 $(G_USER) ejabberd.yml.example $(DESTDIR)$(ETCDIR)/ejabberd.yml-new \ +- || $(INSTALL) -b -m 640 $(G_USER) ejabberd.yml.example $(DESTDIR)$(ETCDIR)/ejabberd.yml +- [ -f $(DESTDIR)$(ETCDIR)/ejabberdctl.cfg ] \ +- && $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(DESTDIR)$(ETCDIR)/ejabberdctl.cfg-new \ +- || $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(DESTDIR)$(ETCDIR)/ejabberdctl.cfg +- $(INSTALL) -b -m 644 $(G_USER) inetrc $(DESTDIR)$(ETCDIR)/inetrc ++ $(INSTALL) -m 640 $(G_USER) ejabberd.yml.example $(DESTDIR)$(ETCDIR) ++ $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(DESTDIR)$(ETCDIR) ++ $(INSTALL) -b -m 644 $(G_USER) inetrc $(DESTDIR)$(ETCDIR)/inetrc.example # # Administration script - [ -d $(SBINDIR) ] || $(INSTALL) -d -m 755 $(SBINDIR) -- $(INSTALL) -m 550 $(G_USER) ejabberdctl.example $(SBINDIR)/ejabberdctl -+ $(INSTALL) -m 555 $(G_USER) ejabberdctl.example $(SBINDIR)/ejabberdctl + [ -d $(DESTDIR)$(SBINDIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(SBINDIR) +- $(INSTALL) -m 550 $(G_USER) ejabberdctl.example $(DESTDIR)$(SBINDIR)/ejabberdctl ++ $(INSTALL) -m 555 $(G_USER) ejabberdctl.example $(DESTDIR)$(SBINDIR)/ejabberdctl # Elixir binaries - [ -d $(BINDIR) ] || $(INSTALL) -d -m 755 $(BINDIR) - [ -f $(DEPSDIR)/elixir/bin/iex ] && $(INSTALL) -m 550 $(G_USER) $(DEPSDIR)/elixir/bin/iex $(BINDIR)/iex || true -@@ -316,12 +313,14 @@ install: copy-files - chmod -R 750 $(LOGDIR) + [ -d $(DESTDIR)$(BINDIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR) + [ -f $(DEPSDIR)/elixir/bin/iex ] && $(INSTALL) -m 550 $(G_USER) $(DEPSDIR)/elixir/bin/iex $(DESTDIR)$(BINDIR)/iex || true +@@ -352,12 +349,14 @@ install: copy-files ejabberdctl.example + chmod -R 750 $(DESTDIR)$(LOGDIR) # # Documentation +ifndef NOPORTDOCS - $(INSTALL) -d $(MANDIR) - $(INSTALL) -d $(DOCDIR) + $(INSTALL) -d $(DESTDIR)$(MANDIR) + $(INSTALL) -d $(DESTDIR)$(DOCDIR) [ -f man/ejabberd.yml.5 ] \ - && $(INSTALL) -m 644 man/ejabberd.yml.5 $(MANDIR) \ + && $(INSTALL) -m 644 man/ejabberd.yml.5 $(DESTDIR)$(MANDIR) \ || echo "Man page not included in sources" - $(INSTALL) -m 644 COPYING $(DOCDIR) + $(INSTALL) -m 644 COPYING $(DESTDIR)$(DOCDIR) +endif uninstall: uninstall-binary diff --git a/net-im/ejabberd/files/patch-configure.ac b/net-im/ejabberd/files/patch-configure.ac index 0f20a5a50c7d..2d5a817941d7 100644 --- a/net-im/ejabberd/files/patch-configure.ac +++ b/net-im/ejabberd/files/patch-configure.ac @@ -1,11 +1,11 @@ ---- configure.ac.orig 2021-07-22 13:51:43 UTC +--- configure.ac.orig 2022-05-06 13:12:22 UTC +++ configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. - AC_PREREQ(2.53) --AC_INIT(ejabberd, m4_esyscmd([echo `git describe --tags 2>/dev/null || echo 0.0` | sed 's/-g.*//;s/-/./' | tr -d '\012']), [ejabberd@process-one.net], [ejabberd]) + AC_PREREQ(2.59) +-AC_INIT(ejabberd, m4_esyscmd([echo `git describe --tags 2>/dev/null || echo 22.05` | sed 's/-g.*//;s/-/./' | tr -d '\012']), [ejabberd@process-one.net], [ejabberd]) +AC_INIT(ejabberd, %%PORTVERSION%%, [ejabberd@process-one.net], [ejabberd]) REQUIRE_ERLANG_MIN="8.3 (Erlang/OTP 19.3)" REQUIRE_ERLANG_MAX="100.0.0 (No Max)" diff --git a/net-im/ejabberd/files/patch-deps_jose_src_jose__server.erl b/net-im/ejabberd/files/patch-deps_jose_src_jose__server.erl index be50a38e7244..de877b78a2da 100644 --- a/net-im/ejabberd/files/patch-deps_jose_src_jose__server.erl +++ b/net-im/ejabberd/files/patch-deps_jose_src_jose__server.erl @@ -1,46 +1,46 @@ Source: https://github.com/potatosalad/erlang-jose/commit/833f81666a0f9fc31e7a3c2403d72e168a4a3209.patch ---- deps/jose/src/jose_server.erl.orig 2018-12-31 15:47:40 UTC +--- deps/jose/src/jose_server.erl.orig 2020-12-23 13:18:03 UTC +++ deps/jose/src/jose_server.erl -@@ -162,9 +162,7 @@ support_check() -> +@@ -173,9 +173,7 @@ support_check() -> %% @private check_ec_key_mode(_Fallback, Entries) -> - ECPEMEntry = { - 'ECPrivateKey', - << + PEMBin = << 48,119,2,1,1,4,32,104,152,88,12,19,82,251,156,171,31,222,207, 0,76,115,88,210,229,36,106,137,192,81,153,154,254,226,38,247, 70,226,157,160,10,6,8,42,134,72,206,61,3,1,7,161,68,3,66,0,4, -@@ -173,13 +171,23 @@ check_ec_key_mode(_Fallback, Entries) -> +@@ -184,13 +182,23 @@ check_ec_key_mode(_Fallback, Entries) -> 36,225,0,90,21,186,235,132,152,229,13,189,196,121,64,84,64, 229,173,12,24,23,127,175,67,247,29,139,91 >>, - not_encrypted - }, - case public_key:pem_entry_decode(ECPEMEntry) of - #'ECPrivateKey'{ privateKey = PrivateKey, publicKey = PublicKey } when is_list(PrivateKey) andalso is_tuple(PublicKey) -> - [{ec_key_mode, list} | Entries]; - #'ECPrivateKey'{ privateKey = PrivateKey, publicKey = PublicKey } when is_binary(PrivateKey) andalso is_binary(PublicKey) -> - [{ec_key_mode, binary} | Entries] + PEMEntry = {'ECPrivateKey', PEMBin, not_encrypted}, + %% Erlang 24 changes 'ECPrivateKey' record in a way that makes record matching fail + %% when this module is compiled on Erlang 23 (or earlier) but runs on 24. + %% So we destructure tuples, as ugly as it may be. + %% + %% See erlang-jose#113 for details. + PrivateKey = case list_to_integer(erlang:system_info(otp_release)) >= 24 of + true -> + {'ECPrivateKey', _Version, PrivKey0, _Params, _PubKey0, _Attributes} = public_key:pem_entry_decode(PEMEntry), + PrivKey0; + false -> + {'ECPrivateKey', _Version, PrivKey0, _Params, _PubKey0} = public_key:pem_entry_decode(PEMEntry), + PrivKey0 + end, + case is_binary(PrivateKey) of + true -> [{ec_key_mode, binary} | Entries]; + _ -> [{ec_key_mode, list} | Entries] end. %% @private diff --git a/net-im/ejabberd/files/patch-ejabberdctl.template b/net-im/ejabberd/files/patch-ejabberdctl.template index a3a834af7b05..04d51a3b1c30 100644 --- a/net-im/ejabberd/files/patch-ejabberdctl.template +++ b/net-im/ejabberd/files/patch-ejabberdctl.template @@ -1,23 +1,23 @@ ---- ejabberdctl.template.orig 2020-08-02 14:16:55 UTC +--- ejabberdctl.template.orig 2022-05-19 09:10:34 UTC +++ ejabberdctl.template -@@ -56,8 +56,8 @@ done +@@ -58,8 +58,8 @@ done # define ejabberd variables if not already defined from the command line - : "${ETC_DIR:="{{sysconfdir}}/ejabberd"}" --: "${LOGS_DIR:="{{localstatedir}}/log/ejabberd"}" --: "${SPOOL_DIR:="{{localstatedir}}/lib/ejabberd"}" + : "${CONFIG_DIR:="{{config_dir}}"}" +-: "${LOGS_DIR:="{{logs_dir}}"}" +-: "${SPOOL_DIR:="{{spool_dir}}"}" +: ${LOGS_DIR:=/var/log/ejabberd} +: ${SPOOL_DIR:=/var/spool/ejabberd} - : "${EJABBERD_CONFIG_PATH:="$ETC_DIR/ejabberd.yml"}" - : "${EJABBERDCTL_CONFIG_PATH:="$ETC_DIR/ejabberdctl.cfg"}" + : "${EJABBERD_CONFIG_PATH:="$CONFIG_DIR/ejabberd.yml"}" + : "${EJABBERDCTL_CONFIG_PATH:="$CONFIG_DIR/ejabberdctl.cfg"}" # Allows passing extra Erlang command-line arguments in vm.args file -@@ -81,7 +81,8 @@ if [ -n "$INET_DIST_INTERFACE" ] ; then +@@ -83,7 +83,8 @@ if [ -n "$INET_DIST_INTERFACE" ] ; then fi # if vm.args file exists in config directory, pass it to Erlang VM [ -f "$VMARGS" ] && ERLANG_OPTS="$ERLANG_OPTS -args_file $VMARGS" --ERL_LIBS={{libdir}} +-ERL_LIBS='{{libdir}}' +ERL_LIBS={{libdir}}/ejabberd +ERL_LIBS=$ERL_LIBS:{{libdir}}/ejabberd/lib ERL_CRASH_DUMP="$LOGS_DIR"/erl_crash_$(date "+%Y%m%d-%H%M%S").dump - ERL_INETRC="$ETC_DIR"/inetrc + ERL_INETRC="$CONFIG_DIR"/inetrc diff --git a/net-im/ejabberd/files/pkg-message.in b/net-im/ejabberd/files/pkg-message.in index 7609af67f10c..f05dcf19b9b0 100644 --- a/net-im/ejabberd/files/pkg-message.in +++ b/net-im/ejabberd/files/pkg-message.in @@ -1,13 +1,27 @@ +[ +{ type: install + message: <