641cff9b9c
- clean up Makefile and wrapper scripts some more - better INSTALL/DEINSTALL script - be able to compile w/ old nessus pkg installed (thx rdump@river.com) - make it think nmap is always present to avoid dependency (espie@)
41 lines
724 B
Plaintext
41 lines
724 B
Plaintext
#!/bin/sh
|
|
#
|
|
# $OpenBSD: INSTALL,v 1.2 2000/07/27 00:23:34 matt Exp $
|
|
#
|
|
# Post-installation script for nessus port
|
|
#
|
|
|
|
set -e
|
|
PATH=/bin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
|
|
umask 022
|
|
|
|
if [ x$2 = xPOST-INSTALL ]
|
|
then
|
|
# See if /etc/nessus exists; if it doesn't, create and populate.
|
|
if [ -d /etc/nessus ]
|
|
then
|
|
cat <<EOT
|
|
|
|
+---------------
|
|
| Example configuration files have been copied to
|
|
| $PREFIX/share/examples/nessus. Your existing /etc/nessus has
|
|
| been left untouched.
|
|
+---------------
|
|
EOT
|
|
else
|
|
mkdir -p /etc/nessus
|
|
cp -R $PREFIX/share/examples/nessus/nessus/* /etc/nessus/
|
|
fi
|
|
|
|
# Make /var/nessus directory for logs and pidfile and etc.
|
|
if [ ! -d /var/nessus ]
|
|
then
|
|
mkdir -pm 0700 /var/nessus
|
|
fi
|
|
fi
|
|
|
|
exit 0
|
|
|