Patchwork [1/3] libmhash: new package

login
register
mail settings
Submitter Gustavo Zacarias
Date Jan. 7, 2013, 6:12 p.m.
Message ID <1357582380-22332-1-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/210021/
State Accepted
Headers show

Comments

Gustavo Zacarias - Jan. 7, 2013, 6:12 p.m.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/Config.in            |    1 +
 package/libmhash/Config.in   |    9 +++++++++
 package/libmhash/libmhash.mk |   14 ++++++++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 package/libmhash/Config.in
 create mode 100644 package/libmhash/libmhash.mk
Peter Korsgaard - Jan. 13, 2013, 8:24 p.m.
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
 Gustavo> ---
 Gustavo>  package/Config.in            |    1 +
 Gustavo>  package/libmhash/Config.in   |    9 +++++++++
 Gustavo>  package/libmhash/libmhash.mk |   14 ++++++++++++++
 Gustavo>  3 files changed, 24 insertions(+), 0 deletions(-)
 Gustavo>  create mode 100644 package/libmhash/Config.in
 Gustavo>  create mode 100644 package/libmhash/libmhash.mk

 Gustavo> diff --git a/package/Config.in b/package/Config.in
 Gustavo> index 0f397d6..942e62c 100644
 Gustavo> --- a/package/Config.in
 Gustavo> +++ b/package/Config.in
 Gustavo> @@ -370,6 +370,7 @@ source "package/beecrypt/Config.in"
 Gustavo>  source "package/gnutls/Config.in"
 Gustavo>  source "package/libgcrypt/Config.in"
 Gustavo>  source "package/libgpg-error/Config.in"
 Gustavo> +source "package/libmhash/Config.in"
 Gustavo>  source "package/libnss/Config.in"
 Gustavo>  source "package/nettle/Config.in"
 Gustavo>  source "package/ocf-linux/Config.in"
 Gustavo> diff --git a/package/libmhash/Config.in b/package/libmhash/Config.in
 Gustavo> new file mode 100644
 Gustavo> index 0000000..82b544f
 Gustavo> --- /dev/null
 Gustavo> +++ b/package/libmhash/Config.in
 Gustavo> @@ -0,0 +1,9 @@
 Gustavo> +config BR2_PACKAGE_LIBMHASH
 Gustavo> +	bool "libmhash"
 Gustavo> +	help
 Gustavo> +	  Mhash is a free (under GNU Lesser GPL) library which provides
 Gustavo> +	  a uniform interface to a large number of hash algorithms.
 Gustavo> +	  These algorithms can be used to compute checksums, message digests,
 Gustavo> +	  and other signatures. 

Trailing space. Committed with that fixed, thanks.

Patch

diff --git a/package/Config.in b/package/Config.in
index 0f397d6..942e62c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -370,6 +370,7 @@  source "package/beecrypt/Config.in"
 source "package/gnutls/Config.in"
 source "package/libgcrypt/Config.in"
 source "package/libgpg-error/Config.in"
+source "package/libmhash/Config.in"
 source "package/libnss/Config.in"
 source "package/nettle/Config.in"
 source "package/ocf-linux/Config.in"
diff --git a/package/libmhash/Config.in b/package/libmhash/Config.in
new file mode 100644
index 0000000..82b544f
--- /dev/null
+++ b/package/libmhash/Config.in
@@ -0,0 +1,9 @@ 
+config BR2_PACKAGE_LIBMHASH
+	bool "libmhash"
+	help
+	  Mhash is a free (under GNU Lesser GPL) library which provides
+	  a uniform interface to a large number of hash algorithms.
+	  These algorithms can be used to compute checksums, message digests,
+	  and other signatures. 
+
+	  http://mhash.sourceforge.net/
diff --git a/package/libmhash/libmhash.mk b/package/libmhash/libmhash.mk
new file mode 100644
index 0000000..aa05f93
--- /dev/null
+++ b/package/libmhash/libmhash.mk
@@ -0,0 +1,14 @@ 
+#############################################################
+#
+# libmhash
+#
+#############################################################
+
+LIBMHASH_VERSION = 0.9.9.9
+LIBMHASH_SITE = http://downloads.sourceforge.net/project/mhash/mhash/$(LIBMHASH_VERSION)
+LIBMHASH_SOURCE = mhash-$(LIBMHASH_VERSION).tar.bz2
+LIBMHASH_INSTALL_STAGING = YES
+LIBMHASH_LICENSE = LGPLv2
+LIBMHASH_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))