contrib/skipfish/Pkgfile

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-03-21 01:29:31 +01:00
# Description: web application security scanner
2020-06-21 01:29:30 +02:00
# URL: https://github.com/spinkham/skipfish
2010-03-21 01:29:31 +01:00
# Maintainer: Thomas Penteker, tek at serverop dot de
# 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-26 01:20:29 +02:00
source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$name/$name-$version.tgz
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
2020-05-26 01:20:29 +02:00
patch -Np0 -i $SRC/skipfish.patch
patch -Np0 -i $SRC/skipfish-openssl-1.0.patch
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
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
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
}