opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: b87af05997b62d4130145ec04b75ee95b286a654
Parent: a07dc53cb947eeded9336562d61ae159b78e2729
Author: Randy Palamar
Date:   Sun,  5 Nov 2023 20:10:51 -0700

add msmtp from oasis bumped to 1.8.25

Diffstat:
M.gitmodules | 3+++
Mpkg/net/gen.lua | 1+
Apkg/net/msmtp/README.md | 12++++++++++++
Apkg/net/msmtp/config.h | 119+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/net/msmtp/gen.lua | 41+++++++++++++++++++++++++++++++++++++++++
Apkg/net/msmtp/src | 1+
Apkg/net/msmtp/ver | 1+
Msets.lua | 1+
8 files changed, 179 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -55,6 +55,9 @@ [submodule "pkg/net/mblaze/src"] path = pkg/net/mblaze/src url = https://github.com/leahneukirchen/mblaze.git +[submodule "pkg/net/msmtp/src"] + path = pkg/net/msmtp/src + url = https://github.com/marlam/msmtp-mirror.git [submodule "pkg/net/sfeed/src"] path = pkg/net/sfeed/src url = git://git.codemadness.org/sfeed diff --git a/pkg/net/gen.lua b/pkg/net/gen.lua @@ -1,3 +1,4 @@ subgen('curl') subgen('mblaze') +subgen('msmtp') subgen('sfeed') diff --git a/pkg/net/msmtp/README.md b/pkg/net/msmtp/README.md @@ -0,0 +1,12 @@ +# msmtp + +## config.h +Generated with + + ./configure \ + --disable-nls \ + --without-libidn \ + --with-tls=libtls \ + LDFLAGS='-L/src/oasis/out/pkg/libtls-bearssl -L/src/oasis/out/pkg/bearssl' \ + libtls_LIBS='-ltls -lbearssl' \ + libtls_CFLAGS='-I/src/oasis/out/pkg/libtls-bearssl/include' diff --git a/pkg/net/msmtp/config.h b/pkg/net/msmtp/config.h @@ -0,0 +1,119 @@ +/* #undef ENABLE_NLS */ +#define HAVE_ARPA_INET_H 1 +/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */ +/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ +/* #undef HAVE_DCGETTEXT */ +#define HAVE_FMEMOPEN 1 +#define HAVE_FNMATCH_H 1 +#define HAVE_FSEEKO 1 +#define HAVE_FSEEKO64 1 +/* #undef HAVE_GAI_IDN */ +#define HAVE_GETPASS 1 +/* #undef HAVE_GETTEXT */ +/* #undef HAVE_ICONV */ +#define HAVE_INTTYPES_H 1 +/* #undef HAVE_LIBGNUTLS */ +/* #undef HAVE_LIBGSASL */ +/* #undef HAVE_LIBIDN */ +#define HAVE_LIBRESOLV 1 +/* #undef HAVE_LIBSECRET */ +/* #undef HAVE_LIBSSL */ +#define HAVE_LIBTLS 1 +#define HAVE_LINK 1 +/* #undef HAVE_MACOSXKEYRING */ +/* #undef HAVE_MINIX_CONFIG_H */ +#define HAVE_NETDB_H 1 +#define HAVE_NETINET_IN_H 1 +#define HAVE_SIGNAL 1 +#define HAVE_STDINT_H 1 +#define HAVE_STDIO_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +#define HAVE_STRNDUP 1 +#define HAVE_SYSEXITS_H 1 +#define HAVE_SYSLOG 1 +#define HAVE_SYS_SELECT_H 1 +#define HAVE_SYS_SOCKET_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_SYS_WAIT_H 1 +#define HAVE_TLS 1 +#define HAVE_UNISTD_H 1 +#define HAVE_VASPRINTF 1 +#define HAVE_WCHAR_H 1 +#define PACKAGE "msmtp" +#define PACKAGE_BUGREPORT "marlam@marlam.de" +#define PACKAGE_NAME "msmtp" +#define PACKAGE_STRING "msmtp 1.8.25" +#define PACKAGE_TARNAME "msmtp" +#define PACKAGE_URL "https://marlam.de/msmtp" +#define PACKAGE_VERSION "1.8.25" +#define PLATFORM "x86_64-pc-linux-musl" +#define STDC_HEADERS 1 +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +#ifndef _DARWIN_C_SOURCE +# define _DARWIN_C_SOURCE 1 +#endif +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _HPUX_ALT_XOPEN_SOCKET_API +# define _HPUX_ALT_XOPEN_SOCKET_API 1 +#endif +#ifndef _MINIX +/* # undef _MINIX */ +#endif +#ifndef _NETBSD_SOURCE +# define _NETBSD_SOURCE 1 +#endif +#ifndef _OPENBSD_SOURCE +# define _OPENBSD_SOURCE 1 +#endif +#ifndef _POSIX_SOURCE +/* # undef _POSIX_SOURCE */ +#endif +#ifndef _POSIX_1_SOURCE +/* # undef _POSIX_1_SOURCE */ +#endif +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ +# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 +#endif +#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ +# define __STDC_WANT_IEC_60559_BFP_EXT__ 1 +#endif +#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ +# define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +#endif +#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ +# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 +#endif +#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ +# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 +#endif +#ifndef __STDC_WANT_LIB_EXT2__ +# define __STDC_WANT_LIB_EXT2__ 1 +#endif +#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ +# define __STDC_WANT_MATH_SPEC_FUNCS__ 1 +#endif +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +#ifndef _XOPEN_SOURCE +/* # undef _XOPEN_SOURCE */ +#endif +#define VERSION "1.8.25" +#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ +#define W32_NATIVE 1 +#endif +/* #undef _FILE_OFFSET_BITS */ +/* #undef _LARGE_FILES */ diff --git a/pkg/net/msmtp/gen.lua b/pkg/net/msmtp/gen.lua @@ -0,0 +1,41 @@ +cflags({ + '-D HAVE_CONFIG_H', + ([[-D 'SYSCONFDIR="%s/etc"']]):format(config.prefix), + '-I $dir', + '-isystem $builddir/pkg/libs/libtls-bearssl/include', +}) + +pkg.deps = { + 'pkg/libs/libtls-bearssl/headers', +} + +exe('msmtp', [[ + src/( + conf.c + eval.c + list.c + md5.c + md5-apps.c + msgid.c + msmtp.c + net.c + netrc.c + readbuf.c + smtp.c + stream.c + tools.c + xalloc.c + aliases.c + password.c + base64.c + + mtls.c + mtls-libtls.c + ) + $builddir/pkg/libs/libtls-bearssl/libtls.a.d +]]) + +file('bin/msmtp', '755', '$outdir/msmtp') +man({'doc/msmtp.1'}) + +fetch('git') diff --git a/pkg/net/msmtp/src b/pkg/net/msmtp/src @@ -0,0 +1 @@ +Subproject commit 19a5a44ad20d182bee82c33d47a3233061f8426a diff --git a/pkg/net/msmtp/ver b/pkg/net/msmtp/ver @@ -0,0 +1 @@ +1.8.25 r0 diff --git a/sets.lua b/sets.lua @@ -9,6 +9,7 @@ S.bin = { 'mandoc', 'mblaze', 'md4c', + 'msmtp', 'openbsd', 'pigz', 'pwgen',