From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 4 00:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CF647BB4 for ; Thu, 4 Jul 2013 00:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B1AB91104 for ; Thu, 4 Jul 2013 00:50:00 +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 r640o02O093919 for ; Thu, 4 Jul 2013 00:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r640o0Nh093917; Thu, 4 Jul 2013 00:50:00 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jul 2013 00:50:00 GMT Resent-Message-Id: <201307040050.r640o0Nh093917@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, Jesse Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3A806B6F for ; Thu, 4 Jul 2013 00:43:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2C65D10DF for ; Thu, 4 Jul 2013 00:43:55 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r640hsiJ048083 for ; Thu, 4 Jul 2013 00:43:54 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r640hsRK048082; Thu, 4 Jul 2013 00:43:54 GMT (envelope-from nobody) Message-Id: <201307040043.r640hsRK048082@oldred.freebsd.org> Date: Thu, 4 Jul 2013 00:43:54 GMT From: Jesse To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/180245: new port: sysutils/rmlint -- remove stale or duplicate files from the file system 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: Thu, 04 Jul 2013 00:50:00 -0000 >Number: 180245 >Category: ports >Synopsis: new port: sysutils/rmlint -- remove stale or duplicate files from the file system >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: Thu Jul 04 00:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jesse >Release: FreeBSD 9.1 >Organization: RM >Environment: >Description: Please find attached my port of rmlint, a program which searches the fiel system for duplicate entries and unused files. http://sahib.github.io/rmlint/ >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # rmlint/ # rmlint/files # rmlint/files/patch-src__md5.c # rmlint/files/patch-src__filter.c # rmlint/files/patch-src__mode.c # rmlint/pkg-descr # rmlint/Makefile # echo c - rmlint/ mkdir -p rmlint/ > /dev/null 2>&1 echo c - rmlint/files mkdir -p rmlint/files > /dev/null 2>&1 echo x - rmlint/files/patch-src__md5.c sed 's/^X//' >rmlint/files/patch-src__md5.c << '103bdc2c89d39c80fb9af2f432228b2c' X--- ./src/md5.c.orig 2013-07-03 18:19:04.000000000 -0300 X+++ ./src/md5.c 2013-07-03 18:21:36.000000000 -0300 X@@ -39,7 +39,8 @@ X #include X #include X #include X-#include X+// #include X+#include X #include X X #include 103bdc2c89d39c80fb9af2f432228b2c echo x - rmlint/files/patch-src__filter.c sed 's/^X//' >rmlint/files/patch-src__filter.c << '1cbe3234eb70e7f36a6331e766660e5b' X--- ./src/filter.c.orig 2013-07-03 18:25:17.000000000 -0300 X+++ ./src/filter.c 2013-07-03 18:27:21.000000000 -0300 X@@ -26,7 +26,7 @@ X X #include X #include X-#include X+#include X X #include X #include X@@ -888,19 +888,19 @@ X { X if(num < 1024 / 2) X { X- snprintf(in,sz,"%ld B",(unsigned long)num); X+ sprintf(in,"%ld B",(unsigned long)num); X } X else if(num < 1048576) X { X- snprintf(in,sz,"%.2f KB",(float)(num/1024.0)); X+ sprintf(in,"%.2f KB",(float)(num/1024.0)); X } X else if(num < 1073741824 / 2) X { X- snprintf(in,sz,"%.2f MB",(float)(num/1048576.0)); X+ sprintf(in,"%.2f MB",(float)(num/1048576.0)); X } X else X { X- snprintf(in,sz,"%.2f GB",(float)(num/1073741824.0)); X+ sprintf(in,"%.2f GB",(float)(num/1073741824.0)); X } X } X 1cbe3234eb70e7f36a6331e766660e5b echo x - rmlint/files/patch-src__mode.c sed 's/^X//' >rmlint/files/patch-src__mode.c << '1e39b0d90be8b08bd3dcf8bcfd25481f' X--- ./src/mode.c.orig 2013-07-03 18:24:29.000000000 -0300 X+++ ./src/mode.c 2013-07-03 18:24:58.000000000 -0300 X@@ -30,11 +30,12 @@ X X #include X #include X+#include X #include X #include X #include X #include X-#include X+#include X X #include "rmlint.h" X #include "mode.h" 1e39b0d90be8b08bd3dcf8bcfd25481f echo x - rmlint/pkg-descr sed 's/^X//' >rmlint/pkg-descr << '3c0f8b09747c99186b0ce53e8ac78c16' XThis program is a command line tool for finding unnecessary files such Xas duplicates and temporary files. X XWWW: http://sahib.hithub.io/rmlint 3c0f8b09747c99186b0ce53e8ac78c16 echo x - rmlint/Makefile sed 's/^X//' >rmlint/Makefile << '71b848312d317e61da680f28ed5a97f6' X# New ports collection makefile for: rmlint X# Date created: July 2, 2013 X# X# $FreeBSD: X# X XPORTNAME= rmlint XPORTVERSION= 0.1 XCATEGORIES= sysutils XMASTER_SITES= http://github.com/sahib/rmlint/zipball XDISTNAME= rmlint XMAINTAINER= jessefrgsmith@yahoo.ca XCOMMENT= Removes stale and temporary files from the system. XLICENSE= GPLv3 XUSE_ZIP= yes XUSE_GMAKE= yes XPLIST_FILES= sbin/${PORTNAME} X X.include X Xdo-fetch: X fetch -o ${PORTSDIR}/distfiles/${DISTNAME}.zip http://github.com/sahib/rmlint/zipball/master X Xpre-patch: X ${MV} ${WRKDIR}/sahib-rmlint* ${WRKDIR}/${PORTNAME} X X Xdo-install: X ${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME}/${PORTNAME} ${PREFIX}/sbin X X.include 71b848312d317e61da680f28ed5a97f6 exit >Release-Note: >Audit-Trail: >Unformatted: