File: Makefile

package info (click to toggle)
tiger 2.2.4-22
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,188 kB
  • ctags: 240
  • sloc: sh: 8,388; ansic: 2,109; makefile: 141; perl: 106
file content (119 lines) | stat: -rw-r--r-- 3,402 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
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
#
#  You only need to 'make' tiger if you are planning to run it
#  on a regular basis.
#
#
#------------------------------------------------------------------------
#
# This directory will contain the 'tiger', 'tigercron', 'tigexp'
# scripts, config files, the 'scripts' subdirectory which will
# contain the checking scripts, the platform specific scripts, etc.
# None of this will need to be writable once installed.
#
TIGERHOME=/usr/lib/tiger
#
# This directory is used for scratch files while the scripts
# are running.  It can be /tmp.  By using something other
# than /tmp (something used only by the 'tiger' scripts), you
# can easily clean up the occasional dribbles left by 'tiger'
# (report these... don't want anything left laying around).
# 
# Of course, it is necessary that this directory be writable.
#
TIGERWORK=/var/run/tiger/work
#
# Where do log files go.  This directory must be writable.
#
TIGERLOGS=/var/log/tiger/
#
# Where do binary executables go... this is only used if the
# binary executables don't exist in the appropriate platform
# sub-directory under $(TIGERHOME)/systems
#
TIGERBIN=/usr/bin
#
# End of user customization...
#
#------------------------------------------------------------------------
#
SCRIPTS=./tiger \
	./tigercron \
	./tigexp \
	./scripts/check_accounts \
	./scripts/check_aliases \
	./scripts/check_anonftp \
	./scripts/check_cron \
	./scripts/check_embedded \
	./scripts/check_exports \
	./scripts/check_group \
	./scripts/check_inetd \
	./scripts/check_known \
	./scripts/check_netrc \
	./scripts/check_passwd \
	./scripts/check_path \
	./scripts/check_perms \
	./scripts/check_printcap \
	./scripts/check_rhosts \
	./scripts/check_signatures \
	./scripts/check_system \
	./scripts/crack_run \
	./scripts/find_files \
	./util/buildbins \
	$(PLATFORM_SCRIPTS)

PLATFORM_SCRIPTS=./systems/Linux/2/check

MISCFILES=./initdefs \
	./check.tbl \
	./syslist \
	./tigerrc \
	./cronrc \
	./util/difflogs \
	./util/flogit \
	./util/genmsgidx \
	./util/getfs-amd \
	./util/getfs-automount \
	./util/getfs-nfs \
	./util/getfs-std \
	./util/gethostinfo \
	./util/getnetgroup \
	./util/logit \
	./util/setsh \
	./util/sgrep

MISCDIRS=./bin \
	./doc \
	./man \
	./scripts/sub \
	./systems

install:
	if [ ! -d $(prefix)/$(TIGERHOME) ]; then \
	  mkdir -p $(prefix)/$(TIGERHOME); \
	  chmod 755 $(prefix)/$(TIGERHOME); \
        fi; \
	if [ ! -d $(prefix)/$(TIGERHOME)/scripts ]; then \
	  mkdir $(prefix)/$(TIGERHOME)/scripts; \
	  chmod 755 $(prefix)/$(TIGERHOME)/scripts; \
	fi; \
	if [ ! -d $(prefix)/$(TIGERHOME)/util ]; then \
	  mkdir $(prefix)/$(TIGERHOME)/util; \
	  chmod 755 $(prefix)/$(TIGERHOME)/util; \
	fi; \
        for dir in $(MISCDIRS); do \
	  tar cf - $$dir | (cd $(prefix)/$(TIGERHOME); tar xpf -); \
	done; \
	for file in $(MISCFILES); do \
	  cp -p $$file $(prefix)/$(TIGERHOME)/$$file; \
	done; \
	for file in $(SCRIPTS); do \
	  sed -e 's%^TigerInstallDir=.*$$%TigerInstallDir="'$(TIGERHOME)'"%' \
	      $$file > $(prefix)/$(TIGERHOME)/$$file;\
	  chmod 755 $(prefix)/$(TIGERHOME)/$$file; \
	done; \
	sed -e 's%^TigerLogDir=.*$$%TigerLogDir="'$(TIGERLOGS)'"%' \
	    -e 's%^TigerWorkDir=.*$$%TigerWorkDir="'$(TIGERWORK)'"%' \
	    -e 's%^TigerBinDir=.*$$%TigerBinDir="'$(TIGERBIN)'"%' \
	    ./config > $(prefix)/$(TIGERHOME)/config; \
	chmod 644 $(prefix)/$(TIGERHOME)/config;
	(cd $(prefix)/$(TIGERHOME); ./util/genmsgidx doc/*.txt)