Package Details: metasploit 4.12.4-1

Git Clone URL: https://aur.archlinux.org/metasploit.git (read-only)
Package Base: metasploit
Description: An advanced open-source platform for developing, testing, and using exploit code
Upstream URL: https://www.metasploit.com/
Licenses: BSD
Submitter: None
Maintainer: anthraxx
Last Packager: anthraxx
Votes: 315
Popularity: 4.915960
First Submitted: 2005-12-07 00:45
Last Updated: 2016-05-27 15:19

Latest Comments

evilgnome commented on 2016-05-11 16:44

Just in case someone else finds this useful:

sed -i 's;bundle install;PATH=/usr/bin:$(/usr/bin/ruby -rubygems -e "puts Gem.user_dir")/bin:$PATH bundle install;' PKGBUILD

will allow folks using rbenv to install this properly without a chroot or build user

anthraxx commented on 2016-04-14 13:17

sorry but I won't include workarounds/hacks for custom environments as such as that would mean to try to support any possible weird custom environments. I also had a guy once who insisted that i should replace all 'python' shebangs with 'python3' just because he replaced his 'python' symlink with 'python2'.

Custom environments are: custom. If you don't like to build in a clean chroot, you can simply create a new user called 'build' that does not expose rbenv environment variables.

evilgnome commented on 2016-04-14 00:13

FWIW: The pkgbuild will work for folks who use rbenv if you add this line to the beginning of build():

export PATH=/usr/bin:$(/usr/bin/ruby -rubygems -e "puts Gem.user_dir")/bin:$PATH

anthraxx commented on 2016-04-13 23:36

@evilgnome: sure but if you alter your environment than thats your environment that needs to be made compatible, not the build script. Feel free to build this package in a clean chroot using the devtools package.

evilgnome commented on 2016-04-13 23:27

@anthraxx: if someone has rbenv installed, and loaded with their shell profile, it will pick up on the file ".ruby-version" in the fetched source, and try to change the present shell environment to use the version of ruby specified in the file.

You should be able to reproduce the problem by installing rbenv and putting this in your shell profile:

eval "$(rbenv init -)"

Screenshot: https://i.imgur.com/h7bzFSG.png

anthraxx commented on 2016-03-24 10:27

@marcs: doesn't look package related, feels like your harddrive or box is dying. especially that bsdtar complains about the usr/ directory, where there is no doubt it should exist.

marcs commented on 2016-03-24 09:35

I have a packaging error during installation:
http://pastebin.com/pYgQyUFP

Then if i try to launch msfconsole:
$ ./msfconsole
fatal: Not a git repository (or any of the parent directories): .git
Could not find rake-10.4.2 in any of the sources
Run `bundle install` to install missing gems.

anthraxx commented on 2016-03-14 17:29

@evilgnome: don't know what you mean. check your local ruby setup, this builds fine in a clean chroot with default ruby version 2.3.0p0 and works properly (running that myself)

evilgnome commented on 2016-03-14 17:27

This pkgbuild is incomplete for me. This is what I needed to do on my own so that this would build:

sudo pacman -S rbenv ruby-build
rbenv install -s 2.1.8
mkdir tmp
cd tmp
rbenv local 2.1.8
gem install bundler

anthraxx commented on 2016-03-05 16:22

GI_Jack: indeed, bundler now packages all ruby dependencies into the package and those contain native ruby extensions which are depending on arch

All comments