Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (39 sloc) 1.19 KB
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=192
_pkgname=beef
pkgname=${_pkgname}-git
pkgver=20190505.r3281
pkgrel=1
epoch=1
groups=('archstrike' 'archstrike-exploit')
pkgdesc='Pentesting framework that focuses on web-browser exploitation'
arch=('i686' 'x86_64')
url='http://beefproject.com'
license=('Apache')
options=('!emptydirs')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=('ruby2.5' 'ruby2.5-bundler' 'java-environment' 'python2' 'imagemagick')
makedepends=('git')
source=("${pkgname}::git+http://github.com/beefproject/beef.git")
sha512sums=('SKIP')
pkgver() {
cd ${pkgname}
printf "%s.r%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)"
}
package() {
cd ${pkgname}
# Install the package files
install -dm755 "${pkgdir}/usr/bin"
install -dm755 "${pkgdir}/usr/share/${_pkgname}"
cp -a --no-preserve=ownership * "${pkgdir}/usr/share/${_pkgname}"
cd "${pkgdir}/usr/share/${_pkgname}"
bundle-2.5 install --path vendor/bundle
cat > "${pkgdir}/usr/bin/${_pkgname}" << EOF
#!/usr/bin/env bash
cd /usr/share/${_pkgname}
unset GEM_HOME
/usr/bin/ruby-2.5 ./${_pkgname} "\$@"
EOF
chmod 0755 "${pkgdir}/usr/bin/${_pkgname}"
}
You can’t perform that action at this time.