hping/hping2-2.0.0rc3-build.patch

52 lines
1.6 KiB
Diff
Raw Normal View History

diff -ru hping2-rc3/configure hping2-rc3-qilinux/configure
--- hping2-rc3/configure 2002-12-13 17:19:30.000000000 +0100
+++ hping2-rc3-qilinux/configure 2004-11-09 18:48:53.000000000 +0100
@@ -20,7 +20,7 @@
INSTALL_MANPATH=`echo $MANPATH|cut -f1 -d:`
if [ "$INSTALL_MANPATH" = "" ]; then
- INSTALL_MANPATH="/usr/local/man"
+ INSTALL_MANPATH="/usr/share/man"
fi
BYTEORDER=`./byteorder -m`
diff -ru hping2-rc3/Makefile.in hping2-rc3-qilinux/Makefile.in
--- hping2-rc3/Makefile.in 2004-05-03 11:29:39.000000000 +0200
+++ hping2-rc3-qilinux/Makefile.in 2004-11-09 18:48:36.000000000 +0100
@@ -36,6 +36,8 @@
ARSOBJ = ars.o apd.o split.o
+DESTDIR =
+
all: hping2
libars.a: $(ARSOBJ)
@@ -64,16 +66,16 @@
-(cd utils; $(MAKE) clean)
install: hping2
- cp -f hping2 /usr/sbin/
- chmod 755 /usr/sbin/hping2
- ln -sf /usr/sbin/hping2 /usr/sbin/hping
- @if [ -d ${INSTALL_MANPATH}/man8 ]; then \
- cp ./docs/hping2.8 ${INSTALL_MANPATH}/man8; \
- chmod 644 ${INSTALL_MANPATH}/man8/hping2.8; \
- else \
- echo "@@@@@@ WARNING @@@@@@"; \
- echo "Can't install the man page: ${INSTALL_MANPATH}/man8 does not exist"; \
- fi
+ mkdir -p $(DESTDIR)/usr/sbin/
+ cp -f hping2 $(DESTDIR)/usr/sbin/
+ chmod 755 $(DESTDIR)/usr/sbin/hping2
+ ln -sf /usr/sbin/hping2 $(DESTDIR)/usr/sbin/hping
+ mkdir -p $(DESTDIR)${INSTALL_MANPATH}/man8
+ cp ./docs/hping2.8 $(DESTDIR)${INSTALL_MANPATH}/man8
+ chmod 644 $(DESTDIR)${INSTALL_MANPATH}/man8/hping2.8
+ mkdir -p $(DESTDIR)${INSTALL_MANPATH}/fr/man8
+ cp ./docs/french/hping2-fr.8 $(DESTDIR)${INSTALL_MANPATH}/fr/man8
+ chmod 644 $(DESTDIR)${INSTALL_MANPATH}/fr/man8/hping2-fr.8
strip: hping2
@ls -l ./hping2