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 --- 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 PKG_CONFIG?=pkg-config @@ -57,19 +57,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: