-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5334 from vaikas/moar-php-for-dreamfactory
libmcrypt-2.5.8: Add new package
- Loading branch information
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |