ports/61273: new port: sysutils/scan_ffs
Michael Ranner
mranner at inode.at
Mon Jan 12 22:30:22 UTC 2004
>Number: 61273
>Category: ports
>Synopsis: new port: sysutils/scan_ffs
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 12 14:30:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Michael Ranner
>Release: FreeBSD 4.9-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD dwarf.jawa.at 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #4: Sat Nov 29 11:09:14 CET 2003 root at dwarf.jawa.at:/usr/src/sys/compile/DWARF i386
System: FreeBSD dwarf.jawa.at 5.2-RELEASE-RC FreeBSD 5.2-RELEASE-RC #4: Sat Jan 10 18:19:41 CET 2004 root at dwarf.jawa.at:/usr/src/sys/compile/i386/DWARF i386
>Description:
scan_ffs ported from OpenBSD to FreeBSD with support for UFS1 and UFS2, allows
recovering of lost or deletes disklabels
>How-To-Repeat:
unshar in /usr/ports/sysutils and install
>Fix:
# 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:
#
# ./scan_ffs
# ./scan_ffs/pkg-plist
# ./scan_ffs/pkg-descr
# ./scan_ffs/distinfo
# ./scan_ffs/Makefile
#
echo c - ./scan_ffs
mkdir -p ./scan_ffs > /dev/null 2>&1
echo x - ./scan_ffs/pkg-plist
sed 's/^X//' >./scan_ffs/pkg-plist << 'END-of-./scan_ffs/pkg-plist'
Xsbin/scan_ffs
END-of-./scan_ffs/pkg-plist
echo x - ./scan_ffs/pkg-descr
sed 's/^X//' >./scan_ffs/pkg-descr << 'END-of-./scan_ffs/pkg-descr'
Xscan_ffs(8) recovers accidential lost or deleted disklabels.
X
XThis is the life-saver of typos. If you have ever been working too long,
Xand just happened to type 'disklabel -rw da0 floppy', instead of 'diskla-
Xbel -rw fd0 floppy', you know what I am talking about.
X
XThis little program will take a raw disk device (which you might have to
Xcreate) that covers the whole disk, and finds all probable UFS/FFS parti-
Xtions on the disk. It has various options to make it go faster, and to
Xprint out information to help in the reconstruction of the disklabel.
X
XPorted from OpenBSD to FreeBSD 4/5 with support for UFS1 and UFS2.
END-of-./scan_ffs/pkg-descr
echo x - ./scan_ffs/distinfo
sed 's/^X//' >./scan_ffs/distinfo << 'END-of-./scan_ffs/distinfo'
XMD5 (scan_ffs-1.0.tar.gz) = 534cc0b4e7a29be2eca60e77dcf883d9
END-of-./scan_ffs/distinfo
echo x - ./scan_ffs/Makefile
sed 's/^X//' >./scan_ffs/Makefile << 'END-of-./scan_ffs/Makefile'
X# New ports collection makefile for: scan_ffs
X# Date created: 20040112
X# Whom: mranner at inode.at
X#
X# $FreeBSD: ports/sysutils/rdate/Makefile,v 1.10 2003/02/21 13:28:52 knu Exp $
X#
X
XPORTNAME= scan_ffs
XPORTVERSION= 1.0
XCATEGORIES= sysutils
XMASTER_SITES= http://www.ranner.jawa.at/stuff/
X
XMAINTAINER= mranner at inode.at
XCOMMENT= Scan_ffs recovers lost disklabel
X
XMAN8= scan_ffs.8
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/scan_ffs ${PREFIX}/sbin/.
X ${INSTALL_MAN} ${WRKSRC}/scan_ffs.8 ${PREFIX}/man/man8/.
X
X.include <bsd.port.mk>
END-of-./scan_ffs/Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list