Verified Commit f7b35e50 authored by TBK's avatar TBK
Browse files

main/libmcrypt: modernize

parent a6d73443
Pipeline #8112 passed with stages
in 4 minutes and 28 seconds
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=libmcrypt
pkgver=2.5.8
pkgrel=7
pkgrel=8
pkgdesc="A library which provides a uniform interface to several symmetric encryption algorithms"
url="http://mcrypt.sourceforge.net/"
arch="all"
license="GPL"
depends=""
license="LGPL-2.1-or-later"
makedepends="libtool"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="https://downloads.sourceforge.net/mcrypt/${pkgname}-${pkgver}.tar.bz2"
source="https://downloads.sourceforge.net/mcrypt/libmcrypt-$pkgver.tar.bz2
fix_enigma.patch
"
prepare() {
cd "$srcdir/$pkgname-$pkgver"
update_config_sub || return 1
default_prepare
update_config_sub
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--disable-posix-threads \
|| return 1
make || return 1
--disable-posix-threads
make
}
check() {
make check
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
}
sha512sums="6c05c42767401d66af67b0922b207d17cdb1c3efdbfdfb5b0c2e651821c48a8a6c6749debfa0206091b8a801f538fabe9f7d95ebc86d82c6b84c8001031d50fe libmcrypt-2.5.8.tar.bz2"
sha512sums="6c05c42767401d66af67b0922b207d17cdb1c3efdbfdfb5b0c2e651821c48a8a6c6749debfa0206091b8a801f538fabe9f7d95ebc86d82c6b84c8001031d50fe libmcrypt-2.5.8.tar.bz2
d39ffc4cab1692159a93f9f4f9c8d7386be0135396bae95a06978288d8462241d1d17fbfaffce52dbec065667fb9e21c36b350a1710ccf7620611b4a80d511ab fix_enigma.patch"
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917203
--- src/modules/algorithms/enigma.h.orig 2002-03-09 21:17:08.000000000 +0100
+++ src/modules/algorithms/enigma.h 2019-04-07 13:54:03.000000000 +0200
@@ -3,11 +3,11 @@
#define MASK 0377
typedef struct crypt_key {
- char t1[ROTORSZ];
- char t2[ROTORSZ];
- char t3[ROTORSZ];
- char deck[ROTORSZ];
- char cbuf[13];
+ signed char t1[ROTORSZ];
+ signed char t2[ROTORSZ];
+ signed char t3[ROTORSZ];
+ signed char deck[ROTORSZ];
+ signed char cbuf[13];
int n1, n2, nr1, nr2;
} CRYPT_KEY;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment