freebsd-ports/security/regripper/Makefile
Mathieu Arnold 7c47779cb9 Fix usage of ${PERL5}.
${PERL5} points to a specific version of perl, say, perl5.22.1, it is
fine to use it in a ports Makefile to do Perly things, but ports using
it must use ${PERL}, that points to /usr/local/bin/perl so that if the
minor version is updated, the shebang keep working.

While there, make some ports use shebangfix, regen a few patches, and
bump PORTREVISION where a shebang went from PERL5 to PERL.

PR:		205367
With hat:	portmgr
Sponsored by:	Absolight
2015-12-17 17:19:48 +00:00

34 lines
779 B
Makefile

# Created by: antoine@FreeBSD.org
# $FreeBSD$
PORTNAME= regripper
DISTVERSION= 2.8
CATEGORIES= security
MASTER_SITES= GOOGLE_CODE
DISTNAME= rrv${DISTVERSION}
MAINTAINER= antoine@FreeBSD.org
COMMENT= Tool for registry analysis in forensics examinations
LICENSE= GPLv3
RUN_DEPENDS= p5-Parse-Win32Registry>=0:${PORTSDIR}/devel/p5-Parse-Win32Registry
NO_WRKSUBDIR= yes
NO_BUILD= yes
USES= dos2unix perl5 zip shebangfix
SHEBANG_FILES= rip.pl
perl_OLD_CMD= c:\\\\perl\\\\bin\\\\perl.exe
USE_PERL5= run
PLIST_FILES= bin/rip.pl
post-patch:
${REINPLACE_CMD} -e 's|plugindir = $$str|plugindir = "${DATADIR}"| ; \
s|require "plugins/|require "${DATADIR}plugins/|' ${WRKSRC}/rip.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/rip.pl ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>