Date: Mon, 1 Mar 2004 21:58:11 +0100 (CET) From: Florent Thoumie <flz@xbsd.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/63615: New port: sysutils/testdisk - Tool to check and undelete partitions Message-ID: <20040301205811.30FB8BA9@gw.xbsd.org> Resent-Message-ID: <200403012100.i21L0cnR071196@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 63615 >Category: ports >Synopsis: New port: sysutils/testdisk - Tool to check and undelete partitions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 01 13:00:38 PST 2004 >Closed-Date: >Last-Modified: >Originator: Florent Thoumie >Release: FreeBSD 4.9-RC i386 >Organization: Xbsd.org >Environment: System: FreeBSD gw 4.9-RC FreeBSD 4.9-RC #4: Sun Oct 5 14:25:09 CEST 2003 rf@gw:/usr/src/sys/compile/GW i386 >Description: Tool to check and undelete partition Works with the following partitions: - FAT12 FAT16 FAT32 - Linux EXT2/EXT3 - Linux SWAP (version 1 and 2) - NTFS (Windows NT/W2K/XP) - BeFS (BeOS) - UFS (BSD) - Netware - ReiserFS TestDisk is under GNU Public License. You can compile it under Dos with DJGPP or under Linux or BSD with gcc. WWW: http://www.cgsecurity.org/ PS: Some of these filesystems are not supported without extensions not present in the ports tree for the moment. I'll add some knobs when they'll be available. >How-To-Repeat: N/A >Fix: --- testdisk-5.1.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # testdisk # testdisk/pkg-descr # testdisk/Makefile # testdisk/distinfo # echo c - testdisk mkdir -p testdisk > /dev/null 2>&1 echo x - testdisk/pkg-descr sed 's/^X//' >testdisk/pkg-descr << 'END-of-testdisk/pkg-descr' XTool to check and undelete partition XWorks with the following partitions: X- FAT12 FAT16 FAT32 X- Linux EXT2/EXT3 X- Linux SWAP (version 1 and 2) X- NTFS (Windows NT/W2K/XP) X- BeFS (BeOS) X- UFS (BSD) X- Netware X- ReiserFS X XTestDisk is under GNU Public License. XYou can compile it under Dos with DJGPP or under Linux or BSD with gcc. X XWWW: http://www.cgsecurity.org/ X X- Florent Thoumie Xflz@xbsd.org END-of-testdisk/pkg-descr echo x - testdisk/Makefile sed 's/^X//' >testdisk/Makefile << 'END-of-testdisk/Makefile' X# New ports collection makefile for: testdisk X# Date created: Feb 28 2004 X# Whom: Florent Thoumie <flz@xbsd.org> X# X# $FreeBSD$ X# X XPORTNAME= testdisk XPORTVERSION= 5.1 XCATEGORIES= sysutils XMASTER_SITES= http://www.cgsecurity.org/ X XMAINTAINER= flz@xbsd.org XCOMMENT= Tool to check and undelete partitions X XWRKSRC= ${WRKDIR}/${PORTNAME}/src X XUSE_REINPLACE= yes X XPLIST_FILES= bin/testdisk X X.if defined(WITH_E2FSPROGS) XBUILD_DEPENDS+= ext2fs.2:${PORTSDIR}/sysutils/e2fsprogs X.endif X X.include <bsd.port.pre.mk> X X.if ${OSVERSION} < 500040 XIGNORE= "Requires FreeBSD 5.x, some defines are missing in sys/disk.h before __FreeBSD_version 500040" X.endif X X.if !defined(WITH_E2FSPROGS) Xpre-everything:: X @${ECHO_MSG} "" X @${ECHO_MSG} "You can define the following for additional features:" X @${ECHO_MSG} "" X.if !defined(WITH_E2FSPROGS) X @${ECHO_MSG} "WITH_E2FSPROGS - Use ext2fs extensions. X.endif X @${ECHO_MSG} "" X.endif X Xpost-patch: X.if defined(WITH_E2FSPROGS) X @${REINPLACE_CMD} -e 's|-DHAVE_PROGSREISERFS31.*||' ${WRKSRC}/Makefile X @${REINPLACE_CMD} -e 's|^\(LIBS=\).*|\1${PREFIX}/lib/libext2fs.a|' ${WRKSRC}/Makefile X.else X @${REINPLACE_CMD} -e 's|-DHAVE_E2FSPROGS.*||' ${WRKSRC}/Makefile X.endif X @${REINPLACE_CMD} -e 's|^bsd:|all:|' ${WRKSRC}/Makefile X @${REINPLACE_CMD} -e 's|^\(LIBSA=\).*|\1|' ${WRKSRC}/Makefile X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/testdisk ${PREFIX}/bin X X.include <bsd.port.post.mk> END-of-testdisk/Makefile echo x - testdisk/distinfo sed 's/^X//' >testdisk/distinfo << 'END-of-testdisk/distinfo' XMD5 (testdisk-5.1.tar.gz) = c86eb08730a52a113ae572de75ff9c9e XSIZE (testdisk-5.1.tar.gz) = 618498 END-of-testdisk/distinfo exit --- testdisk-5.1.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040301205811.30FB8BA9>