diff options
author | Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> | 2015-01-31 22:03:25 +0100 |
---|---|---|
committer | Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> | 2015-02-05 17:08:39 +0100 |
commit | ea119a288f097b16ffa617daa1f07bae9aa6e65a (patch) | |
tree | 021071286fa9d847cebe238b75586b87eb0c13aa /gnu/packages/messaging.scm | |
parent | 0ca0ce53a801702f6f56d68289675d4b448e026a (diff) | |
download | guix-ea119a288f097b16ffa617daa1f07bae9aa6e65a.tar.gz |
gnu: Add ngircd.
* gnu/packages/messaging.scm (ngircd): New variable. * gnu/packages/patches/ngircd-no-dns-in-tests.patch: New file. * gnu/packages/patches/ngircd-handle-zombies.patch: New file. * gnu-system.am (dist_patch_DATA): Add them.
Diffstat (limited to 'gnu/packages/messaging.scm')
-rw-r--r-- | gnu/packages/messaging.scm | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index f6d0cf552e..0c2b4b9c01 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2014 Julien Lepiller <julien@lepiller.eu> +;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -36,8 +37,11 @@ #:use-module (gnu packages gnutls) #:use-module (gnu packages python) #:use-module (gnu packages perl) + #:use-module (gnu packages tcl) #:use-module (gnu packages compression) - #:use-module (gnu packages check)) + #:use-module (gnu packages check) + #:use-module (gnu packages admin) + #:use-module (gnu packages linux)) (define-public libotr (package @@ -159,4 +163,54 @@ dictionaries. HexChat can be extended with multiple addons.") (home-page "http://hexchat.net/") (license gpl2+))) +(define-public ngircd + (package + (name "ngircd") + (version "22") + (source (origin + (method url-fetch) + (uri (string-append "http://arthur.barton.de/pub/ngircd/ngircd-" + version ".tar.xz")) + (sha256 + (base32 + "17k3g9qd9d010czk5846qxvzkmw4fihv8l6m2a2287crbxm3xhd4")) + (patches (list (search-patch "ngircd-no-dns-in-tests.patch") + (search-patch "ngircd-handle-zombies.patch"))))) + (build-system gnu-build-system) + ;; Needed for the test suite. + (native-inputs `(("procps" ,procps) + ("expect" ,expect) + ("inetutils" ,inetutils))) + ;; XXX Add libident, libwrap. + (inputs `(("zlib" ,zlib) + ("gnutls" ,gnutls) + ,@(if (string-suffix? "-linux" + (or (%current-target-system) + (%current-system))) + `(("linux-pam" ,linux-pam)) + '()))) + (arguments + `(#:configure-flags + '("--with-gnutls" "--with-iconv" "--enable-ipv6" + ,@(if (string-suffix? "-linux" + (or (%current-target-system) + (%current-system))) + '("--with-pam") + '())) + #:phases + ;; Necessary for the test suite. + (alist-cons-after + 'configure 'post-configure + (lambda _ + (substitute* "src/ngircd/Makefile" + (("/bin/sh") (which "sh")))) + %standard-phases))) + (home-page "http://ngircd.barton.de/") + (synopsis "Lightweight Internet Relay Chat server for small networks") + (description + "ngIRCd is a lightweight Internet Relay Chat server for small or private +networks. It is easy to configure, can cope with dynamic IP addresses, and +supports IPv6, SSL-protected connections as well as PAM for authentication.") + (license gpl2+))) + ;;; messaging.scm ends here |