1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

sysutils/gdisk: Update to 1.0.10

- Update WWW and clean up pkg-descr

Changes:	https://www.rodsbooks.com/gdisk/revisions.html
This commit is contained in:
Po-Chuan Hsieh 2024-03-09 21:45:57 +08:00
parent 325f596e74
commit 6901cd6903
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
4 changed files with 5 additions and 45 deletions

View File

@ -1,13 +1,12 @@
PORTNAME= gdisk
PORTVERSION= 1.0.9
PORTREVISION= 4
PORTVERSION= 1.0.10
CATEGORIES= sysutils
MASTER_SITES= SF/gptfdisk/gptfdisk/${PORTVERSION}
DISTNAME= gptfdisk-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= GPT fdisk
WWW= https://www.rodsbooks.com/fixparts/
WWW= https://www.rodsbooks.com/gdisk/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1650228694
SHA256 (gptfdisk-1.0.9.tar.gz) = dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2
SIZE (gptfdisk-1.0.9.tar.gz) = 215065
TIMESTAMP = 1709390420
SHA256 (gptfdisk-1.0.10.tar.gz) = 2abed61bc6d2b9ec498973c0440b8b804b7a72d7144069b5a9209b2ad693a282
SIZE (gptfdisk-1.0.10.tar.gz) = 220787

View File

@ -1,37 +0,0 @@
--- gptcl.cc.orig 2022-04-14 23:17:12 UTC
+++ gptcl.cc
@@ -71,7 +71,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
uint64_t low, high, startSector, endSector, sSize, mainTableLBA;
uint64_t temp; // temporary variable; free to use in any case
char *device;
- string cmd, typeGUID, name;
+ string cmd, typeGUID, name, devstr;
PartType typeHelper;
struct poptOption theOptions[] =
@@ -156,12 +156,14 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
// Assume first non-option argument is the device filename....
device = (char*) poptGetArg(poptCon);
+ if (device != NULL)
+ devstr = device;
poptResetContext(poptCon);
- if (device != NULL) {
+ if (!devstr.empty()) {
JustLooking(); // reset as necessary
BeQuiet(); // Tell called functions to be less verbose & interactive
- if (LoadPartitions((string) device)) {
+ if (LoadPartitions(devstr)) {
if ((WhichWasUsed() == use_mbr) || (WhichWasUsed() == use_bsd))
saveNonGPT = 0; // flag so we don't overwrite unless directed to do so
sSize = GetBlockSize();
@@ -498,7 +500,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
cerr << "Error encountered; not saving changes.\n";
retval = 4;
} // if
- } // if (device != NULL)
+ } // if (devstr empty)
poptFreeContext(poptCon);
return retval;
} // GPTDataCL::DoOptions()

View File

@ -10,5 +10,3 @@ GPT-partitioned disks. Specific advantages of gdisk, cgdisk and sgdisk include:
- Repair damaged GPT data structures
- The ability to specify sector-exact partition sizes
- Clear identification of the number of unallocated sectors on a disk
See also: https://www.rodsbooks.com/gdisk/