Skip to content

Commit

Permalink
Merge pull request #5334 from vaikas/moar-php-for-dreamfactory
Browse files Browse the repository at this point in the history
libmcrypt-2.5.8: Add new package
  • Loading branch information
vaikas authored Sep 9, 2023
2 parents 9ff5675 + 0331aef commit 2ef4259
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
74 changes: 74 additions & 0 deletions libmcrypt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# cribbed from: https://git.alpinelinux.org/aports/tree/community/libmcrypt/APKBUILD
package:
name: libmcrypt
version: 2.5.8
epoch: 0
description: "A library which provides a uniform interface to several symmetric encryption algorithms"
copyright:
- license: LGPL-2.1-or-later

environment:
contents:
packages:
- ca-certificates-bundle
- build-base
- binutils
- busybox
- automake
- autoconf
- libtool
- gcc
- cmake

pipeline:
- uses: fetch
with:
uri: https://downloads.sourceforge.net/mcrypt/libmcrypt-${{package.version}}.tar.bz2
expected-sha512: 6c05c42767401d66af67b0922b207d17cdb1c3efdbfdfb5b0c2e651821c48a8a6c6749debfa0206091b8a801f538fabe9f7d95ebc86d82c6b84c8001031d50fe

- uses: patch
with:
patches: fix-enigma.patch

- runs: |
# There are two awful hacks here that I can't figure out how to fix:
# 1. For some reason this file does not get copied to the right place
# manually copy it.
mkdir -p libltdl/\$with_auxdir
cp ltmain.sh libltdl/\$with_auxdir/
autoreconf -v -i --force
# 2. These are undefined and they break the configure.
sed -i -e '/AC_REQUIRE/d' configure.in
sed -i -e '/_LT_CONFIG_LTDL_DIR/d' configure.in
- name: Configure
runs: |
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--disable-posix-threads
- uses: autoconf/make

- uses: autoconf/make-install

- uses: strip

subpackages:
- name: "libmcrypt-dev"
description: "headers for libmcrypt"
pipeline:
- uses: split/dev

- name: "libmcrypt-doc"
description: "libmcrypt manpages"
pipeline:
- uses: split/manpages

# https://release-monitoring.org/project/10765/
update:
enabled: true
release-monitor:
identifier: 10765
18 changes: 18 additions & 0 deletions libmcrypt/fix-enigma.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- 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;

0 comments on commit 2ef4259

Please sign in to comment.