summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAndrej Zverev <az@FreeBSD.org>2013-07-26 10:46:37 +0000
committerAndrej Zverev <az@FreeBSD.org>2013-07-26 10:46:37 +0000
commitb9cf42305004edcd8f6467ced5afa0861a544eff (patch)
tree4e432cd7adf68b48f6abe895819485849ed8f886 /security
parentFix build with recent binutils (diff)
- switch simple inline replacement from perl to sed
and remove where is no need in this anymore. - trim Makefile header Approved by: bapt@ (portmrg@)
Notes
Notes: svn path=/head/; revision=323711
Diffstat (limited to 'security')
-rw-r--r--security/l0phtcrack/Makefile4
-rw-r--r--security/p5-Digest-MD5-M4p/Makefile9
-rw-r--r--security/sig2dot/Makefile12
-rw-r--r--security/snort-rep/Makefile6
-rw-r--r--security/tripwire12/Makefile4
5 files changed, 10 insertions, 25 deletions
diff --git a/security/l0phtcrack/Makefile b/security/l0phtcrack/Makefile
index cf124e9ed2fc..f1c89063a700 100644
--- a/security/l0phtcrack/Makefile
+++ b/security/l0phtcrack/Makefile
@@ -18,11 +18,11 @@ NO_WRKSUBDIR= yes
PLIST= ${WRKDIR}/pkg-plist
USE_PERL5_BUILD=yes
USE_ZIP= yes
+USE_DOS2UNIX= yes
post-extract:
${RM} ${WRKDIR}/*exe
- ${PERL} -pi -e "s:\r::g" ${WRKDIR}/*
- ${PERL} -pi -e "s:ommited:omitted:g" ${WRKDIR}/util.c
+ ${REINPLACE_CMD} -i '' -e 's|ommited|omitted|' ${WRKDIR}/util.c
do-build:
cd ${WRKDIR} && ${CC} ${CFLAGS} -DMPU8086 *.c -o lc_CLI
diff --git a/security/p5-Digest-MD5-M4p/Makefile b/security/p5-Digest-MD5-M4p/Makefile
index 0c25aa0aadba..6cd826d65706 100644
--- a/security/p5-Digest-MD5-M4p/Makefile
+++ b/security/p5-Digest-MD5-M4p/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: p5-Digest-MD5-M4p
-# Date created: 27 June 2004
-# Whom: Lars Thegler <lth@FreeBSD.org>
-#
+# Created by: Lars Thegler <lth@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= Digest-MD5-M4p
PORTVERSION= 0.01
@@ -19,7 +15,4 @@ PERL_CONFIGURE= yes
MAN3= Digest::MD5::M4p.3
-post-extract:
- @${PERL} -pi -e 's/\r//g' ${WRKSRC}/M4p.xs
-
.include <bsd.port.mk>
diff --git a/security/sig2dot/Makefile b/security/sig2dot/Makefile
index a34021c18044..a76b41e9e45f 100644
--- a/security/sig2dot/Makefile
+++ b/security/sig2dot/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: sig2dot
-# Date created: Aug 8, 2002
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD$
-#
PORTNAME= sig2dot
PORTVERSION= 0.35
@@ -25,9 +20,8 @@ EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKDIR}
NO_WRKSUBDIR= yes
NO_BUILD= yes
-
-post-patch:
- @${PERL} -pi -e "s|/usr/bin/perl|${PERL}|g" ${WRKSRC}/sig2dot.pl
+USES= shebangfix
+SHEBANG_FILES= sig2dot.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/sig2dot.pl ${PREFIX}/bin/sig2dot
diff --git a/security/snort-rep/Makefile b/security/snort-rep/Makefile
index 69946f4f2c64..2cf38d4c0019 100644
--- a/security/snort-rep/Makefile
+++ b/security/snort-rep/Makefile
@@ -12,10 +12,8 @@ COMMENT= A Snort reporting tool that can produce text or HTML from logs
USE_PERL5= yes
MAN1= snort-rep.1
-
-post-patch:
- @${PERL} -pi -e "s|#!/usr/bin/perl|#!${PERL}|" \
- ${WRKSRC}/snort-rep ${WRKSRC}/snort-rep-mail
+USES= shebangfix
+SHEBANG_FILES= snort-rep snort-rep-mail
do-build:
cd ${BUILD_WRKSRC} ; pod2man --lax snort-rep > snort-rep.1
diff --git a/security/tripwire12/Makefile b/security/tripwire12/Makefile
index 70870d0c06de..e192fe409844 100644
--- a/security/tripwire12/Makefile
+++ b/security/tripwire12/Makefile
@@ -23,8 +23,8 @@ post-extract:
@ (cd ${WRKDIR}; tar xpf T1.2.tar)
post-patch:
- @${PERL} -pi -e 's|/secureplace/bin|${PREFIX}/bin|g;' \
- -e 's|/usr/man|${PREFIX}/man|g;' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -i '' -e 's|/secureplace/bin|${PREFIX}/bin|' \
+ -e 's|/usr/man|${PREFIX}/man|' ${WRKSRC}/Makefile
${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|bs_ntohl|ntohl|g;s|bs_htonl|htonl|g'