From d9b3b0246c6008f09291de148e6afbd1c04236e9 Mon Sep 17 00:00:00 2001 From: suvari Date: Sat, 27 Feb 2016 00:17:14 +0200 Subject: [PATCH] libmcrypt: add --- util/crypt/libmcrypt/actions.py | 25 ++++++++ .../files/libmcrypt-2.5.8-nolibltdl.patch | 35 +++++++++++ .../files/libmcrypt-2.5.8-prototypes.patch | 35 +++++++++++ .../files/libmcrypt-2.5.8-uninitialized.patch | 12 ++++ util/crypt/libmcrypt/pspec.xml | 61 +++++++++++++++++++ util/crypt/libmcrypt/translations.xml | 13 ++++ 6 files changed, 181 insertions(+) create mode 100644 util/crypt/libmcrypt/actions.py create mode 100644 util/crypt/libmcrypt/files/libmcrypt-2.5.8-nolibltdl.patch create mode 100644 util/crypt/libmcrypt/files/libmcrypt-2.5.8-prototypes.patch create mode 100644 util/crypt/libmcrypt/files/libmcrypt-2.5.8-uninitialized.patch create mode 100644 util/crypt/libmcrypt/pspec.xml create mode 100644 util/crypt/libmcrypt/translations.xml diff --git a/util/crypt/libmcrypt/actions.py b/util/crypt/libmcrypt/actions.py new file mode 100644 index 0000000000..bfb43c2e41 --- /dev/null +++ b/util/crypt/libmcrypt/actions.py @@ -0,0 +1,25 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools + +def setup(): + autotools.configure() + +def build(): + autotools.make() + +def check(): + autotools.make("check") + +def install(): + autotools.install() + + # Empty + pisitools.removeDir("/usr/lib/libmcrypt") + + pisitools.dodoc("ChangeLog","COPYING.LIB","KNOWN-BUGS","NEWS","README") diff --git a/util/crypt/libmcrypt/files/libmcrypt-2.5.8-nolibltdl.patch b/util/crypt/libmcrypt/files/libmcrypt-2.5.8-nolibltdl.patch new file mode 100644 index 0000000000..317a2d7ddd --- /dev/null +++ b/util/crypt/libmcrypt/files/libmcrypt-2.5.8-nolibltdl.patch @@ -0,0 +1,35 @@ +diff -up libmcrypt-2.5.8/Makefile.in.orig libmcrypt-2.5.8/Makefile.in +--- libmcrypt-2.5.8/Makefile.in.orig 2007-02-19 00:32:38.000000000 -0600 ++++ libmcrypt-2.5.8/Makefile.in 2007-07-19 21:23:39.000000000 -0500 +@@ -209,8 +209,8 @@ target_os = @target_os@ + target_vendor = @target_vendor@ + INCLUDES = $(INCLTDL) + EXTRA_DIST = KNOWN-BUGS THANKS NEWS libmcrypt.spec.in libmcrypt.spec COPYING.LIB +-DIST_SUBDIRS = libltdl modules include lib src doc +-SUBDIRS = $(LIBLTDL_DIR) modules include lib src doc ++DIST_SUBDIRS = modules include lib src doc ++SUBDIRS = modules include lib src doc + all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +diff -up libmcrypt-2.5.8/configure.orig libmcrypt-2.5.8/configure +--- libmcrypt-2.5.8/configure.orig 2007-02-19 00:32:39.000000000 -0600 ++++ libmcrypt-2.5.8/configure 2007-07-19 21:21:38.000000000 -0500 +@@ -426,7 +426,7 @@ PACKAGE_STRING= + PACKAGE_BUGREPORT= + + ac_unique_file="lib/mcrypt.c" +-ac_subdirs_all="$ac_subdirs_all libltdl" ++ac_subdirs_all="$ac_subdirs_all" + # Factoring default headers for most tests. + ac_includes_default="\ + #include +@@ -4425,7 +4425,7 @@ fi + + + +-subdirs="$subdirs libltdl" ++subdirs="$subdirs" + + # Check whether --enable-static or --disable-static was given. + if test "${enable_static+set}" = set; then diff --git a/util/crypt/libmcrypt/files/libmcrypt-2.5.8-prototypes.patch b/util/crypt/libmcrypt/files/libmcrypt-2.5.8-prototypes.patch new file mode 100644 index 0000000000..eca6e77931 --- /dev/null +++ b/util/crypt/libmcrypt/files/libmcrypt-2.5.8-prototypes.patch @@ -0,0 +1,35 @@ +diff -up libmcrypt-2.5.8/modules/algorithms/des.c.BAD libmcrypt-2.5.8/modules/algorithms/des.c +--- libmcrypt-2.5.8/modules/algorithms/des.c.BAD 2008-08-25 17:40:29.000000000 -0400 ++++ libmcrypt-2.5.8/modules/algorithms/des.c 2008-08-25 17:40:51.000000000 -0400 +@@ -35,9 +35,12 @@ + + /* #define NULL 0 */ + +-static void permute_ip(), permute_fp(), perminit_ip(), spinit(), +-perminit_fp(); +-static word32 f(); ++static void permute_ip(char *, DES_KEY *, char *); ++static void permute_fp(char *, DES_KEY *, char *); ++static void perminit_ip(DES_KEY *); ++static void spinit(DES_KEY *); ++static void perminit_fp(DES_KEY *); ++static word32 f(DES_KEY *, register word32, register char *); + + + /* Tables defined in the Data Encryption Standard documents */ +diff -up libmcrypt-2.5.8/modules/algorithms/tripledes.c.BAD libmcrypt-2.5.8/modules/algorithms/tripledes.c +--- libmcrypt-2.5.8/modules/algorithms/tripledes.c.BAD 2008-08-25 17:40:56.000000000 -0400 ++++ libmcrypt-2.5.8/modules/algorithms/tripledes.c 2008-08-25 17:41:13.000000000 -0400 +@@ -36,8 +36,10 @@ + + /* #define NULL 0 */ + +-static void permute(), perminit(), spinit(); +-static word32 f(); ++static void permute(char *, char[16][16][8], char *); ++static void perminit(char[16][16][8], char[64]); ++static void spinit(TRIPLEDES_KEY *, int); ++static word32 f(TRIPLEDES_KEY *, int, register word32, register char *); + + + /* Tables defined in the Data Encryption Standard documents */ diff --git a/util/crypt/libmcrypt/files/libmcrypt-2.5.8-uninitialized.patch b/util/crypt/libmcrypt/files/libmcrypt-2.5.8-uninitialized.patch new file mode 100644 index 0000000000..f52dc9334b --- /dev/null +++ b/util/crypt/libmcrypt/files/libmcrypt-2.5.8-uninitialized.patch @@ -0,0 +1,12 @@ +diff -up libmcrypt-2.5.8/modules/algorithms/twofish.c.BAD libmcrypt-2.5.8/modules/algorithms/twofish.c +--- libmcrypt-2.5.8/modules/algorithms/twofish.c.BAD 2008-08-25 17:38:21.000000000 -0400 ++++ libmcrypt-2.5.8/modules/algorithms/twofish.c 2008-08-25 17:38:30.000000000 -0400 +@@ -499,7 +499,7 @@ static void f_rnd(int i, word32* blk, TW + /* encrypt a block of text */ + WIN32DLL_DEFINE void _mcrypt_encrypt(TWI * pkey, word32 * in_blk) + { +- word32 t0, t1, blk[4]; ++ word32 t0 = 0, t1 = 0, blk[4]; + #ifdef WORDS_BIGENDIAN + blk[0] = byteswap32(in_blk[0]) ^ pkey->l_key[0]; + blk[1] = byteswap32(in_blk[1]) ^ pkey->l_key[1]; diff --git a/util/crypt/libmcrypt/pspec.xml b/util/crypt/libmcrypt/pspec.xml new file mode 100644 index 0000000000..7f078292e5 --- /dev/null +++ b/util/crypt/libmcrypt/pspec.xml @@ -0,0 +1,61 @@ + + + + + libmcrypt + http://mcrypt.sourceforge.net/ + + PisiLinux Community + admins@pisilinux.org + + LGPLv2.1 + library + A thread-safe encryption library + libmcrypt is a thread-safe encryption library. It allows developers to use a wide range of encryption functions, without making drastic changes to their code. It allows users to encrypt files or data streams without having to be cryptographers. + mirrors://sourceforge/mcrypt/libmcrypt-2.5.8.tar.bz2 + + libmcrypt-2.5.8-nolibltdl.patch + libmcrypt-2.5.8-prototypes.patch + libmcrypt-2.5.8-uninitialized.patch + + + + + libmcrypt + + /usr/lib + /usr/share/doc/libmcrypt + + + + + libmcrypt-devel + Development files for libmcrypt + + libmcrypt + + + /usr/bin + /usr/include + /usr/share/aclocal + /usr/share/man + + + + + + 2014-01-31 + 2.5.8 + Rebuild + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2010-10-12 + 2.5.8 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/util/crypt/libmcrypt/translations.xml b/util/crypt/libmcrypt/translations.xml new file mode 100644 index 0000000000..8046c98979 --- /dev/null +++ b/util/crypt/libmcrypt/translations.xml @@ -0,0 +1,13 @@ + + + + libmcrypt + Güvenli şifreleme kütüphanesi. + libmcrypt bir güvenli şifreleme kütüphanesidir. Geliştiricilere kodlarında çok büyük bir değişikliğe gerek duymadan kullanabilecekleri, geniş bir şifreleme fonksiyon kaynağı sunar. Şifreleme uzmanı olmadan dosya ve verileri kolayca şifrelemenizi sağlar. + + + + libmcrypt-devel + libmcrypt için geliştirme dosyaları + +