* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / security / chkrootkit / make_install.patch
blob27054731615262bbed2234c50d8942ecbfd236c4
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../chkrootkit/make_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 --- chkrootkit-0.47/Makefile 2006-10-09 21:29:19.000000000 +0200
18 +++ chkrootkit-0.47-fixed/Makefile 2007-06-17 14:31:42.133410484 +0200
19 @@ -7,6 +7,8 @@
20 CFLAGS = -DHAVE_LASTLOG_H
21 STATIC = -static
23 +prefix = /usr
25 ###
26 ### Solaris 2.x
27 ###
28 @@ -41,36 +43,32 @@
30 chklastlog: chklastlog.c
31 ${CC} ${CFLAGS} -o $@ chklastlog.c
32 - @strip $@
34 chkwtmp: chkwtmp.c
35 ${CC} ${CFLAGS} -o $@ chkwtmp.c
36 - @strip $@
38 ifpromisc: ifpromisc.c
39 ${CC} ${CFLAGS} ${LDFLAGS} -D_FILE_OFFSET_BITS=64 -o $@ ifpromisc.c
40 - @strip $@
42 chkproc: chkproc.c
43 ${CC} ${LDFLAGS} -o $@ chkproc.c
44 - @strip $@
46 chkdirs: chkdirs.c
47 ${CC} ${LDFLAGS} -o $@ chkdirs.c
48 - @strip $@
50 check_wtmpx: check_wtmpx.c
51 ${CC} ${LDFLAGS} -o $@ check_wtmpx.c
52 - @strip $@
54 chkutmp: chkutmp.c
55 ${CC} ${LDFLAGS} -o $@ chkutmp.c
56 - @strip $@
59 strings-static: strings.c
60 ${CC} ${STATIC} ${LDFLAGS} -o $@ strings.c
61 - @strip $@
63 clean:
64 rm -f ${OBJS} core chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings-static chkutmp
66 +install: sense
67 + cp -vf chkrootkit $(DESTDIR)$(prefix)/sbin/
68 + cp -vf chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings-static chkutmp $(DESTDIR)$(prefix)/sbin/