pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/findcrcs



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Feb  4 08:34:23 UTC 2021

Added Files:
        pkgsrc/sysutils/findcrcs: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/findcrcs/patches: patch-Makefile patch-findcrcs.cc

Log Message:
sysutils/findcrcs: import findcrcs-0.3

findcrcs tries to find a chunk of a file that matches a particular
given CRC and MD5.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/findcrcs/DESCR \
    pkgsrc/sysutils/findcrcs/Makefile pkgsrc/sysutils/findcrcs/PLIST \
    pkgsrc/sysutils/findcrcs/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/findcrcs/patches/patch-Makefile \
    pkgsrc/sysutils/findcrcs/patches/patch-findcrcs.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/sysutils/findcrcs/DESCR
diff -u /dev/null pkgsrc/sysutils/findcrcs/DESCR:1.1
--- /dev/null   Thu Feb  4 08:34:23 2021
+++ pkgsrc/sysutils/findcrcs/DESCR      Thu Feb  4 08:34:23 2021
@@ -0,0 +1,2 @@
+findcrcs tries to find a chunk of a file that matches a particular
+given CRC and MD5.
Index: pkgsrc/sysutils/findcrcs/Makefile
diff -u /dev/null pkgsrc/sysutils/findcrcs/Makefile:1.1
--- /dev/null   Thu Feb  4 08:34:23 2021
+++ pkgsrc/sysutils/findcrcs/Makefile   Thu Feb  4 08:34:23 2021
@@ -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"
Index: pkgsrc/sysutils/findcrcs/PLIST
diff -u /dev/null pkgsrc/sysutils/findcrcs/PLIST:1.1
--- /dev/null   Thu Feb  4 08:34:23 2021
+++ pkgsrc/sysutils/findcrcs/PLIST      Thu Feb  4 08:34:23 2021
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/02/04 08:34:23 wiz Exp $
+bin/findcrcs
+share/doc/findcrcs/README
Index: pkgsrc/sysutils/findcrcs/distinfo
diff -u /dev/null pkgsrc/sysutils/findcrcs/distinfo:1.1
--- /dev/null   Thu Feb  4 08:34:23 2021
+++ pkgsrc/sysutils/findcrcs/distinfo   Thu Feb  4 08:34:23 2021
@@ -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

Index: pkgsrc/sysutils/findcrcs/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/findcrcs/patches/patch-Makefile:1.1
--- /dev/null   Thu Feb  4 08:34:23 2021
+++ pkgsrc/sysutils/findcrcs/patches/patch-Makefile     Thu Feb  4 08:34:23 2021
@@ -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
+ 
Index: pkgsrc/sysutils/findcrcs/patches/patch-findcrcs.cc
diff -u /dev/null pkgsrc/sysutils/findcrcs/patches/patch-findcrcs.cc:1.1
--- /dev/null   Thu Feb  4 08:34:23 2021
+++ pkgsrc/sysutils/findcrcs/patches/patch-findcrcs.cc  Thu Feb  4 08:34:23 2021
@@ -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