/usr/share/sendmail/examples/amavis/amavis-doc-2.html is in sendmail-base 8.15.2-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.10">
<TITLE>How to Install Amavis-milter for Debian Sendmail: Installing the Software Dependencies</TITLE>
<LINK HREF="amavis-doc-3.html" REL=next>
<LINK HREF="amavis-doc-1.html" REL=previous>
<LINK HREF="amavis-doc.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="amavis-doc-3.html">Next</A>
<A HREF="amavis-doc-1.html">Previous</A>
<A HREF="amavis-doc.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2.</A> <A HREF="amavis-doc.html#toc2">Installing the Software Dependencies</A></H2>
<P>Update your distribution files with the usual:</P>
<P>
<PRE>
apt-get update
</PRE>
</P>
<P>and install file, bzip2, lha, unarj, unrar, and zoo in one shot
with:</P>
<P>
<PRE>
apt-get install file bzip2 lha unarj unrar zoo
</PRE>
</P>
<P>Install all the perl modules in one shot with:</P>
<P>
<PRE>
apt-get install libio-stringy-perl libunix-syslog-perl libmailtools-perl libmime-base64-perl libmime-perl libconvert-uulib-perl libconvert-tnef-perl libcompress-zlib-perl libarchive-tar-perl libarchive-zip-perl libnet-perl
</PRE>
</P>
<P>Installing the "
arc"
utility is much more of a hassle. Furthermore,
it is an unmaintained old MS-DOS port with a non-free license. I
will describe what I did to compile it on a Intel platform (suggestions
on better ways to do this are appreciated). The next few steps assume
that you have the GNU "
make"
and "
gcc"
packges installed on your
system. If this is not the case then try:</P>
<P>
<PRE>
apt-get install make gcc
</PRE>
</P>
<P>Let's create a temporary directory somewhere so that we can make
a mess in it. Since my login is "
jps"
, I made a directory named "
/home/jps/tmp/"
.
Copy the arc521.tar.Z file into your new temporary diretory and type:</P>
<P>
<PRE>
uncompress arc521.tar.Z; tar xf arc521.tar
</PRE>
</P>
<P>or something equivalent to uncompress and untar the archive.
This will create a bunch of files. We need to delete some lines from
the file named "
arcdos.c"
. It is probably set to be read-only, so
type:</P>
<P>
<PRE>
chmod u+w arcdos.c
</PRE>
</P>
<P>Open arcdos.c for editing and delete (or comment out) lines 35-38
inclusive. (It is the definition of a structure that begins with
"
struct timeval"
on line 35 and ends with "
};"
on line 38).
We are done with that, so close the file. Now type:</P>
<P>
<PRE>
make
</PRE>
</P>
<P>This command WILL FAIL with a bunch of warnings and an error
message complaining about "
tmclock.o"
, but it accomplished some necessary
things anyway. Now open the file named "
Makefile"
for editing. Go
to the line that says "
System = -DBSD=1"
. It should be on line 31.
Change the line so that it says:</P>
<P>
<PRE>
System = -DSYSV=1
</PRE>
</P>
<P>Close the Makefile and run make again by typing:</P>
<P>
<PRE>
make
</PRE>
</P>
<P>That should compile the "
arc"
utility successfully. You can ignore
the warnings about "
mktemp"
and "
mkstemp"
. There should now be an
executable program with the name of "
arc"
in your temporary directory.
As root, copy this file to "
/usr/local/bin"
or the usual place where
you keep home-cooked binaries. Just make sure that it is in your
path. Test this by typing "
arc"
and see if the arc usage guide scrolls
up your terminal. You can delete all the files in your temporary
directory now, but leave the directory itself because we will be
using it later. Aren't .deb packages so much easier? </P>
<HR>
<A HREF="amavis-doc-3.html">Next</A>
<A HREF="amavis-doc-1.html">Previous</A>
<A HREF="amavis-doc.html#toc2">Contents</A>
</BODY>
</HTML>
|