mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
update to iaxmodem-1.3.5, from Larry Moore
use new _iaxmodem uid, rather than uucp which was removed from base ages ago add an rc script
This commit is contained in:
@@ -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/
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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 @@ int logmode = S_IRUSR | S_IWUSR | S_IRGRP;
|
||||
#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 @@ iaxmodem(const char *config, int nondaemon)
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/iaxmodem"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_cmd $1
|
||||
Reference in New Issue
Block a user