milis/talimatname/genel/w/wpscan/talimat

42 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: WordPress zafiyet tarayıcısı
# URL: http://wpscan.org
# Paketçi: yakar
# Gerekler: ruby-bundler libxslt yaml curl libxml2
# Grup: güvenlik
isim=wpscan
surum=3.3.3
devir=1
kaynak=(https://github.com/wpscanteam/wpscan/archive/v${surum}.tar.gz::$isim-$surum.tar.gz)
derle() {
cd $SRC/${isim}-${surum}
bundle config build.nokogiri --use-system-libraries
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}/bin/${isim} "\$@"
EOF
chmod 755 "${PKG}/usr/bin/${isim}"
install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${isim}"
find "${PKG}" \( -name gem_make.out -or -name mkmf.log \) -delete
# desktop
mkdir -p "$PKG/usr/share/applications/"
cat > $PKG/usr/share/applications/$isim.desktop << BASLA
[Desktop Entry]
Name=wpscan
Exec=sh -c "wpscan;${SHELL:-bash}"
Terminal=true
Icon=wpscan
Type=Application
Categories=Network;X-Komutan;
Version=1.0
BASLA
}