# Contributor: Leonardo Arena # Contributor: Francesco Colista # Contributor: Nicolas Lorin # Contributor: John Regan # Maintainer: rubicon pkgname=ejabberd pkgver=23.04 pkgrel=0 _base64url=1.0.1 _cache_tab=1.0.30 _eimp=1.0.22 _ejabberd_po=c271992d07b20462e3c48f51cc8634e78488b354 _epam=1.0.14 _eredis=1.2.0 _esip=1.0.49 _ezlib=1.0.12 _fast_tls=1.1.16 _fast_xml=1.1.49 _fast_yaml=1.0.36 _idna=6.0.0 _jiffy=1.1.1 _jose=1.11.5 _luerl=1.0 _mqtree=1.0.15 _p1_acme=1.0.22 _p1_mysql=1.0.21 _p1_oauth2=0.6.11 _p1_pgsql=1.1.22 _p1_utils=1.0.25 _pkix=1.0.9 _rebar_elixir_plugin=0.1.0 _sqlite3=1.1.14 _stringprep=1.0.29 _stun=1.2.7 _unicode_util_compat=0.4.1 _xmpp=1.6.2 _yconf=1.0.15 pkgdesc="An erlang jabber server" url="https://www.ejabberd.im/" arch="all !x86 !armhf !armv7" # limited by elixir license="GPL-2.0-or-later" depends="elixir erlang" makedepends=" autoconf automake erlang-dev expat-dev gd-dev heimdal-dev linux-pam-dev openssl-dev>3 sqlite-dev yaml-dev zlib-dev " pkgusers="ejabberd" pkggroups="ejabberd" install="$pkgname.pre-install" options="!check" # test suite requires all kinds of services running subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc $pkgname-bash-completion" source="$pkgname-$pkgver.tar.gz::https://github.com/processone/ejabberd/archive/$pkgver.tar.gz base64url-$_base64url.tar.gz::https://github.com/dvv/base64url/archive/refs/tags/$_base64url.tar.gz cache_tab-$_cache_tab.tar.gz::https://github.com/processone/cache_tab/archive/refs/tags/$_cache_tab.tar.gz eimp-$_eimp.tar.gz::https://github.com/processone/eimp/archive/refs/tags/$_eimp.tar.gz ejabberd_po-$_ejabberd_po.tar.gz::https://github.com/processone/ejabberd-po/archive/$_ejabberd_po.tar.gz epam-$_epam.tar.gz::https://github.com/processone/epam/archive/refs/tags/$_epam.tar.gz eredis-$_eredis.tar.gz::https://github.com/wooga/eredis/archive/refs/tags/v$_eredis.tar.gz esip-$_esip.tar.gz::https://github.com/processone/esip/archive/refs/tags/$_esip.tar.gz ezlib-$_ezlib.tar.gz::https://github.com/processone/ezlib/archive/refs/tags/$_ezlib.tar.gz fast_tls-$_fast_tls.tar.gz::https://github.com/processone/fast_tls/archive/refs/tags/$_fast_tls.tar.gz fast_xml-$_fast_xml.tar.gz::https://github.com/processone/fast_xml/archive/refs/tags/$_fast_xml.tar.gz fast_yaml-$_fast_yaml.tar.gz::https://github.com/processone/fast_yaml/archive/refs/tags/$_fast_yaml.tar.gz idna-$_idna.tar.gz::https://github.com/benoitc/erlang-idna/archive/refs/tags/$_idna.tar.gz jiffy-$_jiffy.tar.gz::https://github.com/davisp/jiffy/archive/refs/tags/$_jiffy.tar.gz jose-$_jose.tar.gz::https://github.com/potatosalad/erlang-jose/archive/refs/tags/$_jose.tar.gz luerl-$_luerl.tar.gz::https://github.com/rvirding/luerl/archive/refs/tags/v$_luerl.tar.gz mqtree-$_mqtree.tar.gz::https://github.com/processone/mqtree/archive/refs/tags/$_mqtree.tar.gz p1_acme-$_p1_acme.tar.gz::https://github.com/processone/p1_acme/archive/refs/tags/$_p1_acme.tar.gz p1_mysql-$_p1_mysql.tar.gz::https://github.com/processone/p1_mysql/archive/refs/tags/$_p1_mysql.tar.gz p1_oauth2-$_p1_oauth2.tar.gz::https://github.com/processone/p1_oauth2/archive/refs/tags/$_p1_oauth2.tar.gz p1_pgsql-$_p1_pgsql.tar.gz::https://github.com/processone/p1_pgsql/archive/refs/tags/$_p1_pgsql.tar.gz p1_utils-$_p1_utils.tar.gz::https://github.com/processone/p1_utils/archive/refs/tags/$_p1_utils.tar.gz pkix-$_pkix.tar.gz::https://github.com/processone/pkix/archive/refs/tags/$_pkix.tar.gz rebar_elixir_plugin-$_rebar_elixir_plugin.tar.gz::https://github.com/processone/rebar_elixir_plugin/archive/refs/tags/$_rebar_elixir_plugin.tar.gz sqlite3-$_sqlite3.tar.gz::https://github.com/processone/erlang-sqlite3/archive/refs/tags/$_sqlite3.tar.gz stringprep-$_stringprep.tar.gz::https://github.com/processone/stringprep/archive/refs/tags/$_stringprep.tar.gz stun-$_stun.tar.gz::https://github.com/processone/stun/archive/refs/tags/$_stun.tar.gz unicode_util_compat-$_unicode_util_compat.tar.gz::https://github.com/benoitc/unicode_util_compat/archive/refs/tags/$_unicode_util_compat.tar.gz xmpp-$_xmpp.tar.gz::https://github.com/processone/xmpp/archive/refs/tags/$_xmpp.tar.gz yconf-$_yconf.tar.gz::https://github.com/processone/yconf/archive/refs/tags/$_yconf.tar.gz ejabberd.initd ejabberd.logrotate ejabberd.confd fix-missing-plugins.patch use-system-elixir.patch " prepare() { mkdir deps for i in \ base64url-$_base64url \ cache_tab-$_cache_tab \ eimp-$_eimp \ epam-$_epam \ eredis-$_eredis \ esip-$_esip \ ezlib-$_ezlib \ fast_tls-$_fast_tls \ fast_xml-$_fast_xml \ fast_yaml-$_fast_yaml \ jiffy-$_jiffy \ luerl-$_luerl \ mqtree-$_mqtree \ p1_acme-$_p1_acme \ p1_mysql-$_p1_mysql \ p1_oauth2-$_p1_oauth2 \ p1_pgsql-$_p1_pgsql \ p1_utils-$_p1_utils \ pkix-$_pkix \ rebar_elixir_plugin-$_rebar_elixir_plugin \ stringprep-$_stringprep \ stun-$_stun \ unicode_util_compat-$_unicode_util_compat \ xmpp-$_xmpp \ yconf-$_yconf; do mv "$srcdir"/"$i" "$builddir"/deps/${i%-*} done mv "$srcdir"/ejabberd-po-$_ejabberd_po "$builddir"/deps/ejabberd_po mv "$srcdir"/erlang-sqlite3-$_sqlite3 "$builddir"/deps/sqlite3 mv "$srcdir"/erlang-idna-$_idna "$builddir"/deps/idna mv "$srcdir"/erlang-jose-$_jose "$builddir"/deps/jose # Use system Elixir compiler ln -s /usr/lib/elixir "$builddir"/deps/elixir default_prepare GIT_DIR=. sh ./autogen.sh } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --sbindir=/usr/sbin \ --libdir=/usr/lib/ejabberd \ --localstatedir=/var \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-user=ejabberd \ --enable-group=ejabberd \ --enable-all make } package() { # Prevent installation of duplicate Elixir into /usr/bin rm -v deps/elixir make DESTDIR="$pkgdir" install install -Dm755 tools/captcha* \ -t "$pkgdir"/usr/share/doc/$pkgname/examples install -Dm644 tools/ejabberdctl.bc \ "$pkgdir"/usr/share/bash-completion/completions/ejabberdctl install -d "$pkgdir"/var/spool/$pkgname install -d "$pkgdir"/var/lib/$pkgname install -D -m0644 "$srcdir"/$pkgname.logrotate \ "$pkgdir"/etc/logrotate.d/$pkgname install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname chown -R ejabberd.ejabberd "$pkgdir"/var/log/ejabberd chown -R ejabberd.ejabberd "$pkgdir"/var/spool/ejabberd chown -R ejabberd.ejabberd "$pkgdir"/var/lib/ejabberd chgrp ejabberd "$pkgdir"/etc/ejabberd/ejabberd.yml \ "$pkgdir"/etc/ejabberd/ejabberdctl.cfg "$pkgdir"/etc/ejabberd cd "$pkgdir"/usr/lib/ejabberd/ejabberd-$pkgver/priv/bin/ rm -f captcha.sh ln -sf ../../../*/priv/bin/* . } sha512sums=" 2edb437baae54afd625222f2b251549af3ec469b535a10109679f1edd27fc840579351499f9bc79e8d0d17f752065787eb52607f886e5599386dbed52c8aecab ejabberd-23.04.tar.gz 7398dc99078053b6e0544eb8ca93e9616549493c02245084c220ec854f429139dcaba38dd522858dd74b95067979a3ec4378eb3abd5f6d1662af27687381c738 base64url-1.0.1.tar.gz bc8aaacea404d8a8b9a8fb14bc1eec9ec0c07ba4fac910287f448be66b0b3475b3913297dfce8d9de9fc208d9eb413dd8bf154cd1bd6edf86ee40100629e4553 cache_tab-1.0.30.tar.gz 5426df9a00d5b614ebb236729e2b397d5e72e12e68cbed32550a074b1b86557e1dee6585b917166e5ebf2fc41297329574c181471885638236c82a66a29d2232 eimp-1.0.22.tar.gz 99c82b0b342db5a9215f11d14656181f8a6a304bb23e3c7088a53f8bdcbffde9fb9e686147a91151c28b62d40a131fa96446eb5a23c71914bab7b7a9c62561fc ejabberd_po-c271992d07b20462e3c48f51cc8634e78488b354.tar.gz a8ff1e6095ad6f2cdf8a9766a7d846377e6ac5659851078a67a80595710fbd1552f900f0b4cad0baa54d63d3fbbe6009371f3a51dcaffe95c17565c0f7177678 epam-1.0.14.tar.gz c72ae291389e47d1ac4c1de69dccb6121f4f9195283665d490904226b2ea15cb7671b48bb08db507a5e62c6bced62d890a9ecb9752da6e0aad24a28da137907c eredis-1.2.0.tar.gz d21cf28b08fd01f5379242ae6fb4741d130d991e5f409865de27084c161c73bda9b283309fa9ab36fd1d7b9cdeac45b6955949455d7a11620b059ce7530a9a4e esip-1.0.49.tar.gz 950a76ef6714882909c8c03cb0c21f246fd04bb42b44496b8865a96da54544fad17b2e3f54ef0b744ae32a1b9930f32c5fbcd526833f3736e8e5087483e61233 ezlib-1.0.12.tar.gz c143eacf3b36b21c51cbf3c6fbb9327bc9a987ac88ef72f85981352efc3361a703caab970ae3f08bbcb1b99ded89160f9ccf798f718935d6c1950a51231abfbf fast_tls-1.1.16.tar.gz c33e94865b676f0011f21f9434e0ac3c019abdad7cf0b229a4dcad8bf6c26d4d84585e013cc8257cbb4da4a4f4d5216702dbf2eda15bd333fd429d260e6e85f5 fast_xml-1.1.49.tar.gz f479060bc5c37c5a86dad9b96b4d094edc5a0c41414e1c8f3c1b92553b9169f0990fc9a515f3dc199ed20147e84ede7f3e9956bce7236446bb932404899be1c4 fast_yaml-1.0.36.tar.gz 59f8996199f7e3391b1da1b8fb1ebb70e442838eab1f26af9a8a8545f3e1b9f72f0afd65108272a51d846b34e0e8abe9623f10c89156ebca3d87b6b3eb63a066 idna-6.0.0.tar.gz cfa36d77285e53ccce852640a4c780f2c29ad33c7352e3a5b69fec431d6684bac4bf5ac323379a8bb1d1289afa23b6f73d4d5ecf1b025791fd84198d4c066910 jiffy-1.1.1.tar.gz 2d1a293dbe63ce7dc32a07929f30580f47db468e540bc28433971a362feb3b19ef65caf11d74ddd7cd80a5be80e22ab4d0752a9bf248ac60f8f05c69e51ba1a0 jose-1.11.5.tar.gz b599f3562faeb672bef531642c0073c52943775e6785b3f8800559c1f6a331ec523987f4a3b1882da3e2d94b6257c5bc0992acdb5b3f250353bb8f25e081fa2e luerl-1.0.tar.gz e50066c39bb7feb4bea6a0fcff65ec4e73fca3aeeafa85be10ef7fe354e582a037369dc27163e47796f021e8cb70c40c396e5edce0ebf8255d4e452c4df0d4da mqtree-1.0.15.tar.gz b632e8e1f944675681bdb5345c4eabc8c13ea9e356244bc559e2c3d037e0897488699b8e054313693961aba41024141f6ecaa99e843f0651775f45960a438ebb p1_acme-1.0.22.tar.gz 69302a223ca2438d40ebb267c0e03d11b67f88daa4a58814bdbc2add498557b90df2ca72fc619c1ad4002216cd6f3bd0a83a8ef3f02c37f6181618e4e91c3c85 p1_mysql-1.0.21.tar.gz c97fe256ba3d0c3c18d0ad14dd85f28bed7607b0aa8d56a23e1c87694a10669eb1cd6e0abafff7e366974b2160ef5eb8e65dadc60a85963e3aa4334252db8b6e p1_oauth2-0.6.11.tar.gz d9d05d158fdd3942852928d768ded3691865a8499343a73dbe631caba785bc2b37dd9a5ddbac4058ce84290ba048d9844a196b6492cadb466c7f3eb505a7db73 p1_pgsql-1.1.22.tar.gz e96bcd309dfaf3f80de573b7ad1b7281ee0cb97b0b91f92a5a9c5b5ccc969dce4d6b1adbaef9ff33bf9deb0da8e6b1738fbe3f69235b51a0069e0fda72a16d74 p1_utils-1.0.25.tar.gz bd428814421effdc74c418a376b44716f4f79095550dd1b8431bfb51e8d26262015be0dda7948a9b8f9fc60a0cd0d12289161c8b497134f6413fd1e1efb886ba pkix-1.0.9.tar.gz 6c9704e999d375fafdb08a38bf0850c487e8408e60e7ec355c4b4d9fe385335a691b09370029cf619ba9eef4d82383e9410ac7f18a730cc80bc3366e86644609 rebar_elixir_plugin-0.1.0.tar.gz afe3fc31e53ccaf509c403b5c830e55c94fb2c44471b0a94126ee717dd98ad042f6b56c62a3a071ee920550be291b33d393a72b43253e137b43545623e9292f8 sqlite3-1.1.14.tar.gz 53b24c166d9328efab8e01b3e7ee7df3d66d240a6ac95f5338d0237ae4e6db20a4f53b487d632cbe6ae46c5f2c62001f7afb77172b27840a824944e51e08ef56 stringprep-1.0.29.tar.gz f97ec03e18e159f8352b023b6a340d5f4f4732e5b5ab925554d0a3b708c64b56f22772924fb369c683da5f647906b07571880d597a0789bd4fe89623827fa63e stun-1.2.7.tar.gz ee5bc1600ea00ad9c1d9f1565d04d073dd357c6f69c0728e770e17f7e4f1a07c2d2883d05e344d33dd7fe62e310ae4b86e4a05998e4830fedc6b895653993532 unicode_util_compat-0.4.1.tar.gz b8ffee49a54333e6e38442845d0361c7abc4655ae71db66ebf729b40d3d8124ce1b6e438624aa62546923f2d1a409ff6d3f134320643df5865354991fb55ec44 xmpp-1.6.2.tar.gz 9ee2022c4612253597580f27db58072c545f182f9c615c7137e9d42ac84cd473a598719e7ba3de654b72c5789f237448cc37fddeb863103b290d22483af3f313 yconf-1.0.15.tar.gz 18fb890794be6b0e63960af80a39a97b8c70a6c0ab9a91a95d0f623257e38f5a43c012430ccf871038fc440d06720c573821b485a94191bd73e3924e670683c5 ejabberd.initd 47fd2cfd9177c4e978a9799a153ba74392a9891822221af8194686a40f6bf01f38644833e1e1f5416c6357e0bfb7ca3dae96f55a4fcd7cd629ec798d85a72807 ejabberd.logrotate 96a571c0ab2be366e931bda423a61ef920cbaba2107e61ddbc501472ce3efe2804418cc6579c99310b902a9a99aaecb9284cf2420c071dbca2f670efb4034135 ejabberd.confd b6e23b16a8f931a2da9f052333dedc2b37667cf9265b84174590ac9a72e5f16d9dcd4c7153532bf45def7f94a71ce012dbb9d3227b7c7449b105fd711d085d59 fix-missing-plugins.patch cf80ecda6ea75f49af8e8af47bd76056801b08956b21ee15f20f2c2aca97f5af49099a9a43facd809cbd880348cb192ab96fd3d3bee3a258088cb02e6f56bd6d use-system-elixir.patch "