milis/talimatname/genel/w/wpscan/talimat

30 lines
977 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: WordPress zafiyet tarayıcısı
2017-07-02 15:55:12 +02:00
# URL: http://wpscan.org
2017-10-27 20:46:27 +02:00
# Paketçi: yakar (aydin@komutan.org)
# Gerekler: ruby-bundler libxslt yaml curl
2017-07-02 15:55:12 +02:00
2017-10-28 14:10:23 +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)
2017-07-02 15:55:12 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $SRC/${isim}-${surum}
2017-07-02 15:55:12 +02:00
bundle config build.nokogiri --use-system-libraries
echo 2.3.3 > .ruby-version
patch -p1 < ../f6644eebf95baea3356290ecd6364f0a4a456406.patch
2017-10-28 14:10:23 +02:00
install -d "${PKG}/opt/${isim}"
cp -ra --no-preserve=owner . "${PKG}/opt/${isim}"
2017-07-02 15:55:12 +02:00
install -d "${PKG}/usr/bin"
2017-10-28 14:10:23 +02:00
cat > "${PKG}/usr/bin/${isim}" << EOF
2017-07-02 15:55:12 +02:00
#!/bin/sh
2017-10-28 14:10:23 +02:00
BUNDLE_GEMFILE=/opt/${isim}/Gemfile bundle exec ruby /opt/${isim}/${isim}.rb "\$@"
2017-07-02 15:55:12 +02:00
EOF
2017-10-28 14:10:23 +02:00
chmod 755 "${PKG}/usr/bin/${isim}"
2017-07-02 15:55:12 +02:00
2017-10-28 14:10:23 +02:00
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}"
2017-07-02 15:55:12 +02:00
}