Remove net/ejabberd

our version is very old and lagging behind upstream
no one volunteered to update it in one year time window

ok jca@ jasper@
This commit is contained in:
solene 2020-03-16 13:43:37 +00:00
parent 94ee1d9516
commit c2a3f7486b
10 changed files with 0 additions and 666 deletions

View File

@ -1,81 +0,0 @@
# $OpenBSD: Makefile,v 1.49 2019/10/02 14:46:31 sthen Exp $
COMMENT= jabber server written in Erlang
V= 2.1.12
DISTNAME= ejabberd-$V
REVISION= 13
CATEGORIES= net
HOMEPAGE= https://www.ejabberd.im/
# GPLv2+
PERMIT_PACKAGE= Yes
WANTLIB= crypto expat iconv ssl z
MASTER_SITES= https://www.process-one.net/downloads/ejabberd/$V/
EXTRACT_SUFX= .tgz
MODULES= lang/erlang
LIB_DEPENDS= converters/libiconv
MAKE_FLAGS+= EJABBERDDIR=${PREFIX}/lib/ejabberd \
LOGDIR=${EJLOGDIR} \
ETCDIR=${SYSCONFDIR}/ejabberd \
SPOOLDIR=${EJDBDIR}
FAKE_FLAGS+= EJABBERDDIR=${WRKINST}/${PREFIX}/lib/ejabberd \
LOGDIR=${WRKINST}${EJLOGDIR} \
ETCDIR=${WRKINST}/${PREFIX}/share/examples/ejabberd \
SPOOLDIR=${WRKINST}/${EJDBDIR}
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --disable-pam \
--enable-mod_pubsub \
--enable-mod_irc \
--enable-mod_muc \
--enable-eldap \
--enable-web \
--enable-tls \
--enable-odbc \
--enable-ejabberd_zlib \
--disable-roster-gateway-workaround \
--disable-mssql
CONFIGURE_ENV= HOME=${WRKDIST} \
ERL=${MODERL_ERL} \
ERLC=${MODERL_ERLC} \
ac_cv_header_openssl_md2_h=no
JABBERDUSER= _ejabberd
JABBERDGROUP= _ejabberd
EJDBDIR= /var/db/ejabberd
EJLOGDIR= /var/log/ejabberd
WRKSRC= ${WRKDIST}/src
NO_TEST= Yes
SUBST_VARS= EJDBDIR EJLOGDIR JABBERDUSER
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ejabberd
cd ${WRKDIST}/examples && \
find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ejabberd/{} \; && \
find . ! -type d -exec ${SUBST_CMD} -c {} ${PREFIX}/share/examples/ejabberd/{} \;
${INSTALL_DATA} ${WRKSRC}/odbc/pg.sql ${PREFIX}/share/examples/ejabberd/
${INSTALL_DATA} ${WRKSRC}/odbc/mysql.sql ${PREFIX}/share/examples/ejabberd/
cd ${WRKDIST}/doc && \
find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ejabberd/{} \; && \
find . -name '*.html' -exec ${INSTALL_DATA} {} ${PREFIX}/share/doc/ejabberd/{} \; && \
find . -name '*.png' -exec ${INSTALL_DATA} {} ${PREFIX}/share/doc/ejabberd/{} \;
${SUBST_CMD} ${PREFIX}/share/examples/ejabberd/ejabberd.cfg
${SUBST_CMD} ${PREFIX}/sbin/ejabberdctl
@chown ${SHAREOWN}:${BINGRP} ${PREFIX}/sbin/ejabberdctl
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/ejabberd
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/ejabberd
@chmod ${SHAREMODE} ${PREFIX}/share/examples/ejabberd/*.cfg
@find ${WRKINST} -type f -name '*.beforesubst' -delete
.include <bsd.port.mk>

View File

@ -1,2 +0,0 @@
SHA256 (ejabberd-2.1.12.tgz) = OPCCU0Z3PADIWmazNYbHXy0ZHR6w7Yrgn6FzaNbd/Rk=
SIZE (ejabberd-2.1.12.tgz) = 1999224

View File

@ -1,31 +0,0 @@
$OpenBSD: patch-src_Makefile_in,v 1.4 2015/01/24 10:27:46 zhuk Exp $
No need to install release notes.
ejabberdctl mode 550 is annoying, and debian doesn't do that either
--- src/Makefile.in.orig Fri Dec 23 12:27:30 2011
+++ src/Makefile.in Sun Jan 22 20:22:08 2012
@@ -124,7 +124,7 @@ MSGSDIR = $(PRIVDIR)/msgs
SPOOLDIR = $(DESTDIR)@localstatedir@/lib/ejabberd
# /var/lock/ejabberdctl
-CTLLOCKDIR = $(DESTDIR)@localstatedir@/lock/ejabberdctl
+CTLLOCKDIR = $(DESTDIR)/tmp
# /var/lib/ejabberd/.erlang.cookie
COOKIEFILE = $(SPOOLDIR)/.erlang.cookie
@@ -202,7 +202,7 @@ install: all
#
# 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
#
# Init script
sed -e "s*@ctlscriptpath@*$(SBINDIR)*" \
@@ -264,7 +264,6 @@ install: all
install -m 644 ../doc/dev.html $(DOCDIR)
install -m 644 ../doc/guide.html $(DOCDIR)
install -m 644 ../doc/*.png $(DOCDIR)
- install -m 644 ../doc/*.txt $(DOCDIR)
[ -f ../doc/guide.pdf ] \
&& install -m 644 ../doc/guide.pdf $(DOCDIR) \
|| echo "No ../doc/guide.pdf was built"

View File

@ -1,25 +0,0 @@
$OpenBSD: patch-src_ejabberd_c2s_erl,v 1.1 2014/10/27 15:44:20 jasper Exp $
Security fix for CVE-2014-8760
https://github.com/processone/ejabberd/commit/7bdc1151b11d26d33649c5cce2817b74a4f231a8
--- src/ejabberd_c2s.erl.orig Tue Feb 5 17:22:34 2013
+++ src/ejabberd_c2s.erl Mon Oct 27 15:51:33 2014
@@ -615,7 +615,7 @@ wait_for_feature_request({xmlstreamelement, El}, State
TLSRequired = StateData#state.tls_required,
SockMod = (StateData#state.sockmod):get_sockmod(StateData#state.socket),
case {xml:get_attr_s("xmlns", Attrs), Name} of
- {?NS_SASL, "auth"} when not ((SockMod == gen_tcp) and TLSRequired) ->
+ {?NS_SASL, "auth"} when TLSEnabled or not TLSRequired ->
Mech = xml:get_attr_s("mechanism", Attrs),
ClientIn = jlib:decode_base64(xml:get_cdata(Els)),
case cyrsasl:server_start(StateData#state.sasl_state,
@@ -722,7 +722,7 @@ wait_for_feature_request({xmlstreamelement, El}, State
end;
_ ->
if
- (SockMod == gen_tcp) and TLSRequired ->
+ TLSRequired and not TLSEnabled ->
Lang = StateData#state.lang,
send_element(StateData, ?POLICY_VIOLATION_ERR(
Lang,

View File

@ -1,54 +0,0 @@
$OpenBSD: patch-src_ejabberd_cfg_example,v 1.5 2012/01/23 10:54:47 ajacoutot Exp $
--- src/ejabberd.cfg.example.orig Fri Dec 23 12:27:30 2011
+++ src/ejabberd.cfg.example Sun Jan 22 20:11:03 2012
@@ -115,7 +115,7 @@
%% certificate, specify the full path to the
%% file and uncomment this line:
%%
- %%{certfile, "/path/to/ssl.pem"}, starttls,
+ {certfile, "${SYSCONFDIR}/ejabberd/myserver.pem"}, starttls,
{access, c2s},
{shaper, c2s_shaper},
@@ -125,12 +125,12 @@
%%
%% To enable the old SSL connection method on port 5223:
%%
- %%{5223, ejabberd_c2s, [
- %% {access, c2s},
- %% {shaper, c2s_shaper},
- %% {certfile, "/path/to/ssl.pem"}, tls,
- %% {max_stanza_size, 65536}
- %% ]},
+{5223, ejabberd_c2s, [
+ {access, c2s},
+ {shaper, c2s_shaper},
+ {certfile, "${SYSCONFDIR}/ejabberd/myserver.pem"}, tls,
+ {max_stanza_size, 65536}
+ ]},
{5269, ejabberd_s2s_in, [
{shaper, s2s_shaper},
@@ -173,18 +173,18 @@
%% Allowed values are: false optional required required_trusted
%% You must specify a certificate file.
%%
-%%{s2s_use_starttls, optional}.
+{s2s_use_starttls, optional}.
%%
%% s2s_certfile: Specify a certificate file.
%%
-%%{s2s_certfile, "/path/to/ssl.pem"}.
+{s2s_certfile, "${SYSCONFDIR}/ejabberd/myserver.pem"}.
%%
%% domain_certfile: Specify a different certificate for each served hostname.
%%
-%%{domain_certfile, "example.org", "/path/to/example_org.pem"}.
-%%{domain_certfile, "example.com", "/path/to/example_com.pem"}.
+%%{domain_certfile, "example.org", "${SYSCONFDIR}/ejabberd/example_org.pem"}.
+%%{domain_certfile, "example.com", "${SYSCONFDIR}/ejabberd/example_com.pem"}.
%%
%% S2S whitelist or blacklist

View File

@ -1,83 +0,0 @@
$OpenBSD: patch-src_ejabberdctl_template,v 1.6 2013/05/05 16:17:19 gonzalo Exp $
--- src/ejabberdctl.template.orig Tue Feb 5 09:22:34 2013
+++ src/ejabberdctl.template Mon Apr 22 12:03:23 2013
@@ -1,7 +1,7 @@
#!/bin/sh
# define default configuration
-POLL=true
+POLL=false
SMP=auto
ERL_MAX_PORTS=32000
ERL_PROCESSES=250000
@@ -9,10 +9,10 @@ ERL_MAX_ETS_TABLES=1400
# define default environment variables
NODE=ejabberd
-HOST=localhost
+HOST=`hostname -s`
ERLANG_NODE=$NODE@$HOST
ERL=@erl@
-INSTALLUSER=@installuser@
+INSTALLUSER=${JABBERDUSER}
# parse command line parameters
ARGS=
@@ -33,7 +33,7 @@ done
# Define ejabberd variable if they have not been defined from the command line
if [ "$ETCDIR" = "" ] ; then
- ETCDIR=@SYSCONFDIR@/ejabberd
+ ETCDIR=${SYSCONFDIR}/ejabberd
fi
if [ "$EJABBERD_CONFIG_PATH" = "" ] ; then
EJABBERD_CONFIG_PATH=$ETCDIR/ejabberd.cfg
@@ -43,10 +43,10 @@ if [ "$EJABBERDCTL_CONFIG_PATH" = "" ] ; then
fi
[ -f "$EJABBERDCTL_CONFIG_PATH" ] && . "$EJABBERDCTL_CONFIG_PATH"
if [ "$LOGS_DIR" = "" ] ; then
- LOGS_DIR=@LOCALSTATEDIR@/log/ejabberd
+ LOGS_DIR=${EJLOGDIR}
fi
if [ "$SPOOLDIR" = "" ] ; then
- SPOOLDIR=@LOCALSTATEDIR@/lib/ejabberd
+ SPOOLDIR=${EJDBDIR}/${NODE}
fi
if [ "$EJABBERD_DOC_PATH" = "" ] ; then
EJABBERD_DOC_PATH=@DOCDIR@
@@ -62,7 +62,7 @@ EJID=`id -g $INSTALLUSER`
EXEC_CMD="false"
for GID in $GIDS; do
if [ $GID -eq 0 ] ; then
- EXEC_CMD="su ${INSTALLUSER} -p -c"
+ EXEC_CMD="su ${INSTALLUSER} -m -c"
fi
done
if [ "$ID" -eq "$EJID" ] ; then
@@ -88,7 +88,7 @@ ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL
# define additional environment variables
if [ "$EJABBERDDIR" = "" ]; then
- EJABBERDDIR=@LIBDIR@/ejabberd
+ EJABBERDDIR=${LOCALBASE}/lib/ejabberd
fi
if [ "$EJABBERD_EBIN_PATH" = "" ]; then
EJABBERD_EBIN_PATH=$EJABBERDDIR/ebin
@@ -114,7 +114,7 @@ ERL_INETRC=$ETCDIR/inetrc
HOME=$SPOOLDIR
# create the home dir with the proper user if doesn't exist, because it stores cookie file
-[ -d $HOME ] || $EXEC_CMD "mkdir -p $HOME"
+#[ -d $HOME ] || $EXEC_CMD "mkdir -p $HOME"
# Change to a directory readable by INSTALLUSER to
# prevent "File operation error: eacces." messages
@@ -250,7 +250,7 @@ ctl ()
# using flock if available. Expects a linux-style
# flock that can lock a file descriptor.
MAXCONNID=100
- CONNLOCKDIR=@LOCALSTATEDIR@/lock/ejabberdctl
+ CONNLOCKDIR=/tmp
FLOCK='/usr/bin/flock'
if [ ! -x "$FLOCK" ] || [ ! -d "$CONNLOCKDIR" ] ; then
JOT='/usr/bin/jot'

View File

@ -1,4 +0,0 @@
ejabberd is a free and open source instant messaging server written in
Erlang. ejabberd is cross-platform, distributed, fault-tolerant, and
based on open standards to achieve real-time communication
(Jabber/XMPP).

View File

@ -1,285 +0,0 @@
@comment $OpenBSD: PLIST,v 1.17 2018/09/04 12:46:16 espie Exp $
@newgroup _ejabberd:594
@newuser _ejabberd:594:_ejabberd:daemon:ejabberd account:/var/db/ejabberd:/bin/sh
lib/ejabberd/
lib/ejabberd/ebin/
lib/ejabberd/ebin/ELDAPv3.beam
lib/ejabberd/ebin/XmppAddr.beam
lib/ejabberd/ebin/acl.beam
lib/ejabberd/ebin/adhoc.beam
lib/ejabberd/ebin/cache_tab.beam
lib/ejabberd/ebin/cache_tab_sup.beam
lib/ejabberd/ebin/cyrsasl.beam
lib/ejabberd/ebin/cyrsasl_anonymous.beam
lib/ejabberd/ebin/cyrsasl_digest.beam
lib/ejabberd/ebin/cyrsasl_plain.beam
lib/ejabberd/ebin/cyrsasl_scram.beam
lib/ejabberd/ebin/dynamic_compile.beam
lib/ejabberd/ebin/ejabberd.app
lib/ejabberd/ebin/ejabberd.beam
lib/ejabberd/ebin/ejabberd_admin.beam
lib/ejabberd/ebin/ejabberd_app.beam
lib/ejabberd/ebin/ejabberd_auth.beam
lib/ejabberd/ebin/ejabberd_auth_anonymous.beam
lib/ejabberd/ebin/ejabberd_auth_external.beam
lib/ejabberd/ebin/ejabberd_auth_internal.beam
lib/ejabberd/ebin/ejabberd_auth_ldap.beam
lib/ejabberd/ebin/ejabberd_auth_odbc.beam
@comment lib/ejabberd/ebin/ejabberd_auth_pam.beam
lib/ejabberd/ebin/ejabberd_c2s.beam
lib/ejabberd/ebin/ejabberd_c2s_config.beam
lib/ejabberd/ebin/ejabberd_captcha.beam
lib/ejabberd/ebin/ejabberd_check.beam
lib/ejabberd/ebin/ejabberd_commands.beam
lib/ejabberd/ebin/ejabberd_config.beam
lib/ejabberd/ebin/ejabberd_ctl.beam
lib/ejabberd/ebin/ejabberd_frontend_socket.beam
lib/ejabberd/ebin/ejabberd_hooks.beam
lib/ejabberd/ebin/ejabberd_http.beam
lib/ejabberd/ebin/ejabberd_http_bind.beam
lib/ejabberd/ebin/ejabberd_http_poll.beam
lib/ejabberd/ebin/ejabberd_listener.beam
lib/ejabberd/ebin/ejabberd_local.beam
lib/ejabberd/ebin/ejabberd_logger_h.beam
lib/ejabberd/ebin/ejabberd_loglevel.beam
lib/ejabberd/ebin/ejabberd_node_groups.beam
lib/ejabberd/ebin/ejabberd_odbc.beam
lib/ejabberd/ebin/ejabberd_odbc_sup.beam
lib/ejabberd/ebin/ejabberd_piefxis.beam
lib/ejabberd/ebin/ejabberd_rdbms.beam
lib/ejabberd/ebin/ejabberd_receiver.beam
lib/ejabberd/ebin/ejabberd_regexp.beam
lib/ejabberd/ebin/ejabberd_router.beam
lib/ejabberd/ebin/ejabberd_s2s.beam
lib/ejabberd/ebin/ejabberd_s2s_in.beam
lib/ejabberd/ebin/ejabberd_s2s_out.beam
lib/ejabberd/ebin/ejabberd_service.beam
lib/ejabberd/ebin/ejabberd_sm.beam
lib/ejabberd/ebin/ejabberd_socket.beam
lib/ejabberd/ebin/ejabberd_stun.beam
lib/ejabberd/ebin/ejabberd_sup.beam
lib/ejabberd/ebin/ejabberd_system_monitor.beam
lib/ejabberd/ebin/ejabberd_tmp_sup.beam
lib/ejabberd/ebin/ejabberd_update.beam
lib/ejabberd/ebin/ejabberd_web.beam
lib/ejabberd/ebin/ejabberd_web_admin.beam
lib/ejabberd/ebin/ejabberd_zlib.beam
lib/ejabberd/ebin/ejd2odbc.beam
lib/ejabberd/ebin/eldap.beam
lib/ejabberd/ebin/eldap_filter.beam
lib/ejabberd/ebin/eldap_filter_yecc.beam
lib/ejabberd/ebin/eldap_pool.beam
lib/ejabberd/ebin/eldap_utils.beam
lib/ejabberd/ebin/extauth.beam
lib/ejabberd/ebin/gen_iq_handler.beam
lib/ejabberd/ebin/gen_mod.beam
lib/ejabberd/ebin/gen_pubsub_node.beam
lib/ejabberd/ebin/gen_pubsub_nodetree.beam
lib/ejabberd/ebin/iconv.beam
lib/ejabberd/ebin/idna.beam
lib/ejabberd/ebin/jd2ejd.beam
lib/ejabberd/ebin/jlib.beam
lib/ejabberd/ebin/mod_adhoc.beam
lib/ejabberd/ebin/mod_announce.beam
lib/ejabberd/ebin/mod_blocking.beam
lib/ejabberd/ebin/mod_caps.beam
lib/ejabberd/ebin/mod_configure.beam
lib/ejabberd/ebin/mod_configure2.beam
lib/ejabberd/ebin/mod_disco.beam
lib/ejabberd/ebin/mod_echo.beam
lib/ejabberd/ebin/mod_http_bind.beam
lib/ejabberd/ebin/mod_http_fileserver.beam
lib/ejabberd/ebin/mod_ip_blacklist.beam
lib/ejabberd/ebin/mod_irc.beam
lib/ejabberd/ebin/mod_irc_connection.beam
lib/ejabberd/ebin/mod_last.beam
lib/ejabberd/ebin/mod_muc.beam
lib/ejabberd/ebin/mod_muc_log.beam
lib/ejabberd/ebin/mod_muc_room.beam
lib/ejabberd/ebin/mod_offline.beam
lib/ejabberd/ebin/mod_ping.beam
lib/ejabberd/ebin/mod_pres_counter.beam
lib/ejabberd/ebin/mod_privacy.beam
lib/ejabberd/ebin/mod_private.beam
lib/ejabberd/ebin/mod_proxy65.beam
lib/ejabberd/ebin/mod_proxy65_lib.beam
lib/ejabberd/ebin/mod_proxy65_service.beam
lib/ejabberd/ebin/mod_proxy65_sm.beam
lib/ejabberd/ebin/mod_proxy65_stream.beam
lib/ejabberd/ebin/mod_pubsub.beam
lib/ejabberd/ebin/mod_pubsub_odbc.beam
lib/ejabberd/ebin/mod_register.beam
lib/ejabberd/ebin/mod_register_web.beam
lib/ejabberd/ebin/mod_roster.beam
lib/ejabberd/ebin/mod_service_log.beam
lib/ejabberd/ebin/mod_shared_roster.beam
lib/ejabberd/ebin/mod_shared_roster_ldap.beam
lib/ejabberd/ebin/mod_sic.beam
lib/ejabberd/ebin/mod_stats.beam
lib/ejabberd/ebin/mod_time.beam
lib/ejabberd/ebin/mod_vcard.beam
lib/ejabberd/ebin/mod_vcard_ldap.beam
lib/ejabberd/ebin/mod_vcard_xupdate.beam
lib/ejabberd/ebin/mod_version.beam
lib/ejabberd/ebin/node_buddy.beam
lib/ejabberd/ebin/node_club.beam
lib/ejabberd/ebin/node_dag.beam
lib/ejabberd/ebin/node_dispatch.beam
lib/ejabberd/ebin/node_flat.beam
lib/ejabberd/ebin/node_flat_odbc.beam
lib/ejabberd/ebin/node_hometree.beam
lib/ejabberd/ebin/node_hometree_odbc.beam
lib/ejabberd/ebin/node_mb.beam
lib/ejabberd/ebin/node_pep.beam
lib/ejabberd/ebin/node_pep_odbc.beam
lib/ejabberd/ebin/node_private.beam
lib/ejabberd/ebin/node_public.beam
lib/ejabberd/ebin/nodetree_dag.beam
lib/ejabberd/ebin/nodetree_tree.beam
lib/ejabberd/ebin/nodetree_tree_odbc.beam
lib/ejabberd/ebin/nodetree_virtual.beam
lib/ejabberd/ebin/odbc_queries.beam
lib/ejabberd/ebin/p1_fsm.beam
lib/ejabberd/ebin/p1_mnesia.beam
lib/ejabberd/ebin/pg2_backport.beam
lib/ejabberd/ebin/pubsub_db_odbc.beam
lib/ejabberd/ebin/pubsub_index.beam
lib/ejabberd/ebin/pubsub_subscription.beam
lib/ejabberd/ebin/pubsub_subscription_odbc.beam
lib/ejabberd/ebin/randoms.beam
lib/ejabberd/ebin/scram.beam
lib/ejabberd/ebin/sha.beam
lib/ejabberd/ebin/shaper.beam
lib/ejabberd/ebin/stringprep.beam
lib/ejabberd/ebin/stringprep_sup.beam
lib/ejabberd/ebin/stun_codec.beam
lib/ejabberd/ebin/tls.beam
lib/ejabberd/ebin/translate.beam
lib/ejabberd/ebin/treap.beam
@comment lib/ejabberd/ebin/win32_dns.beam
lib/ejabberd/ebin/xml.beam
lib/ejabberd/ebin/xml_stream.beam
lib/ejabberd/include/
lib/ejabberd/include/XmppAddr.hrl
lib/ejabberd/include/adhoc.hrl
lib/ejabberd/include/ejabberd.hrl
lib/ejabberd/include/ejabberd_commands.hrl
lib/ejabberd/include/ejabberd_config.hrl
lib/ejabberd/include/ejabberd_ctl.hrl
lib/ejabberd/include/eldap/
lib/ejabberd/include/eldap/ELDAPv3.hrl
lib/ejabberd/include/eldap/eldap.hrl
lib/ejabberd/include/jlib.hrl
lib/ejabberd/include/mod_muc/
lib/ejabberd/include/mod_muc/mod_muc_room.hrl
lib/ejabberd/include/mod_privacy.hrl
lib/ejabberd/include/mod_proxy65/
lib/ejabberd/include/mod_proxy65/mod_proxy65.hrl
lib/ejabberd/include/mod_pubsub/
lib/ejabberd/include/mod_pubsub/pubsub.hrl
lib/ejabberd/include/mod_roster.hrl
lib/ejabberd/include/web/
lib/ejabberd/include/web/ejabberd_http.hrl
lib/ejabberd/include/web/ejabberd_web_admin.hrl
lib/ejabberd/include/web/http_bind.hrl
lib/ejabberd/priv/
lib/ejabberd/priv/bin/
@mode 0750
lib/ejabberd/priv/bin/captcha.sh
@mode
lib/ejabberd/priv/lib/
lib/ejabberd/priv/lib/ejabberd_zlib_drv.so
lib/ejabberd/priv/lib/expat_erl.so
lib/ejabberd/priv/lib/iconv_erl.so
lib/ejabberd/priv/lib/sha_drv.so
lib/ejabberd/priv/lib/stringprep_drv.so
lib/ejabberd/priv/lib/tls_drv.so
lib/ejabberd/priv/msgs/
lib/ejabberd/priv/msgs/ca.msg
lib/ejabberd/priv/msgs/cs.msg
lib/ejabberd/priv/msgs/de.msg
lib/ejabberd/priv/msgs/el.msg
lib/ejabberd/priv/msgs/eo.msg
lib/ejabberd/priv/msgs/es.msg
lib/ejabberd/priv/msgs/fr.msg
lib/ejabberd/priv/msgs/gl.msg
lib/ejabberd/priv/msgs/he.msg
lib/ejabberd/priv/msgs/id.msg
lib/ejabberd/priv/msgs/it.msg
lib/ejabberd/priv/msgs/ja.msg
lib/ejabberd/priv/msgs/nl.msg
lib/ejabberd/priv/msgs/no.msg
lib/ejabberd/priv/msgs/pl.msg
lib/ejabberd/priv/msgs/pt-br.msg
lib/ejabberd/priv/msgs/pt.msg
lib/ejabberd/priv/msgs/ru.msg
lib/ejabberd/priv/msgs/sk.msg
lib/ejabberd/priv/msgs/sv.msg
lib/ejabberd/priv/msgs/th.msg
lib/ejabberd/priv/msgs/tr.msg
lib/ejabberd/priv/msgs/uk.msg
lib/ejabberd/priv/msgs/vi.msg
lib/ejabberd/priv/msgs/wa.msg
lib/ejabberd/priv/msgs/zh.msg
sbin/ejabberdctl
share/doc/ejabberd/
share/doc/ejabberd/COPYING
@comment share/doc/ejabberd/api/
share/doc/ejabberd/dev.html
share/doc/ejabberd/discorus.png
share/doc/ejabberd/features.html
share/doc/ejabberd/guide.html
share/doc/ejabberd/logo.png
share/doc/ejabberd/msrl-dit-deep.png
share/doc/ejabberd/msrl-dit-flat.png
share/doc/ejabberd/msrl-roster-deep.png
share/doc/ejabberd/msrl-roster-flat.png
share/doc/ejabberd/webadmmain.png
share/doc/ejabberd/webadmmainru.png
share/doc/ejabberd/yozhikheader.png
share/doc/pkg-readmes/${PKGSTEM}
share/examples/ejabberd/
@sample ${SYSCONFDIR}/ejabberd/
share/examples/ejabberd/ejabberd.cfg
@mode 0640
@sample ${SYSCONFDIR}/ejabberd/ejabberd.cfg
@mode
share/examples/ejabberd/ejabberdctl.cfg
@mode 0640
@sample ${SYSCONFDIR}/ejabberd/ejabberdctl.cfg
@mode
share/examples/ejabberd/extauth/
share/examples/ejabberd/extauth/check_pass_null.pl
share/examples/ejabberd/inetrc
@sample ${SYSCONFDIR}/ejabberd/inetrc
share/examples/ejabberd/mtr/
share/examples/ejabberd/mtr/ejabberd
share/examples/ejabberd/mtr/ejabberd-netbsd.sh
share/examples/ejabberd/mtr/ejabberd.cfg
share/examples/ejabberd/mysql.sql
share/examples/ejabberd/pg.sql
share/examples/ejabberd/transport-configs/
share/examples/ejabberd/transport-configs/configs/
share/examples/ejabberd/transport-configs/configs/aim-transport.xml
share/examples/ejabberd/transport-configs/configs/ile.xml
share/examples/ejabberd/transport-configs/configs/jabber-gg-transport.xml
share/examples/ejabberd/transport-configs/configs/jit.xml
share/examples/ejabberd/transport-configs/configs/msn-transport.xml
share/examples/ejabberd/transport-configs/configs/yahoo-transport-2.xml
share/examples/ejabberd/transport-configs/init-scripts/
share/examples/ejabberd/transport-configs/init-scripts/aim-transport
share/examples/ejabberd/transport-configs/init-scripts/ile
share/examples/ejabberd/transport-configs/init-scripts/jabber-gg-transport
share/examples/ejabberd/transport-configs/init-scripts/jit
share/examples/ejabberd/transport-configs/init-scripts/msn-transport
share/examples/ejabberd/transport-configs/init-scripts/yahoo-transport-2
@mode 0750
@owner _ejabberd
@group _ejabberd
@sample /var/log/ejabberd/
@sample /var/db/ejabberd/
@sample /var/db/ejabberd/ejabberd/
@mode
@owner
@group
@rcscript ${RCDIR}/ejabberd

View File

@ -1,77 +0,0 @@
$OpenBSD: README,v 1.9 2018/09/04 12:46:16 espie Exp $
+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------
* Migration
When moving database between machines, or upgrading from 1.1.x to
2.x.x version you will need to follow the instructions available at
http://www.ejabberd.im/migrate-host
Node name is by default set to ejabberd@`hostname -s`
* Configuration
* DNS
SRV records for your server can make your life easier. Example
records:
_jabber._tcp.example.org. SRV 5 0 5269 host.example.org.
_xmpp-server._tcp.example.org. SRV 5 0 5269 host.example.org.
_xmpp-client._tcp.example.org. SRV 5 0 5222 host.example.org.
* Configuration file
Set up the hostnames served by the server:
{hosts, ["example.net", "example.com", "example.org"]}.
Add administrative user
{acl, admin, {user, "ermine", "example.org"}}.
If you want to disallow in-band registration of users:
{access, register, [{deny, all}]}.
Users to get notifications about created new accounts:
{registration_watchers, ["admin1@example.org"]},
* Administration
Control is done using ${TRUEPREFIX}/sbin/ejabberdctl. Run it without
arguments for list of possible commands and flags. It needs to be
executed as either root or _ejabberd user.
Another possibility, giving you more options, is the web interface,
available at http://your.server:5280/admin/. First, you need to
create a user in the "admin" ACL group. Then you can use his full JID
and account password to log in.
* Using SSL
The sample configuration enables SSL by default. You just need to
generate the keys. Note that you should enter your domain name as the
Common Name for your certificate.
# openssl req -new -nodes -x509 -newkey rsa:4096 -days 365 \
-keyout ${SYSCONFDIR}/ejabberd/myserver.pem \
-out ${SYSCONFDIR}/ejabberd/myserver.pem
# chown root:_ejabberd ${SYSCONFDIR}/ejabberd/myserver.pem
# chmod 640 ${SYSCONFDIR}/ejabberd/myserver.pem
To disable SSL comment out (prepend with %%) lines containing
'certfile' and the whole block pertaining to port 5223
* Hostname resolving
As Erlang is rather picky when it comes to resolving the hostname of
the Jabber server. It requires the machine's shortname to be
resolveable to the local address. A line such as the following for
/etc/hosts suffices (make sure my_hostname matches the output of
`hostname -s`):
127.0.0.1 my_hostname
* Epmd
Epmd is a small name server used by Erlang programs when establishing
distributed Erlang communications. ejabberd needs epmd to use
ejabberdctl and also when clustering ejabberd nodes. If ejabberd is
stopped, and there aren't any other Erlang programs running in the
system, you can safely stop epmd if you want, using this command:
epmd -kill
It is strongly recommended to block the port 4369 in the firewall for
external connections. epmd listens in this port, and usually epmd is
not needed from outside the machine.

View File

@ -1,24 +0,0 @@
#!/bin/ksh
#
# $OpenBSD: ejabberd.rc,v 1.3 2018/01/11 19:27:05 rpe Exp $
daemon="${TRUEPREFIX}/sbin/ejabberdctl"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_usercheck=NO
rc_start() {
${rcexec} "${daemon} ${daemon_flags} start"
}
rc_stop() {
${daemon} ${daemon_flags} stop
}
rc_check() {
${daemon} ${daemon_flags} status
}
rc_cmd $1