ruby23 için gerekli düzenleme yapıldı.

This commit is contained in:
Aydın Yakar 2017-07-27 23:54:40 +03:00 committed by GitHub
parent 00da5da2a6
commit f0f8542314
1 changed files with 2 additions and 21 deletions

View File

@ -1,7 +1,7 @@
# Description: Web uygulama güvenliği için modüler pentest aracı. # Description: Web uygulama güvenliği için modüler pentest aracı.
# URL: https://www.arachni-scanner.com # URL: https://www.arachni-scanner.com
# Packager: yakar (aydin@komutan.org) # Packager: yakar (aydin@komutan.org)
# Depends on: ruby23 ruby-bundler23 # Depends on: ruby23 ruby23-bundler
name=arachni name=arachni
version=1.5.1 version=1.5.1
@ -27,36 +27,17 @@ build() {
mkdir -p "$PKG/usr/bin" mkdir -p "$PKG/usr/bin"
mkdir -p "$PKG/usr/share/$name" mkdir -p "$PKG/usr/share/$name"
touch "$PKG/usr/share/$name/.gemkur"
install -Dm644 -t "$PKG/usr/share/doc/$name" *.md install -Dm644 -t "$PKG/usr/share/doc/$name" *.md
install -Dm644 LICENSE.md "$PKG/usr/share/licenses/$name/LICENSE.md" install -Dm644 LICENSE.md "$PKG/usr/share/licenses/$name/LICENSE.md"
#cp --no-preserve=ownership -a * "$PKG/usr/share/$name"
for prog in ${progs} for prog in ${progs}
do do
cat > "$PKG/usr/bin/${prog//_/-}" << EOF cat > "$PKG/usr/bin/${prog//_/-}" << EOF
#!/bin/sh #!/bin/sh
cd /usr/share/$name exec ruby-2.3 /usr/share/$name/bin/$prog "\$@"
if [ -f "/usr/share/$name/.gemkur" ]; then
/usr/bin/arachni_gemkur
fi
if [ -f "/usr/bin/ruby23" ]; then
exec ruby23 /usr/share/$name/bin/$prog "\$@"
else
exec ruby /usr/share/$name/bin/$prog "\$@"
fi
EOF EOF
done done
cat > "$PKG/usr/bin/arachni_gemkur" << EOF
#!/bin/sh
set -e
cd /usr/share/$name
bundler install
rm /usr/share/$name/.gemkur
EOF
chmod +x "$PKG"/usr/bin/* chmod +x "$PKG"/usr/bin/*
} }