Debian Codegraph @

debian/patches/01-Makefile

raw
1 Fix Makefile so it builds and installs sanely on Debian systems. Also comment out unneeded strip commands as dh_strip handles that.
2
3 Author: Chris Taylor <[email protected]>
4 --- a/Makefile
5 +++ b/Makefile
6 @@ -8,10 +8,10 @@
7
8 ### USERS CAN CHANGE STUFF HERE
9
10 -PREFIX?=/usr
11 +PREFIX?=$(CURDIR)/debian/iptstate/usr
12 SBIN?=$(PREFIX)/sbin
13 INSTALL?=/usr/bin/install
14 -STRIP?=/usr/bin/strip
15 +#STRIP?=/usr/bin/strip
16 MAN?=$(PREFIX)/share/man
17 PKG_CONFIG?=pkg-config
18
19 @@ -57,19 +57,19 @@ iptstate: iptstate.cc Makefile
20 echo "All done. Do 'make install' as root and you should be set to go!" ;\
21 echo ""
22
23 -strip: iptstate
24 - $(STRIP) iptstate
25 - @touch strip
26 +#strip: iptstate
27 +# $(STRIP) iptstate
28 +# @touch strip
29
30
31 install:
32 - $(INSTALL) -D --mode=755 iptstate $(SBIN)/iptstate
33 + $(INSTALL) -D -o root -g root --mode=755 iptstate $(SBIN)/iptstate
34 $(INSTALL) -D --mode=444 iptstate.8 $(MAN)/man8/iptstate.8
35
36
37 clean:
38 /bin/rm -rf iptstate
39 - /bin/rm -rf strip
40 +# /bin/rm -rf strip
41
42
43 uninstall: