Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37531589
en ru br
Репозитории ALT
S:21.12-alt1
5.1: 2.0.5-alt1
4.1: 2.0.3-alt1.M41.1
4.0: 1.1.4-alt1
3.0: 0.9-alt1
+backports:1.1.2-alt0.M30.1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: ejabberd

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_enable pam

Name: ejabberd
Version: 2.0.5
Release: alt1

Summary: Fault-tolerant distributed Jabber server written in Erlang
License: GPL
Group: System/Servers
Url: http://www.process-one.net/en/ejabberd/

Packager: Mikhail Yakshin <greycat at altlinux.org>

Requires: erlang >= R11B.5
Requires: jabber-common >= 0.2
Requires: su

BuildRequires(pre): jabber-common >= 0.2
BuildRequires: erlang-devel erlang-otp-devel libcom_err-devel libexpat-devel libssl-devel zlib-devel
%{?_enable_pam:BuildRequires: libpam-devel}

Source: %name-%version-%release.tar

%description
ejabberd is a Free and Open Source distributed fault-tolerant Jabber
server. It writen mostly in Erlang.

The main features of ejabberd is:

* Truly portable
* Distributed
* Fault-tolerance
* Built-in Multi-User Chat service
* Built-in IRC transport
* Built-in Publish-Subscribe service
* Built-in Jabber Users Directory service based on users vCards
* Built-in web-based administration interface
* Built-in HTTP Polling service
* SSL support
* Support for LDAP authentification
* Ability to interface with external components (JIT, MSN-t, Yahoo-t, etc)
* Migration from jabberd14 is possible
* Mostly XMPP-compliant
* Support for JEP-0030 (Service Discovery).
* Support for JEP-0039 (Statistics Gathering).
* Support for xml:lang

%if_enabled pam
%package pam
Summary: PAM auth support for jabberd
Group: System/Servers
Requires: %name = %version-%release

%description pam
This package contains a privileged helper employed by %name
to perform PAM authentication of local users as jabber users.

No user-side registration is then possible, and plaintext auth
isn't accepted (basically you want to configure SSL).
%endif

%prep
%setup

%build
cd src
%configure --enable-odbc %{subst_enable pam}
# SMP-unaware
make

%install
%makeinstall -C src DESTDIR=%buildroot
(cd altlinux && find . -type f |cpio -pumd %buildroot)
grep -A1 -B1 '^%%%%%% ' src/mod_passrecover.erl >mod_passrecover.txt

%pre
%_sbindir/groupadd -r -f ejabberd &>/dev/null
%_sbindir/useradd -r -g ejabberd  -d %_localstatedir/ejabberd -s /dev/null \
   -c 'ejabberd server' -M -n ejabberd &>/dev/null ||:

%post
%post_service %name
%_jabber_config

%preun
%preun_service %name

%files
%doc ChangeLog README doc/*.html doc/*.png examples src/odbc/mysql.sql src/odbc/pg.sql mod_passrecover.txt

%dir %_sysconfdir/ejabberd
%config(noreplace) %_sysconfdir/ejabberd/inetrc
%attr(640,root,ejabberd) %config(noreplace) %_sysconfdir/ejabberd/ejabberd.cfg

%config(noreplace) %_sysconfdir/sysconfig/ejabberd

%attr(640,root,root) %config %_sysconfdir/logrotate.d/ejabberd

%_initdir/ejabberd

%_sbindir/ejabberdctl

%_libdir/ejabberd

%_jabber_server_dir/ejabberd

%_man8dir/*

%attr(1770,root,ejabberd) %dir %_localstatedir/ejabberd
%attr(1770,root,ejabberd) %dir %_logdir/ejabberd

%exclude %_sysconfdir/pam.d/ejabberd

%if_enabled pam
%exclude %_libdir/ejabberd/ebin/epam.beam
%exclude %_libdir/ejabberd/priv/bin/epam
%endif

%if_enabled pam
%files pam
%_sysconfdir/pam.d/ejabberd
%_libdir/ejabberd/ebin/epam.beam
%attr(4710,root,ejabberd) %_libdir/ejabberd/priv/bin/epam
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin