2018-06-09 00:06:58 +02:00
|
|
|
|
# Tanım: WordPress zafiyet tarayıcısı
|
|
|
|
|
# URL: http://wpscan.org
|
2018-07-26 09:06:06 +02:00
|
|
|
|
# Paketçi: yakar_(aydin@komutan.org)
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# Gerekler: ruby-bundler libxslt yaml curl
|
2018-07-26 09:06:06 +02:00
|
|
|
|
# Grup: güvenlik
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=wpscan
|
|
|
|
|
surum=2.9.2
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://github.com/wpscanteam/wpscan/archive/${surum}.tar.gz https://github.com/wpscanteam/wpscan/commit/f6644eebf95baea3356290ecd6364f0a4a456406.patch)
|
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
cd $SRC/${isim}-${surum}
|
|
|
|
|
bundle config build.nokogiri --use-system-libraries
|
|
|
|
|
echo 2.3.3 > .ruby-version
|
|
|
|
|
patch -p1 < ../f6644eebf95baea3356290ecd6364f0a4a456406.patch
|
|
|
|
|
|
|
|
|
|
install -d "${PKG}/opt/${isim}"
|
|
|
|
|
cp -ra --no-preserve=owner . "${PKG}/opt/${isim}"
|
|
|
|
|
|
|
|
|
|
install -d "${PKG}/usr/bin"
|
|
|
|
|
cat > "${PKG}/usr/bin/${isim}" << EOF
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
BUNDLE_GEMFILE=/opt/${isim}/Gemfile bundle exec ruby /opt/${isim}/${isim}.rb "\$@"
|
|
|
|
|
EOF
|
|
|
|
|
chmod 755 "${PKG}/usr/bin/${isim}"
|
|
|
|
|
|
|
|
|
|
install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${isim}"
|
|
|
|
|
install -Dm 644 CHANGELOG.md DISCLAIMER.txt README.md -t "${PKG}/usr/share/doc/${isim}"
|
|
|
|
|
}
|