aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/testdisk
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2008-07-18 17:12:49 +0800
committerflz <flz@FreeBSD.org>2008-07-18 17:12:49 +0800
commit9b2c395a461c049aba77ef16125310b7bd60ba58 (patch)
tree180bfa7687a2ef2612a4c01c6349785ecd494679 /sysutils/testdisk
parentf8837eeb6d2194d57cc418133bfd63fa914e390c (diff)
downloadfreebsd-ports-gnome-9b2c395a461c049aba77ef16125310b7bd60ba58.tar.gz
freebsd-ports-gnome-9b2c395a461c049aba77ef16125310b7bd60ba58.tar.zst
freebsd-ports-gnome-9b2c395a461c049aba77ef16125310b7bd60ba58.zip
- Update sysutils/testdisk to 6.10.
- Don't install documentation if NOPORTDOCS is defined. - Explicitely disable filesystem support when not selected. [1] PR: ports/125564 [1] Submitted by: Jan Henrik Sylvester <me@janh.de> [1]
Diffstat (limited to 'sysutils/testdisk')
-rw-r--r--sysutils/testdisk/Makefile32
-rw-r--r--sysutils/testdisk/distinfo9
2 files changed, 34 insertions, 7 deletions
diff --git a/sysutils/testdisk/Makefile b/sysutils/testdisk/Makefile
index 764f46d118cf..7e7f7019681d 100644
--- a/sysutils/testdisk/Makefile
+++ b/sysutils/testdisk/Makefile
@@ -6,9 +6,10 @@
#
PORTNAME= testdisk
-PORTVERSION= 6.9
+PORTVERSION= 6.10
CATEGORIES= sysutils
MASTER_SITES= http://www.cgsecurity.org/
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= flz@FreeBSD.org
COMMENT= Tool to check and undelete partitions
@@ -25,25 +26,48 @@ MAN1= testdisk.1 photorec.1
PLIST_FILES= sbin/testdisk sbin/photorec
PORTDOCS= *
-OPTIONS= E2FSPROGS "Use ext2fs extensions" off \
+OPTIONS= ICONV "Use iconv extensions" on \
NTFSPROGS "Use ntfs extensions" off \
PROGSREISERFS "Use reiserfs extensions" off
+# E2FSPROGS "Use ext2fs extensions" off \
.include <bsd.port.pre.mk>
-.if defined(WITH_E2FSPROGS)
-LIB_DEPENDS+= ext2fs.2:${PORTSDIR}/sysutils/e2fsprogs
+.if !defined(NOPORTDOCS)
+DISTFILES+= ${PORTNAME}-doc-${PORTVERSION}${EXTRACT_SUFX}
.endif
+.if !defined(WITHOUT_ICONV)
+LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
+.else
+CONFIGURE_ARGS+=--without-iconv
+.endif
+
+# e2fsprogs does not provide ext2fs.so any more
+# since it does not do 'make install-libs'
+#.if defined(WITH_E2FSPROGS)
+#LIB_DEPENDS+= ext2fs.2:${PORTSDIR}/sysutils/e2fsprogs
+#.else
+#CONFIGURE_ARGS+=--without-ext2fs
+#.endif
+
.if defined(WITH_NTFSPROGS)
LIB_DEPENDS+= ntfs.9:${PORTSDIR}/sysutils/ntfsprogs
+.else
+CONFIGURE_ARGS+=--without-ntfs
.endif
.if defined(WITH_PROGSREISERFS)
LIB_DEPENDS+= reiserfs-0.3.0:${PORTSDIR}/sysutils/progsreiserfs
+.else
+CONFIGURE_ARGS+=--without-reiserfs
.endif
post-patch:
+.if !defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's|/doc/.(PACKAGE)-.(VERSION)|/doc/${PORTNAME}|' ${WRKSRC}/Makefile.in
+.else
+ @${REINPLACE_CMD} -e '/\/doc\/$(PACKAGE)-$(VERSION)/d' ${WRKSRC}/Makefile.in
+.endif
.include <bsd.port.post.mk>
diff --git a/sysutils/testdisk/distinfo b/sysutils/testdisk/distinfo
index 6e3701933c25..db379e9bbe8a 100644
--- a/sysutils/testdisk/distinfo
+++ b/sysutils/testdisk/distinfo
@@ -1,3 +1,6 @@
-MD5 (testdisk-6.9.tar.bz2) = 8933cea0593bd02c05c79e1e3a23a0a4
-SHA256 (testdisk-6.9.tar.bz2) = f859ba849c8cd2967943045a9079d883c06d144a484b50270f2e2e1836c4d7cc
-SIZE (testdisk-6.9.tar.bz2) = 1310209
+MD5 (testdisk-6.10.tar.bz2) = d3bde0b546d40e029dda4e9861db40ef
+SHA256 (testdisk-6.10.tar.bz2) = 539e7ec274126a827dfa4df751d71d15e03cf66c3fa73aac8f552d486c779593
+SIZE (testdisk-6.10.tar.bz2) = 1474157
+MD5 (testdisk-doc-6.10.tar.bz2) = 9f850f4657777add0a063a2bccc219fd
+SHA256 (testdisk-doc-6.10.tar.bz2) = 24cfc7153669f75bf280c5c4779ac5892a3cd0145231c7fc5d9417c688eb9dbf
+SIZE (testdisk-doc-6.10.tar.bz2) = 1059735