Files
bpfire/lfs/gptfdisk
Adolf Belka f4b1a71d2f gptfdisk: Update to version 1.0.9
- Update from version 1.0.8 to 1.0.9
- No rootfile required
- Changelog
   1.0.9 (4/14/2022):
	- Removed stray debugging code that caused "partNum is {x}" to be printed
	  when changing a partition's name with sgdisk (-c/--change-name).
	- Added support for aligning partitions' end points, as well as their start
	  points. This support affects the default partition size when using 'n' in
	  gdisk; it affects the default partition size in cgdisk; and it's activated
	  by the new '-I' option in sgdisk. See the programs' respective man pages
	  for details. This feature is intended to help with LUKS2 encryption, which
	  reacts badly to partitions that are not sized as exact multiples of the
	  encryption block size.
	- Added check for too-small disks (most likely to be an issue when trying
	  to use a too-small disk image); program now aborts if this happens.
	- Added the ability to build sgdisk and cgdisk for Windows.
	- Added new type codes:
	  * FreeBSD nandfs (0xa506)
	  * Apple APFS Pre-Boot (0xaf0b)
	  * Apple APFS Recovery (0xaf0c)
	  * ChromeOS firmware (0x7f03)
	  * ChromeOS mini-OS (0x7f04)
	  * ChromeOS hibernate (0x7f05)
	  * U-Boot boot loader (0xb000)
	  * 27 (!) codes for Fuchsia (0xf100 to 0xf11a)
	- Fixed build problems with recent versions of ncurses.
	- Fixed bug that caused cgdisk to report incorrect partition attributes.
	- Consolidated Makefiles for Linux, FreeBSD, Solaris, macOS, and Windows
	  (32- and 64-bit). The old OS-specific Makefiles remain in case the new
	  consolidated Makefile has problems, but the old ones are deprecated.
	  (The Solaris support in the new Makefile is untested.)

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-07-09 09:08:11 +00:00

86 lines
3.3 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2022 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.9
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 = 2
DEPS =
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 1939ffd75972a4d7f92af2bfab90c7b0223825b5478b6b808dd35af943c687d38ba81663cd7ba5e0f9400656db4dac019c13a9f75d90b7bd716568c676c24dd2
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)