openbsd-ports/security/nessus/core/patches/patch-Makefile
aanriot dd89534c16 - perform another substitution in nessusd.8 (@NESSUSD_STATEDIR@).
- fix WANTLIB.
- bump PKGNAME.

ok naddy@
2007-03-21 21:29:32 +00:00

52 lines
3.4 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2007/03/21 21:29:32 aanriot Exp $
--- Makefile.orig Sun Jan 15 16:37:55 2006
+++ Makefile Wed Mar 21 08:16:51 2007
@@ -10,35 +10,16 @@ nessus.tmpl: nessus.tmpl.in configure VE
touch $@
install: all $(CLIENT_INSTALL) install-bin install-man
- @echo
- @echo ' --------------------------------------------------------------'
- @echo ' nessus-core has been sucessfully installed. '
- @echo " Make sure that $(bindir) and $(sbindir) are in your PATH before"
- @echo " you continue."
- @echo " nessusd has been installed into $(sbindir)"
- @echo ' --------------------------------------------------------------'
- @echo
install-bin:
test -d $(DESTDIR)${sbindir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${sbindir}
$(INSTALL) -m $(SERVERMODE) ${make_bindir}/nessusd $(DESTDIR)${sbindir}
$(INSTALL) -m $(SERVERMODE) ${make_bindir}/nessus-check-signature $(DESTDIR)${sbindir}
- test -d $(DESTDIR)${sysconfdir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${sysconfdir}
- test -d $(DESTDIR)${sysconfdir}/nessus || $(INSTALL_DIR) -m 755 $(DESTDIR)${sysconfdir}/nessus
- test -d $(DESTDIR)${NESSUSD_DATADIR} || \
- $(INSTALL_DIR) -m $(PLUGINSDIRMODE) $(DESTDIR)${NESSUSD_DATADIR}
- test -d $(DESTDIR)$(NESSUSD_PLUGINS) || \
- $(INSTALL_DIR) -m $(PLUGINSDIRMODE) $(DESTDIR)$(NESSUSD_PLUGINS)
test -d $(DESTDIR)${includedir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${includedir}
test -d $(DESTDIR)${includedir}/nessus || $(INSTALL_DIR) -m 755 $(DESTDIR)${includedir}/nessus
- test -d $(DESTDIR)${localstatedir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${localstatedir}
- test -d $(DESTDIR)${NESSUSD_STATEDIR} || $(INSTALL_DIR) -m 755 $(DESTDIR)${NESSUSD_STATEDIR}
- test -d $(DESTDIR)${NESSUSD_STATEDIR}/users || $(INSTALL_DIR) -m 755 $(DESTDIR)${NESSUSD_STATEDIR}/users
- test -d $(DESTDIR)${NESSUSD_STATEDIR}/logs || $(INSTALL_DIR) -m 755 $(DESTDIR)${NESSUSD_STATEDIR}/logs
- test -d $(DESTDIR)${NESSUSD_STATEDIR}/tmp || $(INSTALL_DIR) -m 755 $(DESTDIR)${NESSUSD_STATEDIR}/tmp
- test -d $(DESTDIR)${NESSUSD_STATEDIR}/jobs || $(INSTALL_DIR) -m 755 $(DESTDIR)${NESSUSD_STATEDIR}/jobs
- test -d $(DESTDIR)${NESSUSD_LOGDIR} || $(INSTALL_DIR) -m 755 $(DESTDIR)${NESSUSD_LOGDIR}
- $(INSTALL) -c -m 0444 nessus-services $(DESTDIR)${NESSUSD_STATEDIR}/
+ test -d $(DESTDIR)${prefix}/share/examples/nessus || $(INSTALL_DIR) -m 755 $(DESTDIR)${prefix}/share/examples/nessus/
+ test -d $(DESTDIR)${prefix}/lib/nessus/plugins || $(INSTALL_DIR) -m 755 $(DESTDIR)${prefix}/lib/nessus/plugins/
+ $(INSTALL) -c -m 0444 nessus-services $(DESTDIR)${prefix}/share/examples/nessus/
$(INSTALL) -c -m 0444 include/config.h $(DESTDIR)${includedir}/nessus
$(INSTALL) -c -m 0444 include/ntcompat.h $(DESTDIR)${includedir}/nessus
$(INSTALL) -c -m 0444 include/includes.h $(DESTDIR)${includedir}/nessus
@@ -105,7 +86,7 @@ $(MAN_NESSUS_1) : $(MAN_NESSUS_1).in
@sed -e 's?@NESSUSD_CONFDIR@?${NESSUSD_CONFDIR}?g;s?@NESSUSD_DATADIR@?${NESSUSD_DATADIR}?g;s?@NESSUSD_PLUGINS@?${NESSUSD_PLUGINS}?g;' $(MAN_NESSUS_1).in >$(MAN_NESSUS_1)
$(MAN_NESSUSD_8) : $(MAN_NESSUSD_8).in
- @sed -e 's?@NESSUSD_CONFDIR@?${NESSUSD_CONFDIR}?g;s?@NESSUSD_DATADIR@?${NESSUSD_DATADIR}?g;s?@NESSUSD_PLUGINS@?${NESSUSD_PLUGINS}?g;' $(MAN_NESSUSD_8).in >$(MAN_NESSUSD_8)
+ @sed -e 's?@NESSUSD_CONFDIR@?${NESSUSD_CONFDIR}?g;s?@NESSUSD_DATADIR@?${NESSUSD_DATADIR}?g;s?@NESSUSD_PLUGINS@?${NESSUSD_PLUGINS}?g;s?@NESSUSD_STATEDIR@?${NESSUSD_STATEDIR}?g;' $(MAN_NESSUSD_8).in >$(MAN_NESSUSD_8)
clean: