diff options
Diffstat (limited to 'development')
-rw-r--r-- | development/flawfinder/README | 4 | ||||
-rw-r--r-- | development/flawfinder/flawfinder.SlackBuild | 66 | ||||
-rw-r--r-- | development/flawfinder/flawfinder.info | 10 | ||||
-rw-r--r-- | development/flawfinder/slack-desc | 19 |
4 files changed, 99 insertions, 0 deletions
diff --git a/development/flawfinder/README b/development/flawfinder/README new file mode 100644 index 0000000000000..75c5d18494e91 --- /dev/null +++ b/development/flawfinder/README @@ -0,0 +1,4 @@ +Flawfinder is a program that examines source code and reports possible +security weaknesses ("flaws") sorted by risk level. It's very useful for +quickly finding and removing at least some potential security problems +before a program is widely released to the public. diff --git a/development/flawfinder/flawfinder.SlackBuild b/development/flawfinder/flawfinder.SlackBuild new file mode 100644 index 0000000000000..f69d04d653719 --- /dev/null +++ b/development/flawfinder/flawfinder.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# Slackware build script for flawfinder + +# Written by Andrzej Telszewski <atelszewski@gmail.com> + +PRGNAM=flawfinder +VERSION=${VERSION:-1.27} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +make install \ + INSTALL_DIR_BIN=$PKG/usr/bin \ + INSTALL_DIR_MAN=$PKG/usr/man/man1 + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + announcement ChangeLog COPYING correct-results.html correct-results.txt \ + flawfinder.pdf flawtest.c INSTALL.txt junk.c README sloctest.c \ + test-results.html test-results.txt test.c test2.c \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/flawfinder/flawfinder.info b/development/flawfinder/flawfinder.info new file mode 100644 index 0000000000000..12d01d933aaf2 --- /dev/null +++ b/development/flawfinder/flawfinder.info @@ -0,0 +1,10 @@ +PRGNAM="flawfinder" +VERSION="1.27" +HOMEPAGE="http://www.dwheeler.com/flawfinder/" +DOWNLOAD="http://www.dwheeler.com/flawfinder/flawfinder-1.27.tar.gz" +MD5SUM="50fff67dd439f42b785577ed8b3a3f7d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Andrzej Telszewski" +EMAIL="atelszewski@gmail.com" +APPROVED="rworkman" diff --git a/development/flawfinder/slack-desc b/development/flawfinder/slack-desc new file mode 100644 index 0000000000000..53314ffa245cd --- /dev/null +++ b/development/flawfinder/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +flawfinder: flawfinder (C/C++ source code security weaknesses scanner) +flawfinder: +flawfinder: Flawfinder is a program that examines source code and reports +flawfinder: possible security weaknesses ("flaws") sorted by risk level. +flawfinder: +flawfinder: It's very useful for quickly finding and removing at least some +flawfinder: potential security problems before a program is widely released +flawfinder: to the public. +flawfinder: +flawfinder: Homepage: http://www.dwheeler.com/flawfinder/ +flawfinder: |