Skip to content

Instantly share code, notes, and snippets.

@danielfone
Created June 14, 2010 00:21
Show Gist options
  • Save danielfone/437122 to your computer and use it in GitHub Desktop.
Save danielfone/437122 to your computer and use it in GitHub Desktop.
diff --git a/Makefile.in b/Makefile.in
index a72841e..5b3c50f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -15,6 +15,7 @@ DEBUG= -g
#(not raccomanded)
COMPILE_TIME= @FORCE_LIBPCAP@
INSTALL_MANPATH=@MANPATH@
+INSTALL_PATH=
@PCAP@
OBJ= main.o getifname.o getlhs.o \
@@ -64,9 +65,12 @@ distclean:
-(cd utils; $(MAKE) clean)
install: hping2
- cp -f hping2 /usr/sbin/
- chmod 755 /usr/sbin/hping2
- ln -sf /usr/sbin/hping2 /usr/sbin/hping
+ mkdir ${INSTALL_PATH}/sbin/
+ cp -f hping2 ${INSTALL_PATH}/sbin/
+ chmod 755 ${INSTALL_PATH}/sbin/hping2
+ ln -sf ${INSTALL_PATH}/sbin/hping2 ${INSTALL_PATH}/sbin/hping
+
+ mkdir -p ${INSTALL_MANPATH}/man8
@if [ -d ${INSTALL_MANPATH}/man8 ]; then \
cp ./docs/hping2.8 ${INSTALL_MANPATH}/man8; \
chmod 644 ${INSTALL_MANPATH}/man8/hping2.8; \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment