Merge pull request #181 from yakar/master

wpscan 2.9.2 paketlendi.
This commit is contained in:
Milli İşletim Sistemi (Milis Linux) 2017-07-02 16:58:37 +03:00 committed by GitHub
commit b869bb1267
2 changed files with 35 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}"
}

View File

@ -0,0 +1,6 @@
#!/bin/sh
cd /opt/wpscan
bundler install
/usr/bin/wpscan --update >/dev/null 2>&1