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:
Mark Pulford 2002-11-19 12:14:51 +00:00
parent 203c90c290
commit e986c7b54a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70474
2 changed files with 6 additions and 11 deletions

View File

@ -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

View File

@ -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);