Date: Thu, 4 Jul 2013 00:43:54 GMT From: Jesse <jessefrgsmith@yahoo.ca> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/180245: new port: sysutils/rmlint -- remove stale or duplicate files from the file system Message-ID: <201307040043.r640hsRK048082@oldred.freebsd.org> Resent-Message-ID: <201307040050.r640o0Nh093917@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <stdio.h> X #include <string.h> X #include <pthread.h> X-#include <alloca.h> X+// #include <alloca.h> X+#include <stdlib.h> X #include <math.h> X X #include <sys/mman.h> 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 <stdio.h> X #include <string.h> X-#include <alloca.h> X+#include <stdlib.h> X X #include <ftw.h> X #include <signal.h> 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 <stdio.h> X #include <string.h> X+#include <signal.h> X #include <unistd.h> X #include <sys/stat.h> X #include <sys/wait.h> X #include <pthread.h> X-#include <alloca.h> X+#include <stdlib.h> 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 <bsd.port.pre.mk> 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 <bsd.port.post.mk> 71b848312d317e61da680f28ed5a97f6 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307040043.r640hsRK048082>