Date: Mon, 11 Feb 2019 19:38:48 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492732 - in head/security/sha1collisiondetection: . files Message-ID: <201902111938.x1BJcmkM070830@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Mon Feb 11 19:38:47 2019 New Revision: 492732 URL: https://svnweb.freebsd.org/changeset/ports/492732 Log: security/sha1collisiondetection: update to 1.0.3 PR: 235444 Submitted by: jharris@widomaker.com (maintainer) Added: head/security/sha1collisiondetection/files/ head/security/sha1collisiondetection/files/patch-Makefile (contents, props changed) head/security/sha1collisiondetection/files/patch-src_main.c (contents, props changed) Modified: head/security/sha1collisiondetection/Makefile head/security/sha1collisiondetection/distinfo Modified: head/security/sha1collisiondetection/Makefile ============================================================================== --- head/security/sha1collisiondetection/Makefile Mon Feb 11 19:11:34 2019 (r492731) +++ head/security/sha1collisiondetection/Makefile Mon Feb 11 19:38:47 2019 (r492732) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= sha1collisiondetection -PORTVERSION= 1.0.2 +PORTVERSION= 1.0.3 DISTVERSIONPREFIX= stable-v CATEGORIES= security @@ -15,28 +15,26 @@ BROKEN_aarch64= fails to compile: generic selections BROKEN_armv6= fails to compile: generic selections are a C11-specific feature [-Werror,-Wc11-extensions] BROKEN_armv7= fails to compile: generic selections are a C11-specific feature [-Werror,-Wc11-extensions] +USES= gmake libtool:build + USE_GITHUB= yes GH_ACCOUNT= cr-marcstevens -USES= gmake libtool:build USE_LDCONFIG= yes PLIST_FILES= bin/sha1dcsum \ bin/sha1dcsum_partialcoll \ include/sha1dc/sha1.h \ lib/libsha1detectcoll.so \ - lib/libsha1detectcoll.so.0 \ - lib/libsha1detectcoll.so.0.0.0 + lib/libsha1detectcoll.so.1 \ + lib/libsha1detectcoll.so.1.0.0 -post-patch: - @${REINPLACE_CMD} -e 's/ -std=c90 / -std=c89 /' ${WRKSRC}/Makefile - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/.libs/sha1dcsum* ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${PREFIX}/include/sha1dc ${INSTALL_DATA} ${WRKSRC}/lib/sha1.h ${STAGEDIR}${PREFIX}/include/sha1dc - ${INSTALL_LIB} ${WRKSRC}/bin/.libs/libsha1detectcoll.so.0.0.0 ${STAGEDIR}${PREFIX}/lib - ${LN} -sf libsha1detectcoll.so.0.0.0 ${STAGEDIR}${PREFIX}/lib/libsha1detectcoll.so - ${LN} -sf libsha1detectcoll.so.0.0.0 ${STAGEDIR}${PREFIX}/lib/libsha1detectcoll.so.0 + ${INSTALL_LIB} ${WRKSRC}/bin/.libs/libsha1detectcoll.so.1.0.0 ${STAGEDIR}${PREFIX}/lib + ${LN} -sf libsha1detectcoll.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/libsha1detectcoll.so + ${LN} -sf libsha1detectcoll.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/libsha1detectcoll.so.1 .include <bsd.port.mk> Modified: head/security/sha1collisiondetection/distinfo ============================================================================== --- head/security/sha1collisiondetection/distinfo Mon Feb 11 19:11:34 2019 (r492731) +++ head/security/sha1collisiondetection/distinfo Mon Feb 11 19:38:47 2019 (r492732) @@ -1,3 +1,3 @@ -TIMESTAMP = 1489459273 -SHA256 (cr-marcstevens-sha1collisiondetection-stable-v1.0.2_GH0.tar.gz) = ab1a5624d12417b5af9ffe6662546b6932c39c0e4c4bef822851a2d0e53df790 -SIZE (cr-marcstevens-sha1collisiondetection-stable-v1.0.2_GH0.tar.gz) = 778302 +TIMESTAMP = 1549146242 +SHA256 (cr-marcstevens-sha1collisiondetection-stable-v1.0.3_GH0.tar.gz) = 77a1c2b2a4fbe4f78de288fa4831ca63938c3cb84a73a92c79f436238bd9ac07 +SIZE (cr-marcstevens-sha1collisiondetection-stable-v1.0.3_GH0.tar.gz) = 780306 Added: head/security/sha1collisiondetection/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/sha1collisiondetection/files/patch-Makefile Mon Feb 11 19:38:47 2019 (r492732) @@ -0,0 +1,11 @@ +--- Makefile.orig 2017-03-27 16:11:23 UTC ++++ Makefile +@@ -33,7 +33,7 @@ INSTALL ?= install + endif + + +-CFLAGS=-O2 -Wall -Werror -Wextra -pedantic -std=c90 -Ilib ++CFLAGS=-O2 -Wall -Werror -Wextra -pedantic -Ilib + LDFLAGS= + + LT_CC:=$(LIBTOOL) --tag=CC --mode=compile $(CC) Added: head/security/sha1collisiondetection/files/patch-src_main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/sha1collisiondetection/files/patch-src_main.c Mon Feb 11 19:38:47 2019 (r492732) @@ -0,0 +1,22 @@ +--- src/main.c.orig 2017-03-27 16:11:23 UTC ++++ src/main.c +@@ -9,6 +9,8 @@ + #include <stdlib.h> + #include <string.h> + #include <libgen.h> ++#include <limits.h> /* for NAME_MAX, max bytes in a file name */ ++#include <assert.h> /* for assert() macro */ + + #include "sha1.h" + +@@ -23,7 +25,9 @@ int main(int argc, char** argv) + + if (argc < 2) + { +- printf("Usage: %s <file>\n", basename(argv[0])); ++assert (sizeof(buffer) >= NAME_MAX); /* reuse buffer[] for newly-POSIX-compliant, thread-safe basename() */ ++ (void) strlcpy (buffer, argv[0], sizeof (buffer)); ++ printf("Usage: %s <file>\n", basename(buffer)); + return 1; + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902111938.x1BJcmkM070830>