Index: head/security/sha1collisiondetection/Makefile =================================================================== --- head/security/sha1collisiondetection/Makefile (revision 492731) +++ head/security/sha1collisiondetection/Makefile (revision 492732) @@ -1,42 +1,40 @@ # $FreeBSD$ PORTNAME= sha1collisiondetection -PORTVERSION= 1.0.2 +PORTVERSION= 1.0.3 DISTVERSIONPREFIX= stable-v CATEGORIES= security MAINTAINER= jharris@widomaker.com COMMENT= Library and command line tool to detect SHA-1 collisions LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt BROKEN_aarch64= fails to compile: generic selections are a C11-specific feature [-Werror,-Wc11-extensions] 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 Index: head/security/sha1collisiondetection/distinfo =================================================================== --- head/security/sha1collisiondetection/distinfo (revision 492731) +++ head/security/sha1collisiondetection/distinfo (revision 492732) @@ -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 Index: head/security/sha1collisiondetection/files/patch-Makefile =================================================================== --- head/security/sha1collisiondetection/files/patch-Makefile (nonexistent) +++ head/security/sha1collisiondetection/files/patch-Makefile (revision 492732) @@ -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) Property changes on: head/security/sha1collisiondetection/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/sha1collisiondetection/files/patch-src_main.c =================================================================== --- head/security/sha1collisiondetection/files/patch-src_main.c (nonexistent) +++ head/security/sha1collisiondetection/files/patch-src_main.c (revision 492732) @@ -0,0 +1,22 @@ +--- src/main.c.orig 2017-03-27 16:11:23 UTC ++++ src/main.c +@@ -9,6 +9,8 @@ + #include + #include + #include ++#include /* for NAME_MAX, max bytes in a file name */ ++#include /* for assert() macro */ + + #include "sha1.h" + +@@ -23,7 +25,9 @@ int main(int argc, char** argv) + + if (argc < 2) + { +- printf("Usage: %s \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 \n", basename(buffer)); + return 1; + } + Property changes on: head/security/sha1collisiondetection/files/patch-src_main.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property