mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
nettle: Add new crypto library.
This commit is contained in:
65
config/rootfiles/common/nettle
Normal file
65
config/rootfiles/common/nettle
Normal file
@@ -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
|
||||
79
lfs/nettle
Normal file
79
lfs/nettle
Normal file
@@ -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 <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# 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)
|
||||
Reference in New Issue
Block a user