From owner-freebsd-bugs Tue Jun 5 23:20: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E80E637B405 for ; Tue, 5 Jun 2001 23:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f566K1756443; Tue, 5 Jun 2001 23:20:01 -0700 (PDT) (envelope-from gnats) Received: from totem.fix.no (totem.fix.no [213.142.66.130]) by hub.freebsd.org (Postfix) with ESMTP id 715F437B405 for ; Tue, 5 Jun 2001 23:13:14 -0700 (PDT) (envelope-from anders@totem.fix.no) Received: by totem.fix.no (Postfix, from userid 1000) id 4114D3C8E; Wed, 6 Jun 2001 08:13:13 +0200 (CEST) Message-Id: <20010606061313.4114D3C8E@totem.fix.no> Date: Wed, 6 Jun 2001 08:13:13 +0200 (CEST) From: Anders Nordby Reply-To: Anders Nordby To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/27901: Add bzip2 hook to newsyslog(8) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 27901 >Category: bin >Synopsis: Add bzip2 hook to newsyslog(8) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 05 23:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Anders Nordby >Release: FreeBSD 4.3-STABLE i386 >Organization: Fluxpod Information eXchange >Environment: kern.osreldate: 430000 (4.3-STABLE) kern.osreldate: 500018 (5.0-20010420-CURRENT) >Description: This adds a bzip2 hook to newsyslog(8), to make it possible to have logs compressed using bzip2. Very useful to keep disk usage down, but: * Adds a dependancy to the bzip2 port. Which is specified in the man page, so I guess it's OK since it only uses the binary. * Uses /usr/local/bin/bzip2 directly. newsyslog will print where it tried to execute bzip2 from if it fails. I suppose I could add a possibility to override the path to bzip2 using an environment variable if that was of interest. This would of course be much easier if bzip2 was in the base system, but I guess there are reasons not to since it's not there already? Let me know what you think, and I'll change the patches if improvements are needed. Both gzip and bzip2 relates to environment variables GZIP and BZIP/BZIP2 for options respectively (this works with newsyslog too), so I guess using a BZIP2PATH to override the bzip2 location may be suitable? >How-To-Repeat: >Fix: In src/usr.sbin: http://home.nuug.no/~anders/newsyslog.diffs In src/etc: http://home.nuug.no/~anders/newsyslog.conf.diffs >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message