From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 16 16:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7B2DC385 for ; Mon, 16 Sep 2013 16:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 59CE628E2 for ; Mon, 16 Sep 2013 16:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8GGA0eF013813 for ; Mon, 16 Sep 2013 16:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8GGA0xb013812; Mon, 16 Sep 2013 16:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 16 Sep 2013 16:10:00 GMT Resent-Message-Id: <201309161610.r8GGA0xb013812@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pavel I Volkov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B2071314 for ; Mon, 16 Sep 2013 16:06:03 +0000 (UTC) (envelope-from pol@be.dns4soho.net) Received: from be.dns4soho.net (be.dns4soho.net [IPv6:2a01:230:2::30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E60B328AE for ; Mon, 16 Sep 2013 16:06:02 +0000 (UTC) Received: from be.dns4soho.net (be.dns4soho.net [82.146.57.245]) by be.dns4soho.net (8.14.7/8.14.5) with ESMTP id r8GG5tPp078400; Mon, 16 Sep 2013 16:05:55 GMT (envelope-from pol@be.dns4soho.net) Received: (from root@localhost) by be.dns4soho.net (8.14.5/8.14.5/Submit) id r8GDlWog087056; Mon, 16 Sep 2013 17:47:32 +0400 (MSK) (envelope-from pol) Message-Id: <201309161347.r8GDlWog087056@be.dns4soho.net> Date: Mon, 16 Sep 2013 17:47:32 +0400 (MSK) From: Pavel I Volkov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/182158: [PATCH] security/ccsrch: [SUMMARIZE CHANGES], take maintainership Cc: pavelivolkov@googlemail.com X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 16:10:01 -0000 >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@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 -# +# Created by: Pavel I Volkov # $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@googlemail.com +MAINTAINER= pavelivolkov@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 +.include 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 +.include 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: