summaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormarkp <markp@FreeBSD.org>2002-11-19 12:14:51 +0000
committermarkp <markp@FreeBSD.org>2002-11-19 12:14:51 +0000
commit5b10d8e1eeed4e2f06e1e349bc3e1099987486d6 (patch)
treebeafa2182e1987a87d23a8be1ec7f2fce2336641 /sysutils
parent2f95e2092603dd324bd899831f706c7d3e9fbe13 (diff)
downloadFreeBSD-ports-5b10d8e1eeed4e2f06e1e349bc3e1099987486d6.zip
FreeBSD-ports-5b10d8e1eeed4e2f06e1e349bc3e1099987486d6.tar.gz
Fix a long filename bug.
Merge patch-filedupe.c into the Makefile. PR: 42369 Submitted by: Marco van de Voort <marcov@stack.nl>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/filedupe/Makefile6
-rw-r--r--sysutils/filedupe/files/patch-filedupe.c11
2 files changed, 6 insertions, 11 deletions
diff --git a/sysutils/filedupe/Makefile b/sysutils/filedupe/Makefile
index a7b2571..64138e1 100644
--- a/sysutils/filedupe/Makefile
+++ b/sysutils/filedupe/Makefile
@@ -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
diff --git a/sysutils/filedupe/files/patch-filedupe.c b/sysutils/filedupe/files/patch-filedupe.c
deleted file mode 100644
index 7a577cd..0000000
--- a/sysutils/filedupe/files/patch-filedupe.c
+++ /dev/null
@@ -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);
OpenPOWER on IntegriCloud