Create certificates on separate Makefile target.
It will fix extra files on pointyhat. Submitted by: maintainer
This commit is contained in:
parent
fc64824d90
commit
576bf06eee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124128
@ -85,12 +85,20 @@ post-install:
|
||||
fi
|
||||
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus
|
||||
.if ! exists(${PREFIX}/var/CA/serverkey.pem)
|
||||
.if ! defined(BATCH)
|
||||
${PREFIX}/sbin/nessus-mkcert
|
||||
.else
|
||||
${PREFIX}/sbin/nessus-mkcert -q
|
||||
.endif
|
||||
@${ECHO} ""
|
||||
@${ECHO} "**************************************************************************"
|
||||
@${ECHO} "To create and install a new certificate, type \"make cert\""
|
||||
@${ECHO} "**************************************************************************"
|
||||
@${ECHO} ""
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
cert:
|
||||
@${ECHO} ""
|
||||
@${ECHO} "**************************************************************************"
|
||||
@${ECHO} "The new certificate will be saved into ${PREFIX}/var/CA/serverkey.pem"
|
||||
@${ECHO} "**************************************************************************"
|
||||
@${ECHO} ""
|
||||
${PREFIX}/sbin/nessus-mkcert
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/security/nessus-devel/scripts/Attic/pkg-deinstall,v 1.1 2004-11-09 18:29:42 sem Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/security/nessus-devel/scripts/Attic/pkg-deinstall,v 1.2 2004-12-15 16:01:51 sem Exp $
|
||||
#
|
||||
|
||||
ECHO_CMD=echo
|
||||
@ -18,9 +18,16 @@ POST-DEINSTALL)
|
||||
${ECHO_CMD} " rm -Rf %%PREFIX%%/var/nessus"
|
||||
${ECHO_CMD}
|
||||
fi
|
||||
rm_dir=""
|
||||
if [ -d %%PREFIX%%/com/CA ]; then
|
||||
rm_dir=" %%PREFIX%%/com/CA"
|
||||
fi
|
||||
if [ -d %%PREFIX%%/var/CA ]; then
|
||||
rm_dir="$rm_dir %%PREFIX%%/var/CA"
|
||||
fi
|
||||
if [ "x$rm_dir" != "x" ]; then
|
||||
${ECHO_CMD} "- to remove the Certificate Authority associated with nessus:"
|
||||
${ECHO_CMD} " rm -Rf %%PREFIX%%/com/CA"
|
||||
${ECHO_CMD} " rm -Rf$rm_dir"
|
||||
${ECHO_CMD}
|
||||
fi
|
||||
${ECHO_CMD} "If you are upgrading, don't forget to restart"
|
||||
|
@ -86,12 +86,20 @@ post-install:
|
||||
fi
|
||||
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus
|
||||
.if ! exists(${PREFIX}/var/CA/serverkey.pem)
|
||||
.if ! defined(BATCH)
|
||||
${PREFIX}/sbin/nessus-mkcert
|
||||
.else
|
||||
${PREFIX}/sbin/nessus-mkcert -q
|
||||
.endif
|
||||
@${ECHO} ""
|
||||
@${ECHO} "**************************************************************************"
|
||||
@${ECHO} "To create and install a new certificate, type \"make cert\""
|
||||
@${ECHO} "**************************************************************************"
|
||||
@${ECHO} ""
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
cert:
|
||||
@${ECHO} ""
|
||||
@${ECHO} "**************************************************************************"
|
||||
@${ECHO} "The new certificate will be saved into ${PREFIX}/var/CA/serverkey.pem"
|
||||
@${ECHO} "**************************************************************************"
|
||||
@${ECHO} ""
|
||||
${PREFIX}/sbin/nessus-mkcert
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/security/nessus/scripts/Attic/pkg-deinstall,v 1.1 2004-11-09 18:29:03 sem Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/security/nessus/scripts/Attic/pkg-deinstall,v 1.2 2004-12-15 16:01:51 sem Exp $
|
||||
#
|
||||
|
||||
ECHO_CMD=echo
|
||||
@ -18,9 +18,16 @@ POST-DEINSTALL)
|
||||
${ECHO_CMD} " rm -Rf %%PREFIX%%/var/nessus"
|
||||
${ECHO_CMD}
|
||||
fi
|
||||
rm_dir=""
|
||||
if [ -d %%PREFIX%%/com/CA ]; then
|
||||
rm_dir=" %%PREFIX%%/com/CA"
|
||||
fi
|
||||
if [ -d %%PREFIX%%/var/CA ]; then
|
||||
rm_dir="$rm_dir %%PREFIX%%/var/CA"
|
||||
fi
|
||||
if [ "x$rm_dir" != "x" ]; then
|
||||
${ECHO_CMD} "- to remove the Certificate Authority associated with nessus:"
|
||||
${ECHO_CMD} " rm -Rf %%PREFIX%%/com/CA"
|
||||
${ECHO_CMD} " rm -Rf$rm_dir"
|
||||
${ECHO_CMD}
|
||||
fi
|
||||
${ECHO_CMD} "If you are upgrading, don't forget to restart"
|
||||
|
Loading…
Reference in New Issue
Block a user