pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   hauke
Date:           Wed Feb 26 14:03:06 UTC 2025

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/dupd: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/dupd/patches: patch-src_hash.c patch-src_utils.h

Log Message:
dupd is a file duplicate detection CLI utility. It supports iterative
interactive use with a persistent file database.


To generate a diff of this commit:
cvs rdiff -u -r1.1149 -r1.1150 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/dupd/DESCR \
    pkgsrc/sysutils/dupd/Makefile pkgsrc/sysutils/dupd/PLIST \
    pkgsrc/sysutils/dupd/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/dupd/patches/patch-src_hash.c \
    pkgsrc/sysutils/dupd/patches/patch-src_utils.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.1149 pkgsrc/sysutils/Makefile:1.1150
--- pkgsrc/sysutils/Makefile:1.1149     Sun Feb 23 21:54:13 2025
+++ pkgsrc/sysutils/Makefile    Wed Feb 26 14:03:06 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1149 2025/02/23 21:54:13 wiz Exp $
+# $NetBSD: Makefile,v 1.1150 2025/02/26 14:03:06 hauke Exp $
 #
 
 COMMENT=       System utilities
@@ -197,6 +197,7 @@ SUBDIR+=    dtb-arm64-tegra210
 SUBDIR+=       dtc
 SUBDIR+=       dtpstree
 SUBDIR+=       dua-cli
+SUBDIR+=       dupd
 SUBDIR+=       dupeguru
 SUBDIR+=       duplicity
 SUBDIR+=       durt

Added files:

Index: pkgsrc/sysutils/dupd/DESCR
diff -u /dev/null pkgsrc/sysutils/dupd/DESCR:1.1
--- /dev/null   Wed Feb 26 14:03:06 2025
+++ pkgsrc/sysutils/dupd/DESCR  Wed Feb 26 14:03:06 2025
@@ -0,0 +1,7 @@
+dupd is a file duplicate detection CLI utility, supporting iterative
+interactive use with a persistent file database.
+
+Despite the name, it doesn't run as a daemon.
+
+See https://elipapa.github.io/blog/fastest-way-to-find-dups.html for
+a comparison of such tools.
Index: pkgsrc/sysutils/dupd/Makefile
diff -u /dev/null pkgsrc/sysutils/dupd/Makefile:1.1
--- /dev/null   Wed Feb 26 14:03:06 2025
+++ pkgsrc/sysutils/dupd/Makefile       Wed Feb 26 14:03:06 2025
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2025/02/26 14:03:06 hauke Exp $
+
+DISTNAME=      dupd-1.7.3
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=jvirkki/}
+GITHUB_TAG=    ${PKGVERSION_NOREV}
+
+MAINTAINER=    hauke%NetBSD.org@localhost
+HOMEPAGE=      https://www.virkki.com/dupd/
+COMMENT=       File duplicate detection CLI utility
+LICENSE=       gnu-gpl-v3
+
+USE_TOOLS+=    gmake bash perl
+
+USE_LANGUAGES= c
+
+MAKE_ENV+=     MANBASE=${PREFIX}/${PKGMANDIR}
+BUILD_TARGET=  dupd
+TEST_TARGET=   test
+
+REPLACE_BASH=  tests/test.??
+
+DOCDIR=                share/doc/dupd
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 ${DOCDIR}
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/dupd ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/man/dupd.1 \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+.for mdfile in CONTRIBUTING design examples index performance
+       ${INSTALL_DATA} ${WRKSRC}/docs/${mdfile}.md \
+               ${DESTDIR}${PREFIX}/${DOCDIR}
+.endfor
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/dupd/PLIST
diff -u /dev/null pkgsrc/sysutils/dupd/PLIST:1.1
--- /dev/null   Wed Feb 26 14:03:06 2025
+++ pkgsrc/sysutils/dupd/PLIST  Wed Feb 26 14:03:06 2025
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2025/02/26 14:03:06 hauke Exp $
+bin/dupd
+man/man1/dupd.1
+share/doc/dupd/CONTRIBUTING.md
+share/doc/dupd/design.md
+share/doc/dupd/examples.md
+share/doc/dupd/index.md
+share/doc/dupd/performance.md
Index: pkgsrc/sysutils/dupd/distinfo
diff -u /dev/null pkgsrc/sysutils/dupd/distinfo:1.1
--- /dev/null   Wed Feb 26 14:03:06 2025
+++ pkgsrc/sysutils/dupd/distinfo       Wed Feb 26 14:03:06 2025
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2025/02/26 14:03:06 hauke Exp $
+
+BLAKE2s (dupd-1.7.3.tar.gz) = 69cd9e8793c85ad64db4609e6ce8d75df8bf86a67e0c0877f421166980403a9c
+SHA512 (dupd-1.7.3.tar.gz) = 649b54a1796a35cfba5ceb6daeab61a099d422a646cac07d6f2e2936b4348c19423e5793d27bba8cb2cf0aff3c7ede1d469165ddd5620625c9ec91d4cbb9cef7
+Size (dupd-1.7.3.tar.gz) = 987831 bytes
+SHA1 (patch-src_hash.c) = 04a62cd0c9a51705fbc20b4ff30e4c8a35f0f1f1
+SHA1 (patch-src_utils.h) = 978337292f6c107f674505ac288c1e47e4c58a97

Index: pkgsrc/sysutils/dupd/patches/patch-src_hash.c
diff -u /dev/null pkgsrc/sysutils/dupd/patches/patch-src_hash.c:1.1
--- /dev/null   Wed Feb 26 14:03:06 2025
+++ pkgsrc/sysutils/dupd/patches/patch-src_hash.c       Wed Feb 26 14:03:06 2025
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_hash.c,v 1.1 2025/02/26 14:03:06 hauke Exp $
+
+Add NetBSD
+
+--- src/hash.c.orig    2025-02-26 12:50:53.710506570 +0000
++++ src/hash.c
+@@ -65,6 +65,10 @@
+ #define FADVISE 1
+ #endif
+ 
++#ifdef __NetBSD__
++#define FADVISE 1
++#endif
++
+ #define MAX_BLOCK (1024 * 1024)
+ 
+ 
Index: pkgsrc/sysutils/dupd/patches/patch-src_utils.h
diff -u /dev/null pkgsrc/sysutils/dupd/patches/patch-src_utils.h:1.1
--- /dev/null   Wed Feb 26 14:03:06 2025
+++ pkgsrc/sysutils/dupd/patches/patch-src_utils.h      Wed Feb 26 14:03:06 2025
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_utils.h,v 1.1 2025/02/26 14:03:06 hauke Exp $
+
+Add NetBSD stat/lstat
+
+--- src/utils.h.orig   2025-02-26 12:51:48.963122972 +0000
++++ src/utils.h
+@@ -54,6 +54,11 @@
+ #define LSTAT lstat
+ #endif
+ 
++#ifdef __NetBSD__
++#define STRUCT_STAT struct stat
++#define LSTAT lstat
++#endif
++
+ #ifdef sun
+ #define STRUCT_STAT struct stat64
+ #define LSTAT lstat64



Home | Main Index | Thread Index | Old Index