mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
New port, sysutils/rmlint: Remove duplicates from your filesystem
PR: 236362 Submitted by: Joachim Werner <jockl@pianojockl.org> (Maintainer)
This commit is contained in:
@@ -1091,6 +1091,7 @@
|
||||
SUBDIR += rhc
|
||||
SUBDIR += riak-cs
|
||||
SUBDIR += rinse
|
||||
SUBDIR += rmlint
|
||||
SUBDIR += rocr
|
||||
SUBDIR += roct
|
||||
SUBDIR += rovclock
|
||||
|
||||
@@ -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>
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user