Browse Source

hashdeep: Add package

android-5
Stephen 7 years ago
committed by Fredrik Fornwall
parent
commit
2603883acf
  1. 10
      packages/hashdeep/build.sh
  2. 13
      packages/hashdeep/hash.patch

10
packages/hashdeep/build.sh

@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=http://md5deep.sourceforge.net/
TERMUX_PKG_DESCRIPTION="a set of programs to compute MD5, SHA-1, SHA-256, Tiger, or Whirlpool message digests on an arbitrary number of files"
TERMUX_PKG_VERSION=4.4
TERMUX_PKG_SRCURL=https://github.com/jessek/hashdeep/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=ad78d42142f9a74fe8ec0c61bc78d6588a528cbb9aede9440f50b6ff477f3a7f
TERMUX_PKG_FOLDERNAME=hashdeep-$TERMUX_PKG_VERSION
termux_step_pre_configure () {
sh bootstrap.sh
}

13
packages/hashdeep/hash.patch

@ -0,0 +1,13 @@
diff --git a/src/hash.cpp b/src/hash.cpp
index 4216157..4c83454 100644
--- a/src/hash.cpp
+++ b/src/hash.cpp
@@ -279,7 +279,7 @@ void file_data_hasher_t::hash()
MAP_FILE|
#endif
MAP_SHARED,fd,0);
- if(fdht->base>0){
+ if(fdht->base>(void *)0){
/* mmap is successful, so set the bounds.
* if it is not successful, we default to reading the fd
*/
Loading…
Cancel
Save