]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
beecrypt: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Dec 2011 23:39:14 +0000 (00:39 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Dec 2011 23:39:14 +0000 (00:39 +0100)
beecrypt/beecrypt.nm [new file with mode: 0644]
beecrypt/patches/beecrypt-4.1.2-biarch.patch [new file with mode: 0644]
beecrypt/patches/beecrypt-4.2.1-no-c++.patch [new file with mode: 0644]

diff --git a/beecrypt/beecrypt.nm b/beecrypt/beecrypt.nm
new file mode 100644 (file)
index 0000000..0235e07
--- /dev/null
@@ -0,0 +1,55 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = beecrypt
+version    = 4.2.1
+release    = 1
+
+groups     = System/Libraries
+url        = http://beecrypt.sourceforge.net/
+license    = LGPLv2+
+summary    = An open source cryptography library.
+
+description
+       BeeCrypt is an ongoing project to provide a strong and fast cryptography
+       toolkit. Includes entropy sources, random generators, block ciphers, hash
+       functions, message authentication codes, multiprecision integer routines
+       and public key primitives.
+end
+
+source_dl  = http://downloads.sourceforge.net/sourceforge/%{name}/
+
+build
+       requires
+               autoconf
+               automake
+               gcc-c++
+               libtool
+
+               perl-Carp
+       end
+
+       prepare_cmds
+               libtoolize
+               autoreconf
+       end
+
+       configure_options += \
+               --with-cplusplus=no \
+               --with-java=no \
+               --with-python=no
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+end
diff --git a/beecrypt/patches/beecrypt-4.1.2-biarch.patch b/beecrypt/patches/beecrypt-4.1.2-biarch.patch
new file mode 100644 (file)
index 0000000..695eef0
--- /dev/null
@@ -0,0 +1,19 @@
+Patch by Paul Nasrat <pnasrat@redhat.com> for beecrypt >= 4.1.2 to make multilib/multiarch
+of beecrypt-devel working.
+
+--- beecrypt-4.1.2/gnu.h.in                            2006-05-22 15:53:45.000000000 -0400
++++ beecrypt-4.1.2/gnu.h.in.biarch                     2006-05-22 15:53:49.000000000 -0400
+@@ -61,7 +61,12 @@
+  * make assumptions about the size set by the configure script
+  */
+ #if !defined(MP_WBITS)
+-# define MP_WBITS     @MP_WBITS@
++# include <bits/wordsize.h>
++#if __WORDSIZE == 32
++# define MP_WBITS     32U
++#elif __WORDSIZE == 64
++# define MP_WBITS     64U
++#endif
+ #endif
+ #endif
diff --git a/beecrypt/patches/beecrypt-4.2.1-no-c++.patch b/beecrypt/patches/beecrypt-4.2.1-no-c++.patch
new file mode 100644 (file)
index 0000000..bb2d227
--- /dev/null
@@ -0,0 +1,16 @@
+Patch by Robert Scheck <robert@fedoraproject.org> for beecrypt >= 4.2.1 to avoid linking
+against libstdc++. This patch is based on an old by Florian La Roche <laroche@redhat.com>
+and Panu Matilainen <pmatilai@redhat.com>. For further information see Red Hat Bugzilla
+for bug ID #165080.
+
+--- beecrypt-4.2.1/Makefile.am                         2009-07-08 20:56:18.000000000 +0200
++++ beecrypt-4.2.1/Makefile.am.no-c++                  2010-03-28 20:55:51.000000000 +0200
+@@ -62,7 +62,7 @@
+ lib_LTLIBRARIES = libbeecrypt.la
+-libbeecrypt_la_SOURCES = aes.c base64.c beecrypt.c blockmode.c blockpad.c blowfish.c dhies.c dldp.c dlkp.c dlpk.c dlsvdp-dh.c dsa.c elgamal.c endianness.c entropy.c fips186.c hmac.c hmacmd5.c hmacsha1.c hmacsha224.c hmacsha256.c md4.c md5.c hmacsha384.c hmacsha512.c memchunk.c mp.c mpbarrett.c mpnumber.c mpprime.c mtprng.c pkcs1.c pkcs12.c ripemd128.c ripemd160.c ripemd256.c ripemd320.c rsa.c rsakp.c rsapk.c sha1.c sha224.c sha256.c sha384.c sha512.c sha2k32.c sha2k64.c timestamp.c cppglue.cxx
++libbeecrypt_la_SOURCES = aes.c base64.c beecrypt.c blockmode.c blockpad.c blowfish.c dhies.c dldp.c dlkp.c dlpk.c dlsvdp-dh.c dsa.c elgamal.c endianness.c entropy.c fips186.c hmac.c hmacmd5.c hmacsha1.c hmacsha224.c hmacsha256.c md4.c md5.c hmacsha384.c hmacsha512.c memchunk.c mp.c mpbarrett.c mpnumber.c mpprime.c mtprng.c pkcs1.c pkcs12.c ripemd128.c ripemd160.c ripemd256.c ripemd320.c rsa.c rsakp.c rsapk.c sha1.c sha224.c sha256.c sha384.c sha512.c sha2k32.c sha2k64.c timestamp.c # cppglue.cxx
+ libbeecrypt_la_DEPENDENCIES = $(BEECRYPT_OBJECTS)
+ libbeecrypt_la_LIBADD = blowfishopt.lo mpopt.lo sha1opt.lo $(OPENMP_LIBS)
+ libbeecrypt_la_LDFLAGS = -no-undefined -version-info $(LIBBEECRYPT_LT_CURRENT):$(LIBBEECRYPT_LT_REVISION):$(LIBBEECRYPT_LT_AGE)