File: SunOS

package info (click to toggle)
p0f 2.0.8-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 708 kB
  • ctags: 318
  • sloc: ansic: 2,319; sh: 72; makefile: 63; perl: 28
file content (46 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download | duplicates (2)
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
#
# p0f - SunOS/Solaris Makefile
# ----------------------------
#
# (C) Copyright 2000-2006 by Michal Zalewski <lcamtuf@coredump.cx>
#

CC      = gcc
LIBS    = -lpcap -L/opt/local/lib \
          -L/usr/local/lib -lsocket -lnsl 
CFLAGS  = -O3 -Wall -fomit-frame-pointer -funroll-loops \
          -DBYTE_ORDER=1234 -DBIG_ENDIAN=1234 \
	  -DUSE_BPF=\"${USE_BPF}\" \
	  -I/opt/local/include  -I/usr/local/include
FILE    = p0f
TOOLS   = test/sendack test/sendack2 test/sendsyn

all: $(FILE) 
	@echo ">> You can also try 'make p0fq' to compile a sample query"
	@echo ">> client (see README for more information)."

static: $(FILE)-static 

$(FILE): $(FILE).c
	$(CC) $(CFLAGS) -o $@ $(FILE).c $(FILE)-query.c crc32.c $(LIBS)

$(FILE)-static: $(FILE).c
	$(CC) -static $(CFLAGS) -o $@ $(FILE).c $(FILE)-query.c crc32.c $(LIBS)

p0fq: test/p0fq

p0fping: test/p0fping

tools: $(TOOLS)

clean:
	rm -f core core.[0123456789]* *~ *.o $(FILE) a.out $(FILE)-static \
	  test/p0fq test/p0fping $(TOOLS)

install: $(FILE)
	cp -f $(FILE) /usr/sbin/
	cp -f p0frep /usr/sbin/
	mkdir /etc/p0f || true
	cp -f p0f.fp p0fa.fp p0fr.fp p0fo.fp /etc/p0f/
	cp -f p0f.1 /usr/man/man1/ || cp -f p0f.1 /usr/local/man/man1/
	@echo "You might want to manually install test/ tools now."