diff options
author | Andrea Villa <andreakarimodm@gmail.com> | 2013-06-22 00:25:50 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2013-06-22 21:34:48 -0300 |
commit | e4dce646b1267c9fee4c6524471487a6ce18bfe2 (patch) | |
tree | 307aa2acee076335befe133e9f0e2d75e5308f6b /network/metasploit/metasploit.SlackBuild | |
parent | f10e44de63078dfa7d41864981d257c55603a927 (diff) | |
download | slackbuilds-e4dce646b1267c9fee4c6524471487a6ce18bfe2.tar.gz |
network/metasploit: Updated for version 4.6.0.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/metasploit/metasploit.SlackBuild')
-rw-r--r-- | network/metasploit/metasploit.SlackBuild | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/network/metasploit/metasploit.SlackBuild b/network/metasploit/metasploit.SlackBuild index 4ce29d3799..2c846a468c 100644 --- a/network/metasploit/metasploit.SlackBuild +++ b/network/metasploit/metasploit.SlackBuild @@ -23,8 +23,11 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# If you want to build a different version from the one defined in the VERSION +# variable just try to launch the script redefining this. + PRGNAM=metasploit -VERSION=${VERSION:-4.5.2} +VERSION=${VERSION:-4.6.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -85,6 +88,7 @@ mkdir -p $TMP $PKG $OUTPUT echo "Installing the Metasploit Framework..." chown root:root $CWD/metasploit-$VERSION-linux$INSTALLERARCH-installer.run chmod 755 $CWD/metasploit-$VERSION-linux$INSTALLERARCH-installer.run + $CWD/metasploit-$VERSION-linux$INSTALLERARCH-installer.run \ --mode unattended \ --unattendedmodeui none \ @@ -104,6 +108,7 @@ mv /$INSTDIR $PKG/$BASEINSTDIR/ # the uninstall script anyway, so no problem if we made it more Slackware-ish echo "Fixing Metasploit Framework init script..." mkdir -p $PKG/etc/rc.d +rm -f /etc/rc.d/rc?.d/S80metasploit /etc/rc.d/rc?.d/K30metasploit mv /etc/init.d/$INITSCRIPT $PKG/etc/rc.d/rc.$INITSCRIPT.new chown root:root $PKG/etc/rc.d/rc.$INITSCRIPT.new chmod 755 $PKG/etc/rc.d/rc.$INITSCRIPT.new @@ -136,6 +141,9 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +# Create a symbolic link to msf3 core directory for convenience +ln -s apps/pro/msf3 $PKG/$INSTDIR/msf3 + # Do NOT chown -R root:root or it will bork the shipped PostgreSQL # installation: the bitrock installer should have taken care of permissions cd $PKG |