File: INSTALL

package info (click to toggle)
sn 0.3.4a-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 784 kB
  • ctags: 826
  • sloc: ansic: 9,023; sh: 339; makefile: 208
file content (50 lines) | stat: -rw-r--r-- 1,922 bytes parent folder | download
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
If you're upgrading from a previous version of sn, please read
INSTALL.upgrade first.

To install sn:

0) Decide if you want the compression feature compiled in.  It's
   safe to compile it in; you don't have to use it if you don't want
   to.

   If you do want compression, get and install libz.so or libz.a
   first.  You'll also need zlib.h and zconf.h.  These appear to
   be missing in some Linux distributions.

   The email address "postmaster" (on localhost, see also config.h)
   should already exist, and the email system, at least local email,
   should be operational.  sn will use email for some error messages.
   The executable "/bin/mail" should exist.

1) Edit Makefile.  The make variables to look out for are SNROOT
   and BINDIR which are the news spool location and executables
   directory respectively.  Unset the ZLIB variable if you have
   decided to disable compression.

   In the following, SNROOT refers to the value of SNROOT as you
   have set it in the Makefile; likewise for BINDIR.

   SNROOT should be on a local filesystem, not NFS.

2) Edit config.h.  Probably nothing to change, but follow the
   comments.

3) Build it.  Type "make", then "make -n install" to see where
   things will be installed to; "make strip" optionally to strip the
   binaries.  "make clean" if you want to start over.

4) Create the directories SNROOT and BINDIR, and the fifo:
     $ mkdir SNROOT
     $ mkdir BINDIR
     $ mknod -m 600 SNROOT/.fifo p
   Change the ownership of SNROOT and SNROOT/.fifo to the user and
   group for which you want sn to run (for instance, news.news).
   This is important: the ownership of SNROOT determines sn's
   running privileges.  Do NOT make the owner root.

5) If you're upgrading from a previous version of sn, please read
   INSTALL.upgrade next.  Finally, "make install" in the source
   directory.

Read INSTALL.run for a quick introduction on how to run sn.