Commit 2e041d71 authored by Rene Ladan's avatar Rene Ladan
Browse files

security/rkhunter: Remove expired port

2025-12-31 security/rkhunter: Project abandoned in 2009
parent 933693f4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4973,3 +4973,4 @@ www/unit-java||2025-12-31|Has expired: Upstream repo archived on Oct 8 2025
deskutils/znotes||2025-12-31|Has expired: Abandonware, depends on legacy QT 5 and last release in 2011
devel/arachne-pnr|devel/nextpnr|2025-12-31|Has expired: Superseded by devel/nextpnr
graphics/jpgtn||2025-12-31|Has expired: obsolete historical tool, use imagemagick instead
security/rkhunter||2025-12-31|Has expired: Project abandoned in 2009
+0 −1
Original line number Diff line number Diff line
@@ -1124,7 +1124,6 @@
    SUBDIR += rhash
    SUBDIR += ridl
    SUBDIR += rifiuti2
    SUBDIR += rkhunter
    SUBDIR += rndpassw
    SUBDIR += rnp
    SUBDIR += rotate

security/rkhunter/Makefile

deleted100644 → 0
+0 −58
Original line number Diff line number Diff line
PORTNAME=	rkhunter
PORTVERSION=	1.4.6
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Rootkit detection tool
WWW=		https://rkhunter.sourceforge.net

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/files/LICENSE

DEPRECATED=		Project abandoned in 2009
EXPIRATION_DATE=	2025-12-31

OPTIONS_DEFINE=	LSOF NMAP DOCS
OPTIONS_DEFAULT=LSOF

RUN_DEPENDS+=	p5-Digest-SHA1>=0:security/p5-Digest-SHA1

USES=		perl5 shebangfix
SHEBANG_FILES=	files/check_modules.pl files/filehashsha.pl \
		files/stat.pl
NO_ARCH=	yes
NO_BUILD=	yes
SUB_FILES=	415.${PORTNAME}

PORTDOCS=	ACKNOWLEDGMENTS CHANGELOG FAQ LICENSE README

LSOF_RUN_DEPENDS=	lsof:sysutils/lsof
NMAP_RUN_DEPENDS=	nmap:security/nmap

post-patch:
	@${REINPLACE_CMD} -i '' -e 's|{SHAREDIR}/man/man8|{PREFIX}/man/man8|g' \
		${WRKSRC}/installer.sh
	@${REINPLACE_CMD} -i '' -e 's|RKHPREFIX|${PREFIX}|g' \
		${WRKSRC}/files/${PORTNAME}.conf

do-install:
	cd ${WRKSRC} && ./installer.sh --layout custom ${STAGEDIR}${PREFIX} --install
	${INSTALL_MAN} ${WRKSRC}/files/${PORTNAME}.8 \
		${STAGEDIR}${PREFIX}/share/man/man8
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/security
	${INSTALL_SCRIPT} ${WRKDIR}/415.${PORTNAME} ${STAGEDIR}${PREFIX}/etc/periodic/security
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/files/|} ${STAGEDIR}${DOCSDIR}
	@${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||g' \
		${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf
	${INSTALL_DATA} ${WRKSRC}/files/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
	${INSTALL_DATA} -m 640 ${WRKSRC}/files/programs_bad.dat ${STAGEDIR}${PREFIX}/var/lib/${PORTNAME}/db/programs_bad.dat.sample
	${INSTALL_DATA} -m 640 ${WRKSRC}/files/mirrors.dat ${STAGEDIR}${PREFIX}/var/lib/${PORTNAME}/db/mirrors.dat.sample

.for f in cn de en tr tr.utf8 zh zh.utf8 ja
	${INSTALL_DATA} -m 640 ${WRKSRC}/files/i18n/${f} ${STAGEDIR}${PREFIX}/var/lib/${PORTNAME}/db/i18n/${f}.sample
.endfor

.include <bsd.port.mk>

security/rkhunter/distinfo

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1539368101
SHA256 (rkhunter-1.4.6.tar.gz) = f750aa3e22f839b637a073647510d7aa3adf7496e21f3c875b7a368c71d37487
SIZE (rkhunter-1.4.6.tar.gz) = 302137
+0 −52
Original line number Diff line number Diff line
#!/bin/sh

# This is a maintenance shell script for the rkhunter security tool.
# You can enable this script in /etc/periodic.conf file by putting these lines into it:
#	security_rkhunter_update_enable="YES"
#	security_rkhunter_update_period="daily"
#	security_rkhunter_update_flags="--update --nocolors"
#	security_rkhunter_check_enable="YES"
#	security_rkhunter_check_period="daily"
#	security_rkhunter_check_flags="--checkall --nocolors --skip-keypress"
#
# Written by: Gabor Kovesdan <gabor@FreeBSD.org>

if [ -r /etc/defaults/periodic.conf ]; then
   . /etc/defaults/periodic.conf
   source_periodic_confs
fi

# compatibility with pre-stable/12 style variables
for type in update check
do
	for mode in enable flags
	do
		eval old=\"\$daily_rkhunter_${type}_${mode}\"
		if test -n "$old"
		then
			echo "Warning: Variable \$daily_rkhunter_${type}_${mode} is deprecated, use \$security_rkhunter_${type}_${mode} instead." >&2
			eval : \${security_rkhunter_${type}_${mode}:="\$daily_rkhunter_${type}_${mode}"}
		fi
	done
done

# defaults
: ${security_rkhunter_update_period:="daily"}
: ${security_rkhunter_check_period:="daily"}
: ${security_rkhunter_update_flags:="--update --nocolors"}
: ${security_rkhunter_check_flags:="--checkall --nocolors --skip-keypress"}

if check_yesno_period security_rkhunter_update_enable
then
	echo ""
	echo "Updating the rkhunter database..."
	anticongestion
	%%PREFIX%%/bin/rkhunter ${security_rkhunter_update_flags}
fi

if check_yesno_period security_rkhunter_check_enable
then
	echo ""
	echo "Running rkhunter..."
	%%PREFIX%%/bin/rkhunter ${security_rkhunter_check_flags}
fi
Loading