ports/mail/anubis/files/patch-configure.ac
Jason E. Hale 2d49f96065 mail/anubis: Update to 4.3
It's been almost a decade since the last release of Anubis, but the
Egyptian god of the underworld has finally reemerged to greet the
living and bestow upon us the following changes:

- Fix compilation with GDBM 1.18.1
- Support for Guile version 2.2.0 and later
  * Support for prior versions has been withdrawn.
- anubisusr requires GnuTLS
- New configuration statement: use-pam
  * Used in CONTROL section, this boolean statement enables or disables
    the use of the Pluggable Authentication Module interface for
    accounting and session management.
- New configuration statement: identd-keyfile
  * Sets the name of the file with shared keys used for decryting replies
    from the auth service.  It is used in traditional mode if anubis
    receives an encrypted response from the client's identd server
    (e.g. if they are running pidentd with encryption).
- Bugfixes

Remove the GNUTLS and GSASL options, which were previously ON by default,
and make them required due to upstream changes and to simplify the port.
2024-01-08 18:05:02 -05:00

53 lines
1.9 KiB
Plaintext

--- configure.ac.orig 2024-01-05 16:09:47 UTC
+++ configure.ac
@@ -96,7 +96,6 @@ AC_CHECK_LIB(socket, socket)
AC_CHECK_FUNCS(daemon putenv)
AC_CHECK_LIB(socket, socket)
-AC_CHECK_LIB(nsl, gethostbyaddr)
AM_PATH_LIBGCRYPT([1.7.0], [status_gcrypt=yes], [status_gcrypt=no])
AM_CONDITIONAL([GCRYPT_COND], [test "$status_gcrypt" = yes])
@@ -198,11 +197,21 @@ MU_CHECK_GSASL(0.2.3, [
ANUBIS_SBIN_ADM='$(adm_sbin_programs)'
ANUBIS_BIN_ADM='$(adm_bin_programs)'
+ AC_ARG_WITH(gdbm,
+ AC_HELP_STRING([--with-gdbm],
+ [Configure to work with GDBM]),
+ [with_gdbm=${withval}],
+ [with_gdbm=no])
+ if test "$with_gdbm" = "yes"; then
AC_CHECK_LIB(gdbm, gdbm_open,
[WITH_GDBM=yes
LIBS="$LIBS -lgdbm"
AC_DEFINE(HAVE_LIBGDBM,1,[Define if you have libgdbm])],
- [AC_MSG_RESULT([Disabling GDBM support...])])
+ with_gdbm=no)
+ fi
+ if test "$with_gdbm" = "yes"; then
+ AC_MSG_RESULT([Enabling GDBM support...])
+ fi
AC_ARG_WITH(mysql,
AS_HELP_STRING([--with-mysql],[Configure to work with MySQL]),
@@ -301,8 +310,8 @@ if test "$with_pam" = "yes"; then
[with_pam=no])
if test "$with_pam" = "yes"; then
AC_CHECK_LIB(pam, main,, with_pam=no)
- AC_CHECK_LIB(pam_misc, main,, with_pam=no)
- AC_CHECK_HEADERS(security/pam_appl.h security/pam_misc.h,, with_pam=no)
+ AC_CHECK_HEADER(security/pam_appl.h,, with_pam=no)
+ AC_CHECK_HEADER(security/openpam.h,, with_pam=no, [ #include <security/pam_appl.h> ])
fi
if test "$with_pam" = "yes"; then
AC_MSG_RESULT([Enabling PAM support...])
@@ -315,7 +324,6 @@ if test "$with_tcp_wrappers" = "yes"; then
[with_tcp_wrappers=no])
if test "$with_tcp_wrappers" = "yes"; then
AC_CHECK_LIB(wrap, main,, with_tcp_wrappers=no)
- AC_CHECK_LIB(nsl, main,, with_tcp_wrappers=no)
AC_CHECK_HEADERS(tcpd.h,, with_tcp_wrappers=no)
fi
if test "$with_tcp_wrappers" = "yes"; then