From 3c552253a18b3decd76695144c9075db98cec1f6 Mon Sep 17 00:00:00 2001 From: steven Date: Thu, 21 Sep 2006 20:52:26 +0000 Subject: [PATCH] import pscan, a limited problem scanner for C source code from Steffen Wendzel --- devel/pscan/Makefile | 34 ++++++++++++++++++++++++++++++++++ devel/pscan/distinfo | 8 ++++++++ devel/pscan/pkg/DESCR | 2 ++ devel/pscan/pkg/PLIST | 5 +++++ 4 files changed, 49 insertions(+) create mode 100644 devel/pscan/Makefile create mode 100644 devel/pscan/distinfo create mode 100644 devel/pscan/pkg/DESCR create mode 100644 devel/pscan/pkg/PLIST diff --git a/devel/pscan/Makefile b/devel/pscan/Makefile new file mode 100644 index 00000000000..bece42ec4b0 --- /dev/null +++ b/devel/pscan/Makefile @@ -0,0 +1,34 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/09/21 20:52:26 steven Exp $ + +COMMENT= "limited problem scanner for C source files" + +DISTNAME= pscan +PKGNAME= ${DISTNAME}-1.6 +CATEGORIES= devel + +HOMEPAGE= http://www.striker.ottawa.on.ca/~aland/pscan/ + +MAINTAINER= Steffen Wendzel + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE} + +WANTLIB= c + +DIST_SUBDIR= ${PKGNAME} +ALL_TARGET= pscan + +NO_REGRESS= Yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pscan ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/find_formats.sh ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pscan + ${INSTALL_DATA} ${WRKSRC}/test.c ${PREFIX}/share/examples/pscan + +.include diff --git a/devel/pscan/distinfo b/devel/pscan/distinfo new file mode 100644 index 00000000000..d0f8484c7a8 --- /dev/null +++ b/devel/pscan/distinfo @@ -0,0 +1,8 @@ +MD5 (pscan-1.6/pscan.tar.gz) = 9a83db546f0398d2eb7162b9c3f7cecc +MD5 (pscan/pscan.tar.gz) = 9a83db546f0398d2eb7162b9c3f7cecc +RMD160 (pscan-1.6/pscan.tar.gz) = 7c92b2b8c8e2f65dc4a37da37de47170ae24809c +RMD160 (pscan/pscan.tar.gz) = 7c92b2b8c8e2f65dc4a37da37de47170ae24809c +SHA1 (pscan-1.6/pscan.tar.gz) = 7844cabcc1fa014d5d2d192d94565133d60cd51b +SHA1 (pscan/pscan.tar.gz) = 7844cabcc1fa014d5d2d192d94565133d60cd51b +SIZE (pscan-1.6/pscan.tar.gz) = 14555 +SIZE (pscan/pscan.tar.gz) = 14555 diff --git a/devel/pscan/pkg/DESCR b/devel/pscan/pkg/DESCR new file mode 100644 index 00000000000..ead665f4f93 --- /dev/null +++ b/devel/pscan/pkg/DESCR @@ -0,0 +1,2 @@ +PScan is a program which attempts to scan C source files for common +function abuses, which often lead to buffer overflows. diff --git a/devel/pscan/pkg/PLIST b/devel/pscan/pkg/PLIST new file mode 100644 index 00000000000..28054df6123 --- /dev/null +++ b/devel/pscan/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/09/21 20:52:26 steven Exp $ +bin/find_formats.sh +bin/pscan +share/examples/pscan/ +share/examples/pscan/test.c