aboutsummaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/files
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/files
parent09c9b1697a7b11a54494ce6a1d69094e82c3e707 (diff)
downloadports-4fde2f0516ee72123c25f2cde4be0144b969cd6f.tar.gz
ports-4fde2f0516ee72123c25f2cde4be0144b969cd6f.zip
Upgrade to version 1.1.27.
Install a default new_fax program. Install sample files.
Notes
Notes: svn path=/head/; revision=51040
Diffstat (limited to 'comms/mgetty+sendfax/files')
-rw-r--r--comms/mgetty+sendfax/files/mgettycfg.in17
-rw-r--r--comms/mgetty+sendfax/files/patch-ae14
-rw-r--r--comms/mgetty+sendfax/files/patch-af14
-rw-r--r--comms/mgetty+sendfax/files/patch-ag11
-rw-r--r--comms/mgetty+sendfax/files/patch-ah11
-rw-r--r--comms/mgetty+sendfax/files/patch-ai11
6 files changed, 17 insertions, 61 deletions
diff --git a/comms/mgetty+sendfax/files/mgettycfg.in b/comms/mgetty+sendfax/files/mgettycfg.in
index 68d8f57c50d1..37ac6dec0b36 100644
--- a/comms/mgetty+sendfax/files/mgettycfg.in
+++ b/comms/mgetty+sendfax/files/mgettycfg.in
@@ -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;
diff --git a/comms/mgetty+sendfax/files/patch-ae b/comms/mgetty+sendfax/files/patch-ae
deleted file mode 100644
index 927dd18aa440..000000000000
--- a/comms/mgetty+sendfax/files/patch-ae
+++ /dev/null
@@ -1,14 +0,0 @@
---- mgetty.c.orig Tue Sep 1 20:22:57 1998
-+++ mgetty.c Tue Jan 5 18:57:26 1999
-@@ -64,7 +64,10 @@
- /* prototypes for system functions (that are missing in some
- * system header files)
- */
--#ifndef __NetBSD__
-+#if (defined(__unix__) || defined(unix)) && !defined(USG)
-+#include <sys/param.h>
-+#endif
-+#if !(defined(BSD) && (BSD >= 199306))
- time_t time _PROTO(( long * tloc ));
- #endif
-
diff --git a/comms/mgetty+sendfax/files/patch-af b/comms/mgetty+sendfax/files/patch-af
deleted file mode 100644
index b75dd3277778..000000000000
--- a/comms/mgetty+sendfax/files/patch-af
+++ /dev/null
@@ -1,14 +0,0 @@
---- faxrec.c.orig Tue Dec 16 20:39:24 1997
-+++ faxrec.c Tue Jan 5 18:59:48 1999
-@@ -35,7 +35,10 @@
- extern time_t call_start; /* in faxrecp.c, set in mgetty.c */
- static time_t call_done;
-
--#ifndef __NetBSD__
-+#if (defined(__unix__) || defined(unix)) && !defined(USG)
-+#include <sys/param.h>
-+#endif
-+#if !(defined(BSD) && (BSD >= 199306))
- time_t time _PROTO(( long * tloc ));
- #endif
-
diff --git a/comms/mgetty+sendfax/files/patch-ag b/comms/mgetty+sendfax/files/patch-ag
deleted file mode 100644
index 1fd854ba5228..000000000000
--- a/comms/mgetty+sendfax/files/patch-ag
+++ /dev/null
@@ -1,11 +0,0 @@
---- sendfax.c.orig Fri Feb 18 10:06:53 2000
-+++ sendfax.c Fri Feb 18 10:07:37 2000
-@@ -41,7 +41,7 @@
-
- /* seems to missing nearly everywhere */
- #ifndef __NetBSD__
--time_t time _PROTO(( long * tloc ));
-+time_t time _PROTO(( time_t * tloc ));
- #endif
-
- void exit_usage _P2( (program, msg ),
diff --git a/comms/mgetty+sendfax/files/patch-ah b/comms/mgetty+sendfax/files/patch-ah
deleted file mode 100644
index 1d9ba91108b8..000000000000
--- a/comms/mgetty+sendfax/files/patch-ah
+++ /dev/null
@@ -1,11 +0,0 @@
---- callback/callback.c.orig Fri Feb 18 10:08:43 2000
-+++ callback/callback.c Fri Feb 18 10:08:54 2000
-@@ -69,7 +69,7 @@
- * system header files)
- */
- #ifndef __NetBSD__
--time_t time _PROTO(( long * tloc ));
-+time_t time _PROTO(( time_t * tloc ));
- #endif
-
- /* conf_cb.c */
diff --git a/comms/mgetty+sendfax/files/patch-ai b/comms/mgetty+sendfax/files/patch-ai
deleted file mode 100644
index 983c37a74b11..000000000000
--- a/comms/mgetty+sendfax/files/patch-ai
+++ /dev/null
@@ -1,11 +0,0 @@
---- voice/libvoice/voice_fax.c.orig Fri Feb 18 10:10:12 2000
-+++ voice/libvoice/voice_fax.c Fri Feb 18 10:10:28 2000
-@@ -30,7 +30,7 @@
-
- /* seems to missing nearly everywhere */
- #ifndef __NetBSD__
--time_t time _PROTO(( long * tloc ));
-+time_t time _PROTO(( time_t * tloc ));
- #endif
-
- /* from faxrecp.c */