~ubuntu-branches/ubuntu/karmic/tcpspy/karmic

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Pablo Lorenzzoni
  • Date: 2002-01-25 00:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20020125000000-acrs0yl4g2xchacd
Tags: 1.7d-1
* Fixes a crash with an empty ruleset.
* Fixes the split rule problem.
* Fixes the /proc/net/tcp incompatibility problem (Closes: #115613).
* The upstream said that he is out of time to release v2.0, so he'll
  get the 1.x series a little far than originally expected.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Makefile for tcpspy
2
2
# Tim J. Robbins, 2000
 
3
# Modified for Debian GNU/Linux by Pablo Lorenzzoni
3
4
# $Id: Makefile,v 2.5 2001/04/25 01:40:17 tim Stab $
4
5
 
5
6
# You may specify the syslog facility to use here. If in doubt, use LOG_DAEMON
6
7
# or LOG_LOCAL[0-7]. See the syslog(3) manual page for a complete list of
7
8
# facilities.
8
 
CFLAGS+=-DFACILITY=LOG_LOCAL1
 
9
# Edited for Debian GNU/Linux
 
10
# original line:
 
11
#  default: CFLAGS+=-DFACILITY=LOG_LOCAL1
 
12
CFLAGS+=-DFACILITY=LOG_DAEMON
9
13
 
10
14
# You may also override the default number of buckets in the connection table
11
15
# here, but this not usually necessary.
17
21
# Add any other options for the compiler here
18
22
CFLAGS+=-O2 -Wall -W
19
23
 
20
 
 
21
 
default: tcpspy
 
24
# Added for Debian GNU/Linux.
 
25
prefix =
 
26
BIN = $(prefix)/usr/sbin
 
27
ETC = $(prefix)/etc
 
28
MANPAGE8 = $(prefix)/usr/share/man/man8
 
29
MANPAGE5 = $(prefix)/usr/share/man/man5
 
30
DOC = $(prefix)/usr/share/doc/tcpspy
 
31
 
 
32
 
 
33
# Edited for Debian GNU/Linux
 
34
# original line:
 
35
#  default: tcpspy
 
36
default: tcpspy doc
22
37
all: tcpspy doc
23
38
 
24
39
tcpspy: log.o rule_lexer.o rule_grammar.o rule.o tcpspy.o
39
54
tcpspy.o: tcpspy.c
40
55
 
41
56
doc:
42
 
        groff -Tps -man tcpspy.8 >tcpspy.ps
43
 
        ps2pdf tcpspy.ps tcpspy.pdf
 
57
        groff -Tps -man tcpspy.8 > tcpspy.ps
 
58
 
 
59
# Removed for preventing conflicts with Debian GNU/Linux autobuilders
 
60
# (mainly lack of gs and fonts packages)
 
61
#       ps2pdf tcpspy.ps tcpspy.pdf
 
62
# Added for Debian GNU/Linux (compatibility with the previous version)
 
63
        groff -Thtml -man tcpspy.8 > tcpspy.8.html
44
64
 
45
65
clean:
46
66
        rm -f log.o rule_lexer.o rule_grammar.o rule_lexer.c \
47
67
                rule_grammar.c rule_grammar.h rule.o tcpspy.o tcpspy \
48
 
                tcpspy.ps tcpspy.pdf
 
68
                tcpspy.8.html tcpspy.ps tcpspy.pdf
49
69
 
50
 
install: tcpspy
51
 
        install -m 644 -D tcpspy.8 /usr/local/man/man8/tcpspy.8
52
 
        install -m 755 -D tcpspy /usr/local/sbin/tcpspy
 
70
# Edited for Debian GNU/Linux
 
71
# original lines:
 
72
# install: tcpspy
 
73
#       install -m 644 -D tcpspy.8 /usr/local/man/man8/tcpspy.8
 
74
#       install -m 755 -D tcpspy /usr/local/sbin/tcpspy
 
75
install: tcpspy doc
 
76
        install -d $(BIN) $(ETC) $(MANPAGE8) $(MANPAGE5)
 
77
        install -m 755 ./tcpspy $(BIN)
 
78
        install -m 644 tcpspy.rules $(ETC)
 
79
        install -m 644 tcpspy.8 $(MANPAGE8)
 
80
        install -m 644 tcpspy.rules.5 $(MANPAGE5)
 
81
        install -d $(DOC)
 
82
        cp -a tcpspy.8.html $(DOC)
 
83
        cp -a tcpspy.ps $(DOC)