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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
--- Makefile
+++ Makefile
49,50c49,50
< test -d ${prefix} || ${INSTALL_DIR} -m 755 ${prefix}
< test -d ${includedir}/openvas || ${INSTALL_DIR} -m 755 ${includedir}/openvas
---
> test -d $(DESTDIR)${prefix} || ${INSTALL_DIR} -m 755 $(DESTDIR)${prefix}
> test -d $(DESTDIR)${includedir}/openvas || ${INSTALL_DIR} -m 755 $(DESTDIR)${includedir}/openvas
55,80c55,80
< $(INSTALL) -m 0444 include/libopenvas.h ${includedir}/openvas
< $(INSTALL) -m 0444 include/libvers.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/getopt.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/arglists.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/bpf_share.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/ftp_funcs.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/harglists.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/kb.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/network.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/pcap_openvas.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/plugutils.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/popen.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/proctitle.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/rand.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/resolve.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/scanners_utils.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/services1.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/share_fd.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/store.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/system.h ${includedir}/openvas
< $(INSTALL) -m 0444 libopenvas/www_funcs.h ${includedir}/openvas
< test -d ${bindir} || ${INSTALL_DIR} -m 755 ${bindir}
< $(INSTALL) -m 0755 libopenvas-config ${bindir}/libopenvas-config
< test -d ${mandir} || ${INSTALL_DIR} -m 755 ${mandir}
< test -d ${mandir}/man1 || ${INSTALL_DIR} -m 755 ${mandir}/man1
< $(INSTALL) -m 0644 libopenvas-config.1 ${mandir}/man1
---
> $(INSTALL) -m 0444 include/libopenvas.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 include/libvers.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/getopt.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/arglists.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/bpf_share.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/ftp_funcs.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/harglists.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/kb.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/network.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/pcap_openvas.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/plugutils.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/popen.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/proctitle.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/rand.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/resolve.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/scanners_utils.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/services1.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/share_fd.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/store.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/system.h $(DESTDIR)${includedir}/openvas
> $(INSTALL) -m 0444 libopenvas/www_funcs.h $(DESTDIR)${includedir}/openvas
> test -d $(DESTDIR)${bindir} || ${INSTALL_DIR} -m 755 $(DESTDIR)${bindir}
> $(INSTALL) -m 0755 libopenvas-config $(DESTDIR)${bindir}/libopenvas-config
> test -d $(DESTDIR)${mandir} || ${INSTALL_DIR} -m 755 $(DESTDIR)${mandir}
> test -d $(DESTDIR)${mandir}/man1 || ${INSTALL_DIR} -m 755 $(DESTDIR)${mandir}/man1
> $(INSTALL) -m 0644 libopenvas-config.1 $(DESTDIR)${mandir}/man1
85c85
< @echo " Make sure that $(bindir) is in your PATH before you"
---
> @echo " Make sure that $(DESTDIR)$(bindir) is in your PATH before you"
87c87
< @if [ -f /etc/ld.so.conf ]; then echo " Be sure to add $(libdir) in /etc/ld.so.conf and type 'ldconfig'"; else echo ""; fi
---
> @if [ -f /etc/ld.so.conf ]; then echo " Be sure to add $(DESTDIR)$(libdir) in /etc/ld.so.conf and type 'ldconfig'"; else echo ""; fi
|