summaryrefslogtreecommitdiff
path: root/packages/ejabberd.scm
diff options
context:
space:
mode:
authorsss <sss@dark-alexandr.net>2021-04-05 22:42:47 +0300
committersss <sss@dark-alexandr.net>2021-04-05 22:42:47 +0300
commit76365ee53dc5bcc056c54f6f76e7fd66f1789018 (patch)
treee6b0d170b20b9f28bf38e603b7188fcd15392871 /packages/ejabberd.scm
parent5a258a2761cca4feb2b7f5d0ea02bb3c66c320a0 (diff)
ejabberd - work in progress
Diffstat (limited to 'packages/ejabberd.scm')
-rw-r--r--packages/ejabberd.scm81
1 files changed, 81 insertions, 0 deletions
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