From 17a67b0cb0a30440110a845b3e613ef25172f646 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Sun, 20 Nov 2011 15:18:55 +0000 Subject: [PATCH] packages: add md5deep, a program to compute, match, and audit hashsets (closes: #9100) SVN-Revision: 29282 --- utils/md5deep/Makefile | 40 +++++++++++++++++++ utils/md5deep/patches/101-cross_compile.patch | 20 ++++++++++ 2 files changed, 60 insertions(+) create mode 100644 utils/md5deep/Makefile create mode 100644 utils/md5deep/patches/101-cross_compile.patch diff --git a/utils/md5deep/Makefile b/utils/md5deep/Makefile new file mode 100644 index 000000000..b868ae7d3 --- /dev/null +++ b/utils/md5deep/Makefile @@ -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 index 000000000..540ba4ca1 --- /dev/null +++ b/utils/md5deep/patches/101-cross_compile.patch @@ -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 -- 2.30.2