diff options
author | oliver <oliver@FreeBSD.org> | 2003-10-07 22:34:50 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2003-10-07 22:34:50 +0800 |
commit | eac38f9b3e765b75327328c229a0e67347d7a7bf (patch) | |
tree | 5e705d14029d375439e04b0aa41cae5b422783e0 | |
parent | 7f2e50364f4f05aff7dfdbb0fc9f0f5be55be93c (diff) | |
download | freebsd-ports-graphics-eac38f9b3e765b75327328c229a0e67347d7a7bf.tar.gz freebsd-ports-graphics-eac38f9b3e765b75327328c229a0e67347d7a7bf.tar.zst freebsd-ports-graphics-eac38f9b3e765b75327328c229a0e67347d7a7bf.zip |
- 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 <sem@ciam.ru>
-rw-r--r-- | sysutils/gpart/Makefile | 4 | ||||
-rw-r--r-- | sysutils/gpart/distinfo | 2 | ||||
-rw-r--r-- | sysutils/gpart/files/patch-ac | 51 | ||||
-rw-r--r-- | sysutils/gpart/files/patch-ad | 11 |
4 files changed, 64 insertions, 4 deletions
diff --git a/sysutils/gpart/Makefile b/sysutils/gpart/Makefile index f9b530de7ac..7ab8c069b5e 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 edd1f978f71..ed7de4f739a 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 00000000000..a9e542ecfdd --- /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 <errno.h> ++#include <sys/param.h> + #include <sys/disklabel.h> ++#if __FreeBSD_version >= 500040 ++#include <sys/disk.h> ++#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 00000000000..3c7561d2184 --- /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 + |