initial commit of file from CVS for smeserver-hylafax on Sat Sep 7 20:28:13 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:28:13 +10:00
parent 1fbad8bb1b
commit c445749682
24 changed files with 777 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
{
my $fax = $DB->get('faxmaster')
|| $DB->new_record('faxmaster', {type => 'user'});
my $de = $fax->prop('PasswordSet');
return "" if $de;
$fax->set_prop('PasswordSet', 'no');
$fax->set_prop('FirstName', 'Fax');
$fax->set_prop('LastName', 'Receiver');
$fax->set_prop('EmailForward', 'local');
unless ( system("/sbin/e-smith/signal-event user-create faxmaster") == 0 )
{
die "user-create faxmaster failed\n";
}
}

View File

@@ -0,0 +1,17 @@
{
my $fax = $DB->get('faxsender')
|| $DB->new_record('faxsender', {type => 'user'});
my $de = $fax->prop('PasswordSet');
return "" if $de;
$fax->set_prop('PasswordSet', 'no');
$fax->set_prop('FirstName', 'Fax');
$fax->set_prop('LastName', 'Sender');
$fax->set_prop('EmailForward', 'local');
unless ( system("/sbin/e-smith/signal-event user-create faxsender") == 0 )
{
die "user-create faxsender failed\n";
}
}

View File

@@ -0,0 +1,11 @@
{
my $fax = $DB->get('fax')
|| $DB->new_record('fax', {type => 'domain'});
my $de = $fax->prop('Description');
return "" if $de;
$fax->set_prop('Content', 'Primary');
$fax->set_prop('Description', 'Domain for Sending Faxes');
$fax->set_prop('Nameservers', 'localhost');
}

View File

@@ -0,0 +1,7 @@
{
if ($USERNAME)
{
return "| /etc/hylafax/etc/mailfax ; exit 99"
if ($USERNAME eq 'faxsender');
}
}

View File

@@ -0,0 +1,46 @@
# hyla.conf
#
# This is the system-wide config file used by HylaFAX client programs:
# sendfax, faxstat, faxalter, faxmail, faxrm, sendpage, faxwatch,
# textfmt.
# The per-user config file is ~/.hylarc, which has the same syntax of
# hyla.conf.
#
# Below you find some examples. Read the man pages of the HylaFAX client
# programs for a complete list of the parameters that can be used in this file.
#
# Vertical resolution for outgoing faxes.
# Default is 98 lines/inch, aka 'low', better is 196 lines/inch, aka 'fine'.
# Equivalent to 'sendfax' -l and -m options.
VRes: 196
# KillTime: time before expiring a job.
# Default is 3 hours. Equivalent to 'sendfax' -k option.
# Tipically this is needed when bulk faxing.
#KillTime: "now +24 hours" # Give jobs 24h before expiring them
# Notify policy (for outgoing faxes).
# Default is to notify only in case of problems. Equivalent to 'sendfax'
# -D option.
#Notify: Done # Notify even for succesfully sent jobs
# 'faxstat' output
# Uncomment this to change the format of 'faxstat' output to show the
# date/time the faxes will be/have been transmitted.
#JobFmt: "%-4j %-19Y %1a %6.6o %-14.14e %5P %5D %.25s" # faxstat -sdl output
# Network HylaFAX server: redirect all client commands to an HylaFAX server.
# Uncomment this if this system has no fax-modems connected to it, and there
# is an HylaFAX server on your network. Equivalent to 'sendfax' -h option.
#Host: faxserver.mydomain.dom
# Pagesize; RPM default is 'a4'
#PageSize: letter
# Disable PageChopping. Default is to chop.
#PageChop: none # Avoid page chopping
# Cover page date format.
#DateFormat: "%d/%m/%Y %H:%M:%S" # 'European style' (day, month, year)

View File

@@ -0,0 +1 @@
MIMEConverters: /var/spool/hylafax/mimetype

View File

@@ -0,0 +1,3 @@
# FontMap/FontPath added by faxsetup (Tue Oct 12 15:53:28 EEST 2021)
FontMap: /var/spool/hylafax/etc
FontPath: /usr/share/ghostscript/Resource/Init:/usr/share/ghostscript/lib:/usr/share/ghostscript/Resource/Font:/usr/share/ghostscript/fonts:/usr/share/fonts/urw-base35:/usr/share/ghostscript/conf.d/:/etc/ghostscript/:/usr/share/fonts:/usr/share/ghostscript/Resource/Init:/usr/share/ghostscript/lib:/usr/share/ghostscript/Resource/Font:/usr/share/ghostscript/fonts:/usr/share/fonts/urw-base35:/usr/share/ghostscript/conf.d/:/etc/ghostscript/:/usr/share/fonts

View File

@@ -0,0 +1,26 @@
{
my $port = $hylafax{port} || "ttyS0";
$OUT .= "[Unit]\n";
$OUT .= "Description=faxgetty on /dev/$port\n";
$OUT .= "Documentation=man:faxgetty(8)\n";
$OUT .= "BindsTo=dev-$port.device\n";
$OUT .= "After=dev-$port.device systemd-user-sessions.service plymouth-quit-wait.service\n";
$OUT .= "After=rc-local.service\n";
$OUT .= "Before=sme-server.target\n";
$OUT .= "IgnoreOnIsolate=yes\n";
$OUT .= "\n";
$OUT .= "[Service]\n";
$OUT .= "ExecStart=-/usr/sbin/faxgetty /dev/$port\n";
$OUT .= "Type=idle\n";
$OUT .= "Restart=always\n";
$OUT .= "RestartSec=0\n";
$OUT .= "UtmpIdentifier=$port\n";
$OUT .= "TTYPath=/dev/$port\n";
$OUT .= "KillMode=process\n";
$OUT .= "IgnoreSIGPIPE=no\n";
$OUT .= "\n";
$OUT .= "[Install]\n";
$OUT .= "WantedBy=sme-server.target\n";
$OUT .= "\n";
}

View File

@@ -0,0 +1 @@
.fax:faxsender