Package: iptstate / 2.2.5-1

01-Makefile Patch series | download
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
Fix Makefile so it builds and installs sanely on Debian systems. Also comment out unneeded strip commands as dh_strip handles that.

Author: Chris Taylor <ctaylor@debian.org>
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,10 @@
 
 ### USERS CAN CHANGE STUFF HERE
 
-PREFIX?=/usr
+PREFIX?=$(CURDIR)/debian/iptstate/usr
 SBIN?=$(PREFIX)/sbin
 INSTALL?=/usr/bin/install
-STRIP?=/usr/bin/strip
+#STRIP?=/usr/bin/strip
 MAN?=$(PREFIX)/share/man
 
 ### ADVANCED USERS AND PACKAGERS MIGHT WANT TO CHANGE THIS
@@ -53,19 +53,19 @@ iptstate: iptstate.cc Makefile
 	echo "All done. Do 'make install' as root and you should be set to go!" ;\
 	echo ""
 
-strip:	iptstate
-	$(STRIP) iptstate
-	@touch strip
+#strip:	iptstate
+#	$(STRIP) iptstate
+#	@touch strip
 
 
 install:
-	$(INSTALL) -D --mode=755 iptstate $(SBIN)/iptstate
+	$(INSTALL) -D -o root -g root --mode=755 iptstate $(SBIN)/iptstate
 	$(INSTALL) -D --mode=444 iptstate.8 $(MAN)/man8/iptstate.8
 
 
 clean:
 	/bin/rm -rf iptstate
-	/bin/rm -rf strip
+#	/bin/rm -rf strip
 
 
 uninstall: