newsyslog: removed, unlike it will be of use.
--HG-- extra : convert_revision : bed88b3ab03eb58d7509b671555f233dcf6fb2e4
This commit is contained in:
parent
09a4b86f33
commit
a7a5c51402
5 changed files with 0 additions and 100 deletions
|
@ -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"
|
|
|
@ -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
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# Run newsyslog every hour.
|
|
||||||
|
|
||||||
/sbin/newsyslog -b
|
|
|
@ -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 \
|
|
|
@ -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 <xtraeme@gmail.com>"
|
|
||||||
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
|
|
||||||
}
|
|
Loading…
Reference in a new issue