From a7a5c51402650748849e3f252b879d1c908e95b0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 1 Nov 2009 22:49:14 +0100 Subject: [PATCH] newsyslog: removed, unlike it will be of use. --HG-- extra : convert_revision : bed88b3ab03eb58d7509b671555f233dcf6fb2e4 --- templates/newsyslog/files/newsyslog | 28 ---------------- templates/newsyslog/files/newsyslog.conf | 22 ------------- .../newsyslog/files/newsyslog.cron-hourly | 5 --- .../newsyslog/patches/fix_Makefile_in.diff | 13 -------- templates/newsyslog/template | 32 ------------------- 5 files changed, 100 deletions(-) delete mode 100644 templates/newsyslog/files/newsyslog delete mode 100644 templates/newsyslog/files/newsyslog.conf delete mode 100644 templates/newsyslog/files/newsyslog.cron-hourly delete mode 100644 templates/newsyslog/patches/fix_Makefile_in.diff delete mode 100644 templates/newsyslog/template diff --git a/templates/newsyslog/files/newsyslog b/templates/newsyslog/files/newsyslog deleted file mode 100644 index 1e3a4ecf7f2..00000000000 --- a/templates/newsyslog/files/newsyslog +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# - -# PROVIDE: newsyslog -# REQUIRE: LOGIN -# KEYWORD: shutdown - -$_rc_subr_loaded . /etc/rc.subr - -name="newsyslog" -rcvar=$name -command="/sbin/${name}" -required_files="/etc/newsyslog.conf" -start_cmd="newsyslog_start" -stop_cmd=":" - -newsyslog_start() -{ - # Use bzip2 compression by default. - [ -z "${newsyslog_flags}" ] && newsyslog_flags="-b" - - echo -n "Trimming log files: " - ${command} ${newsyslog_flags} - echo "done." -} - -load_rc_config $name -run_rc_command "$1" diff --git a/templates/newsyslog/files/newsyslog.conf b/templates/newsyslog/files/newsyslog.conf deleted file mode 100644 index f255263c268..00000000000 --- a/templates/newsyslog/files/newsyslog.conf +++ /dev/null @@ -1,22 +0,0 @@ -# Common variables -set prevlog = /var/log/%n-%d - -syslog { - restart: hup /var/run/syslogd.pid - - ############################################################### - # Name Location Owner Group Perms - ############################################################### - log: auth /var/log/authlog root root 644 - log: messages /var/log/messages root root 644 - log: mail /var/log/maillog root root 644 - log: wtmp /var/log/wtmp root root 644 - - ################################################ - # Name Archive Count - ################################################ - archive: auth prevlog 10 - archive: messages prevlog 10 - archive: mail prevlog 10 - archive: wtmp prevlog 10 -} diff --git a/templates/newsyslog/files/newsyslog.cron-hourly b/templates/newsyslog/files/newsyslog.cron-hourly deleted file mode 100644 index 07aae6a1246..00000000000 --- a/templates/newsyslog/files/newsyslog.cron-hourly +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -# -# Run newsyslog every hour. - -/sbin/newsyslog -b diff --git a/templates/newsyslog/patches/fix_Makefile_in.diff b/templates/newsyslog/patches/fix_Makefile_in.diff deleted file mode 100644 index 5e65c4d3e02..00000000000 --- a/templates/newsyslog/patches/fix_Makefile_in.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- Makefile.in.orig 2009-03-28 14:36:17.871227905 +0100 -+++ Makefile.in 2009-03-28 14:36:52.480413711 +0100 -@@ -88,8 +88,8 @@ check test tests: newsyslog t/runtests - cd t && ./runtests TESTS - - install: newsyslog newsyslog.8 -- $(INSTALL) -m 0755 newsyslog $(sbindir) -- $(INSTALL) -m 0644 newsyslog.8 $(mandir)/man8 -+ $(INSTALL) -D -m 0755 newsyslog $(DESTDIR)/$(sbindir)/newsyslog -+ $(INSTALL) -D -m 0644 newsyslog.8 $(DESTDIR)/$(mandir)/man8/newsyslog.8 - - clean: - rm -f *.o t/*.o core newsyslog newsyslog.pure .pure config.log \ diff --git a/templates/newsyslog/template b/templates/newsyslog/template deleted file mode 100644 index 91e30f12d2d..00000000000 --- a/templates/newsyslog/template +++ /dev/null @@ -1,32 +0,0 @@ -# Template file for 'newsyslog' -pkgname=newsyslog -version=1.8 -revision=1 -distfiles="http://archives.eyrie.org/software/system/$pkgname-$version.tar.gz" -build_style=gnu_configure -configure_args="--sbindir=/sbin" -short_desc="Log file rotation and periodic maintenance" -maintainer="Juan RP " -checksum=f400e88fff61b0df03054122dcaf54560f8fcf2793ac60a47268326eeeaeaf19 -long_desc=" - $pkgname performs periodic maintenance of log files. The most common - action is rotating log files and archiving the old logs to one or more - places, but it can also periodically copy logs to a central repository - without truncating them. It can run commands both before and after log - rotation to handle stopping, restarting, or sending signals to servers, - and it automatically compresses logs when it archives them." - -conf_files="/etc/newsyslog.conf" - -Add_dependency full glibc -Add_dependency full zlib -Add_dependency full bzip2 - -post_install() -{ - install -D -m755 ${FILESDIR}/newsyslog ${DESTDIR}/etc/rc.d/newsyslog - install -D -m644 ${FILESDIR}/newsyslog.conf \ - ${DESTDIR}/etc/newsyslog.conf - install -D -m744 ${FILESDIR}/newsyslog.cron-hourly \ - ${DESTDIR}/etc/cron.hourly/newsyslog -}