diff options
author | markp <markp@FreeBSD.org> | 2002-11-19 20:14:51 +0800 |
---|---|---|
committer | markp <markp@FreeBSD.org> | 2002-11-19 20:14:51 +0800 |
commit | 5b10d8e1eeed4e2f06e1e349bc3e1099987486d6 (patch) | |
tree | beafa2182e1987a87d23a8be1ec7f2fce2336641 /sysutils | |
parent | 2f95e2092603dd324bd899831f706c7d3e9fbe13 (diff) | |
download | freebsd-ports-gnome-5b10d8e1eeed4e2f06e1e349bc3e1099987486d6.tar.gz freebsd-ports-gnome-5b10d8e1eeed4e2f06e1e349bc3e1099987486d6.tar.zst freebsd-ports-gnome-5b10d8e1eeed4e2f06e1e349bc3e1099987486d6.zip |
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/Makefile | 6 | ||||
-rw-r--r-- | sysutils/filedupe/files/patch-filedupe.c | 11 |
2 files changed, 6 insertions, 11 deletions
diff --git a/sysutils/filedupe/Makefile b/sysutils/filedupe/Makefile index a7b2571093e3..64138e133ce7 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 7a577cd74f86..000000000000 --- 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); |