Dash:
[t2-trunk.git] / package / security / p0f / install.patch
blob818122c2424d2515eb45bc559801ac73f2cb0bc6
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../p0f/install.patch
5 # Copyright (C) 2007 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- p0f/mk/Linux.vanilla 2007-06-19 21:06:22.625452266 +0200
18 +++ p0f/mk/Linux 2007-06-19 21:09:19.615538356 +0200
19 @@ -16,6 +16,8 @@
20 FILE = p0f
21 TOOLS = test/sendack test/sendack2 test/sendsyn
23 +prefix = /usr
25 all: $(FILE) strip
26 @echo ">> You can also try 'make p0fq' to compile a sample query"
27 @echo ">> client (see README for more information)."
28 @@ -29,7 +31,7 @@
29 $(CC) -static $(CFLAGS) -o $@ $(FILE).c $(FILE)-query.c crc32.c $(LIBS)
31 strip:
32 - strip $(FILE) 2>/dev/null || true
33 + $(STRIP) $(FILE) 2>/dev/null || true
35 p0fq: test/p0fq
37 @@ -47,9 +49,9 @@
38 rm -f /tmp/p0f.tgz
40 install: $(FILE)
41 - cp -f $(FILE) /usr/sbin/
42 - cp -f p0frep /usr/sbin/
43 - mkdir /etc/p0f || true
44 - cp -f p0f.fp p0fa.fp p0fr.fp p0fo.fp /etc/p0f/
45 - cp -f p0f.1 /usr/man/man1/ || cp -f p0f.1 /usr/local/man/man1/
46 + cp -f $(FILE) $(DESTDIR)$(prefix)/sbin/
47 + cp -f p0frep $(DESTDIR)$(prefix)/sbin/
48 + mkdir $(DESTDIR)/etc/p0f || true
49 + cp -f p0f.fp p0fa.fp p0fr.fp p0fo.fp $(DESTDIR)/etc/p0f/
50 + cp -f p0f.1 $(DESTDIR)$(prefix)/man/man1/
51 @echo "You might want to manually install test/ tools now."