- Preprocess the single SGML doc file into a man page instead of
requiring docbook2man as a dependency. Some docbook ports conflict with others, and since there's only one file to convert, preprocessing is fine. Reported by: dan@langille.org and others
This commit is contained in:
parent
0d6eef4b21
commit
7387b58336
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=245904
2 changed files with 119 additions and 18 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= logcheck
|
||||
PORTVERSION= 1.2.54
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
|
@ -15,14 +15,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|||
MAINTAINER= glarkin@FreeBSD.org
|
||||
COMMENT= Auditing tool for system logs on Unix boxes
|
||||
|
||||
# If docbook-to-man is present, use it. Otherwise, install
|
||||
# docbook2X (docbook2man) because it's much lighter weight.
|
||||
# If docbook-to-man is present and docbook2X is installed,
|
||||
# the man page conversion will fail. docbook2X and docbook-4.1
|
||||
# conflict with each other.
|
||||
.if !exists(/usr/local/bin/docbook-to-man)
|
||||
BUILD_DEPENDS= docbook2man:${PORTSDIR}/textproc/docbook2X
|
||||
.endif
|
||||
RUN_DEPENDS= lockfile:${PORTSDIR}/mail/procmail \
|
||||
bash:${PORTSDIR}/shells/bash
|
||||
|
||||
|
@ -54,15 +46,6 @@ do-build:
|
|||
@${REINPLACE_CMD} -e 's!/etc/logcheck!${ETCDIR}!' \
|
||||
-e 's!/usr/share/doc/logcheck-database/README.logcheck-database.gz!${DOCSDIR}/README.logcheck-database!' \
|
||||
${WRKSRC}/docs/logcheck.sgml
|
||||
.if exists(/usr/local/bin/docbook-to-man)
|
||||
@docbook-to-man ${WRKSRC}/docs/logcheck.sgml > \
|
||||
${WRKSRC}/docs/logcheck.8 2> /dev/null
|
||||
.else
|
||||
@cd ${WRKSRC}/docs && docbook2man -s \
|
||||
${LOCALBASE}/share/docbook2X/xslt/man/docbook.xsl \
|
||||
--sgml logcheck.sgml 2> /dev/null \
|
||||
&& ${MV} Logcheck.8 logcheck.8
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/src/logcheck ${PREFIX}/sbin
|
||||
|
|
118
security/logcheck/files/patch-docs__logcheck.8
Normal file
118
security/logcheck/files/patch-docs__logcheck.8
Normal file
|
@ -0,0 +1,118 @@
|
|||
--- docs/logcheck.8.orig 2009-12-15 15:03:22.000000000 -0500
|
||||
+++ docs/logcheck.8 2009-12-15 15:03:41.000000000 -0500
|
||||
@@ -0,0 +1,115 @@
|
||||
+.\" This manpage has been automatically generated by docbook2man
|
||||
+.\" from a DocBook document. This tool can be found at:
|
||||
+.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
||||
+.\" Please send any bug reports, improvements, comments, patches,
|
||||
+.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
||||
+.TH "Logcheck" "8" "15 December 2009" "" ""
|
||||
+
|
||||
+.SH NAME
|
||||
+logcheck \- program to scan system logs for interesting lines
|
||||
+.SH SYNOPSIS
|
||||
+
|
||||
+\fBlogcheck\fR [ \fBOPTIONS\fR ]
|
||||
+
|
||||
+.SH "DESCRIPTION"
|
||||
+.PP
|
||||
+The \fBlogcheck\fR program helps spot problems and
|
||||
+security violations in your logfiles automatically and will send the
|
||||
+results to you periodically in an e-mail. By default logcheck runs as
|
||||
+an hourly cronjob just off the hour and after every reboot.
|
||||
+.PP
|
||||
+\fBlogcheck\fR supports three level of filtering:
|
||||
+"paranoid" is for high-security machines running as few services
|
||||
+as possible. Don't use it if you can't handle its verbose messages.
|
||||
+"server" is the default and contains rules for many different daemons.
|
||||
+"workstation" is for sheltered machines and filters most of the messages.
|
||||
+The ignore rules work in additive manner. "paranoid" rules are also
|
||||
+included at level "server" and "workstation".
|
||||
+.PP
|
||||
+The messages reported are sorted into three layers, system events,
|
||||
+security events and attack alerts. The verbosity of system events is
|
||||
+controlled by which level you choose, paranoid, server or workstation.
|
||||
+However, security events and attack alerts are not affected by this.
|
||||
+.SH "EXAMPLES"
|
||||
+.PP
|
||||
+\fBlogcheck\fR can be invoked directly thanks
|
||||
+to su(8) or sudo(8), which change the user ID. The following example checks the logfiles
|
||||
+without updating the offset and outputs everything to STDOUT.
|
||||
+.PP
|
||||
+sudo -u logcheck \fBlogcheck\fR -o -t
|
||||
+.SH "OPTIONS"
|
||||
+.PP
|
||||
+A summary of options is included below.
|
||||
+.TP
|
||||
+\fB-c CFG \fR
|
||||
+Overrule default configuration file.
|
||||
+.TP
|
||||
+\fB-d \fR
|
||||
+Debug mode.
|
||||
+.TP
|
||||
+\fB-h \fR
|
||||
+Show usage information.
|
||||
+.TP
|
||||
+\fB-H \fR
|
||||
+Use this hostname string in the subject of logcheck mail.
|
||||
+.TP
|
||||
+\fB-l LOG \fR
|
||||
+Run logfile through logcheck.
|
||||
+.TP
|
||||
+\fB-L CFG \fR
|
||||
+Overrule default logfiles list.
|
||||
+.TP
|
||||
+\fB-m \fR
|
||||
+Mail report to recipient.
|
||||
+.TP
|
||||
+\fB-o \fR
|
||||
+STDOUT mode, not sending mail.
|
||||
+.TP
|
||||
+\fB-p \fR
|
||||
+Set the report level to "paranoid".
|
||||
+.TP
|
||||
+\fB-r DIR \fR
|
||||
+Overrule default rules directory.
|
||||
+.TP
|
||||
+\fB-R \fR
|
||||
+Adds "Reboot:" to the email subject line.
|
||||
+.TP
|
||||
+\fB-s \fR
|
||||
+Set the report level to "server".
|
||||
+.TP
|
||||
+\fB-S DIR \fR
|
||||
+Overrule default state directory.
|
||||
+.TP
|
||||
+\fB-t \fR
|
||||
+Testing mode does not update offset.
|
||||
+.TP
|
||||
+\fB-T \fR
|
||||
+Do not remove the TMPDIR.
|
||||
+.TP
|
||||
+\fB-u \fR
|
||||
+Enable syslog-summary.
|
||||
+.TP
|
||||
+\fB-v \fR
|
||||
+Print current version.
|
||||
+.TP
|
||||
+\fB-w \fR
|
||||
+Set the report level to "workstation".
|
||||
+.SH "FILES"
|
||||
+.PP
|
||||
+/usr/local/etc/logcheck/logcheck.conf is the main configuration file.
|
||||
+.PP
|
||||
+/usr/local/etc/logcheck/logcheck.logfiles is the list of files to monitor.
|
||||
+.PP
|
||||
+/usr/local/share/doc/logcheck/README.logcheck-database for hints on how to write, test and maintain rules.
|
||||
+.SH "EXIT STATUS"
|
||||
+.PP
|
||||
+0 upon success; 1 upon failure
|
||||
+.SH "SEE ALSO"
|
||||
+.PP
|
||||
+\fBlogtail\fR(8)
|
||||
+.SH "AUTHOR"
|
||||
+.PP
|
||||
+logcheck is developed by Debian logcheck Team at alioth:
|
||||
+http://alioth.debian.org/projects/logcheck/.
|
||||
+.PP
|
||||
+This manual page was written by Jon Middleton.
|
Loading…
Reference in a new issue