- 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]
This commit is contained in:
Florent Thoumie 2008-07-18 09:12:49 +00:00
parent f9952c7232
commit b44f7e6219
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217012
2 changed files with 34 additions and 7 deletions

View File

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

View File

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