packages: add md5deep, a program to compute, match, and audit hashsets (closes: ...
authorNicolas Thill <nico@openwrt.org>
Sun, 20 Nov 2011 15:18:55 +0000 (15:18 +0000)
committerNicolas Thill <nico@openwrt.org>
Sun, 20 Nov 2011 15:18:55 +0000 (15:18 +0000)
SVN-Revision: 29282

utils/md5deep/Makefile [new file with mode: 0644]
utils/md5deep/patches/101-cross_compile.patch [new file with mode: 0644]

diff --git a/utils/md5deep/Makefile b/utils/md5deep/Makefile
new file mode 100644 (file)
index 0000000..b868ae7
--- /dev/null
@@ -0,0 +1,40 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=md5deep
+PKG_VERSION:=3.7
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/$(PKG_NAME)
+PKG_MD5SUM:=d103b738721c54a9bf535470b63d49dc
+
+PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/md5deep
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=A program to compute, match and audit hashsets
+  URL:=http://md5deep.sourceforge.net/
+endef
+
+define Package/md5deep/description
+ md5deep is a set of programs to compute MD5, SHA-1, SHA-256, Tiger, or
+ Whirlpool message digests on an arbitrary number of files.
+endef
+
+define Package/md5deep/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/{hash,md5,sha1,sha256,tiger,whirlpool}deep $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,md5deep))
diff --git a/utils/md5deep/patches/101-cross_compile.patch b/utils/md5deep/patches/101-cross_compile.patch
new file mode 100644 (file)
index 0000000..540ba4c
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -19,17 +19,6 @@ AC_PROG_INSTALL
+ AC_CONFIG_FILES([Makefile hashdeep/Makefile md5deep/Makefile])
+ AM_CONFIG_HEADER([config.h])
+-# Bring additional directories where things might be found into our
+-# search path. I don't know why autoconf doesn't do this by default
+-for spfx in /usr/local /opt/local /sw ; do
+-    echo checking ${spfx}/include
+-    if test -d ${spfx}/include; then
+-        CFLAGS="-I${spfx}/include $CFLAGS"
+-        CPPFLAGS="-I${spfx}/include $CPPFLAGS"
+-        LDFLAGS="-L${spfx}/lib $LDFLAGS"
+-    fi
+-done
+-
+ # Checks for header files.
+ AC_HEADER_DIRENT
+ AC_HEADER_STDC