The HylaFAX+ port has been updated to version 7.0.12.
The option to disable SSL in the port has been removed. This was a
custom addition used when initially building this port.
There have been a number of improvements relating to memory leaks in
FaxGetty, including a change which resolves the SIGABRT in G3Decoder
when a non-ECM facsimile is received.
Also resolved, when a partially received facsimile TIFF image is saved
by FaxGetty, the image can now be viewed and converted to PDF.
See the HylaFAX News page for a complete list if changes since 7.0.11 -
https://hylafax.sourceforge.io/news/7.0.12.php.html
Included in the package list (PLIST) is a command to terminate any
running faxgetty(8c) process when the package is removed.
Tested with OpenBSD 8.0-stable on amd64 & i386.
Comments?
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/comms/hylafax/Makefile,v
diff -u -p -r1.94 Makefile
--- Makefile 23 Sep 2026 15:29:39 -0000 1.94
+++ Makefile 28 Nov 2026 23:16:11 -0000
@@ -1,7 +1,7 @@
COMMENT= send/receive faxes and share modems
-DISTNAME= hylafax-7.0.11
-REVISION= 1
+DISTNAME= hylafax-7.0.12
+
CATEGORIES= comms
HOMEPAGE= https://hylafax.sourceforge.io/
@@ -10,6 +10,7 @@ SITES= ${SITE_SOURCEFORGE:=hylafax/}
# License: BSD
# https://sourceforge.net/p/hylafax/HylaFAX+/HEAD/tree/trunk/COPYRIGHT
PERMIT_PACKAGE= Yes
+DEBUG_PACKAGES= ${BUILD_PACKAGES}
FLAVORS= a4
FLAVOR?=
Index: distinfo
===================================================================
RCS file: /cvs/ports/comms/hylafax/distinfo,v
diff -u -p -r1.9 distinfo
--- distinfo 25 Mar 2026 15:47:01 -0000 1.9
+++ distinfo 28 Nov 2026 23:16:11 -0000
@@ -1,2 +1,2 @@
-SHA256 (hylafax-7.0.11.tar.gz) = 1pbfZTscWWZP3dLHA+3HftQnZqFrLOGclYkz12/WIoc=
-SIZE (hylafax-7.0.11.tar.gz) = 1440406
+SHA256 (hylafax-7.0.12.tar.gz) = PGWEJ23XAhfaV0SzYXCEtVo2dCGjhZikFa2qWQIy2fY=
+SIZE (hylafax-7.0.12.tar.gz) = 1448202
Index: patches/patch-config_skel
===================================================================
RCS file: /cvs/ports/comms/hylafax/patches/patch-config_skel,v
diff -u -p -r1.4 patch-config_skel
--- patches/patch-config_skel 25 Mar 2026 15:47:01 -0000 1.4
+++ patches/patch-config_skel 28 Nov 2026 23:16:11 -0000
@@ -1,6 +1,5 @@
-Index: config/skel
---- config/skel.orig
-+++ config/skel
+--- config/skel.orig Sun Nov 19 02:04:56 2023
++++ config/skel Tue Feb 24 10:00:15 2026
@@ -39,10 +39,10 @@ FAXNumber: +1.999.555.1212
LocalIdentifier: "NothingSetup" # default is canonical FAXNumber
ServerTracing: 1 # log server-related operations
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/comms/hylafax/patches/patch-configure,v
diff -u -p -r1.17 patch-configure
--- patches/patch-configure 25 Mar 2026 15:47:01 -0000 1.17
+++ patches/patch-configure 28 Nov 2026 23:16:11 -0000
@@ -1,23 +1,7 @@
Index: configure
--- configure.orig
+++ configure
-@@ -339,6 +339,7 @@ Options: [defaults in brackets after descriptions]
- --version print the version of autoconf that created configure
- --target=TARGET configure for TARGET [TARGET=HOST]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
-+ --disable-ssl disable all SSL support
- --disable-pam disable all PAM support
- --disable-jbig disable all JBIG support
- --disable-lcms disable all Little CMS support
-@@ -397,6 +398,7 @@ do
- -srcdir=*|--srcdir=*) SRCDIR="$ac_optarg";;
- -target|--target) ac_prev=TARGET;;
- -target=*|--target=*) TARGET="$ac_optarg" ;;
-+ -disable-ssl|--disable-ssl) DISABLE_SSL="yes" ;;
- -disable-pam|--disable-pam) DISABLE_PAM="yes" ;;
- -disable-ldap|--disable-ldap) DISABLE_LDAP="yes" ;;
- -disable-jbig|--disable-jbig) DISABLE_JBIG="yes" ;;
-@@ -479,7 +481,7 @@ fi
+@@ -479,7 +479,7 @@ fi
$RM ./config.log
exec 5>./config.log # compiler messages and the like
@@ -26,7 +10,7 @@ Index: configure
eval `cat $SRCDIR/VERSION | sed
's/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\(.*\)/DIST_MAJOR=\1; DIST_MINOR=\2;
DIST_TYPE=\3/'`
DIST_ALPHA=`awk '{print $3}' $SRCDIR/dist/hylafax.alpha`
-@@ -1547,7 +1549,7 @@ int t(void) { $f(); return 0; }
+@@ -1547,7 +1547,7 @@ int t(void) { $f(); return 0; }
int main(int argc, char *argv[]){ t(); return 0; }
EOF
capture cat t.c
@@ -35,7 +19,7 @@ Index: configure
}
#
-@@ -1577,7 +1579,7 @@ CheckForIncludeFile()
+@@ -1577,7 +1577,7 @@ CheckForIncludeFile()
echo "#include \"$i\""
done)>t.c++
capture cat t.c++
@@ -44,7 +28,7 @@ Index: configure
}
#
-@@ -3497,22 +3499,8 @@ fi
+@@ -3497,22 +3497,8 @@ fi
HAVE_JBIGTIFF="/*#define HAVE_JBIGTIFF 1*/"
if [ "$DISABLE_JBIG" != "yes" ]; then
Note "Checking JBIG-in-TIFF conversion support."
Index: patches/patch-faxd_ClassModem_h
===================================================================
RCS file: patches/patch-faxd_ClassModem_h
diff -N patches/patch-faxd_ClassModem_h
--- patches/patch-faxd_ClassModem_h 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-Index: faxd/ClassModem.h
---- faxd/ClassModem.h.orig
-+++ faxd/ClassModem.h
-@@ -133,7 +133,8 @@ class ClassModem { (public)
- BR38400 = 7, // 38400 bits/sec
- BR57600 = 8, // 57600 bits/sec
- BR76800 = 9, // 76800 bits/sec
-- BR115200= 10 // 115200 bits/sec
-+ BR115200= 10, // 115200 bits/sec
-+ BR230400= 11 // 230400 bits/sec
- };
-
- enum { // ClassModem::ECMType
Index: patches/patch-faxd_CopyQuality_c++
===================================================================
RCS file: patches/patch-faxd_CopyQuality_c++
diff -N patches/patch-faxd_CopyQuality_c++
--- patches/patch-faxd_CopyQuality_c++ 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,27 +0,0 @@
-Index: faxd/CopyQuality.c++
---- faxd/CopyQuality.c++.orig
-+++ faxd/CopyQuality.c++
-@@ -120,6 +120,11 @@ FaxModem::initializeDecoder(const Class2Params& params
- }
-
- /*
-+ * Disable optimisation to avoid SIGABRT in G3Decoder.c++.
-+ */
-+#pragma clang optimize off
-+
-+/*
- * Receive Phase C data with or without copy
- * quality checking and erroneous row fixup.
- */
-@@ -473,6 +478,11 @@ FaxModem::recvPageDLEData(TIFF* tif, bool checkQuality
- recvEndPage(tif, params);
- return (true);
- }
-+
-+/*
-+ * Re-enable optimisation.
-+ */
-+#pragma clang optimize on
-
- /*
- * Setup "stock TIFF tags" in preparation for receiving a page of data.
Index: patches/patch-faxd_ModemConfig_c++
===================================================================
RCS file: patches/patch-faxd_ModemConfig_c++
diff -N patches/patch-faxd_ModemConfig_c++
--- patches/patch-faxd_ModemConfig_c++ 25 Mar 2026 15:47:01 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-Index: faxd/ModemConfig.c++
---- faxd/ModemConfig.c++.orig
-+++ faxd/ModemConfig.c++
-@@ -359,6 +359,7 @@ ModemConfig::findRate(const char* cp, BaudRate& br)
- { "57600", ClassModem::BR57600 },
- { "76800", ClassModem::BR76800 },
- { "115200", ClassModem::BR115200 },
-+ { "230400", ClassModem::BR230400 },
- };
- for (int i = N(rates)-1; i >= 0; i--)
- if (streq(cp, rates[i].name)) {
Index: patches/patch-faxd_ModemServer_c++
===================================================================
RCS file: patches/patch-faxd_ModemServer_c++
diff -N patches/patch-faxd_ModemServer_c++
--- patches/patch-faxd_ModemServer_c++ 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
-Index: faxd/ModemServer.c++
---- faxd/ModemServer.c++.orig
-+++ faxd/ModemServer.c++
-@@ -71,6 +71,7 @@ static const u_int baudRates[] = {
- 57600, // BR57600
- 76800, // BR76800
- 115200, // BR115200
-+ 230400, // BR230400
- };
-
- ModemServer::ModemServer(const fxStr& devName, const fxStr& devID)
-@@ -1024,6 +1025,9 @@ ModemServer::traceModemIO(const char* dir, const u_cha
- #ifndef B115200
- #define B115200 B76800
- #endif
-+#ifndef B230400
-+#define B230400 B115200
-+#endif
- static speed_t termioBaud[] = {
- B0, // BR0
- B300, // BR300
-@@ -1036,6 +1040,7 @@ static speed_t termioBaud[] = {
- B57600, // BR57600
- B76800, // BR76800
- B115200, // BR115200
-+ B230400, // BR230400
- };
- #define NBAUDS (sizeof (termioBaud) / sizeof (termioBaud[0]))
- static const char* flowNames[] = { "NONE", "XON/XOFF", "RTS/CTS", };
Index: patches/patch-faxd_ModemServer_h
===================================================================
RCS file: patches/patch-faxd_ModemServer_h
diff -N patches/patch-faxd_ModemServer_h
--- patches/patch-faxd_ModemServer_h 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-Index: faxd/ModemServer.h
---- faxd/ModemServer.h.orig
-+++ faxd/ModemServer.h
-@@ -105,8 +105,14 @@ class ModemServer : public ServerConfig, public IOHand
- * downside is that the ModemIO tracing is "wordy" with this (using one
- * whole line of logging per-byte). The other upside, though, is that the
- * timestamps on the session logging are accurate to the millisecond.
-+ * Unfortunately, using a one-byte rcvBuf in OpenBSD seems to have the
-+ * opposite effect from what is desired. It seems to make the issue worse.
- */
-+#if defined(__OpenBSD__)
-+ u_char rcvBuf[1024]; // receive buffering
-+#else
- u_char rcvBuf[1]; // receive buffering
-+#endif
-
- friend class ClassModem;
-
Index: patches/patch-faxd_faxSendApp_c++
===================================================================
RCS file: patches/patch-faxd_faxSendApp_c++
diff -N patches/patch-faxd_faxSendApp_c++
--- patches/patch-faxd_faxSendApp_c++ 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,45 +0,0 @@
-Index: faxd/faxSendApp.c++
---- faxd/faxSendApp.c++.orig
-+++ faxd/faxSendApp.c++
-@@ -49,7 +49,6 @@
- */
-
- faxSendApp* faxSendApp::_instance = NULL;
--int faxSendApp::terminateSignal = 0;
-
- faxSendApp::faxSendApp(const fxStr& devName, const fxStr& devID)
- : FaxServer(devName, devID)
-@@ -525,18 +524,13 @@ usage(const char* appName)
- static void
- sigCleanup(int s)
- {
-- // We keep this simple to avoid deadlocks - see terminate() for actual
work
-+ int old_errno = errno;
- signal(s, fxSIGHANDLER(sigCleanup));
-- faxSendApp::terminateSignal = s;
--}
--
--static void
--terminate(int s)
--{
- logError("CAUGHT SIGNAL %d", s);
- faxSendApp::instance().close();
- if (!faxSendApp::instance().isRunning())
- _exit(send_failed);
-+ errno = old_errno;
- }
-
- int
-@@ -567,11 +561,8 @@ main(int argc, char** argv)
-
- app->initialize(argc, argv);
- app->open();
-- while (app->isRunning() && !app->isReady()) {
-+ while (app->isRunning() && !app->isReady())
- Dispatcher::instance().dispatch();
-- if (faxSendApp::terminateSignal)
-- terminate(faxSendApp::terminateSignal);
-- }
- FaxSendStatus status;
- if (app->isReady())
- status = app->send((const char**)&argv[optind], argc-optind);
Index: patches/patch-faxd_faxSendApp_h
===================================================================
RCS file: patches/patch-faxd_faxSendApp_h
diff -N patches/patch-faxd_faxSendApp_h
--- patches/patch-faxd_faxSendApp_h 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-Index: faxd/faxSendApp.h
---- faxd/faxSendApp.h.orig
-+++ faxd/faxSendApp.h
-@@ -50,9 +50,6 @@ class faxSendApp : public FaxServer, public faxApp { (
- bool faxSendApp::* p;
- bool def;
- };
--
-- static int terminateSignal; // Termination signal received
--
- private:
- // runtime state
- bool ready; // modem ready for use
Index: patches/patch-faxd_pageSendApp_c++
===================================================================
RCS file: patches/patch-faxd_pageSendApp_c++
diff -N patches/patch-faxd_pageSendApp_c++
--- patches/patch-faxd_pageSendApp_c++ 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,46 +0,0 @@
-Index: faxd/pageSendApp.c++
---- faxd/pageSendApp.c++.orig
-+++ faxd/pageSendApp.c++
-@@ -49,7 +49,6 @@
- */
-
- pageSendApp* pageSendApp::_instance = NULL;
--int pageSendApp::terminateSignal = 0;
-
- pageSendApp::pageSendApp(const fxStr& devName, const fxStr& devID)
- : ModemServer(devName, devID)
-@@ -1401,19 +1400,13 @@ usage(const char* appName)
- static void
- sigCleanup(int s)
- {
-- // We keep this simple to avoid deadlocks - see terminate() for actual
work
-+ int old_errno = errno;
- signal(s, fxSIGHANDLER(sigCleanup));
-- pageSendApp::terminateSignal = s;
--}
--
--static void
--terminate(int s)
--{
-- signal(s, fxSIGHANDLER(sigCleanup));
- logError("CAUGHT SIGNAL %d", s);
- pageSendApp::instance().close();
- if (!pageSendApp::instance().isRunning())
- _exit(send_failed);
-+ errno = old_errno;
- }
-
- int
-@@ -1443,11 +1436,8 @@ main(int argc, char** argv)
-
- app->initialize(argc, argv);
- app->open();
-- while (app->isRunning() && !app->isReady()) {
-+ while (app->isRunning() && !app->isReady())
- Dispatcher::instance().dispatch();
-- if (pageSendApp::terminateSignal)
-- terminate(pageSendApp::terminateSignal);
-- }
- FaxSendStatus status;
- if (app->isReady())
- status = app->send((const char**)&argv[optind], argc - optind);
Index: patches/patch-faxd_pageSendApp_h
===================================================================
RCS file: patches/patch-faxd_pageSendApp_h
diff -N patches/patch-faxd_pageSendApp_h
--- patches/patch-faxd_pageSendApp_h 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-Index: faxd/pageSendApp.h
---- faxd/pageSendApp.h.orig
-+++ faxd/pageSendApp.h
-@@ -47,9 +47,6 @@ class pageSendApp : public ModemServer, public faxApp
- u_int pageSendApp::*p;
- u_int def;
- };
--
-- static int terminateSignal; // Termination signal received
--
- private:
- // runtime state
- bool ready; // modem ready for use
Index: patches/patch-faxd_sslfax_c++
===================================================================
RCS file: /cvs/ports/comms/hylafax/patches/patch-faxd_sslfax_c++,v
diff -u -p -r1.1 patch-faxd_sslfax_c++
--- patches/patch-faxd_sslfax_c++ 25 Mar 2026 15:47:01 -0000 1.1
+++ patches/patch-faxd_sslfax_c++ 28 Nov 2026 23:16:11 -0000
@@ -1,18 +1,11 @@
Index: faxd/sslfax.c++
--- faxd/sslfax.c++.orig
+++ faxd/sslfax.c++
-@@ -29,12 +29,13 @@
- #include "config.h"
- #if defined(HAVE_SSL)
+@@ -34,6 +34,7 @@
+ #include <openssl/engine.h> // For ENGINE_cleanup
+ #endif
+#include <limits.h>
#include <sys/time.h>
#include "sslfax.h"
#include "Sys.h"
- #include "Socket.h"
-
--timeval currentTime() {
-+static timeval currentTime() {
- timeval curTime;
- gettimeofday(&curTime, 0);
- return curTime;
Index: patches/patch-faxd_sslfaxproxy_c++
===================================================================
RCS file: patches/patch-faxd_sslfaxproxy_c++
diff -N patches/patch-faxd_sslfaxproxy_c++
--- patches/patch-faxd_sslfaxproxy_c++ 23 Sep 2026 15:29:39 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
-Index: faxd/sslfaxproxy.c++
---- faxd/sslfaxproxy.c++.orig
-+++ faxd/sslfaxproxy.c++
-@@ -31,7 +31,7 @@ printlog(FILE *fp, const char *fmt, ...)
- fflush(fp);
- }
-
--timeval currentTime() {
-+static timeval currentTime() {
- timeval curTime;
- gettimeofday(&curTime, 0);
- return curTime;
-@@ -94,6 +94,7 @@ sslFaxThread(void* sd)
- done:
- Sys::close(s->wfd);
- Sys::close(s->rfd);
-+ free(sd);
- return (NULL);
- }
-
Index: patches/patch-hfaxd_Status_c++
===================================================================
RCS file: patches/patch-hfaxd_Status_c++
diff -N patches/patch-hfaxd_Status_c++
--- patches/patch-hfaxd_Status_c++ 25 Mar 2026 15:47:01 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
-Index: hfaxd/Status.c++
---- hfaxd/Status.c++.orig
-+++ hfaxd/Status.c++
-@@ -171,14 +171,23 @@ HylaFAXServer::getServerStatus(const char* fileName, f
- struct stat sb;
- (void) Sys::fstat(fd, sb);
- status.resize((u_int) sb.st_size);
-- char* buff = new char[sb.st_size];
-+ char* buff = new char[sb.st_size + 1];
-+ memset(buff, 0, sb.st_size + 1);
- int n = Sys::read(fd, buff, (size_t) sb.st_size);
- status = buff;
-+ // It's possible that the status file had NUL characters in it, and
because
-+ // fxStr::operator= (used above) uses strlen() it is possible that n >
strlen(buff),
-+ // so we need to reset n so that [n-1] is for certain to be within the
fxStr.
-+ if (n > 0) {
-+ if (strlen(buff) < (size_t) n) n = strlen(buff);
-+ }
- Sys::close(fd);
-- if (n > 0 && status[n-1] == '\n') n--;
- if (n == 0) {
- status = "No status (empty file)";
-+ } else if (n < 0) {
-+ status = "No status (cannot read file)";
- } else {
-+ if (status[n-1] == '\n') n--;
- status.resize(n);
- }
- delete [] buff;
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/comms/hylafax/pkg/PLIST,v
diff -u -p -r1.26 PLIST
--- pkg/PLIST 23 Sep 2026 15:29:40 -0000 1.26
+++ pkg/PLIST 28 Nov 2026 23:16:11 -0000
@@ -159,7 +159,7 @@ libdata/hylafax/etc/hosts.hfaxd
libdata/hylafax/etc/lutRS18.pcf
libdata/hylafax/etc/pagesizes
libdata/hylafax/etc/typerules
-@comment libdata/hylafax/etc/xferfaxlog
+@extra libdata/hylafax/etc/xferfaxlog
libdata/hylafax/info/
libdata/hylafax/log/
libdata/hylafax/pollq/
@@ -284,5 +284,6 @@ sbin/xferfaxstats
share/doc/pkg-readmes/${PKGSTEM}
@exec [ -e /var/spool/hylafax ] || ln -sf %D/libdata/hylafax /var/spool/hylafax
@exec mkfifo %D/libdata/hylafax/FIFO; chown _hylafax:dialer
%D/libdata/hylafax/FIFO; chmod 600 %D/libdata/hylafax/FIFO
+@unexec /usr/bin/pkill -f %D/sbin/faxgetty
@unexec rm %D/libdata/hylafax/FIFO
@extraunexec rm -f /var/spool/hylafax