From 24194345b9506995d2ac14c1be4645ffbe127ae9 Mon Sep 17 00:00:00 2001 From: veego Date: Fri, 1 Sep 2000 16:10:28 +0000 Subject: Gpart is a small tool which tries to guess what partitions are on a PC type harddisk in case the primary partition table was damaged. --- sysutils/gpart/Makefile | 15 +++++++++++++++ sysutils/gpart/files/md5 | 3 +++ sysutils/gpart/files/patch-sum | 7 +++++++ sysutils/gpart/patches/patch-aa | 22 ++++++++++++++++++++++ sysutils/gpart/patches/patch-ab | 16 ++++++++++++++++ sysutils/gpart/patches/patch-ac | 14 ++++++++++++++ sysutils/gpart/patches/patch-ad | 13 +++++++++++++ sysutils/gpart/patches/patch-ae | 13 +++++++++++++ sysutils/gpart/pkg/COMMENT | 1 + sysutils/gpart/pkg/DESCR | 3 +++ sysutils/gpart/pkg/PLIST | 3 +++ 11 files changed, 110 insertions(+) create mode 100644 sysutils/gpart/Makefile create mode 100644 sysutils/gpart/files/md5 create mode 100644 sysutils/gpart/files/patch-sum create mode 100644 sysutils/gpart/patches/patch-aa create mode 100644 sysutils/gpart/patches/patch-ab create mode 100644 sysutils/gpart/patches/patch-ac create mode 100644 sysutils/gpart/patches/patch-ad create mode 100644 sysutils/gpart/patches/patch-ae create mode 100644 sysutils/gpart/pkg/COMMENT create mode 100644 sysutils/gpart/pkg/DESCR create mode 100644 sysutils/gpart/pkg/PLIST (limited to 'sysutils/gpart') diff --git a/sysutils/gpart/Makefile b/sysutils/gpart/Makefile new file mode 100644 index 00000000000..fffb5b82489 --- /dev/null +++ b/sysutils/gpart/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ + +DISTNAME= gpart-0.1g +CATEGORIES= sysutils +MASTER_SITES= http://home.pages.de/~michab/gpart/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://home.pages.de/~michab/gpart/ + +USE_GMAKE= yes + +# Doesn't work on 1.4.x due too problems with dlopen +ONLY_FOR_PLATFORM= NetBSD-1.5*-i386 + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/gpart/files/md5 b/sysutils/gpart/files/md5 new file mode 100644 index 00000000000..090088379f6 --- /dev/null +++ b/sysutils/gpart/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ + +MD5 (gpart-0.1g.tar.gz) = 7a4f1debf68b33b9668d2cdcd5af3946 diff --git a/sysutils/gpart/files/patch-sum b/sysutils/gpart/files/patch-sum new file mode 100644 index 00000000000..0c9becc34d4 --- /dev/null +++ b/sysutils/gpart/files/patch-sum @@ -0,0 +1,7 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ + +MD5 (patch-aa) = 8a54e6f9a6bef20a239914ba05994f5a +MD5 (patch-ab) = c35a90ef539336bd2d96cb213bd5f1ca +MD5 (patch-ac) = 3ef29621d31701ca0410cd52b5b7c1b9 +MD5 (patch-ad) = c3e1cd4bbc91ec81b2dee3078fdb6284 +MD5 (patch-ae) = 59427b0777cfdb45d559e7f06e94f8bc diff --git a/sysutils/gpart/patches/patch-aa b/sysutils/gpart/patches/patch-aa new file mode 100644 index 00000000000..66d5fb9e91a --- /dev/null +++ b/sysutils/gpart/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ + +--- src/disku.c Sun May 14 14:04:23 2000 ++++ src/disku.c Sun Jul 16 10:58:08 2000 +@@ -25,7 +25,7 @@ + #include + #endif + +-#if defined(__FreeBSD__) ++#if defined(__FreeBSD__) || defined(__NetBSD__) + #include + #include + #endif +@@ -52,7 +52,7 @@ + + #endif + +-#if defined(__FreeBSD__) ++#if defined(__FreeBSD__) || defined(__NetBSD__) + struct disklabel dl; + if (ioctl(d->d_fd,DIOCGDINFO,&dl) == -1) + pr(FATAL,EM_IOCTLFAILED,"DIOCGDINFO",strerror(errno)); diff --git a/sysutils/gpart/patches/patch-ab b/sysutils/gpart/patches/patch-ab new file mode 100644 index 00000000000..7e884fd0faf --- /dev/null +++ b/sysutils/gpart/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ + +--- src/gpart.c Sun May 14 14:08:15 2000 ++++ src/gpart.c Sun Jul 16 11:01:41 2000 +@@ -290,9 +290,10 @@ + { 0x86, "FAT16 volume/stripe set" }, + { 0x93, "Amoeba filesystem" }, + { 0x94, "Amoeba bad block table" }, +- { 0xA5, "FreeBSD/NetBSD/386BSD" }, ++ { 0xA5, "FreeBSD or 386BSD or old NetBSD" }, + { 0xA6, "OpenBSD" }, + { 0xA7, "NEXTSTEP" }, ++ { 0xA9, "NetBSD" }, + { 0xB7, "BSDI BSD/386 filesystem" }, + { 0xB8, "BSDI BSD/386 swap" }, + { 0xC7, "Syrinx" }, diff --git a/sysutils/gpart/patches/patch-ac b/sysutils/gpart/patches/patch-ac new file mode 100644 index 00000000000..fd407cbac8e --- /dev/null +++ b/sysutils/gpart/patches/patch-ac @@ -0,0 +1,14 @@ +$NetBSD: patch-ac,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ + +--- src/l64seek.c Sun May 14 14:04:23 2000 ++++ src/l64seek.c Sun Jul 16 10:58:50 2000 +@@ -46,7 +46,8 @@ + ret = (off64_t)-1; + #endif + +-#if defined(__FreeBSD__) || (defined(__linux__) && defined(__alpha__)) ++#if defined(__FreeBSD__) || defined(__NetBSD__) || \ ++ (defined(__linux__) && defined(__alpha__)) + ret = lseek(fd,offset,whence); + #endif + diff --git a/sysutils/gpart/patches/patch-ad b/sysutils/gpart/patches/patch-ad new file mode 100644 index 00000000000..8b77761d712 --- /dev/null +++ b/sysutils/gpart/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ + +--- src/l64seek.h Sun May 14 14:04:23 2000 ++++ src/l64seek.h Sun Jul 16 10:59:15 2000 +@@ -33,7 +33,7 @@ + #endif + + +-#if defined(__FreeBSD__) ++#if defined(__FreeBSD__) || defined(__NetBSD__) + typedef off_t off64_t; + #endif + diff --git a/sysutils/gpart/patches/patch-ae b/sysutils/gpart/patches/patch-ae new file mode 100644 index 00000000000..aa3de3aef4b --- /dev/null +++ b/sysutils/gpart/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ + +--- inst.defs Sun May 14 14:04:24 2000 ++++ inst.defs Fri Sep 1 17:29:26 2000 +@@ -1,7 +1,7 @@ + # + # installation directories for gpart + # +-prefix=/usr/local ++prefix=${PREFIX} + bindir=$(prefix)/bin + libdir=$(prefix)/lib + mandir=$(prefix)/man diff --git a/sysutils/gpart/pkg/COMMENT b/sysutils/gpart/pkg/COMMENT new file mode 100644 index 00000000000..6d91e97b1da --- /dev/null +++ b/sysutils/gpart/pkg/COMMENT @@ -0,0 +1 @@ +Tool to show the partitions on a PC type harddisk. diff --git a/sysutils/gpart/pkg/DESCR b/sysutils/gpart/pkg/DESCR new file mode 100644 index 00000000000..9b7e919f409 --- /dev/null +++ b/sysutils/gpart/pkg/DESCR @@ -0,0 +1,3 @@ +Gpart is a small tool which tries to guess what partitions +are on a PC type harddisk in case the primary partition table +was damaged. diff --git a/sysutils/gpart/pkg/PLIST b/sysutils/gpart/pkg/PLIST new file mode 100644 index 00000000000..b2cac4d8ccd --- /dev/null +++ b/sysutils/gpart/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/09/01 16:10:28 veego Exp $ +bin/gpart +man/man8/gpart.8 -- cgit v1.2.3