wpscan 2.9.2 talimat

This commit is contained in:
Aydın Yakar 2017-07-02 16:55:12 +03:00 committed by GitHub
parent fcfbf57a6d
commit b6e60f80cc
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# Description: WordPress zafiyet tarayıcısı
# URL: http://wpscan.org
# Packager: yakar (aydin@komutan.org)
# Depends on: ruby-bundler libxslt yaml curl
name=wpscan
version=2.9.2
release=1
source=(https://github.com/wpscanteam/wpscan/archive/${version}.tar.gz https://github.com/wpscanteam/wpscan/commit/f6644eebf95baea3356290ecd6364f0a4a456406.patch)
build() {
cd $SRC/${name}-${version}
bundle config build.nokogiri --use-system-libraries
echo 2.3.3 > .ruby-version
patch -p1 < ../f6644eebf95baea3356290ecd6364f0a4a456406.patch
install -d "${PKG}/opt/${name}"
cp -ra --no-preserve=owner . "${PKG}/opt/${name}"
install -d "${PKG}/usr/bin"
cat > "${PKG}/usr/bin/${name}" << EOF
#!/bin/sh
BUNDLE_GEMFILE=/opt/${name}/Gemfile bundle exec ruby /opt/${name}/${name}.rb "\$@"
EOF
chmod 755 "${PKG}/usr/bin/${name}"
install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${name}"
install -Dm 644 CHANGELOG.md DISCLAIMER.txt README.md -t "${PKG}/usr/share/doc/${name}"
}