From ff2f259825d8993530b9ff2be571ca181025478d Mon Sep 17 00:00:00 2001 From: lippe Date: Sun, 11 Oct 2009 22:34:23 +0000 Subject: - Fix MASTER_SITES and pkg-descr. - Move pkg-plist to Makefile. - Use patch name as appropriate. - Pass maintainership to submitter. PR: ports/139441 Submitted by: Sylvio Cesar --- security/pscan/Makefile | 8 ++++++-- security/pscan/distinfo | 6 +++--- security/pscan/files/patch-Makefile | 18 ++++++++++++++++++ security/pscan/files/patch-aa | 18 ------------------ security/pscan/pkg-descr | 2 +- security/pscan/pkg-plist | 2 -- 6 files changed, 28 insertions(+), 26 deletions(-) create mode 100644 security/pscan/files/patch-Makefile delete mode 100644 security/pscan/files/patch-aa delete mode 100644 security/pscan/pkg-plist diff --git a/security/pscan/Makefile b/security/pscan/Makefile index b68c63aa239a..0ebc64e345d2 100644 --- a/security/pscan/Makefile +++ b/security/pscan/Makefile @@ -8,13 +8,17 @@ PORTNAME= pscan PORTVERSION= 1.3 CATEGORIES= security devel -MASTER_SITES= http://www.striker.ottawa.on.ca/~aland/pscan/ +MASTER_SITES= http://deployingradius.com/pscan/ DISTNAME= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= scjamorim@bsd.com.br COMMENT= Security C code scanner for misuse of format strings ALL_TARGET= #empty +WRKSRC= ${WRKDIR} + +PLIST_FILES= bin/pscan \ + bin/find_formats do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pscan ${PREFIX}/bin diff --git a/security/pscan/distinfo b/security/pscan/distinfo index f47f1586e078..3a7cbba9c036 100644 --- a/security/pscan/distinfo +++ b/security/pscan/distinfo @@ -1,3 +1,3 @@ -MD5 (pscan.tar.gz) = 9a83db546f0398d2eb7162b9c3f7cecc -SHA256 (pscan.tar.gz) = 0f3a9f5b91ddba5363d77734a717f541260b2154c964b9ce63511b3ff50272ee -SIZE (pscan.tar.gz) = 14555 +MD5 (pscan.tar.gz) = 07083eade2dbd7a9b394189cb2ee400e +SHA256 (pscan.tar.gz) = 00124fa09150ceffaeed222ffee9959b2dd698336a232567fd536c463441f659 +SIZE (pscan.tar.gz) = 17332 diff --git a/security/pscan/files/patch-Makefile b/security/pscan/files/patch-Makefile new file mode 100644 index 000000000000..2dbd480bcd9b --- /dev/null +++ b/security/pscan/files/patch-Makefile @@ -0,0 +1,18 @@ +--- Makefile.orig Sat Sep 2 17:47:37 2000 ++++ Makefile Sat Sep 2 17:48:38 2000 +@@ -13,11 +13,14 @@ + #CC=gcc -Wall -g + #LEX=flex + ++CC ?= gcc ++CFLAGS ?= -O -pipe ++ + pscan: scanner.yy.o pscan.o + $(CC) scanner.yy.o pscan.o -o pscan + + scanner.yy.o: scanner.yy.c +- $(CC) -c scanner.yy.c -o scanner.yy.o ++ $(CC) $(CFLAGS) -c scanner.yy.c -o scanner.yy.o + + scanner.yy.c: scanner.l + $(LEX) -t scanner.l > scanner.yy.c diff --git a/security/pscan/files/patch-aa b/security/pscan/files/patch-aa deleted file mode 100644 index 2dbd480bcd9b..000000000000 --- a/security/pscan/files/patch-aa +++ /dev/null @@ -1,18 +0,0 @@ ---- Makefile.orig Sat Sep 2 17:47:37 2000 -+++ Makefile Sat Sep 2 17:48:38 2000 -@@ -13,11 +13,14 @@ - #CC=gcc -Wall -g - #LEX=flex - -+CC ?= gcc -+CFLAGS ?= -O -pipe -+ - pscan: scanner.yy.o pscan.o - $(CC) scanner.yy.o pscan.o -o pscan - - scanner.yy.o: scanner.yy.c -- $(CC) -c scanner.yy.c -o scanner.yy.o -+ $(CC) $(CFLAGS) -c scanner.yy.c -o scanner.yy.o - - scanner.yy.c: scanner.l - $(LEX) -t scanner.l > scanner.yy.c diff --git a/security/pscan/pkg-descr b/security/pscan/pkg-descr index 3b180bc5d44f..783d697995a9 100644 --- a/security/pscan/pkg-descr +++ b/security/pscan/pkg-descr @@ -9,4 +9,4 @@ An example of the kind of situation pscan looks for is the following: variable = "%s"; /* or malicious user input */ sprintf(buffer, variable); /* BAD! */ -WWW: http://www.striker.ottawa.on.ca/~aland/pscan/ +WWW: http://deployingradius.com/pscan/ diff --git a/security/pscan/pkg-plist b/security/pscan/pkg-plist deleted file mode 100644 index 2fd7e66ab116..000000000000 --- a/security/pscan/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -bin/pscan -bin/find_formats -- cgit