pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wip/findcrcs: import findcrcs-0.3
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <tk%giga.or.at@localhost>
Pushed By: wiz
Date: Sun Sep 1 12:24:56 2019 +0200
Changeset: 29e8be664c2f38a3a13c8966756c5771a7906cea
Added Files:
findcrcs/DESCR
findcrcs/Makefile
findcrcs/PLIST
findcrcs/distinfo
findcrcs/patches/patch-Makefile
findcrcs/patches/patch-findcrcs.cc
Log Message:
wip/findcrcs: import findcrcs-0.3
findcrcs tries to find a chunk of a file that matches a particular
given CRC and MD5.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=29e8be664c2f38a3a13c8966756c5771a7906cea
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
findcrcs/DESCR | 2 ++
findcrcs/Makefile | 22 ++++++++++++++++++++++
findcrcs/PLIST | 3 +++
findcrcs/distinfo | 8 ++++++++
findcrcs/patches/patch-Makefile | 15 +++++++++++++++
findcrcs/patches/patch-findcrcs.cc | 14 ++++++++++++++
6 files changed, 64 insertions(+)
diffs:
diff --git a/findcrcs/DESCR b/findcrcs/DESCR
new file mode 100644
index 0000000000..594c89d569
--- /dev/null
+++ b/findcrcs/DESCR
@@ -0,0 +1,2 @@
+findcrcs tries to find a chunk of a file that matches a particular
+given CRC and MD5.
diff --git a/findcrcs/Makefile b/findcrcs/Makefile
new file mode 100644
index 0000000000..8cf6298c17
--- /dev/null
+++ b/findcrcs/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+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
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/findcrcs ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/findcrcs
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/findcrcs/PLIST b/findcrcs/PLIST
new file mode 100644
index 0000000000..6d26dd9f7f
--- /dev/null
+++ b/findcrcs/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/findcrcs
+share/doc/findcrcs/README
diff --git a/findcrcs/distinfo b/findcrcs/distinfo
new file mode 100644
index 0000000000..923babce33
--- /dev/null
+++ b/findcrcs/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+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) = 9d7784dcc6e44fbb70625b5b658604f7a41e87ed
+SHA1 (patch-findcrcs.cc) = 80cc824ca3e3470050f488cdf35e136886922825
diff --git a/findcrcs/patches/patch-Makefile b/findcrcs/patches/patch-Makefile
new file mode 100644
index 0000000000..49eb778bf6
--- /dev/null
+++ b/findcrcs/patches/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Honor LDFLAGS (fixes RELRO).
+
+--- Makefile.orig 2015-05-24 22:26:34.000000000 +0000
++++ Makefile
+@@ -69,7 +68,7 @@ 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) $(LDFLAGS) findcrcs.cc md5.c crcutil.a -Icrcutil-1.0/code -Icrcutil-1.0/examples
+ $(BINPREFIX)strip -s $@
+
+ crcutil.a: crcutil-1.0
diff --git a/findcrcs/patches/patch-findcrcs.cc b/findcrcs/patches/patch-findcrcs.cc
new file mode 100644
index 0000000000..e0e7f24b70
--- /dev/null
+++ b/findcrcs/patches/patch-findcrcs.cc
@@ -0,0 +1,14 @@
+$NetBSD$
+
+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