-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathINSTALL.txt
More file actions
79 lines (51 loc) · 2.28 KB
/
INSTALL.txt
File metadata and controls
79 lines (51 loc) · 2.28 KB
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
HOW TO INSTALL HOSTDB
Copyright 2005 Thomas A. Limoncelli
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
INSTALLATION
1. Untar someplace (um, you've already done that if you are reading
this file)
2. Put the "bin" files someplace useful (BINDIR). If you have a central
repository of tools, put the "bin" directory there (i.e. if you
have /home/adm/bin, make a /home/adm/hostdb/bin and put the files
there). For testing, you can put the "bin" directory anywhere,
even leave it where you untarred things initially.
3. Add the "bin" directory to your PATH.
3. Read the paper in docs/lisa2005-paper.pdf to understand the
configuration files.
4. Create a directory called anything you want for storing your
data (DATADIR). Your data can live anywhere you want. I call mine
/home/adm/hostdb/data and when I want to do testing I copy things
into a directory called ~/hostdb-test and do the tests I want right
there.
5. Create a subdirectory in DATADIR called "out"
mkdir $DATADIR/out
for example:
mkdir /home/adm/hostdb/data/out
6. In your shell, make an alias to make everything easier to work with.
sh-relatives:
alias hmake='cd /home/adm/hostdb/data/out && make -f ../Makefile'
csh-relatives:
alias hmake 'cd /home/adm/hostdb/data/out && make -f ../Makefile'
7. Create the initial 4 files needed for hostdb to operate:
zoneconf.txt destinations.txt and Makefile (plus some others):
cp examples/goodstart/* DATADIR/.
hostdb.txt:
create from a BIND zone file using zone2hostdb,
or your /etc/hosts file
or your imagination.
8. Create the files:
cd $DATADIR
hmake
9. Review the data:
cd $DATADIR/out
ls