diff options
author | Jeroen Roovers <jer@gentoo.org> | 2011-05-09 11:52:23 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2011-05-09 11:52:23 +0000 |
commit | 5dc102a1054f774f5954d98228866a3d35295a47 (patch) | |
tree | 246398e1b010d3df6616378b38da3c15d29d604e /app-forensics/rkhunter | |
parent | Version bump thanks to Max Nokhrin (bug #346617). (diff) | |
download | gentoo-2-5dc102a1054f774f5954d98228866a3d35295a47.tar.gz gentoo-2-5dc102a1054f774f5954d98228866a3d35295a47.tar.bz2 gentoo-2-5dc102a1054f774f5954d98228866a3d35295a47.zip |
Remove unused file thanks to jalan (bug #341051).
(Portage version: 2.2.0_alpha32/cvs/Linux i686)
Diffstat (limited to 'app-forensics/rkhunter')
-rw-r--r-- | app-forensics/rkhunter/ChangeLog | 5 | ||||
-rw-r--r-- | app-forensics/rkhunter/files/rkhunter.cron | 133 |
2 files changed, 4 insertions, 134 deletions
diff --git a/app-forensics/rkhunter/ChangeLog b/app-forensics/rkhunter/ChangeLog index c740c24d4440..3052477cfc2a 100644 --- a/app-forensics/rkhunter/ChangeLog +++ b/app-forensics/rkhunter/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-forensics/rkhunter # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/ChangeLog,v 1.80 2011/05/09 11:47:58 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/ChangeLog,v 1.81 2011/05/09 11:52:23 jer Exp $ + + 09 May 2011; Jeroen Roovers <jer@gentoo.org> -files/rkhunter.cron: + Remove unused file thanks to jalan (bug #341051). *rkhunter-1.3.8 (09 May 2011) diff --git a/app-forensics/rkhunter/files/rkhunter.cron b/app-forensics/rkhunter/files/rkhunter.cron deleted file mode 100644 index ccb3acd06bfb..000000000000 --- a/app-forensics/rkhunter/files/rkhunter.cron +++ /dev/null @@ -1,133 +0,0 @@ -#!/bin/bash -# $Header: /var/cvsroot/gentoo-x86/app-forensics/rkhunter/files/rkhunter.cron,v 1.4 2009/01/18 00:20:29 patrick Exp $ -# original author: Aaron Walker <ka0ttic@gentoo.org> - -########################## Begin Configuration ############################### - -# Default options - more options may be added depending on the -# configuration variables you set below -RKHUNTER_OPTS="-c --cronjob --skip-keypress" - -# Set this to 'yes' to enable ; this script does nothing otherwise -ENABLE=no - -# Automatically update rkhunter's dat files prior to running? -UPDATE=no - -# Set this to 'yes' if you wish the output to be mailed to you -SEND_EMAIL=no - -# NOTE: the following EMAIL_* variables are only relevant if you set the -# SEND_EMAIL variable to 'yes' -EMAIL_SUBJECT="${HOSTNAME}: rkhunter output" -EMAIL_RECIPIENT=root -EMAIL_CMD="|mail -s \"${EMAIL_SUBJECT}\" ${EMAIL_RECIPIENT}" - -# Log rkhunter output? -LOG=no - -# The default log location is /var/log/rkhunter.log. Set this variable if -# you'd like to use an alternate location. -#LOGFILE="" - -# By default, the log file created by rkhunter is world-readable (0644). If -# you'd like to modify the permissions afterwards, set this variable. The -# value of this variable, must be a valid chmod argument such as '0600' or -# 'u+rw,go-rwx'. See the chmod(1) manual page for more information. -#LOGFILE_PERMS="0600" - -# By default, rkhunter overwrites the previous log. Set this variable -# to 'yes' if you'd like the log output appended to the logfile, instead -# of overwriting it. -SAVE_OLD_LOGS=no - -# Set to 1 to recieve only warnings & errors -# Set to 2 to recieve ALL rkhunter output -# Set to 3 to recieve rkhunter report -VERBOSITY=3 - -########################### End Configuration ################################ - -# exit immediately, unless enabled -[[ "${ENABLE}" == "yes" ]] || exit 0 - -# debug mode? (mainly for my benefit) -if [[ -n "${1}" ]] && [[ ${1} = "-d" ]] ; then - set -o verbose -o xtrace -fi - -[[ -z "${LOGFILE}" ]] && LOGFILE="/var/log/rkhunter.log" - -# moved this out of config section since it'll -# probably never need to be changed -RKHUNTER_EXEC="/usr/sbin/rkhunter" - -# sanity check -if [[ ! -x "${RKHUNTER_EXEC}" ]] ; then - echo "${RKHUNTER_EXEC} does not exist or is not executable!" - exit 1 -fi - -# we create a few tmp files, so let's at least make -# them readable/writable by root only -umask 0077 - -# all output goes to this temp file -_tmpout=$(mktemp /tmp/rkhunter.cron.XXXXXX) -exec > ${_tmpout} 2>&1 - -# update data files -if [[ "${UPDATE}" == "yes" ]] ; then - # save the output of --update in a tmp file so that it can be mailed - # along with the scan output; otherwise the user will get 2 mails - ${RKHUNTER_EXEC} --update -fi - -# formulate options string according to user configuration -[[ "${LOG}" == "yes" ]] && \ - RKHUNTER_OPTS="${RKHUNTER_OPTS} --createlogfile ${LOGFILE}" - -case "${VERBOSITY}" in - # warnings and errors only - 1) RKHUNTER_OPTS="${RKHUNTER_OPTS} --quiet" ;; - # default rkhunter output (no extra options) -# 2) ;; - # default to option 3 - *) ;; -esac - -# save old log -if [[ "${LOG}" == "yes" && "${SAVE_OLD_LOGS}" == "yes" ]] ; then - if [[ -e "${LOGFILE}" ]] ; then - _tmpfile=$(mktemp ${LOGFILE}.XXXXXX) - mv -f ${LOGFILE} ${_tmpfile} - echo -e "--\nrkhunter.cron commencing at: $(date)\n--" >> ${_tmpfile} - fi -fi - -# finally, run rkhunter -CMD="${RKHUNTER_EXEC} ${RKHUNTER_OPTS}" -eval ${CMD} -RV=$? - -# email output? -if [[ "${SEND_EMAIL}" == "yes" ]] ; then - CMD="cat ${_tmpout} ${EMAIL_CMD}" - eval ${CMD} -fi - -# remove temp file -[[ -n "${_tmpout}" ]] && rm -f ${_tmpout} - -[[ "${LOG}" != "yes" ]] && exit ${RV} - -# from this point on, we can assume logging is enabled - -# append new log to old log and restore -if [[ -n "${_tmpfile}" ]] ; then - cat ${LOGFILE} >> ${_tmpfile} - mv ${_tmpfile} ${LOGFILE} -fi - -chmod ${LOGFILE_PERMS:-0644} ${LOGFILE} -exit ${RV} |