diff options
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 |