Files
bpfire/lfs/gptfdisk
Adolf Belka 68cf137999 gptfdisk: Update to version 1.0.10
- Update from version 1.0.9 to 1.0.10
- Update of rootfile not required
- Changelog
    1.0.10
	- Fixed problem that caused sgdisk to crash with errors about being unable
	  to read the disk's partition table when compiled with the latest popt
	  (commit 740, which is pre-release as I type; presumably version 1.19 and
	  later once released).
	- Updated guid.cc to deal with minor change in libuuid.
	- Fixed potential NULL derefernce bug in sgdisk. Thanks to Damian Kurek
	  for this fix.
	- The partition number of "0" can now be used to reference newly-created
	  partitions when the --largest-new=0 option to sgdisk is used. Thanks to
	  David Joaquín Shourabi Porcel for this improvement.
	- Make explicit casts in gptcurses.cc to eliminate compiler warnings about
	  mis-matched types in printw() statements.
	- Minor code cleanup based on valgrind analysis.
	- In previous versions, GPT fdisk accepted only integer values for partition
	  start points, end points, and sizes, and it interpreted decimal values
	  incorrectly. That is, if you typed "+9.5G" as the partition end point,
	  you'd end up with something just 9 sectors in size. This version now
	  truncates decimal numbers to their integral values, so you'd get a 9 GiB
	  partition instead.
	- Changes to optimize disk handling, particularly on Windows, courtesy of
	  Frediano Ziglio.
	- Added numerous new partition type codes from Discoverable Partitions
	  Specification
	  (https://uapi-group.org/specifications/specs/discoverable_partitions_specification/).
	- Added new sgdisk -k/--move-backup-table and gdisk k (on the experts' menu)
	  option to relocate the backup partition table. This is the counterpart of
	  the sgdisk -j/--move-main-table and gdisk j (on the experts' menu) option
	  to move the main partition table. This code comes from Niklas Gollenstede.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-02-29 10:21:54 +00:00

86 lines
3.3 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2024 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 1.0.10
THISAPP = gptfdisk-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = gptfdisk
PAK_VER = 3
DEPS =
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 9047bf68a2c5c254bda9b2815488963dc19a9415c90fbf4a127268a37fe8a545b7d45a333e356bd9da22e37ef649d9f60896ffedfdc35b60c7642a48e4ed2e5a
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
b2 : $(subst %,%_BLAKE2,$(objects))
dist:
@$(PAK)
###############################################################################
# Downloading, checking, b2sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_BLAKE2,$(objects)) :
@$(B2SUM)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xvfz $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && sed -i '29s#<ncursesw/ncurses.h>#<ncurses.h>#g' gptcurses.cc
cd $(DIR_APP) && make
cd $(DIR_APP) && cp cgdisk fixparts gdisk sgdisk /usr/sbin
@rm -rf $(DIR_APP)
@$(POSTBUILD)