Date: Tue, 9 Feb 2021 19:26:26 +0000 (UTC) From: Joseph Mingrone <jrm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r564803 - in head/sysutils: . rmlint rmlint/files Message-ID: <202102091926.119JQQL8050604@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jrm Date: Tue Feb 9 19:26:26 2021 New Revision: 564803 URL: https://svnweb.freebsd.org/changeset/ports/564803 Log: New port, sysutils/rmlint: Remove duplicates from your filesystem PR: 236362 Submitted by: Joachim Werner <jockl@pianojockl.org> (Maintainer) Added: head/sysutils/rmlint/ head/sysutils/rmlint/Makefile (contents, props changed) head/sysutils/rmlint/distinfo (contents, props changed) head/sysutils/rmlint/files/ head/sysutils/rmlint/files/patch-lib_utilities.h (contents, props changed) head/sysutils/rmlint/files/patch-lib_xattr.c (contents, props changed) head/sysutils/rmlint/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile (contents, props changed) Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Tue Feb 9 19:26:21 2021 (r564802) +++ head/sysutils/Makefile Tue Feb 9 19:26:26 2021 (r564803) @@ -1091,6 +1091,7 @@ SUBDIR += rhc SUBDIR += riak-cs SUBDIR += rinse + SUBDIR += rmlint SUBDIR += rocr SUBDIR += roct SUBDIR += rovclock Added: head/sysutils/rmlint/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/Makefile Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= rmlint +DISTVERSIONPREFIX= v +DISTVERSION= 2.10.1 +CATEGORIES= sysutils + +MAINTAINER= jockl@pianojockl.org +COMMENT= Remove duplicates and other lint from your filesystem + +LICENSE= GPLv3 + +BUILD_DEPENDS= ${LOCALBASE}/lib/libglib-2.0.so:devel/glib20 \ + gettext:devel/gettext \ + pkgconf:devel/pkgconf \ + sphinx-build:textproc/py-sphinx@${PY_FLAVOR} +LIB_DEPENDS= libelf.so:devel/libelf \ + libjson-glib-1.0.so:devel/json-glib + +USES= gnome python scons +USE_GITHUB= yes +GH_ACCOUNT= sahib +GH_PROJECT= rmlint +GH_TAGNAME= a726d0cbf839d7a0f35962d67e0f60054d0364f6 +USE_GNOME= glib20 + +MAKE_ARGS= --actual-prefix=${PREFIX} \ + --prefix=${STAGEDIR}${PREFIX} \ + --without-gui + +PLIST_FILES= bin/rmlint \ + share/man/man1/rmlint.1.gz + +OPTIONS_DEFINE= NLS + +NLS_USES= gettext-runtime +NLS_CONFIGURE_WITH= gettext + +.include <bsd.port.mk> Added: head/sysutils/rmlint/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/distinfo Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,3 @@ +TIMESTAMP = 1612880853 +SHA256 (sahib-rmlint-v2.10.1-a726d0cbf839d7a0f35962d67e0f60054d0364f6_GH0.tar.gz) = ac564a89b5e6cc389c41bf1bf88b82c317373ad4b8c420cbe7416a8dd1fe6799 +SIZE (sahib-rmlint-v2.10.1-a726d0cbf839d7a0f35962d67e0f60054d0364f6_GH0.tar.gz) = 2495749 Added: head/sysutils/rmlint/files/patch-lib_utilities.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/files/patch-lib_utilities.h Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,13 @@ +--- lib/utilities.h.orig 2021-02-09 17:20:43 UTC ++++ lib/utilities.h +@@ -127,6 +127,10 @@ static inline void rm_sys_close(int fd) { + } + } + ++#ifndef HAVE_LSEEK64 ++#define lseek64 lseek ++#endif ++ + static inline gint64 rm_sys_preadv(int fd, const struct iovec *iov, int iovcnt, + RmOff offset) { + #if RM_IS_APPLE || RM_IS_CYGWIN Added: head/sysutils/rmlint/files/patch-lib_xattr.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/files/patch-lib_xattr.c Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,46 @@ +--- lib/xattr.c.orig 2020-12-06 15:39:50 UTC ++++ lib/xattr.c +@@ -209,7 +209,7 @@ static int rm_xattr_del(RmFile *file, const char *key, + // ACTUAL API FUNCTIONS // + //////////////////////////// + +-int rm_xattr_write_hash(RmFile *file, RmSession *session) { ++int rm_xattr_write_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { + g_assert(file); + g_assert(file->digest); + g_assert(session); +@@ -236,7 +236,7 @@ int rm_xattr_write_hash(RmFile *file, RmSession *sessi + return 0; + } + +-gboolean rm_xattr_read_hash(RmFile *file, RmSession *session) { ++gboolean rm_xattr_read_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { + g_assert(file); + g_assert(session); + +@@ -287,7 +287,7 @@ gboolean rm_xattr_read_hash(RmFile *file, RmSession *s + #endif + } + +-int rm_xattr_clear_hash(RmFile *file, RmSession *session) { ++int rm_xattr_clear_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { + g_assert(file); + g_assert(session); + +@@ -316,6 +316,8 @@ int rm_xattr_clear_hash(RmFile *file, RmSession *sessi + + #if HAVE_XATTR + ++#if HAVE_XATTR ++ + GHashTable *rm_xattr_list(const char *path, bool follow_symlinks) { + const size_t buf_size = 4096; + const size_t val_size = 1024; +@@ -484,5 +486,7 @@ int rm_xattr_mark_deduplicated(const char *path, bool + g_hash_table_destroy(map); + return result; + } ++ ++#endif + + #endif Added: head/sysutils/rmlint/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/pkg-descr Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,5 @@ +rmlint is an "extremely fast tool to remove duplicates and other lint +from your filesystem." + +WWW: https://rmlint.rtfd.org/ +WWW: https://github.com/sahib/rmlint
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102091926.119JQQL8050604>