Makefile.patch 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. diff -Naur hping3-20051105/Makefile hping3-20051105-new/Makefile
  2. --- hping3-20051105/Makefile 2005-11-05 05:31:41.000000000 -0500
  3. +++ hping3-20051105-new/Makefile 2009-02-26 03:21:46.000000000 -0500
  4. @@ -72,16 +72,18 @@
  5. rm -rf hping3 *.o byteorder byteorder.h systype.h Makefile libars.a .depend
  6. install: hping3
  7. - cp -f hping3 /usr/sbin/
  8. - chmod 755 /usr/sbin/hping3
  9. - ln -s /usr/sbin/hping3 /usr/sbin/hping
  10. - ln -s /usr/sbin/hping3 /usr/sbin/hping2
  11. - @if [ -d ${INSTALL_MANPATH}/man8 ]; then \
  12. - cp ./docs/hping3.8 ${INSTALL_MANPATH}/man8; \
  13. - chmod 644 ${INSTALL_MANPATH}/man8/hping3.8; \
  14. + @[ ! -d ${DESTDIR}/usr/bin ] && install -d ${DESTDIR}/usr/bin
  15. + cp -f hping3 ${DESTDIR}/usr/bin/
  16. + chmod 755 ${DESTDIR}/usr/bin/hping3
  17. + ln -s hping3 ${DESTDIR}/usr/bin/hping
  18. + ln -s hping3 ${DESTDIR}/usr/bin/hping2
  19. + @[ ! -d ${DESTDIR}${INSTALL_MANPATH}/man8 ] && install -d ${DESTDIR}${INSTALL_MANPATH}/man8
  20. + @if [ -d ${DESTDIR}${INSTALL_MANPATH}/man8 ]; then \
  21. + cp ./docs/hping3.8 ${DESTDIR}${INSTALL_MANPATH}/man8; \
  22. + chmod 644 ${DESTDIR}${INSTALL_MANPATH}/man8/hping3.8; \
  23. else \
  24. echo "@@@@@@ WARNING @@@@@@"; \
  25. - echo "Can't install the man page: ${INSTALL_MANPATH}/man8 does not exist"; \
  26. + echo "Can't install the man page: ${DESTDIR}${INSTALL_MANPATH}/man8 does not exist"; \
  27. fi
  28. strip: hping3