Index: sendpage-1.0.3/email2page
===================================================================
--- sendpage-1.0.3.orig/email2page 2008-08-16 19:17:39.000000000 -0700
+++ sendpage-1.0.3/email2page 2008-08-16 19:17:45.000000000 -0700
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# tool designed to re-write emails into pages
#
@@ -36,7 +36,7 @@
=item -C CONF
-Read the configuration file CONF instead of /etc/email2page.conf for the
+Read the configuration file CONF instead of /etc/sendpage/email2page.conf for the
rewriting rules.
=item -h
@@ -49,7 +49,7 @@
=head1 DESCRIPTION
This tool is used to break down an email into a shortened version, using
-a configurable set of rewriting rules, found in /etc/email2page.conf.
+a configurable set of rewriting rules, found in /etc/sendpage/email2page.conf.
email2page reads STDIN, and writes to STDOUT. Any errors will be reported
on STDERR. It was designed to be used with 'sendpage'.
@@ -61,7 +61,7 @@
All the bugs with the program will probably come from the config file, as
several of the items are run with Perl's 'eval' statement. Please see the
-documentation in the /etc/email2page.conf file.
+documentation in the /etc/sendpage/email2page.conf file.
=head1 COPYRIGHT
@@ -90,7 +90,7 @@
Parses an email message based on the values of the conf file. Reads stdin
and produces results to stdout.
--C CONF read CONF instead of /etc/email2page.conf
+-C CONF read CONF instead of /etc/sendpage/email2page.conf
-h you're reading it already. :)
";
@@ -109,7 +109,7 @@
Usage();
}
-$opts{C}="/etc/email2page.conf" unless ($opts{C});
+$opts{C}="/etc/sendpage/email2page.conf" unless ($opts{C});
$fh = new IO::File $opts{C}, "r";
if (!defined($fh)) {
Index: sendpage-1.0.3/sendpage
===================================================================
--- sendpage-1.0.3.orig/sendpage 2008-08-16 19:17:42.000000000 -0700
+++ sendpage-1.0.3/sendpage 2008-08-16 19:23:23.000000000 -0700
@@ -79,7 +79,7 @@
=item -C FILE
-Read the configuration file FILE instead of the default /etc/sendpage.cf
+Read the configuration file FILE instead of the default /etc/sendpage/sendpage.cf
=item -h
@@ -87,7 +87,7 @@
=item -d
-Turn on debugging (like "debug=true" in /etc/sendpage.cf)
+Turn on debugging (like "debug=true" in /etc/sendpage/sendpage.cf)
=item -f USER
@@ -116,7 +116,7 @@
=over 4
-=item F</etc/sendpage.cf>
+=item F</etc/sendpage/sendpage.cf>
Default location for sendpage.cf, which holds all the configuration
information for sendpage, including Paging Central definitions,
@@ -1593,13 +1593,13 @@
$config->define("dbuser", { DEFAULT => "" });
$config->define("dbpass", { DEFAULT => "" });
$config->define("dbtable", { DEFAULT => "" });
-$config->define("cfgfile", { DEFAULT => "/etc/sendpage.cf" });
+$config->define("cfgfile", { DEFAULT => "/etc/sendpage/sendpage.cf" });
$config->define("pidfileprefix",{ DEFAULT => "/var/spool/sendpage/sendpage" });
$config->define("lockprefix",{ DEFAULT => "/var/lock/LCK.." });
$config->define("queuedir", { DEFAULT => "/var/spool/sendpage" });
$config->define("mail-agent", { DEFAULT => "sendmail" });
$config->define("user", { DEFAULT => "sendpage" });
-$config->define("group-lock", { DEFAULT => "uucp" });
+$config->define("group-lock", { DEFAULT => "dialout" });
$config->define("group-tty", { DEFAULT => "tty" });
$config->define("page-daemon", { DEFAULT => "sendpage" });
$config->define("cc-on-error", { ARGCOUNT => 0, DEFAULT => 1 });
Index: sendpage-1.0.3/snpp
===================================================================
--- sendpage-1.0.3.orig/snpp 2008-08-16 19:23:27.000000000 -0700
+++ sendpage-1.0.3/snpp 2008-08-16 19:23:39.000000000 -0700
@@ -57,7 +57,7 @@
=item -C CONF
-Read CONF instead of /etc/snpp.conf for server default.
+Read CONF instead of /etc/sendpage/snpp.conf for server default.
=item -h
@@ -71,7 +71,7 @@
(level 2). It is designed to be used with 'sendpage', but should work
with any other SNPP servers as well.
-The /etc/snpp.conf file can contain a single line in the form of
+The /etc/sendpage/snpp.conf file can contain a single line in the form of
server:ADDRESS[:PORT]
@@ -104,7 +104,7 @@
use IO::File;
my %opts;
-my $VERSION="0.1";
+our $VERSION="0.1";
sub Usage {
die "Usage: $0 [OPTIONS] pin1 [pin2 [...]]
@@ -116,7 +116,7 @@
-m MESSAGE message to send (reads from stdin by default)
-n no email carboning to 'from'
-d turn debug on
--C CONF read CONF instead of /etc/snpp.conf
+-C CONF read CONF instead of /etc/sendpage/snpp.conf
-h you're reading it. :)
";
@@ -130,7 +130,7 @@
### DEFAULTS
# set config file
-$opts{C}="/etc/snpp.conf" unless ($opts{C});
+$opts{C}="/etc/sendpage/snpp.conf" unless ($opts{C});
# set server
my $server="localhost";