From 2530ea84c58780defb9eadbf3b8aec3bc3cf98de Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Tue, 7 Oct 2003 14:34:50 +0000 Subject: - fix md5 checksum (There are no changes in files. Only man directory modification date/time changes.) - fix run on current (couldn't calculate disk geometry) - remove dead URLs from MASTER_SITES - change obsoleted disk name wd -> ad in manpage example PR: 57555 Submitted By: Sergey Matveychuk --- sysutils/gpart/Makefile | 4 +--- sysutils/gpart/distinfo | 2 +- sysutils/gpart/files/patch-ac | 51 +++++++++++++++++++++++++++++++++++++++++++ sysutils/gpart/files/patch-ad | 11 ++++++++++ 4 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 sysutils/gpart/files/patch-ac create mode 100644 sysutils/gpart/files/patch-ad (limited to 'sysutils') diff --git a/sysutils/gpart/Makefile b/sysutils/gpart/Makefile index f9b530de7ac7..7ab8c069b5e3 100644 --- a/sysutils/gpart/Makefile +++ b/sysutils/gpart/Makefile @@ -8,9 +8,7 @@ PORTNAME= gpart PORTVERSION= 0.1h CATEGORIES= sysutils -MASTER_SITES= http://home.pages.de/~michab/gpart/ \ - http://www.stud.uni-hannover.de/user/76201/gpart/ \ - ${MASTER_SITE_SUNSITE} +MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= system/filesystems MAINTAINER= andrew@ugh.net.au diff --git a/sysutils/gpart/distinfo b/sysutils/gpart/distinfo index edd1f978f712..ed7de4f739a5 100644 --- a/sysutils/gpart/distinfo +++ b/sysutils/gpart/distinfo @@ -1 +1 @@ -MD5 (gpart-0.1h.tar.gz) = ee3a2d2dde70bcf404eb354b3d1ee6d4 +MD5 (gpart-0.1h.tar.gz) = 23a7620394033e478d0d03c392c405bd diff --git a/sysutils/gpart/files/patch-ac b/sysutils/gpart/files/patch-ac new file mode 100644 index 000000000000..a9e542ecfdd7 --- /dev/null +++ b/sysutils/gpart/files/patch-ac @@ -0,0 +1,51 @@ +--- src/disku.c.orig Sat Oct 4 04:33:32 2003 ++++ src/disku.c Sat Oct 4 04:33:38 2003 +@@ -28,7 +28,11 @@ + + #if defined(__FreeBSD__) + #include ++#include + #include ++#if __FreeBSD_version >= 500040 ++#include ++#endif + #endif + + +@@ -61,12 +65,36 @@ + #endif + + #if defined(__FreeBSD__) ++#if __FreeBSD_version < 500040 + struct disklabel dl; + if (ioctl(d->d_fd,DIOCGDINFO,&dl) == -1) + pr(FATAL,EM_IOCTLFAILED,"DIOCGDINFO",strerror(errno)); + g.d_c = dl.d_ncylinders; + g.d_h = dl.d_ntracks; + g.d_s = dl.d_nsectors; ++#else ++ struct disklabel loclab; ++ u_int u; ++ ++ if (ioctl(d->d_fd, DIOCGFWSECTORS, &u) == 0) ++ loclab.d_nsectors = u; ++ else ++ loclab.d_nsectors = 63; ++ if (ioctl(d->d_fd, DIOCGFWHEADS, &u) == 0) ++ loclab.d_ntracks = u; ++ else if (loclab.d_secperunit <= 63*1*1024) ++ loclab.d_ntracks = 1; ++ else if (loclab.d_secperunit <= 63*16*1024) ++ loclab.d_ntracks = 16; ++ else ++ loclab.d_ntracks = 255; ++ loclab.d_secpercyl = loclab.d_ntracks * loclab.d_nsectors; ++ loclab.d_ncylinders = loclab.d_secperunit / loclab.d_secpercyl; ++ ++ g.d_c = loclab.d_ncylinders; ++ g.d_h = loclab.d_ntracks; ++ g.d_s = loclab.d_nsectors; ++#endif + #endif + + return (&g); diff --git a/sysutils/gpart/files/patch-ad b/sysutils/gpart/files/patch-ad new file mode 100644 index 000000000000..3c7561d21846 --- /dev/null +++ b/sysutils/gpart/files/patch-ad @@ -0,0 +1,11 @@ +--- man/gpart.man.orig Sat Oct 4 04:34:37 2003 ++++ man/gpart.man Sat Oct 4 04:34:43 2003 +@@ -378,7 +378,7 @@ + drive without starting the scan loop in FreeBSD type + + .RS +-gpart -vvd /dev/wd2 ++gpart -vvd /dev/ad2 + .RE + .RE + -- cgit v1.2.3