pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/findcrcs sysutils/findcrcs: import findcrcs-0.3
details: https://anonhg.NetBSD.org/pkgsrc/rev/b9ac1ec8a60c
branches: trunk
changeset: 446099:b9ac1ec8a60c
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Feb 04 08:34:23 2021 +0000
description:
sysutils/findcrcs: import findcrcs-0.3
findcrcs tries to find a chunk of a file that matches a particular
given CRC and MD5.
diffstat:
sysutils/findcrcs/DESCR | 2 ++
sysutils/findcrcs/Makefile | 28 ++++++++++++++++++++++++++++
sysutils/findcrcs/PLIST | 3 +++
sysutils/findcrcs/distinfo | 8 ++++++++
sysutils/findcrcs/patches/patch-Makefile | 21 +++++++++++++++++++++
sysutils/findcrcs/patches/patch-findcrcs.cc | 14 ++++++++++++++
6 files changed, 76 insertions(+), 0 deletions(-)
diffs (100 lines):
diff -r c01d17c21afd -r b9ac1ec8a60c sysutils/findcrcs/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/findcrcs/DESCR Thu Feb 04 08:34:23 2021 +0000
@@ -0,0 +1,2 @@
+findcrcs tries to find a chunk of a file that matches a particular
+given CRC and MD5.
diff -r c01d17c21afd -r b9ac1ec8a60c sysutils/findcrcs/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/findcrcs/Makefile Thu Feb 04 08:34:23 2021 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2021/02/04 08:34:23 wiz Exp $
+
+DISTNAME= findcrcs-0.3
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=claunia/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/claunia/findcrcs/
+COMMENT= Find and extract pieces of data by CRC, size and MD5
+LICENSE= gnu-gpl-v3 AND apache-2.0
+
+USE_TOOLS+= gmake
+USE_LANGUAGES= c++
+TEST_TARGET= test
+INSTALLATION_DIRS= bin share/doc/findcrcs
+
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc*)
+CXXFLAGS+= -mcrc32
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/findcrcs ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/findcrcs
+
+.include "../../mk/bsd.pkg.mk"
diff -r c01d17c21afd -r b9ac1ec8a60c sysutils/findcrcs/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/findcrcs/PLIST Thu Feb 04 08:34:23 2021 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/02/04 08:34:23 wiz Exp $
+bin/findcrcs
+share/doc/findcrcs/README
diff -r c01d17c21afd -r b9ac1ec8a60c sysutils/findcrcs/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/findcrcs/distinfo Thu Feb 04 08:34:23 2021 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2021/02/04 08:34:23 wiz Exp $
+
+SHA1 (findcrcs-0.3.tar.gz) = 5144f3d17c318706b3e8113242bccfc59b62bfb7
+RMD160 (findcrcs-0.3.tar.gz) = 05e6c25a15f1cfa78bad06a76e8862ffaf25e897
+SHA512 (findcrcs-0.3.tar.gz) = b55a59fc3b2d11f10c87cb05d428409043bdcaaefc42a10c456f5fffc3ede18cc02f09397399cc60a6295666872776eb10662ec089d315f512129faac26b7d4f
+Size (findcrcs-0.3.tar.gz) = 3981565 bytes
+SHA1 (patch-Makefile) = 334bf957a75b92073014e8aacf022cd866792fba
+SHA1 (patch-findcrcs.cc) = 80cc824ca3e3470050f488cdf35e136886922825
diff -r c01d17c21afd -r b9ac1ec8a60c sysutils/findcrcs/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/findcrcs/patches/patch-Makefile Thu Feb 04 08:34:23 2021 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-Makefile,v 1.1 2021/02/04 08:34:23 wiz Exp $
+
+Honor LDFLAGS (fixes RELRO).
+
+--- Makefile.orig 2015-05-24 22:26:34.000000000 +0000
++++ Makefile
+@@ -69,12 +69,12 @@ test: $(BINARY) test.bin
+ @sh -c "time ./$(BINARY) test.bin 1000000 13fbda0d"
+
+ $(BINARY): findcrcs.cc md5.c md5.h crcutil-1.0 crcutil.a
+- $(BINPREFIX)g++ -O3 -D_FILE_OFFSET_BITS=64 -Wall -o $@ $(EXEFLAGS) findcrcs.cc md5.c crcutil.a -Icrcutil-1.0/code -Icrcutil-1.0/examples
++ $(BINPREFIX)g++ -O3 -D_FILE_OFFSET_BITS=64 -Wall -o $@ $(EXEFLAGS) $(CXXFLAGS) $(LDFLAGS) findcrcs.cc md5.c crcutil.a -Icrcutil-1.0/code -Icrcutil-1.0/examples
+ $(BINPREFIX)strip -s $@
+
+ crcutil.a: crcutil-1.0
+ rm -rf *.o
+- $(BINPREFIX)g++ -O3 -Wall -mcrc32 -c crcutil-1.0/examples/interface.cc crcutil-1.0/code/*.cc -Icrcutil-1.0/code -Icrcutil-1.0/tests -Icrcutil-1.0/examples
++ $(BINPREFIX)g++ -O3 -Wall $(CXXFLAGS) -c crcutil-1.0/examples/interface.cc crcutil-1.0/code/*.cc -Icrcutil-1.0/code -Icrcutil-1.0/tests -Icrcutil-1.0/examples
+ $(BINPREFIX)ar r crcutil.a *.o
+ rm -rf *.o
+
diff -r c01d17c21afd -r b9ac1ec8a60c sysutils/findcrcs/patches/patch-findcrcs.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/findcrcs/patches/patch-findcrcs.cc Thu Feb 04 08:34:23 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-findcrcs.cc,v 1.1 2021/02/04 08:34:23 wiz Exp $
+
+Add missing include for errno.
+
+--- findcrcs.cc.orig 2015-05-24 22:26:34.000000000 +0000
++++ findcrcs.cc
+@@ -33,6 +33,7 @@
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <errno.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <stdlib.h>
Home |
Main Index |
Thread Index |
Old Index