wok-6.x annotate metasploit/receipt @ rev 24092

Up get-pcem-roms (2.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 18 13:15:53 2021 +0000 (2021-07-18)
parents 3ae2d1f7b186
children ac8ca9758df1
rev   line source
slaxemulator@9444 1 # SliTaz package receipt.
slaxemulator@9444 2
slaxemulator@9444 3 PACKAGE="metasploit"
pascal@23836 4 VERSION="5.0.91"
slaxemulator@9444 5 CATEGORY="network"
Hans-G?nter@23177 6 SHORT_DESC="An advanced open-source platform for developing, testing, and using exploit code."
slaxemulator@9444 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15584 8 LICENSE="BSD"
pascal@20671 9 WEB_SITE="https://www.metasploit.com/"
slaxemulator@9444 10
Hans-G?nter@21434 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21434 12 WGET_URL="https://github.com/rapid7/$PACKAGE-framework/archive/$VERSION.tar.gz"
Hans-G?nter@21434 13
Hans-G?nter@21434 14 DEPENDS="libpcap ruby"
pascal@15584 15
pascal@24055 16 current_version()
pascal@24055 17 {
pascal@24055 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 20 }
pascal@24055 21
slaxemulator@9444 22 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9444 23 genpkg_rules()
slaxemulator@9444 24 {
Hans-G?nter@21434 25 mkdir -p $fs/usr/share/$PACKAGE
Hans-G?nter@21434 26 mkdir -p $fs/etc/profile.d
Hans-G?nter@21434 27
Hans-G?nter@23177 28 cp -a $src/* $fs/usr/share/$PACKAGE
Hans-G?nter@23177 29 echo "export PATH=$PATH:/usr/share/$PACKAGE" > \
Hans-G?nter@23177 30 $fs/etc/profile.d/$PACKAGE.sh
Hans-G?nter@23177 31 chmod 755 $fs/etc/profile.d/$PACKAGE.sh
slaxemulator@9444 32 }