aboutsummaryrefslogtreecommitdiff
path: root/sysutils/testdisk
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2008-07-18 09:12:49 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2008-07-18 09:12:49 +0000
commitb44f7e621955aa7f99597cb435f492e932f3cdfd (patch)
tree5f4da97c88d91a8352440b079976e16fe4adeade /sysutils/testdisk
parentf9952c7232e15a88f3e73b3085d7835e288bfcb7 (diff)
downloadports-b44f7e621955aa7f99597cb435f492e932f3cdfd.tar.gz
ports-b44f7e621955aa7f99597cb435f492e932f3cdfd.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]
Notes
Notes: svn path=/head/; revision=217012
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