From owner-svn-ports-all@freebsd.org Fri Dec 30 16:07:27 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14F1BC975A5; Fri, 30 Dec 2016 16:07:27 +0000 (UTC) (envelope-from lifanov@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E3B3D1F3A; Fri, 30 Dec 2016 16:07:26 +0000 (UTC) (envelope-from lifanov@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBUG7QYo067376; Fri, 30 Dec 2016 16:07:26 GMT (envelope-from lifanov@FreeBSD.org) Received: (from lifanov@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBUG7P9m067374; Fri, 30 Dec 2016 16:07:25 GMT (envelope-from lifanov@FreeBSD.org) Message-Id: <201612301607.uBUG7P9m067374@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lifanov set sender to lifanov@FreeBSD.org using -f From: Nikolai Lifanov Date: Fri, 30 Dec 2016 16:07:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r429996 - in head/security/hashcat: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2016 16:07:27 -0000 Author: lifanov Date: Fri Dec 30 16:07:25 2016 New Revision: 429996 URL: https://svnweb.freebsd.org/changeset/ports/429996 Log: security/hashcat: batch of small fixes o fix shebang on sample bash completion installer o respect ${CC} o fix gsed dependency o switch to a simpler Makefile patch that was merged upstream Reported by: AMDmi3 (shebang issue) Reviewed by: matthew Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D8984 Modified: head/security/hashcat/Makefile head/security/hashcat/files/patch-src_Makefile Modified: head/security/hashcat/Makefile ============================================================================== --- head/security/hashcat/Makefile Fri Dec 30 16:02:36 2016 (r429995) +++ head/security/hashcat/Makefile Fri Dec 30 16:07:25 2016 (r429996) @@ -4,6 +4,7 @@ PORTNAME= hashcat PORTVERSION= 3.20 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= security MAINTAINER= lifanov@FreeBSD.org @@ -13,16 +14,21 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/docs/license.txt BUILD_DEPENDS= ${LOCALBASE}/include/CL/cl.h:devel/opencl \ - ${LOCALBASE}/bin/gsed:textproc/gsed + gsed:textproc/gsed BROKEN_FreeBSD_9= does not build USE_GITHUB= yes ALL_TARGET= native -USES= gmake localbase +USES= gmake localbase shebangfix +SHEBANG_FILES= extra/tab_completion/install USE_CSTD= c99 +MAKE_ARGS= CC="${CC}" \ + CFLAGS_NATIVE="${CFLAGS} -Iinclude/ -IOpenCL/" \ + LFLAGS_NATIVE="${LDFLAGS} -lpthread" + pre-install: ${STRIP_CMD} ${WRKSRC}/hashcat Modified: head/security/hashcat/files/patch-src_Makefile ============================================================================== --- head/security/hashcat/files/patch-src_Makefile Fri Dec 30 16:02:36 2016 (r429995) +++ head/security/hashcat/files/patch-src_Makefile Fri Dec 30 16:07:25 2016 (r429996) @@ -1,56 +1,16 @@ --- src/Makefile.orig 2016-12-02 14:00:23 UTC +++ src/Makefile -@@ -101,25 +101,7 @@ BINARY_NATIVE := $(PROG_NAME) - ## General compiler and linker options - ## +@@ -163,11 +163,13 @@ LFLAGS_NATIVE += -lpthread -ld + endif # Linux --CFLAGS := -pipe -std=c99 -Iinclude/ -IOpenCL/ --CFLAGS += -W --CFLAGS += -Wall --CFLAGS += -Wextra --CFLAGS += -Wfloat-equal --CFLAGS += -Wundef --CFLAGS += -Wshadow --CFLAGS += -Wmissing-declarations --CFLAGS += -Wmissing-prototypes --CFLAGS += -Wpointer-arith --CFLAGS += -Wstrict-prototypes --CFLAGS += -Waggregate-return --CFLAGS += -Wswitch-enum --CFLAGS += -Wunreachable-code --CFLAGS += -Winit-self --CFLAGS += -Werror-implicit-function-declaration --CFLAGS += -Wformat --CFLAGS += -Wno-format-zero-length --CFLAGS += -ftrapv -+CFLAGS += -Iinclude/ -IOpenCL/ - - # the following compiler options produce warnings that should be fixed at some time - -@@ -137,18 +119,6 @@ CFLAGS += -ftrapv - - #CFLAGS += -Wstack-usage=524288 - --LFLAGS := -- --ifndef DEBUG --CFLAGS += -O2 --LFLAGS += -s --else --CFLAGS += -DDEBUG -g -ggdb --ifeq ($(DEBUG),2) --CFLAGS += -fsanitize=address -fno-omit-frame-pointer --endif --endif -- - ## - ## Native compilation target - ## -@@ -165,7 +135,6 @@ endif # Linux ifeq ($(UNAME),FreeBSD) ++ifndef PORTNAME CFLAGS_NATIVE := $(CFLAGS) CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/ --CFLAGS_NATIVE += -march=native + CFLAGS_NATIVE += -march=native LFLAGS_NATIVE := $(LFLAGS) LFLAGS_NATIVE += -lpthread ++endif endif # FreeBSD + + ifeq ($(UNAME),Darwin)