View | Details | Raw Unified | Return to bug 218446
Collapse All | Expand All

(-)rkhunter/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	rkhunter
4
PORTNAME=	rkhunter
5
PORTVERSION=	1.4.2
5
PORTVERSION=	1.4.2
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	security
7
CATEGORIES=	security
8
MASTER_SITES=	SF
8
MASTER_SITES=	SF
9
9
(-)rkhunter/files/415.rkhunter.in (+17 lines)
Lines 16-21 Link Here
16
   source_periodic_confs
16
   source_periodic_confs
17
fi
17
fi
18
18
19
SLEEP=/bin/sleep
20
JOT=/usr/bin/jot
21
22
random() {
23
	${JOT} -r 1 0 900
24
}
25
19
: ${daily_rkhunter_update_flags="--update --nocolors"}
26
: ${daily_rkhunter_update_flags="--update --nocolors"}
20
: ${daily_rkhunter_check_flags="--checkall --nocolors --skip-keypress"}
27
: ${daily_rkhunter_check_flags="--checkall --nocolors --skip-keypress"}
21
28
Lines 24-29 Link Here
24
31
25
	echo ""
32
	echo ""
26
	echo "Updating the rkhunter database..."
33
	echo "Updating the rkhunter database..."
34
	# When non-interactive, sleep to reduce congestion on rkhunter site
35
	if [ "$1" != -nodelay ]; then
36
		# In FreeBSD 12.0 the anticongestion function should be used
37
		# instead of a hard-coded sleep
38
		if [ -n "$anticongestion_sleeptime" ]; then
39
			anticongestion
40
		else
41
			${SLEEP} $(random)
42
		fi
43
	fi
27
	%%PREFIX%%/bin/rkhunter ${daily_rkhunter_update_flags}
44
	%%PREFIX%%/bin/rkhunter ${daily_rkhunter_update_flags}
28
	;;
45
	;;
29
esac
46
esac

Return to bug 218446