summaryrefslogtreecommitdiff
path: root/security/john
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-05-13 04:28:02 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-05-13 04:28:02 +0000
commita85e6c4414deff6cfa08a492c0123b8bb3c35d25 (patch)
treedfb1f585d8a1c98c6646957842877cd916c3a84b /security/john
parentRemove USE_REINPLACE from categories starting with T (diff)
- Update to 1.7.1
- Add SSE2 OPTIONS PR: 97162 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=162217
Diffstat (limited to 'security/john')
-rw-r--r--security/john/Makefile46
-rw-r--r--security/john/distinfo6
2 files changed, 32 insertions, 20 deletions
diff --git a/security/john/Makefile b/security/john/Makefile
index 35b2368bf89c..24f0d2e05e15 100644
--- a/security/john/Makefile
+++ b/security/john/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= john
-PORTVERSION= 1.7.0.2
-PORTREVISION= 1
+PORTVERSION= 1.7.1
CATEGORIES= security
MASTER_SITES= http://www.openwall.com/john/f/ \
ftp://ftp.ru.openwall.com/pub/projects/john/${PORTVERSION}/
@@ -22,33 +21,46 @@ PORTDOCS= CHANGES CONFIG EXAMPLES EXTERNAL FAQ MODES OPTIONS README \
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_BZIP2= yes
-.include <bsd.port.pre.mk>
-
OSNAME= ${OPSYS:L}
CFLAGS+= -DJOHN_SYSTEMWIDE=1 \
-DJOHN_SYSTEMWIDE_HOME=\\"${DATADIR}\\" \
-DCFG_FULL_NAME=\\"${PREFIX}/etc/${PORTNAME}.conf\\"
-ALL_TARGET= generic
+# workaround for OSVERSION/ARCH detection before bsd.port.pre.mk
+# (required for OPTIONS usage)
+ARCH!= /usr/bin/uname -p
+OSVERSION!= /sbin/sysctl -n kern.osreldate
+
+.if ${ARCH} == "i386" || ${ARCH} == "amd64"
+. if ${OSVERSION} > 500000
+# dumps core with sse2 + gcc 2.95
+OPTIONS= SSE2 "Enable SSE2 optimizations" off
+. endif
+.endif
.if ${ARCH} == "i386"
-. if defined(WITHOUT_MMX)
-ALL_TARGET= ${OSNAME}-x86-any
+OPTIONS+= MMX "Enable MMX optimizations" off
+.endif
+
+.include <bsd.port.pre.mk>
+
+ALL_TARGET= generic
+
+.if defined(WITH_MMX)
+. if defined(WITH_SSE2)
+ALL_TARGET= ${OSNAME}-x86-sse2
. else
ALL_TARGET= ${OSNAME}-x86-mmx
. endif
+.elif defined(WITH_SSE2)
+ALL_TARGET= ${OSNAME}-x86-sse2
.elif ${ARCH} == "alpha"
ALL_TARGET= ${OSNAME}-alpha
-.endif
-
-pre-everything::
-.if !defined(WITHOUT_MMX) && ${ARCH} == "i386"
- @${ECHO_MSG}
- @${ECHO_MSG} "You can disable MMX optimizations by defining WITHOUT_MMX"
- @${ECHO_MSG}
+.else
+ALL_TARGET= ${OSNAME}-x86-any
.endif
post-patch:
- ${REINPLACE_CMD} -e 's|= gcc|= ${CC}|g' \
+ @${REINPLACE_CMD} -e 's|= gcc|= ${CC}|g' \
-e 's|CFLAGS =.*|CFLAGS = -c ${CFLAGS}|g' \
${WRKSRC}/Makefile
@@ -60,7 +72,7 @@ do-install:
.for l in xtract unshadow
${LN} -sf ${PREFIX}/bin/john ${PREFIX}/bin/${l}
.endfor
- ${MKDIR} ${DATADIR}
+ @${MKDIR} ${DATADIR}
.for f in ${DATAFILES}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/run/${f} ${DATADIR}
.endfor
@@ -72,7 +84,7 @@ do-install:
.endif
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${f} ${DOCSDIR}
.endfor
diff --git a/security/john/distinfo b/security/john/distinfo
index 6a1357e53c4d..df23733a9d22 100644
--- a/security/john/distinfo
+++ b/security/john/distinfo
@@ -1,3 +1,3 @@
-MD5 (john-1.7.0.2.tar.bz2) = 0a87dca1f149493fc087ea8a8b6ae5d5
-SHA256 (john-1.7.0.2.tar.bz2) = d97ce0595befc940187930ab8185e5503e2a200fbd795e07a6b1f304de408b38
-SIZE (john-1.7.0.2.tar.bz2) = 690516
+MD5 (john-1.7.1.tar.bz2) = 38eea8aae42f9da08513ef2629b61bd9
+SHA256 (john-1.7.1.tar.bz2) = 959b6179f7eee5a5754604abd4f10d6c5d6cff07e256d0666514bf1a1867b85c
+SIZE (john-1.7.1.tar.bz2) = 692049