From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: [PATCH] gnu: Add rottlog. Date: Fri, 17 Jun 2016 16:41:44 +0200 Message-ID: <87lh23andj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDuy7-00062I-Bz for guix-devel@gnu.org; Fri, 17 Jun 2016 10:42:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDuy6-0006vr-59 for guix-devel@gnu.org; Fri, 17 Jun 2016 10:41:59 -0400 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" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain It `builds' and installs...now to figure out how to configure and hook it up with mcron and how to run mcron. Also, its bash scripts. Well, if it works... --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-rottlog.patch Content-Transfer-Encoding: quoted-printable >From 93bdc5b5bf615d4641897c2058b303554c081062 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 17 Jun 2016 16:33:16 +0200 Subject: [PATCH] gnu: Add rottlog. * gnu/packages/logging.scm (rottlog): New variable. --- gnu/packages/logging.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm index 68af09e..61fe85d 100644 --- a/gnu/packages/logging.scm +++ b/gnu/packages/logging.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2016 Ricardo Wurmus +;;; Copyright =C2=A9 2016 Jan Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,7 +23,9 @@ #:use-module (guix utils) #:use-module (guix download) #:use-module (guix build-system gnu) - #:use-module (gnu packages)) + #:use-module (gnu packages) + #:use-module (gnu packages linux) + #:use-module (gnu packages texinfo)) =20 (define-public log4cpp (package @@ -45,3 +48,31 @@ IDSA and other destinations. It is modeled after the Lo= g4j Java library, staying as close to their API as is reasonable.") (home-page "http://log4cpp.sourceforge.net/") (license license:lgpl2.1+))) + +(define-public rottlog + (package + (name "rottlog") + (version "0.72.2") + (inputs `(("util-linux" ,util-linux) ; cal + ("texinfo" ,texinfo))) + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnu/rottlog/rottlog-" version + ".tar.gz")) + (sha256 + (base32 + "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7")) + (patches (search-patches "rottlog.patch")))) + (arguments + '(#:configure-flags + (list (string-append "ROTT_ETCDIR=3D" %output "/etc/rottlog")))) + (build-system gnu-build-system) + (synopsis "The GNU log management facility") + (description + "GNU Rot[t]log is designed to simplify administration of systems that +generate large numbers of log files. It allows automatic rotation, +compression, and archiving of logs. It also mails reports to the system +administrator. Each log file may be handled daily, weekly, monthly, in +user-defined days, or when it becomes too large.") + (home-page "https://www.gnu.org/software/rottlog/") + (license license:gpl3+))) --=20 2.8.4 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20 --=-=-=--