project: add third party dependncies

This commit is contained in:
osy 2023-07-25 18:41:51 -07:00
parent fa7be1b985
commit 1c5e8ad31f
13 changed files with 3549 additions and 4 deletions

22
.gitmodules vendored Normal file
View file

@ -0,0 +1,22 @@
[submodule "libmspack"]
path = cabextract
url = https://github.com/kyz/libmspack.git
[submodule "genisoimage"]
path = genisoimage
url = https://github.com/Distrotech/cdrkit.git
[submodule "chntpw"]
path = chntpw
url = https://github.com/TuringSoftware/chntpw.git
[submodule "wimlib-imagex"]
path = wimlib-imagex
url = https://github.com/ebiggers/wimlib
[submodule "converter"]
path = converter
url = https://github.com/uup-dump/converter.git
[submodule "OpenSSL"]
path = OpenSSL
url = https://github.com/krzyzanowskim/OpenSSL.git
shallow = true
[submodule "mkisofs"]
path = mkisofs
url = https://github.com/TuringSoftware/cdrtools.git

102
Extras/align.h Normal file
View file

@ -0,0 +1,102 @@
/*
* This file has been generated automatically
* by @(#)align_test.c 1.31 15/11/30 Copyright 1995-2015 J. Schilling
* do not edit by hand.
*/
#ifndef __ALIGN_H
#define __ALIGN_H
#define ALIGN_SHORT 2 /* alignment value for (short *) */
#define ALIGN_SMASK 1 /* alignment mask for (short *) */
#define SIZE_SHORT 2 /* sizeof (short) */
#define ALIGN_INT 4 /* alignment value for (int *) */
#define ALIGN_IMASK 3 /* alignment mask for (int *) */
#define SIZE_INT 4 /* sizeof (int) */
#define ALIGN_LONG 8 /* alignment value for (long *) */
#define ALIGN_LMASK 7 /* alignment mask for (long *) */
#define SIZE_LONG 8 /* sizeof (long) */
#define ALIGN_LLONG 8 /* alignment value for (long long *) */
#define ALIGN_LLMASK 7 /* alignment mask for (long long *) */
#define SIZE_LLONG 8 /* sizeof (long long) */
#define ALIGN_FLOAT 4 /* alignment value for (float *) */
#define ALIGN_FMASK 3 /* alignment mask for (float *) */
#define SIZE_FLOAT 4 /* sizeof (float) */
#define ALIGN_DOUBLE 8 /* alignment value for (double *) */
#define ALIGN_DMASK 7 /* alignment mask for (double *) */
#define SIZE_DOUBLE 8 /* sizeof (double) */
#define ALIGN_LDOUBLE 8 /* alignment value for (long double *) */
#define ALIGN_LDMASK 7 /* alignment mask for (long double *) */
#define SIZE_LDOUBLE 8 /* sizeof (long double) */
#define ALIGN_PTR 8 /* alignment value for (pointer *) */
#define ALIGN_PMASK 7 /* alignment mask for (pointer *) */
#define SIZE_PTR 8 /* sizeof (pointer) */
#define ALIGN_TMAX 8 /* alignment value for (max type *) */
#define ALIGN_TMMASK 7 /* alignment mask for (max type *) */
#define SIZE_TMAX 8 /* sizeof (max type) */
/*
* There used to be a cast to an int but we get a warning from GCC.
* This warning message from GCC is wrong.
* Believe me that this macro would even be usable if I would cast to short.
* In order to avoid this warning, we are now using UIntptr_t
*/
#define xaligned(a, s) ((((UIntptr_t)(a)) & (s)) == 0)
#define x2aligned(a, b, s) (((((UIntptr_t)(a)) | ((UIntptr_t)(b))) & (s)) == 0)
#define saligned(a) xaligned(a, ALIGN_SMASK)
#define s2aligned(a, b) x2aligned(a, b, ALIGN_SMASK)
#define ialigned(a) xaligned(a, ALIGN_IMASK)
#define i2aligned(a, b) x2aligned(a, b, ALIGN_IMASK)
#define laligned(a) xaligned(a, ALIGN_LMASK)
#define l2aligned(a, b) x2aligned(a, b, ALIGN_LMASK)
#define llaligned(a) xaligned(a, ALIGN_LLMASK)
#define ll2aligned(a, b) x2aligned(a, b, ALIGN_LLMASK)
#define faligned(a) xaligned(a, ALIGN_FMASK)
#define f2aligned(a, b) x2aligned(a, b, ALIGN_FMASK)
#define daligned(a) xaligned(a, ALIGN_DMASK)
#define d2aligned(a, b) x2aligned(a, b, ALIGN_DMASK)
#define ldaligned(a) xaligned(a, ALIGN_LDMASK)
#define ld2aligned(a, b) x2aligned(a, b, ALIGN_LDMASK)
#define paligned(a) xaligned(a, ALIGN_PMASK)
#define p2aligned(a, b) x2aligned(a, b, ALIGN_PMASK)
#define maligned(a) xaligned(a, ALIGN_TMMASK)
#define m2aligned(a, b) x2aligned(a, b, ALIGN_TMMASK)
/*
* There used to be a cast to an int but we get a warning from GCC.
* This warning message from GCC is wrong.
* Believe me that this macro would even be usable if I would cast to short.
* In order to avoid this warning, we are now using UIntptr_t
*/
#define xalign(x, a, m) (((char *)(x)) + ((a) - 1 - ((((UIntptr_t)(x))-1)&(m))))
#define salign(x) xalign((x), ALIGN_SHORT, ALIGN_SMASK)
#define ialign(x) xalign((x), ALIGN_INT, ALIGN_IMASK)
#define lalign(x) xalign((x), ALIGN_LONG, ALIGN_LMASK)
#define llalign(x) xalign((x), ALIGN_LLONG, ALIGN_LLMASK)
#define falign(x) xalign((x), ALIGN_FLOAT, ALIGN_FMASK)
#define dalign(x) xalign((x), ALIGN_DOUBLE, ALIGN_DMASK)
#define ldalign(x) xalign((x), ALIGN_LDOUBLE, ALIGN_LDMASK)
#define palign(x) xalign((x), ALIGN_PTR, ALIGN_PMASK)
#define malign(x) xalign((x), ALIGN_TMAX, ALIGN_TMMASK)
#endif /* __ALIGN_H */

22
Extras/avoffset.h Normal file
View file

@ -0,0 +1,22 @@
/*
* This file has been generated automatically
* by @(#)avoffset.c 1.35 17/08/01 Copyright 1987, 1995-2017 J. Schilling
* do not edit by hand.
*
* This file includes definitions for AV_OFFSET and FP_INDIR.
* FP_INDIR is the number of fp chain elements above 'main'.
* AV_OFFSET is the offset of &av[0] relative to the frame pointer in 'main'.
*
* If getav0() does not work on a specific architecture
* the program which generated this include file may dump core.
* In this case, the generated include file does not include
* definitions for AV_OFFSET and FP_INDIR but ends after this comment.
* If AV_OFFSET or FP_INDIR are missing in this file, all programs
* which use the definitions are automatically disabled.
*/
#ifndef __AVOFFSET_H
#define __AVOFFSET_H
#define STACK_DIRECTION -1
#endif /* __AVOFFSET_H */

187
Extras/config.h Normal file
View file

@ -0,0 +1,187 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
#define AC_APPLE_UNIVERSAL_BUILD 1
/* Define to 1 if using 'alloca.c'. */
/* #undef C_ALLOCA */
/* Define to 1 if you have 'alloca', as a function or macro. */
#define HAVE_ALLOCA 1
/* Define to 1 if <alloca.h> works. */
#define HAVE_ALLOCA_H 1
/* Define to 1 if you have the `btowc' function. */
#define HAVE_BTOWC 1
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
*/
#define HAVE_DECL_GETENV 1
/* Define to 1 if your system has a working POSIX `fnmatch' function. */
#define HAVE_FNMATCH 1
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#define HAVE_FSEEKO 1
/* Define to 1 if you have the <getopt.h> header file. */
#define HAVE_GETOPT_H 1
/* Define to 1 if you have the `getopt_long' function. */
#define HAVE_GETOPT_LONG 1
/* Define if you have the iconv() function and it works. */
#define HAVE_ICONV 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `mspack' library (-lmspack). */
/* #undef HAVE_LIBMSPACK */
/* Define to 1 if you have the `mbsrtowcs' function. */
#define HAVE_MBSRTOWCS 1
/* Define to 1 if <wchar.h> declares mbstate_t. */
#define HAVE_MBSTATE_T 1
/* Define to 1 if you have the `mempcpy' function. */
/* #undef HAVE_MEMPCPY */
/* Define to 1 if you have the `mkdir' function. */
#define HAVE_MKDIR 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdio.h> header file. */
#define HAVE_STDIO_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the `towlower' function. */
#define HAVE_TOWLOWER 1
/* Define to 1 if you have the `umask' function. */
#define HAVE_UMASK 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the `utime' function. */
#define HAVE_UTIME 1
/* Define to 1 if you have the `utimes' function. */
#define HAVE_UTIMES 1
/* Define to 1 if you have the `wmempcpy' function. */
/* #undef HAVE_WMEMPCPY */
/* Define to 1 if you have the `_mkdir' function. */
/* #undef HAVE__MKDIR */
/* Define as const if the declaration of iconv() needs const. */
#define ICONV_CONST
/* Define if mkdir takes only one argument. */
/* #undef MKDIR_TAKES_ONE_ARG */
/* Name of package */
#define PACKAGE "cabextract"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "kyzer@cabextract.org.uk"
/* Define to the full name of this package. */
#define PACKAGE_NAME "cabextract"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "cabextract 1.11"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "cabextract"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "1.11"
/* The size of `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T 8
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at runtime.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */
/* Define to 1 if all of the C90 standard headers exist (not just the ones
required in a freestanding environment). This macro is provided for
backward compatibility; new code need not use it. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "1.11"
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
/* # undef WORDS_BIGENDIAN */
# endif
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
/* #undef _LARGEFILE_SOURCE */
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to rpl_fnmatch if the replacement function should be used. */
/* #undef fnmatch */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to a type if <wchar.h> does not define. */
/* #undef mbstate_t */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef mode_t */
/* Define to `long int' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */

1181
Extras/xconfig.h Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

1
OpenSSL Submodule

@ -0,0 +1 @@
Subproject commit 0c70e4b7d22411a7fe3ff59b913d5b760b735ce1

22
aria2c/main.c Normal file
View file

@ -0,0 +1,22 @@
//
// Copyright © 2023 Turing Software, LLC. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
printf("ERROR: This is a fake aria2c stub that exists to satisfy UUP dump's convert.sh\n");
return 1;
}

1
cabextract Submodule

@ -0,0 +1 @@
Subproject commit 305907723a4e7ab2018e58040059ffb5e77db837

1
chntpw Submodule

@ -0,0 +1 @@
Subproject commit 164e8dacfc8150908792fca27fad086b125b1e28

1
converter Submodule

@ -0,0 +1 @@
Subproject commit 7b507c6c99afcf4cff59adcdf51cdb75159bd548

1
mkisofs Submodule

@ -0,0 +1 @@
Subproject commit 986fdb76feb8de1c48412473b9e20e79aeb46d52

1
wimlib-imagex Submodule

@ -0,0 +1 @@
Subproject commit ae44786dcd57c6668233c51fa1c6e3a60fd459cd