ports/182158: [PATCH] security/ccsrch: [SUMMARIZE CHANGES], take maintainership
Pavel I Volkov
pavelivolkov at gmail.com
Mon Sep 16 16:10:01 UTC 2013
>Number: 182158
>Category: ports
>Synopsis: [PATCH] security/ccsrch: [SUMMARIZE CHANGES], take maintainership
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 16 16:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Pavel I Volkov
>Release: FreeBSD 9.1-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD fb1.local 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #1 r252131: Mon Jun 24 11:18:24 MSK
>Description:
[DESCRIBE CHANGES]
- Changed email address of MAINTAINER
- Allowed use clang for building
- Cleaning 'warning' of compilation stage
- Cleaning for correct portlint checking
Port maintainer (pavelivolkov at googlemail.com) is cc'd.
Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:
--- ccsrch-1.0.3_1.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 327360)
+++ Makefile (working copy)
@@ -1,33 +1,30 @@
-# New ports collection makefile for: ccsrch
-# Date created: 2010-07-21
-# Whom: Pavel I Volkov <pavelivolkov at googlemail.com>
-#
+# Created by: Pavel I Volkov <pavelivolkov at googlemail.com>
# $FreeBSD$
-#
PORTNAME= ccsrch
PORTVERSION= 1.0.3
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://downloads.sourceforge.net/project/${MASTER_SITE_SUBDIR}/
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/Version%20${PORTVERSION}
EXTRACT_SUFX= .tgz
-MAINTAINER= pavelivolkov at googlemail.com
+MAINTAINER= pavelivolkov at gmail.com
COMMENT= Is a tool that searches for credit card numbers (PAN) and track data
-FETCH_ARGS= -pRr
-
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
+FETCH_ARGS= -pRr
+
PORTDOCS= README readme.html
PLIST_FILES= bin/${PORTNAME}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}; \
for f in ${PORTDOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
@@ -34,4 +31,4 @@
done
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: files/patch-Makefile
===================================================================
--- files/patch-Makefile (revision 327360)
+++ files/patch-Makefile (working copy)
@@ -1,5 +1,14 @@
---- Makefile.orig 2010-07-21 17:35:58.000000000 +0400
-+++ Makefile 2010-07-21 17:36:21.000000000 +0400
+--- Makefile.orig 2007-08-30 04:43:27.000000000 +0400
++++ Makefile 2013-09-16 15:34:28.000000000 +0400
+@@ -21,7 +21,7 @@
+ # Makefile for ccsrch
+ #
+
+-CC =gcc
++#CC =gcc
+ #
+ # for mingw use something like the following
+ #INCL = -I./ -I/mingw/include
@@ -29,8 +29,8 @@
#
# for *UNIX* the following tends to work
Index: files/patch-ccsrch.c
===================================================================
--- files/patch-ccsrch.c (revision 0)
+++ files/patch-ccsrch.c (working copy)
@@ -0,0 +1,92 @@
+--- ccsrch.c.orig 2013-09-16 16:15:41.000000000 +0400
++++ ccsrch.c 2013-09-16 16:22:57.000000000 +0400
+@@ -567,7 +567,7 @@
+ int vnum = 0;
+
+ memset(&num2buf, '\0', 3);
+- snprintf(num2buf, 3, "%d%d\0", cardbuf[0], cardbuf[1]);
++ snprintf(num2buf, 3, "%d%d", cardbuf[0], cardbuf[1]);
+ vnum = atoi(num2buf);
+ if ((vnum > 50) && (vnum < 56))
+ print_result("MASTERCARD", 16, offset);
+@@ -580,7 +580,7 @@
+ int vnum = 0;
+
+ memset(&num2buf, '\0', 2);
+- snprintf(num2buf, 2, "%d\0", cardbuf[0]);
++ snprintf(num2buf, 2, "%d", cardbuf[0]);
+ vnum = atoi(num2buf);
+ if (vnum == 4)
+ print_result("VISA", 16, offset);
+@@ -593,7 +593,7 @@
+ int vnum = 0;
+
+ memset(&num2buf, '\0', 5);
+- snprintf(num2buf, 5, "%d%d%d%d\0", cardbuf[0], cardbuf[1], cardbuf[2], cardbuf[3]);
++ snprintf(num2buf, 5, "%d%d%d%d", cardbuf[0], cardbuf[1], cardbuf[2], cardbuf[3]);
+ vnum = atoi(num2buf);
+ if (vnum == 6011)
+ print_result("DISCOVER", 16, offset);
+@@ -605,8 +605,8 @@
+ char num2buf[5];
+ int vnum = 0;
+
+- memset(&num2buf, '\0', 2);
+- snprintf(num2buf, 5, "%d%d%d%d\0", cardbuf[0], cardbuf[1], cardbuf[2], cardbuf[3]);
++ memset(&num2buf, '\0', 5);
++ snprintf(num2buf, 5, "%d%d%d%d", cardbuf[0], cardbuf[1], cardbuf[2], cardbuf[3]);
+ vnum = atoi(num2buf);
+ if ((vnum == 3088) || (vnum == 3096) || (vnum == 3112) || (vnum == 3158) || (vnum == 3337) || (vnum == 3528) || (vnum == 3529))
+ print_result("JCB", 16, offset);
+@@ -619,7 +619,7 @@
+ int vnum = 0;
+
+ memset(&num2buf, '\0', 3);
+- snprintf(num2buf, 3, "%d%d\0", cardbuf[0], cardbuf[1]);
++ snprintf(num2buf, 3, "%d%d", cardbuf[0], cardbuf[1]);
+ vnum = atoi(num2buf);
+ if ((vnum == 34) || (vnum == 37))
+ print_result("AMEX", 15, offset);
+@@ -632,7 +632,7 @@
+ int vnum = 0;
+
+ memset(&num2buf, '\0', 5);
+- snprintf(num2buf, 5, "%d%d%d%d\0", cardbuf[0], cardbuf[1], cardbuf[2], cardbuf[3]);
++ snprintf(num2buf, 5, "%d%d%d%d", cardbuf[0], cardbuf[1], cardbuf[2], cardbuf[3]);
+ vnum = atoi(num2buf);
+ if ((vnum == 2014) || (vnum == 2149))
+ print_result("ENROUTE", 15, offset);
+@@ -645,7 +645,7 @@
+ int vnum = 0;
+
+ memset(&num2buf, '\0', 5);
+- snprintf(num2buf, 5, "%d%d%d%d\0", cardbuf[0], cardbuf[1], cardbuf[2], cardbuf[3]);
++ snprintf(num2buf, 5, "%d%d%d%d", cardbuf[0], cardbuf[1], cardbuf[2], cardbuf[3]);
+ vnum = atoi(num2buf);
+ if ((vnum == 2131) || (vnum == 1800) || (vnum == 3528) || (vnum == 3529))
+ print_result("JCB", 15, offset);
+@@ -660,9 +660,9 @@
+ int vnum2 = 0;
+
+ memset(&num2buf, '\0', 4);
+- memset(&num2buf2, '\0', 2);
+- snprintf(num2buf, 4, "%d%d%d\0", cardbuf[0], cardbuf[1], cardbuf[2]);
+- snprintf(num2buf2, 3, "%d%d\0", cardbuf[0], cardbuf[1]);
++ memset(&num2buf2, '\0', 3);
++ snprintf(num2buf, 4, "%d%d%d", cardbuf[0], cardbuf[1], cardbuf[2]);
++ snprintf(num2buf2, 3, "%d%d", cardbuf[0], cardbuf[1]);
+ vnum = atoi(num2buf);
+ vnum2 = atoi(num2buf2);
+ if (((vnum > 299) && (vnum < 306)) || ((vnum > 379) && (vnum < 389)) || (vnum2 == 36))
+@@ -690,9 +690,9 @@
+ int end_time=0;
+
+ end_time=time(NULL);
+- fprintf(stdout, "\n\nFiles searched ->\t\t%d\n", file_count);
++ fprintf(stdout, "\n\nFiles searched ->\t\t%ld\n", file_count);
+ fprintf(stdout, "Search time (seconds) ->\t%d\n", ((int)time(NULL) - init_time));
+- fprintf(stdout, "Credit card matches->\t\t%d\n", total_count);
++ fprintf(stdout, "Credit card matches->\t\t%ld\n", total_count);
+ if (tracksrch)
+ fprintf(stdout, "Track data pattern matches->\t%d\n\n", trackdatacount);
+ fprintf(stdout, "\nLocal end time: %s\n\n", ctime((time_t *)&end_time));
Property changes on: files/patch-ccsrch.c
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: pkg-descr
===================================================================
--- pkg-descr (revision 327360)
+++ pkg-descr (working copy)
@@ -3,4 +3,4 @@
UNIX operating systems. It will also identify the location of the
PAN data in the files and record MAC times.
-WWW: http://ccsrch.sourceforge.net/
+WWW: http://ccsrch.sourceforge.net/
--- ccsrch-1.0.3_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list