From 76365ee53dc5bcc056c54f6f76e7fd66f1789018 Mon Sep 17 00:00:00 2001 From: sss Date: Mon, 5 Apr 2021 22:42:47 +0300 Subject: ejabberd - work in progress --- packages/ejabberd.scm | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 packages/ejabberd.scm (limited to 'packages') diff --git a/packages/ejabberd.scm b/packages/ejabberd.scm new file mode 100644 index 0000000..f387600 --- /dev/null +++ b/packages/ejabberd.scm @@ -0,0 +1,81 @@ +(define-module (gnu packages ejabberd) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages erlang) + #:use-module (gnu packages web) + #:use-module (gnu packages imagemagick) + #:use-module (gnu packages gd) + #:use-module (gnu packages openldap) + #:use-module (gnu packages databases) + #:use-module (gnu packages xml) + #:use-module (gnu packages compression) + #:use-module (gnu packages tls) + #:use-module (gnu packages autotools) + #:use-module (gnu packages perl) + #:use-module (gnu packages version-control) + #:use-module ((guix licenses) #:prefix license:) + ) + +(define-public ejabberd + (package + (name "ejabberd") + (version "21.01") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/processone/ejabberd") + (commit version))) + (sha256 + (base32 "0fyxfwgqw72i4nz5g5nw79h6d4f6kw5r2mzh7c2s3npv7kx4zvry")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-bin/sh + (lambda _ + (substitute* "configure" + (("#!/bin/sh") (string-append "#!" (which "sh"))) + ((" = /bin/sh") (string-append " = " (which "sh"))) + ) + ) + ) + ) + #:configure-flags + (list "--enable-stun" + "--enable-system-deps" + "--enable-mysql" + "--enable-odbc" + "--enable-pgsql" + "--enable-zlib" + ) + ) + ) + (native-inputs + `( + ("erlang" ,erlang) + ("autoconf" ,autoconf) + ("automake" ,automake) + ("perl" ,perl) + ("git" ,git) + )) + (inputs + `( + ("erlang" ,erlang) + ("expat" ,expat ) + ("libyaml" ,libyaml) + ("zlib" ,zlib) + ("imagemagick" ,imagemagick) + ("gd" ,gd) + ("openldap" ,openldap) + ("unixodbc" ,unixodbc) + ("openssl" ,openssl) + )) + (synopsis "A scalable and reliable platform for instant messaging") + (description "ejabberd is a distributed, fault-tolerant technology that allows the creation of large-scale instant messaging applications. The server can reliably support thousands of simultaneous users on a single node and has been designed to provide exceptional standards of fault tolerance. As an open source technology, based on industry-standards, ejabberd can be used to build bespoke solutions very cost effectively") + (license (list + license:gpl2 + )) + (home-page "https://www.ejabberd.im") + )) +ejabberd -- cgit v1.2.3