From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] Add syslog.scm and rsyslog. Date: Sat, 19 Mar 2016 18:25:24 +0100 Message-ID: <20160319182524.64f7f9b2@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahKd8-00087O-0G for guix-devel@gnu.org; Sat, 19 Mar 2016 13:25:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahKd4-0007pO-Lo for guix-devel@gnu.org; Sat, 19 Mar 2016 13:25:37 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:43925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahKd4-0007p4-C5 for guix-devel@gnu.org; Sat, 19 Mar 2016 13:25:34 -0400 Received: from localhost (91.141.2.247.wireless.dyn.drei.com [91.141.2.247]) by dd1012.kasserver.com (Postfix) with ESMTPSA id D9B2D1CA0551 for ; Sat, 19 Mar 2016 18:25:29 +0100 (CET) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Hi, this adds gnu/packages/syslog.scm and rsyslog. If someone knowledgeable about which license text is which license can chec= k the FIXMEs that would be nice. That said, it seems inetutils also contains a syslogd (it also auto-starts;= I didn't see it before) - so not sure how useful having another syslog is = now. Regards, Danny --- gnu/packages/syslog.scm | 110 ++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 110 insertions(+) create mode 100644 gnu/packages/syslog.scm diff --git a/gnu/packages/syslog.scm b/gnu/packages/syslog.scm new file mode 100644 index 0000000..daaf6b1 --- /dev/null +++ b/gnu/packages/syslog.scm @@ -0,0 +1,110 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2013 Andreas Enge +;;; Copyright =C2=A9 2014, 2015 Mark H Weaver +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages syslog) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages) + #:use-module (gnu packages compression) + #:use-module (gnu packages linux) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages pkg-config) +) + +(define-public libestr + (package + (name "libestr") + (version "0.1.10") + (source (origin + (method url-fetch) + (uri (string-append "http://libestr.adiscon.com/files/download= /libestr-" version ".tar.gz")) + (sha256 + (base32 + "0g3hmh3wxgjbn5g6cgy2l0ja806jd0ayp22bahcds3kmdq95wrdx")))) + (build-system gnu-build-system) + (home-page "http://libestr.adiscon.com/") + (synopsis "rsyslog essential string handling") + (description "rsyslog essential string handling") + (license license:gpl2+))) ; FIXME actually gpl2.1+ + +(define-public libfastjson + (package + (name "libfastjson") + (version "0.99.2") + (source (origin + (method url-fetch) + (uri (string-append "http://download.rsyslog.com/libfastjson/l= ibfastjson-" version ".tar.gz")) + (sha256 + (base32 + "1zcd8nzwh8br79n34mka4m08v6vdfhfdid1p9w0q2fi4apa57w3g")))) + (build-system gnu-build-system) + (home-page "http://www.rsyslog.com/") + (synopsis "rsyslog json-c fork") + (description "rsyslog json-c fork") + (license license:gpl2+))) ; FIXME actually MIT. Which one? + +(define-public liblogging + (package + (name "liblogging") + (version "1.0.5") + (source (origin + (method url-fetch) + (uri (string-append "http://download.rsyslog.com/liblogging/li= blogging-" version ".tar.gz")) + (sha256 + (base32 + "02w94j344q0ywlj4mdf9fnzwggdsn3j1yn43sdlsddvr29lw239i")))) + (build-system gnu-build-system) + (home-page "http://www.rsyslog.com/") + (synopsis "rsyslog logging library") + (description "rsyslog logging library") + (native-inputs `(("pkg-config" ,pkg-config))) + (arguments `(#:configure-flags '("--disable-journal" ; to avoid libsys= temd-journal +))) + (license license:bsd-2))) ; FIXME https://github.com/rsyslog/libloggin= g/commit/78305e36938803e8a6c0a1be461ad7817d43563d + +(define-public rsyslog + (package + (name "rsyslog") + (version "8.17.0") + (source + (origin + (method url-fetch) + (uri (string-append "http://www.rsyslog.com/files/download/rsyslog/r= syslog-" version ".tar.gz")) + (sha256 + (base32 + "1fazpbllr3wk8aw41zk7b6iirds4h8j3im080nf8my2cjssij7pc")))) + (build-system gnu-build-system) + (native-inputs `(("pkg-config" ,pkg-config))) + (inputs `(("libestr" ,libestr) + ("libfastjson" ,libfastjson) + ("zlib" ,zlib) + ("util-linux" ,util-linux) + ("libgcrypt" ,libgcrypt) + ("liblogging" ,liblogging))) +; TODO enable rfc3195 support +; TODO liblogging-stdlog + (home-page "http://www.rsyslog.com/") + (synopsis "System Logger") + (description "rsyslog is the rocket-fast system for log processing.") +; note: can disable uuid-dev (maybe not Linux-specific then) +; note: can enable lots of things + (license license:gpl3))) ; or ASL 2.0 + --=20 2.7.3