aboutsummaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/pkg-install
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2001-12-05 03:09:05 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2001-12-05 03:09:05 +0000
commit4fde2f0516ee72123c25f2cde4be0144b969cd6f (patch)
treecdde42786a282034b16006deb323a588128e693c /comms/mgetty+sendfax/pkg-install
parent09c9b1697a7b11a54494ce6a1d69094e82c3e707 (diff)
Notes
Diffstat (limited to 'comms/mgetty+sendfax/pkg-install')
-rw-r--r--comms/mgetty+sendfax/pkg-install17
1 files changed, 17 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/pkg-install b/comms/mgetty+sendfax/pkg-install
index 68d8f57c50d1..37ac6dec0b36 100644
--- a/comms/mgetty+sendfax/pkg-install
+++ b/comms/mgetty+sendfax/pkg-install
@@ -104,6 +104,23 @@ open (F, ">/etc/ttys");
print F @ttys;
close (F);
+# install new_fax
+if (-e "$prefix/lib/mgetty+sendfax/lib/new_fax") {
+ print STDERR "$prefix/lib/mgetty+sendfax/lib/new_fax already exists - not changed\n";
+} else {
+ print STDERR "installing $prefix/lib/mgetty+sendfax/lib/samples/new_fax.mail as new_fax\n";
+ open (F, "$prefix/lib/mgetty+sendfax/lib/samples/new_fax.mail");
+ open (G, "$prefix/lib/mgetty+sendfax/lib/new_fax");
+ while (<F>) {
+ s:/usr/local/bin/:$prefix:;
+ s:/usr/lib/sendmail:/usr/sbin/sendmail:;
+ s/^MAILTO=.*/$def{'notify'}\n/;
+ print G "$_";
+ }
+ close F;
+ close G;
+ chmod 0755, "$prefix/lib/mgetty+sendfax/lib/new_fax";
+}
print STDERR "\n\n*** WARNING the directory /var/spool/fax/outgoing/ is world writable.\n*** This is potentially insecure\n";
exit 0;