Fix a long filename bug.
Merge patch-filedupe.c into the Makefile. PR: 42369 Submitted by: Marco van de Voort <marcov@stack.nl>
This commit is contained in:
parent
203c90c290
commit
e986c7b54a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70474
@ -14,6 +14,12 @@ MAINTAINER= markp@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= gdbm.2:${PORTSDIR}/databases/gdbm
|
||||
|
||||
USE_REINPLACE= yes
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|filename\[80\]|filename[1024]|g; \
|
||||
s|your_database|/var/db/filedupe.db|' ${WRKSRC}/filedupe.c
|
||||
|
||||
do-install:
|
||||
$(INSTALL_PROGRAM) ${WRKSRC}/filedupe ${PREFIX}/bin
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- filedupe.c.orig Wed Apr 11 00:27:15 2001
|
||||
+++ filedupe.c Wed Apr 11 00:27:32 2001
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "md5.h"
|
||||
|
||||
-#define DBNAME "your_database"
|
||||
+#define DBNAME "/var/db/filedupe.db"
|
||||
|
||||
int lookup(void *md5sum, int size);
|
||||
int addfile(void *md5sum, int size);
|
Loading…
Reference in New Issue
Block a user