From: Larry Moore Subject: Re: [UPDATE] telephony/iaxmodem 1.3.4 -> 1.3.5 To: OpenBSD Ports , Stuart Henderson Date: Wed, 18 Feb 2026 20:17:45 +0800 On 18/02/2026 7:01 pm, Stuart Henderson wrote: > On 2026/02/18 18:24, Larry Moore wrote: >> --- /usr/ports/telephony/iaxmodem/pkg/iaxmodem.rc Thu Jan 1 08:00:00 1970 >> +++ ./pkg/iaxmodem.rc Tue Feb 17 03:22:34 2026 >> @@ -0,0 +1,26 @@ >> +#!/bin/ksh >> +# >> + >> +daemon="${TRUEPREFIX}/bin/iaxmodem" >> + >> +. /etc/rc.d/rc.subr >> + >> + >> +pexp="$(eval echo ${daemon})" > > not sure what this is supposed to do? is there anything wrong with the > default? > No. >> +rc_reload= >> +rc_reload_signal=HUP >> +rc_stop_signal=TERM > > these rc_* are the default anyway > Okay. >> + >> +rc_start() { >> + rc_exec "${daemon}" >> +} >> + >> +rc_reload() { >> + pkill -${rc_reload_signal} -xf "${pexp}" >> +} >> + >> +rc_stop() { >> + pkill -${rc_stop_signal} -xf "${pexp}" >> +} > > and these are similar to the default but with missing daemon_rtable > checks etc > >> +rc_cmd $1 > Resubmitting the files with the rc file using defaults. Cheers, Larry. diff -Nupr /usr/ports/telephony/iaxmodem/Makefile ./Makefile --- /usr/ports/telephony/iaxmodem/Makefile Tue Nov 7 22:19:46 2023 +++ ./Makefile Wed Feb 18 17:59:27 2026 @@ -1,9 +1,8 @@ COMMENT= a software fax modem that uses an IAX channel -DISTNAME= iaxmodem-1.3.4 +DISTNAME= iaxmodem-1.3.5 CATEGORIES= telephony SITES= ${SITE_SOURCEFORGE:=iaxmodem/} -REVISION= 0 HOMEPAGE= https://iaxmodem.sourceforge.net/ diff -Nupr /usr/ports/telephony/iaxmodem/distinfo ./distinfo --- /usr/ports/telephony/iaxmodem/distinfo Tue Apr 18 22:19:39 2023 +++ ./distinfo Wed Feb 18 17:59:27 2026 @@ -1,2 +1,2 @@ -SHA256 (iaxmodem-1.3.4.tar.gz) = kA3i93ByvOAnhv5/TU3f1Ln1/jJVsTGXcjgwma3uVjM= -SIZE (iaxmodem-1.3.4.tar.gz) = 2699179 +SHA256 (iaxmodem-1.3.5.tar.gz) = +kWKXlwxQbKeuIDaItMl3v1TyefFYBYuwA4F7sQUNRw= +SIZE (iaxmodem-1.3.5.tar.gz) = 2718449 diff -Nupr /usr/ports/telephony/iaxmodem/patches/patch-config_ttyIAX ./patches/patch-config_ttyIAX --- /usr/ports/telephony/iaxmodem/patches/patch-config_ttyIAX Thu Jan 1 08:00:00 1970 +++ ./patches/patch-config_ttyIAX Wed Feb 18 17:59:27 2026 @@ -0,0 +1,23 @@ +--- config.ttyIAX.orig Wed Jun 24 22:29:03 2015 ++++ config.ttyIAX Mon Feb 16 13:00:24 2026 +@@ -6,16 +6,17 @@ InternationalPrefix: 011 + DialStringRules: etc/dialrules + ServerTracing: 0xFFF + SessionTracing: 0xFFF +-RecvFileMode: 0600 ++RecvFileMode: 0640 + LogFileMode: 0600 +-DeviceMode: 0600 ++DeviceMode: 0660 + RingsBeforeAnswer: 1 + SpeakerVolume: off +-GettyArgs: "-h %l dx_%s" ++GettyArgs: "std.%s" + LocalIdentifier: "IAXmodem" + TagLineFont: etc/lutRS18.pcf + TagLineFormat: "From %%l|%c|Page %%P of %%T" + MaxRecvPages: 200 ++Class1JBIGSupport: receive + # + # + # Modem-related stuff: should reflect modem command interface diff -Nupr /usr/ports/telephony/iaxmodem/patches/patch-iaxmodem-cfg_ttyIAX ./patches/patch-iaxmodem-cfg_ttyIAX --- /usr/ports/telephony/iaxmodem/patches/patch-iaxmodem-cfg_ttyIAX Sat Mar 12 03:58:31 2022 +++ ./patches/patch-iaxmodem-cfg_ttyIAX Wed Feb 18 17:59:27 2026 @@ -1,9 +1,9 @@ ---- iaxmodem-cfg.ttyIAX.orig Sun Apr 20 22:18:51 2008 -+++ iaxmodem-cfg.ttyIAX Sun Apr 20 22:19:30 2008 +--- iaxmodem-cfg.ttyIAX.orig Wed Jun 24 22:29:03 2015 ++++ iaxmodem-cfg.ttyIAX Fri Feb 13 07:36:57 2026 @@ -1,5 +1,5 @@ device /dev/ttyIAX -owner uucp:uucp -+owner uucp:dialer ++owner _iaxmodem:dialer mode 660 port 4570 refresh 300 diff -Nupr /usr/ports/telephony/iaxmodem/patches/patch-iaxmodem_c ./patches/patch-iaxmodem_c --- /usr/ports/telephony/iaxmodem/patches/patch-iaxmodem_c Tue Apr 18 22:19:39 2023 +++ ./patches/patch-iaxmodem_c Wed Feb 18 17:59:27 2026 @@ -35,7 +35,7 @@ Index: iaxmodem.c #ifndef MODEMVER #define MODEMVER "0.0.0" -@@ -169,6 +163,9 @@ int logmode = S_IRUSR | S_IWUSR | S_IRGRP; +@@ -184,6 +178,9 @@ #include "compat/headers.h" #include "sys/stropts.h" #endif @@ -45,13 +45,20 @@ Index: iaxmodem.c #ifdef __FreeBSD__ #include "compat/strndup-freebsd.c" -@@ -697,7 +694,8 @@ iaxmodem(const char *config, int nondaemon) +@@ -997,12 +994,13 @@ int fd; char logfile[256]; - printlog(LOG_ERROR, "Modem started\n"); + printlog(LOG_ERROR, "Modem %s started\n", config); -+ setproctitle("uucp [%s]",config); ++ setproctitle("_iaxmodem [%s]",config); - pwent = getpwnam("uucp"); +- pwent = getpwnam("uucp"); ++ pwent = getpwnam("_iaxmodem"); + + if (pwent == NULL) { +- printlog(LOG_ERROR, "Fatal error: uucp user not found in passwd file\n"); ++ printlog(LOG_ERROR, "Fatal error: _iaxmodem user not found in passwd file\n"); + _exit(-1); + } diff -Nupr /usr/ports/telephony/iaxmodem/pkg/PLIST ./pkg/PLIST --- /usr/ports/telephony/iaxmodem/pkg/PLIST Sat Mar 12 03:58:31 2022 +++ ./pkg/PLIST Wed Feb 18 17:59:27 2026 @@ -1,10 +1,15 @@ +@newgroup _iaxmodem:903 +@newuser _iaxmodem:903:_iaxmodem::IAXmodem Daemon:/nonexistent:/sbin/nologin @bin bin/iaxmodem @man man/man1/iaxmodem.1 share/doc/iaxmodem/ share/doc/iaxmodem/FAQ share/doc/iaxmodem/README share/examples/iaxmodem/ -@sample ${SYSCONFDIR}/iaxmodem/ share/examples/iaxmodem/hylafax-cfg.ttyIAX share/examples/iaxmodem/iaxmodem-cfg.ttyIAX +@mode 750 +@sample ${SYSCONFDIR}/iaxmodem/ +@mode @sample ${SYSCONFDIR}/iaxmodem/ttyIAX0 +@rcscript ${RCDIR}/iaxmodem diff -Nupr /usr/ports/telephony/iaxmodem/pkg/iaxmodem.rc ./pkg/iaxmodem.rc --- /usr/ports/telephony/iaxmodem/pkg/iaxmodem.rc Thu Jan 1 08:00:00 1970 +++ ./pkg/iaxmodem.rc Wed Feb 18 20:05:45 2026 @@ -0,0 +1,8 @@ +#!/bin/ksh +# + +daemon="${TRUEPREFIX}/bin/iaxmodem" + +. /etc/rc.d/rc.subr + +rc_cmd $1