From c3a951a1ae248693c97cd548041bcd2ba3193d33 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 28 Apr 2014 17:13:45 +0200 Subject: [PATCH] nettle: Add new crypto library. --- config/rootfiles/common/nettle | 65 ++++++++++++++++++++++++++++ lfs/nettle | 79 ++++++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 145 insertions(+) create mode 100644 config/rootfiles/common/nettle create mode 100644 lfs/nettle diff --git a/config/rootfiles/common/nettle b/config/rootfiles/common/nettle new file mode 100644 index 0000000000..1de06f2fe4 --- /dev/null +++ b/config/rootfiles/common/nettle @@ -0,0 +1,65 @@ +#usr/bin/nettle-hash +#usr/bin/nettle-lfib-stream +#usr/bin/pkcs1-conv +#usr/bin/sexp-conv +#usr/include/nettle +#usr/include/nettle/aes.h +#usr/include/nettle/arcfour.h +#usr/include/nettle/arctwo.h +#usr/include/nettle/asn1.h +#usr/include/nettle/base16.h +#usr/include/nettle/base64.h +#usr/include/nettle/bignum.h +#usr/include/nettle/blowfish.h +#usr/include/nettle/buffer.h +#usr/include/nettle/camellia.h +#usr/include/nettle/cast128.h +#usr/include/nettle/cbc.h +#usr/include/nettle/ctr.h +#usr/include/nettle/des-compat.h +#usr/include/nettle/des.h +#usr/include/nettle/dsa.h +#usr/include/nettle/ecc-curve.h +#usr/include/nettle/ecc.h +#usr/include/nettle/ecdsa.h +#usr/include/nettle/gcm.h +#usr/include/nettle/gosthash94.h +#usr/include/nettle/hmac.h +#usr/include/nettle/knuth-lfib.h +#usr/include/nettle/macros.h +#usr/include/nettle/md2.h +#usr/include/nettle/md4.h +#usr/include/nettle/md5-compat.h +#usr/include/nettle/md5.h +#usr/include/nettle/memxor.h +#usr/include/nettle/nettle-meta.h +#usr/include/nettle/nettle-stdint.h +#usr/include/nettle/nettle-types.h +#usr/include/nettle/pbkdf2.h +#usr/include/nettle/pgp.h +#usr/include/nettle/pkcs1.h +#usr/include/nettle/realloc.h +#usr/include/nettle/ripemd160.h +#usr/include/nettle/rsa-compat.h +#usr/include/nettle/rsa.h +#usr/include/nettle/salsa20.h +#usr/include/nettle/serpent.h +#usr/include/nettle/sexp.h +#usr/include/nettle/sha.h +#usr/include/nettle/sha1.h +#usr/include/nettle/sha2.h +#usr/include/nettle/sha3.h +#usr/include/nettle/twofish.h +#usr/include/nettle/umac.h +#usr/include/nettle/yarrow.h +#usr/lib/libhogweed.a +#usr/lib/libhogweed.so +usr/lib/libhogweed.so.2 +usr/lib/libhogweed.so.2.5 +#usr/lib/libnettle.a +#usr/lib/libnettle.so +usr/lib/libnettle.so.4 +usr/lib/libnettle.so.4.7 +#usr/lib/pkgconfig/hogweed.pc +#usr/lib/pkgconfig/nettle.pc +#usr/share/info/nettle.info diff --git a/lfs/nettle b/lfs/nettle new file mode 100644 index 0000000000..59c013ea59 --- /dev/null +++ b/lfs/nettle @@ -0,0 +1,79 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 2.7.1 + +THISAPP = nettle-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 003d5147911317931dd453520eb234a5 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --enable-shared + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index f756033c6a..9f8b07e149 100755 --- a/make.sh +++ b/make.sh @@ -508,6 +508,7 @@ buildipfire() { ipfiremake arping ipfiremake beep ipfiremake dvdrtools + ipfiremake nettle ipfiremake dnsmasq ipfiremake dosfstools ipfiremake reiserfsprogs -- 2.39.2