debian/0000775000000000000000000000000012257175776007213 5ustar debian/dirs0000664000000000000000000000000512153167753010061 0ustar sbin debian/source/0000775000000000000000000000000012153167753010502 5ustar debian/source/format0000664000000000000000000000001412153167753011710 0ustar 3.0 (quilt) debian/gdisk.docs0000664000000000000000000000007512153167753011157 0ustar README NEWS cgdisk.html fixparts.html gdisk.html sgdisk.html debian/copyright0000664000000000000000000000231412153167753011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gptfdisk Source: http://sourceforge.net/projects/gptfdisk/ Files: * Copyright: 2011 Rod Smith License: LGPL-2.0+ Files: debian/* Copyright: 2011 Guillaume Delacour License: LGPL-2.0+ Files: crc32.cc crc32.h Copyright: 1999, 2000 Krzysztof Dabrowski 1999, 2000 ElysiuM deeZine License: LGPL-2.0+ License: LGPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package 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 Lesser 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 . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2". debian/gdisk.doc-base0000664000000000000000000000035712153167753011707 0ustar Document: gdisk Title: Gdisk manuals Author: Roderick W. Smith Abstract: Manuals for cgdisk, fixparts, gdisk and sgdisk Section: System/Administration Format: HTML Index: /usr/share/doc/gdisk/index.html Files: /usr/share/doc/gdisk/*.html debian/gdisk-noicu.manpages0000777000000000000000000000000012155431422015731 2gdisk.manpagesustar debian/changelog0000664000000000000000000001251212257175776011066 0ustar gdisk (0.8.8-1build1) trusty; urgency=medium * No change rebuild against libicu52 -- Dimitri John Ledkov Fri, 27 Dec 2013 04:03:10 +0000 gdisk (0.8.8-1) unstable; urgency=low * New upstream release (Closes: #729958) * debian/patches/set_default_partition_type-test.diff don't use a kernel dependent default gpt type when creating a partition (Closes: #729957) * Bump to Standards-Version 3.9.5 (no changes needed) * *.lintian-overrides: Removed as fixparts use fortified functions * Refresh patch debian/patches/manpages.diff (hyphen as minus) -- Guillaume Delacour Fri, 20 Dec 2013 17:41:44 +0100 gdisk (0.8.7-1) unstable; urgency=low * New upstream release * Refresh patch debian/patches/manpages.diff (hyphen as minus) * Recommends groff-base instead of depends on it (Closes: #698622) * debian/patches/kfreebsd_character_devices.diff: all devices are characters devices on kFreeBSD, thanks Jeff Epler (Closes: #696813) * Run test suite at build time, thanks Michael Terry (Closes: #695173) + debian/patches/fix-change_disk_uid-test.diff: exit with 1 in case of error + debian/rules: launch gdisk_test.sh test script in override_dh_auto_test * Build a second gdisk package without Unicode support (Closes: #702544): + debian/control + debian/doc-base + debian/docs (same content) + debian/manpages (same content) * Bump to Standards-Version 3.9.4 (no changes needed) -- Guillaume Delacour Wed, 31 Jul 2013 21:42:39 +0200 gdisk (0.8.5-1) unstable; urgency=low * New upstream release * Refresh patch debian/patches/manpages.diff (hyphen as minus) * debian/rules: Enable hardening build flags * debian/docs: Install *.html upstream man2html pages * debian/doc-base: Register *.html pages and install an index * debian/lintian-overrides: fixparts doesn't use fortify functions -- Guillaume Delacour Sat, 16 Jun 2012 14:30:59 +0200 gdisk (0.8.4-1) unstable; urgency=low * New upstream release: + Fix FTBFS with gcc-4.7 (Closes: #667177) + Drop debian/patches/eof_stdin.diff, accepted upstream + Refresh debian/patches/manpages.diff (minor typo fixed upstream) -- Guillaume Delacour Sun, 15 Apr 2012 22:07:40 +0200 gdisk (0.8.2-1) unstable; urgency=low * New upstream release * debian/patches/manpages.diff: + Edit header with DEP3 format + Refresh original patch (as version has changed in the manpage) + Add an escape on single quote + Fix a minor typo (Closes: #651379) * debian/patches/eof_stdin.diff: avoid infinite loop when ^D in gdisk, thanks Gianluigi Tiesi (Closes: #660815) * debian/control: + Remove unnecessary "for" in long description (Closes: #644537) + Update Depends on debhelper v9 + Bump to Standards-Version 3.9.3 (no changes needed) * debian/compat: Update compat to version 9 * debian/copyright: Update url format -- Guillaume Delacour Wed, 21 Mar 2012 23:18:43 +0100 gdisk (0.8.1-1) unstable; urgency=low * New upstream release * debian/rules: Install cgdisk binary (curses based) * debian/manpages: Install cgdisk manpage * debian/control: + Remove Intel-based from description thanks Witold Baryluk (Closes: #642363) + Add libncurses5-dev in Build-Depends * debian/copyright: Change to new DEP-5 format * debian/patches/manpages.diff: Refresh patch to escape two hyphen -- Guillaume Delacour Mon, 03 Oct 2011 20:46:30 +0200 gdisk (0.7.2-1) unstable; urgency=low * New upstream release, provide fixparts binary * debian/watch: Upstream has renamed tarball gptfdisk and it is now a tar.gz * debian/rules: Install fixparts binary * debian/manpages: Install fixparts.8 manpage * debian/control: Add Vcs-{Browser,Git}, point to collab-maint * Bump to Standards-Version 3.9.2 (no changes needed) * Add build-depends on libicu-dev -- Guillaume Delacour Fri, 22 Jul 2011 15:10:17 +0200 gdisk (0.6.14-1) unstable; urgency=low * New upstream release, include new sgdisk binary (Closes: #599437) * debian/patches/manpages.diff: Escape ' in gdisk.8 (hyphen-used-as-minus-sign lintian's complain) * debian/rules: More simple version with debhelper 7.0.50 * debian/control: + Depends on debhelper (>= 7.0.50~) + Add uuid-dev and libpopt0-dev to Build-Depends + Bump to Standards-Version 3.9.1 (no changes needed) + Warning on description to mention that gdisk is still beta software * debian/docs: add NEWS, (Upstream CHANGELOG is now NEWS file) * debian/manpages: add {s}gdisk.8 manpages * debian/watch: Point to right url (gptfdisk instead of gdisk, other project) * debian/copyright: + Add missing copyright holders (crc32.{cc,h}) + Specify GPL-2 or later for crc32.{cc,h} files * Switch to dpkg-source 3.0 (quilt) format (remove debian/README.source) * Bump to Standards-Version 3.9.1 (no changes needed) -- Guillaume Delacour Wed, 26 Jan 2011 20:55:51 +0100 gdisk (0.5.1-1) unstable; urgency=low * New upstream release * Drop tiny patch 01_spelling-error-in-binary (fixed upstream) -- Guillaume Delacour Tue, 01 Dec 2009 21:04:25 +0100 gdisk (0.5.0-1) unstable; urgency=low * Initial release (Closes: #557516) -- Guillaume Delacour Sun, 01 Nov 2009 15:39:17 +0000 debian/gdisk-noicu.doc-base0000664000000000000000000000040112155426652013006 0ustar Document: gdisk-noicu Title: Gdisk manuals Author: Roderick W. Smith Abstract: Manuals for cgdisk, fixparts, gdisk and sgdisk Section: System/Administration Format: HTML Index: /usr/share/doc/gdisk-noicu/index.html Files: /usr/share/doc/gdisk-noicu/*.html debian/control0000664000000000000000000000303512257175776010617 0ustar Source: gdisk Section: admin Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Guillaume Delacour Build-Depends: debhelper (>= 9), libpopt-dev, uuid-dev, libicu-dev, libncurses5-dev Standards-Version: 3.9.5 Homepage: http://sourceforge.net/projects/gptfdisk/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/gdisk.git Vcs-Git: git://anonscm.debian.org/collab-maint/gdisk.git Package: gdisk Architecture: any Conflicts: gdisk-noicu Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: groff-base Description: GPT fdisk text-mode partitioning tool GPT fdisk (aka gdisk) is a text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks, rather than on the more common (through 2009) Master Boot Record (MBR) partition tables. . Please note that gdisk is still in beta version. Package: gdisk-noicu Architecture: any Provides: gdisk Conflicts: gdisk Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: groff-base Description: GPT fdisk text-mode partitioning tool (without unicode support) GPT fdisk (aka gdisk) is a text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks, rather than on the more common (through 2009) Master Boot Record (MBR) partition tables. . This package is not built with Unicode, for space-constrained systems. For Unicode support, please install the gdisk package. . Please note that gdisk is still in beta version. debian/rules0000775000000000000000000000263712155432453010264 0ustar #!/usr/bin/make -f # -*- makefile -*- # hardening options at build time export DEB_BUILD_HARDENING=1 override_dh_clean: $(RM) -rf $(CURDIR)/build-gdisk $(RM) -rf $(CURDIR)/build-gdisk-noicu $(MAKE) clean dh_clean override_dh_auto_build: install -d $(CURDIR)/build-gdisk $(MAKE) -C $(CURDIR)/build-gdisk -f ../Makefile VPATH=.. install -d $(CURDIR)/build-gdisk-noicu $(MAKE) -C $(CURDIR)/build-gdisk-noicu -f ../Makefile VPATH=.. USE_ICU=0 # Upstream Makefile don't provide install rule override_dh_install: # gdisk install -D build-gdisk/gdisk $(CURDIR)/debian/gdisk/sbin/gdisk install -D build-gdisk/sgdisk $(CURDIR)/debian/gdisk/sbin/sgdisk install -D build-gdisk/cgdisk $(CURDIR)/debian/gdisk/sbin/cgdisk install -D build-gdisk/fixparts $(CURDIR)/debian/gdisk/sbin/fixparts # gdisk-noicu install -D build-gdisk-noicu/gdisk $(CURDIR)/debian/gdisk-noicu/sbin/gdisk install -D build-gdisk-noicu/sgdisk $(CURDIR)/debian/gdisk-noicu/sbin/sgdisk install -D build-gdisk-noicu/cgdisk $(CURDIR)/debian/gdisk-noicu/sbin/cgdisk install -D build-gdisk-noicu/fixparts $(CURDIR)/debian/gdisk-noicu/sbin/fixparts # install index page for doc-base install -D debian/index.html $(CURDIR)/debian/gdisk/usr/share/doc/gdisk/index.html install -D debian/index.html $(CURDIR)/debian/gdisk-noicu/usr/share/doc/gdisk-noicu/index.html override_dh_auto_test: ./gdisk_test.sh build-gdisk ./gdisk_test.sh build-gdisk-noicu %: dh $@ debian/watch0000664000000000000000000000006712153167753010236 0ustar version=3 http://sf.net/gptfdisk/gptfdisk-(.+)\.tar.gz debian/gdisk.manpages0000664000000000000000000000004512153167753012017 0ustar gdisk.8 sgdisk.8 fixparts.8 cgdisk.8 debian/patches/0000775000000000000000000000000012255071506010622 5ustar debian/patches/conditional-icu.diff0000664000000000000000000000373312155432640014542 0ustar Description: Add LD_ICU flag in Makefile to disable icu support at build-time Author: Ryan Finnie Last-Update: 2013-06-10 Bug-Debian: http://bugs.debian.org/702544 Forwarded: no --- a/Makefile +++ b/Makefile @@ -1,8 +1,14 @@ CC=gcc CXX=g++ CFLAGS+=-D_FILE_OFFSET_BITS=64 -CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 +ifeq ($(USE_ICU),0) +CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 #CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 +LD_ICU= +else +CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 +LD_ICU=-licuio -licuuc +endif LDFLAGS+= LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix MBR_LIBS=support diskio diskio-unix basicmbr mbrpart @@ -15,15 +21,15 @@ gdisk: $(LIB_OBJS) gdisk.o gpttext.o # $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -luuid -o gdisk - $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) -licuio -licuuc -luuid -o gdisk + $(CXX) $(LIB_OBJS) gdisk.o gpttext.o $(LDFLAGS) $(LD_ICU) -luuid -o gdisk cgdisk: $(LIB_OBJS) cgdisk.o gptcurses.o # $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -luuid -lncurses -o cgdisk - $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -licuio -licuuc -luuid -lncurses -o cgdisk + $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) $(LD_ICU) -luuid -lncurses -o cgdisk sgdisk: $(LIB_OBJS) sgdisk.o gptcl.o # $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -luuid -lpopt -o sgdisk - $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) -licuio -licuuc -luuid -lpopt -o sgdisk + $(CXX) $(LIB_OBJS) sgdisk.o gptcl.o $(LDFLAGS) $(LD_ICU) -luuid -lpopt -o sgdisk fixparts: $(MBR_LIB_OBJS) fixparts.o $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts --- a/gdisk_test.sh +++ b/gdisk_test.sh @@ -33,8 +33,8 @@ # Try to generate a wrong GPT table to detect problems (test --verify) # Create MBR partition table with fdisk and migrate it with gdisk -GDISK_BIN=./gdisk -SGDISK_BIN=./sgdisk +GDISK_BIN=$1/gdisk +SGDISK_BIN=$1/sgdisk OPT_CLEAR="o" OPT_NEW="n" debian/patches/manpages.diff0000664000000000000000000000251612254670435013260 0ustar From: Guillaume Delacour Subject: Fix minor errors in manpages (hyphen as minus) Last-Update: 2013-12-19 Forwarded: no --- a/sgdisk.8 +++ b/sgdisk.8 @@ -165,7 +165,7 @@ \fItoggle\fR options enable you to change the attribute bit value. The \fIset\fR, \fIclear\fR, \fItoggle\fR, and \fIget\fR options work on a bit number; the others work on a hexadecimal bit mask. For example, type -\fBsgdisk -A 4:set:2 /dev/sdc\fR to set the bit 2 attribute (legacy BIOS +\fBsgdisk \-A 4:set:2 /dev/sdc\fR to set the bit 2 attribute (legacy BIOS bootable) on partition 4 on \fI/dev/sdc\fR. .TP @@ -346,7 +346,7 @@ Clear out all partition data. This includes GPT header data, all partition definitions, and the protective MBR. Note that this operation will, like most other operations, fail on a damaged disk. If you want to prepare a -disk you know to be damaged for GPT use, you should first wipe it with -Z +disk you know to be damaged for GPT use, you should first wipe it with \-Z and then partition it normally. This option will work even if the disk's original partition table is bad; however, most other options on the same command line will be ignored. @@ -487,7 +487,7 @@ .TP .B 8 -Disk replication operation (-R) failed +Disk replication operation (\-R) failed .SH "BUGS" As of October 2013 (version 0.8.8), \fBsgdisk\fR debian/patches/fix-change_disk_uid-test.diff0000664000000000000000000000074512155427653016332 0ustar Description: Fixup test script to exit 1 on all failures The change_disk_guid test does not exit 1 on failure when it really should do to indicate test script failure. Author: James Page Last-Update: 2013-06-10 Forwarded: no --- a/gdisk_test.sh +++ b/gdisk_test.sh @@ -311,6 +311,7 @@ EOF pretty_print "SUCCESS" "GUID of disk has been sucessfully changed" else pretty_print "FAILED" "GUID of disk is the same as the previous one" + exit 1 fi } debian/patches/set_default_partition_type-test.diff0000664000000000000000000000102612255071506020061 0ustar Decription: Don't use a kernel dependent default gpt type when creating a partition (Linux is 8300 and kFreeBSD is A503, see support.h) Author: Guillaume Delacour Last-Update: 2013-12-19 Forwarded: no --- a/gdisk_test.sh +++ b/gdisk_test.sh @@ -147,7 +147,7 @@ ;; sgdisk) - $SGDISK_BIN $TEMP_DISK -${OPT_NEW} 1 -${OPT_CHANGE_NAME} 1:"${TEST_PART_DEFAULT_NAME}" + $SGDISK_BIN $TEMP_DISK -${OPT_NEW} 1 -${OPT_CHANGE_NAME} 1:"${TEST_PART_DEFAULT_NAME}" -${OPT_CHANGE_TYPE} 1:$TEST_PART_TYPE ;; esac debian/patches/kfreebsd_character_devices.diff0000664000000000000000000000127212176277540016771 0ustar From: Jeff Epler Subject: All devices are characters devices on kFreeBSD Last-Update: 2013-07-31 Bug-Debian: http://bugs.debian.org/696813 Forwarded: https://sourceforge.net/p/gptfdisk/mailman/message/31237858/ --- a/diskio-unix.cc +++ b/diskio-unix.cc @@ -73,7 +73,8 @@ if (fstat64(fd, &st) == 0) { if (S_ISDIR(st.st_mode)) cerr << "The specified path is a directory!\n"; -#if !defined(__FreeBSD__) && !defined(__APPLE__) +#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \ + && !defined(__APPLE__) else if (S_ISCHR(st.st_mode)) cerr << "The specified path is a character device!\n"; #endif debian/patches/series0000664000000000000000000000020612254440241012030 0ustar set_default_partition_type-test.diff manpages.diff kfreebsd_character_devices.diff fix-change_disk_uid-test.diff conditional-icu.diff debian/compat0000664000000000000000000000000212153167753010400 0ustar 9 debian/gdisk-noicu.docs0000777000000000000000000000000012163553746014240 2gdisk.docsustar debian/index.html0000664000000000000000000000041212153167753011174 0ustar Manpage of GDISK project Manuals available: