2010-03-21 01:29:31 +01:00
|
|
|
# Description: web application security scanner
|
2020-06-20 23:29:30 +00:00
|
|
|
# URL: https://github.com/spinkham/skipfish
|
2010-03-21 01:29:31 +01:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2020-05-28 16:08:30 +00:00
|
|
|
# Depends on: libpcre openssl1 zlib libidn
|
2010-03-21 01:29:31 +01:00
|
|
|
|
|
|
|
name=skipfish
|
2012-12-21 21:59:08 +01:00
|
|
|
version=2.10b
|
2010-03-21 01:29:31 +01:00
|
|
|
release=1
|
2020-05-25 23:20:29 +00:00
|
|
|
source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$name/$name-$version.tgz
|
2020-05-28 16:08:30 +00:00
|
|
|
skipfish.patch skipfish-openssl-1.0.patch)
|
2010-03-21 01:29:31 +01:00
|
|
|
|
|
|
|
build() {
|
2010-08-07 18:10:31 +02:00
|
|
|
cd $name-$version
|
2013-11-08 22:42:29 +01:00
|
|
|
|
2020-05-25 23:20:29 +00:00
|
|
|
patch -Np0 -i $SRC/skipfish.patch
|
2020-05-28 16:08:30 +00:00
|
|
|
patch -Np0 -i $SRC/skipfish-openssl-1.0.patch
|
2013-11-08 22:42:29 +01:00
|
|
|
sed -i -e 's|"assets"|"/usr/share/skipfish/assets"|g' src/config.h
|
|
|
|
sed -i -e 's|"signatures/|"/usr/share/skipfish/signatures/|g' src/config.h
|
|
|
|
sed -i -e 's|include signatures/|include /usr/share/skipfish/signatures/|g' signatures/signatures.conf
|
|
|
|
|
2020-05-28 16:08:30 +00:00
|
|
|
CFLAGS+=" -I/usr/include/openssl-1.0"
|
|
|
|
LDFLAGS+=" -I/usr/lib/openssl-1.0"
|
2010-03-21 01:29:31 +01:00
|
|
|
make
|
|
|
|
rm assets/COPYING
|
2013-11-08 22:42:29 +01:00
|
|
|
|
|
|
|
for i in assets dictionaries signatures; do
|
|
|
|
install -m 755 -d $PKG/usr/share/skipfish/"$i"
|
|
|
|
install -m 644 "$i"/* $PKG/usr/share/skipfish/"$i"
|
|
|
|
done
|
|
|
|
|
2010-03-21 01:29:31 +01:00
|
|
|
install -m 755 -D skipfish $PKG/usr/bin/skipfish
|
|
|
|
}
|