diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2012-12-02 21:39:04 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-01-04 16:24:48 +0100 |
commit | a6d6e5d04cbbfa63f477658186702eb5d11689fe (patch) | |
tree | 2e513a93b68f167032c4a172e7a9da67a30a15d8 | |
parent | cad4b8b07385ced3a4caaa6d380b25f7d69e295b (diff) | |
download | ptxdist-a6d6e5d04cbbfa63f477658186702eb5d11689fe.tar.gz ptxdist-a6d6e5d04cbbfa63f477658186702eb5d11689fe.tar.xz |
nettle: added new package
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
[mol: cleanup]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/nettle.in | 9 | ||||
-rw-r--r-- | rules/nettle.make | 63 |
2 files changed, 72 insertions, 0 deletions
diff --git a/rules/nettle.in b/rules/nettle.in new file mode 100644 index 000000000..9ec8429cb --- /dev/null +++ b/rules/nettle.in @@ -0,0 +1,9 @@ +## SECTION=networking + +config NETTLE + tristate + select LIBGMP + prompt "nettle" + help + Nettle is a cryptographic library. + diff --git a/rules/nettle.make b/rules/nettle.make new file mode 100644 index 000000000..b06c549ec --- /dev/null +++ b/rules/nettle.make @@ -0,0 +1,63 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Robert Schwebel <r.schwebel@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_NETTLE) += nettle + +# +# Paths and names +# +NETTLE_VERSION := 2.5 +NETTLE_MD5 := d66882e6ad31a9f651b73d7a1a93bd4c +NETTLE := nettle-$(NETTLE_VERSION) +NETTLE_SUFFIX := tar.gz +NETTLE_URL := http://www.lysator.liu.se/~nisse/archive/$(NETTLE).$(NETTLE_SUFFIX) +NETTLE_SOURCE := $(SRCDIR)/$(NETTLE).$(NETTLE_SUFFIX) +NETTLE_DIR := $(BUILDDIR)/$(NETTLE) +NETTLE_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +NETTLE_CONF_TOOL := autoconf +NETTLE_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --enable-public-key \ + --disable-openssl + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/nettle.targetinstall: + @$(call targetinfo) + + @$(call install_init, nettle) + @$(call install_fixup, nettle,PRIORITY,optional) + @$(call install_fixup, nettle,SECTION,base) + @$(call install_fixup, nettle,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>") + @$(call install_fixup, nettle,DESCRIPTION,missing) + + @$(call install_lib, nettle, 0, 0, 0644, libnettle) + @$(call install_copy, nettle, 0, 0, 0755, -, /usr/bin/nettle-hash) + @$(call install_copy, nettle, 0, 0, 0755, -, /usr/bin/sexp-conv) + @$(call install_copy, nettle, 0, 0, 0755, -, /usr/bin/nettle-lfib-stream) + + @$(call install_finish, nettle) + + @$(call touch) + +# vim: syntax=make |