From a42c2a846d854d5b1ad42e27ee7091c72d2b5080 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 23:09:39 +0200 Subject: convert to the meson build system --- src/include/fehsqm-config.h.in | 32 +++++++++++++++++++++ src/include/meson.build | 64 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 src/include/fehsqm-config.h.in create mode 100644 src/include/meson.build (limited to 'src/include') diff --git a/src/include/fehsqm-config.h.in b/src/include/fehsqm-config.h.in new file mode 100644 index 0000000..6e44e84 --- /dev/null +++ b/src/include/fehsqm-config.h.in @@ -0,0 +1,32 @@ +#ifndef FEHSQM_CONFIG_INCLUDE +#define FEHSQM_CONFIG_INCLUDE + +#include + +#mesondefine HASSALEN +#mesondefine HASGETSPNAM +#mesondefine HASGETUSERPW +#mesondefine HASUTMP +#mesondefine HASMKFIFO +#mesondefine IDN2 + +static const char auto_qmail[] = "@auto_qmail@"; +static const char auto_usera[] = "@auto_usera@"; + +static const int auto_split = @auto_split@; +static const int auto_patrn = @auto_patrn@; +static const int auto_spawn = @auto_spawn@; + +static const uid_t auto_uida = @alias@; +static const uid_t auto_uidd = @qmaild@; +static const uid_t auto_uidl = @qmaill@; +static const uid_t auto_uido = 0; +static const uid_t auto_uidp = @qmailp@; +static const uid_t auto_uidq = @qmailq@; +static const uid_t auto_uidr = @qmailr@; +static const uid_t auto_uids = @qmails@; + +static const gid_t auto_gidq = @sqmail@; +static const gid_t auto_gidn = @nofiles@; + +#endif diff --git a/src/include/meson.build b/src/include/meson.build new file mode 100644 index 0000000..5f621f5 --- /dev/null +++ b/src/include/meson.build @@ -0,0 +1,64 @@ +sqmail_hdrs = [ + 'base64.h', + 'commands.h', + 'constmap.h', + 'control.h', + 'date822fmt.h', + 'datetime.h', + 'dkimbase.h', + 'dkim.h', + 'dkimsign.h', + 'dkimverify.h', + 'dnsdoe.h', + 'dnsgettxt.h', + 'dns.h', + 'exit.h', + 'extra.h', + 'fifo.h', + 'fmtqfn.h', + 'gfrom.h', + 'global.h', + 'headerbody.h', + 'hfield.h', + 'hier.h', + 'hmac_md5.h', + 'ipalloc.h', + 'ipme.h', + 'maildir.h', + 'md5.h', + 'mfrules.h', + 'myctime.h', + 'newfield.h', + 'now.h', + 'prioq.h', + 'prot.h', + 'qlx.h', + 'qmail.h', + 'qsutil.h', + 'quote.h', + 'rcpthosts.h', + 'readsubdir.h', + 'readwrite.h', + 'received.h', + 'recipients.h', + 'sendtodo.h', + 'sha1.h', + 'sha256.h', + 'smtpdlog.h', + 'spf.h', + 'srs2.h', + 'strset.h', + 'tcpto.h', + 'tls_errors.h', + 'tls_remote.h', + 'tls_start.h', + 'tls_timeoutio.h', + 'token822.h', + 'trigger.h', + 'triggerpull.h', + 'wildmat.h', +] + +sqmail_hdrs_subdir = 'sqmail' + +install_headers(sqmail_hdrs, subdir : sqmail_hdrs_subdir) -- cgit v1.2.3