View | Details | Raw Unified | Return to bug 160812
Collapse All | Expand All

(-)gdisk/Makefile (-13 / +35 lines)
Lines 6-16 Link Here
6
#
6
#
7
7
8
PORTNAME=	gdisk
8
PORTNAME=	gdisk
9
PORTVERSION=	0.6.14
9
PORTVERSION=	0.8.0
10
CATEGORIES=	sysutils
10
CATEGORIES=	sysutils
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	http://sourceforge.net/projects/%SUBDIR%/
12
MASTER_SITE_SUBDIR=	gptfdisk/gptfdisk/${PORTVERSION}
12
MASTER_SITE_SUBDIR=	gptfdisk/files/gptfdisk/${PORTVERSION}
13
EXTRACT_SUFX=	.tgz
13
DISTNAME=	gptfdisk-${PORTVERSION}
14
14
15
MAINTAINER=	fdn@okbire.ru
15
MAINTAINER=	fdn@okbire.ru
16
COMMENT=	GPT fdisk
16
COMMENT=	GPT fdisk
Lines 18-23 Link Here
18
LIB_DEPENDS=	uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \
18
LIB_DEPENDS=	uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \
19
		popt.0:${PORTSDIR}/devel/popt
19
		popt.0:${PORTSDIR}/devel/popt
20
20
21
WRKSRC=		${WRKDIR}/gptfdisk-${PORTVERSION}
22
21
LICENSE=	GPLv2
23
LICENSE=	GPLv2
22
LICENSE_FILE=	${WRKSRC}/COPYING
24
LICENSE_FILE=	${WRKSRC}/COPYING
23
25
Lines 25-30 Link Here
25
27
26
ONLY_FOR_ARCHS=	i386 amd64
28
ONLY_FOR_ARCHS=	i386 amd64
27
29
30
OPTIONS=	CGDISK "A curses-based interactive program" off \
31
		UTF16 "Support for Unicode partition names" off
32
28
.include <bsd.port.pre.mk>
33
.include <bsd.port.pre.mk>
29
34
30
.if ${OSVERSION} < 701100
35
.if ${OSVERSION} < 701100
Lines 33-54 Link Here
33
38
34
MAKEFILE=	Makefile.freebsd
39
MAKEFILE=	Makefile.freebsd
35
40
36
MAN8=		gdisk.8 sgdisk.8
41
PROGRAM_LIST=	fixparts gdisk sgdisk
42
43
.if defined(WITH_CGDISK)
44
PROGRAM_LIST+=	cgdisk
45
LIB_DEPENDS+=	ncurses.5:${PORTSDIR}/devel/ncurses
46
.endif
47
48
MAN8=
49
.for i in ${PROGRAM_LIST}
50
MAN8+=	${i}.8
51
.endfor
52
53
.if defined(WITH_UTF16)
54
LIB_DEPENDS+=	icuuc.48:${PORTSDIR}/devel/icu
55
.endif
37
56
38
post-patch:
57
post-patch:
39
	${REINPLACE_CMD} -e 's|/usr/include/||' ${WRKSRC}/guid.h
58
	${REINPLACE_CMD} -e 's|/usr/include/||' ${WRKSRC}/guid.h
40
	${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile.freebsd
59
	${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKEFILE}
41
60
42
do-install:
61
.if !defined(WITH_CGDISK)
43
.if !defined(NOPORTDOCS)
62
	${REINPLACE_CMD} -e '/^all:/s| cgdisk||' ${WRKSRC}/${MAKEFILE}
44
	${MKDIR} ${DOCSDIR}
63
.endif
64
65
.if !defined(WITH_UTF16)
66
	${REINPLACE_CMD} -e 's| -D USE_UTF16||' \
67
			 -e 's| -licuio||' ${WRKSRC}/${MAKEFILE}
45
.endif
68
.endif
46
.for i in gdisk sgdisk
69
70
do-install:
71
.for i in ${PROGRAM_LIST}
47
	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/sbin
72
	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/sbin
48
	${INSTALL_MAN} ${WRKSRC}/${i}.8 ${MANPREFIX}/man/man8
73
	${INSTALL_MAN} ${WRKSRC}/${i}.8 ${MANPREFIX}/man/man8
49
.if !defined(NOPORTDOCS)
50
	${INSTALL_MAN} ${WRKSRC}/${i}.html ${DOCSDIR}
51
.endif
52
.endfor
74
.endfor
53
75
54
post-install:
76
post-install:
(-)gdisk/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gdisk-0.6.14.tgz) = 9e8ff1d5fe17b9f2d00e8c51ccaa5d8d55e7e74f5cd8d936b99ea9366dd7c93c
1
SHA256 (gptfdisk-0.8.0.tar.gz) = 613c4b5e3d776a2bb723ee1d071ff9121d0f5a6df0f2f760a4536ecd30add824
2
SIZE (gdisk-0.6.14.tgz) = 136062
2
SIZE (gptfdisk-0.8.0.tar.gz) = 154431 
(-)gdisk/files/patch-Makefile.freebsd (-4 / +4 lines)
Lines 1-10 Link Here
1
--- ./Makefile.freebsd.orig	2010-11-21 19:20:03.000000000 +0100
1
--- Makefile.freebsd	2011-09-11 00:51:13.000000000 +0000
2
+++ ./Makefile.freebsd	2010-11-21 19:20:31.000000000 +0100
2
+++ Makefile.freebsd	2011-09-18 20:22:41.000000000 +0000
3
@@ -1,5 +1,5 @@
3
@@ -1,5 +1,5 @@
4
-CC=gcc
4
-CC=gcc
5
-CXX=g++
5
-CXX=g++
6
+CC?=gcc
6
+CC?=gcc
7
+CXX?=g++
7
+CXX?=g++
8
 CFLAGS+=-D_FILE_OFFSET_BITS=64
8
 CFLAGS+=-D_FILE_OFFSET_BITS=64
9
 CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -I/usr/local/include
9
 CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/usr/local/include
10
 LDFLAGS+=
10
 #CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include 
(-)gdisk/files/patch-cgdisk.8 (+25 lines)
Line 0 Link Here
1
--- cgdisk.8	2011-09-11 00:51:13.000000000 +0000
2
+++ cgdisk.8	2011-09-18 15:43:22.000000000 +0000
3
@@ -365,14 +365,14 @@
4
 
5
 
6
 .SH "SEE ALSO"
7
-\fBcfdisk (8)\fR,
8
-\fBfdisk (8)\fR,
9
-\fBgdisk (8)\fR,
10
-\fBmkfs (8)\fR,
11
-\fBparted (8)\fR,
12
-\fBsfdisk (8)\fR
13
-\fBsgdisk (8)\fR
14
-\fBfixparts (8)\fR
15
+\fBbsdlabel(8)\fR,
16
+\fBfdisk(8)\fR,
17
+\fBfixparts(8)\fR,
18
+\fBgdisk(8)\fR,
19
+\fBgpart(8)\fR,
20
+\fBgpt(8)\fR,
21
+\fBnewfs(8)\fR,
22
+\fBsgdisk(8)\fR
23
 
24
 \fIhttp://en.wikipedia.org/wiki/GUID_Partition_Table\fR
25
 
(-)gdisk/files/patch-fixparts.8 (+25 lines)
Line 0 Link Here
1
--- fixparts.8	2011-09-11 00:51:13.000000000 +0000
2
+++ fixparts.8	2011-09-18 15:23:35.000000000 +0000
3
@@ -265,14 +265,14 @@
4
 
5
 
6
 .SH "SEE ALSO"
7
-\fBcfdisk (8)\fR,
8
-\fBcgdisk (8)\fR,
9
-\fBfdisk (8)\fR,
10
-\fBmkfs (8)\fR,
11
-\fBparted (8)\fR,
12
-\fBsfdisk (8)\fR
13
-\fBgdisk (8)\fR
14
-\fBsgdisk (8)\fR
15
+\fBbsdlabel(8)\fR,
16
+\fBcgdisk(8)\fR,
17
+\fBfdisk(8)\fR,
18
+\fBgdisk(8)\fR,
19
+\fBgpart(8)\fR,
20
+\fBgpt(8)\fR,
21
+\fBnewfs(8)\fR,
22
+\fBsgdisk(8)\fR
23
 
24
 \fIhttp://en.wikipedia.org/wiki/Master_boot_record\fR
25
 
(-)gdisk/files/patch-gdisk.8 (-6 / +10 lines)
Lines 1-21 Link Here
1
--- gdisk.8	2010-07-04 05:25:20.000000000 +0000
1
--- gdisk.8	2011-09-11 00:51:13.000000000 +0000
2
+++ gdisk.8	2010-07-13 20:20:44.000000000 +0000
2
+++ gdisk.8	2011-09-18 15:33:20.000000000 +0000
3
@@ -652,12 +652,12 @@
3
@@ -666,14 +666,14 @@
4
 
4
 
5
 
5
 
6
 .SH "SEE ALSO"
6
 .SH "SEE ALSO"
7
-\fBcfdisk (8)\fR,
7
-\fBcfdisk (8)\fR,
8
-\fBcgdisk (8)\fR,
8
-\fBfdisk (8)\fR,
9
-\fBfdisk (8)\fR,
9
-\fBmkfs (8)\fR,
10
-\fBmkfs (8)\fR,
10
-\fBparted (8)\fR,
11
-\fBparted (8)\fR,
11
-\fBsfdisk (8)\fR
12
-\fBsfdisk (8)\fR
12
-\fBsgdisk (8)\fR
13
-\fBsgdisk (8)\fR
14
-\fBfixparts (8)\fR
13
+\fBbsdlabel(8)\fR,
15
+\fBbsdlabel(8)\fR,
14
+\fBfdisk(8)\fR,
16
+\fBcgdisk(8)\fR,
17
+\fBfdisk(8)\fR,   
18
+\fBfixparts(8)\fR,
15
+\fBgpart(8)\fR,
19
+\fBgpart(8)\fR,
16
+\fBgpt(8)\fR,
20
+\fBgpt(8)\fR,
17
+\fBnewfs(8)\fR,
21
+\fBnewfs(8)\fR, 
18
+\fBsgdisk(8)\fR
22
+\fBsgdisk(8)\fR   
19
 
23
 
20
 \fIhttp://en.wikipedia.org/wiki/GUID_Partition_Table\fR
24
 \fIhttp://en.wikipedia.org/wiki/GUID_Partition_Table\fR
21
 
25
 
(-)gdisk/files/patch-gdisk.html (-21 lines)
Lines 1-21 Link Here
1
--- gdisk.html	2010-09-25 23:48:12.000000000 +0000
2
+++ gdisk.html	2010-10-02 23:02:08.000000000 +0000
3
@@ -775,12 +775,12 @@
4
 <A NAME="lbAH">&nbsp;</A>
5
 <H2>SEE ALSO</H2>
6
 
7
-<B>cfdisk (8)</B>,
8
-<B>fdisk (8)</B>,
9
-<B>mkfs (8)</B>,
10
-<B>parted (8)</B>,
11
-<B>sfdisk (8)</B>
12
-<B>sgdisk (8)</B>
13
+<B>bsdlabel(8)</B>,
14
+<B>fdisk(8)</B>,
15
+<B>gpart(8)</B>,
16
+<B>gpt(8)</B>,
17
+<B>newfs(8)</B>,
18
+<B>sgdisk(8)</B>
19
 <P>
20
 <I><A HREF="http://en.wikipedia.org/wiki/GUID_Partition_Table">http://en.wikipedia.org/wiki/GUID_Partition_Table</A></I>
21
 <P>
(-)gdisk/files/patch-sgdisk.8 (-4 / +8 lines)
Lines 1-17 Link Here
1
--- sgdisk.8	2010-07-04 05:25:20.000000000 +0000
1
--- sgdisk.8	2011-09-11 00:51:13.000000000 +0000
2
+++ sgdisk.8	2010-07-13 20:21:03.000000000 +0000
2
+++ sgdisk.8	2011-09-18 15:37:53.000000000 +0000
3
@@ -535,12 +535,12 @@
3
@@ -578,14 +578,14 @@
4
 * Justin Maggard (justin.maggard@netgear.com)
4
 
5
 
5
 
6
 .SH "SEE ALSO"
6
 .SH "SEE ALSO"
7
-\fBcfdisk (8)\fR,
7
-\fBcfdisk (8)\fR,
8
-\fBcgdisk (8)\fR,
8
-\fBfdisk (8)\fR,
9
-\fBfdisk (8)\fR,
9
-\fBgdisk (8)\fR,
10
-\fBgdisk (8)\fR,
10
-\fBmkfs (8)\fR,
11
-\fBmkfs (8)\fR,
11
-\fBparted (8)\fR,
12
-\fBparted (8)\fR,
12
-\fBsfdisk (8)\fR
13
-\fBsfdisk (8)\fR
14
-\fBfixparts (8)\fR
13
+\fBbsdlabel(8)\fR,
15
+\fBbsdlabel(8)\fR,
16
+\fBcgdisk(8)\fR,
14
+\fBfdisk(8)\fR,
17
+\fBfdisk(8)\fR,
18
+\fBfixparts(8)\fR,
15
+\fBgdisk(8)\fR,
19
+\fBgdisk(8)\fR,
16
+\fBgpart(8)\fR,
20
+\fBgpart(8)\fR,
17
+\fBgpt(8)\fR,
21
+\fBgpt(8)\fR,
(-)gdisk/files/patch-sgdisk.html (-21 lines)
Lines 1-21 Link Here
1
--- sgdisk.html	2010-07-04 05:25:20.000000000 +0000
2
+++ sgdisk.html	2010-07-14 00:42:23.000000000 +0000
3
@@ -620,12 +620,12 @@
4
 <A NAME="lbAI">&nbsp;</A>
5
 <H2>SEE ALSO</H2>
6
 
7
-<B>cfdisk (8)</B>,
8
-<B>fdisk (8)</B>,
9
-<B>gdisk (8)</B>,
10
-<B>mkfs (8)</B>,
11
-<B>parted (8)</B>,
12
-<B>sfdisk (8)</B>
13
+<B>bsdlabel(8)</B>,
14
+<B>fdisk(8)</B>,
15
+<B>gdisk(8)</B>,
16
+<B>gpart(8)</B>,
17
+<B>gpt(8)</B>,
18
+<B>newfs(8)</B>
19
 <P>
20
 <I><A HREF="http://en.wikipedia.org/wiki/GUID_Partition_Table">http://en.wikipedia.org/wiki/GUID_Partition_Table</A></I>
21
 <P>
(-)gdisk/pkg-descr (-1 / +3 lines)
Lines 1-7 Link Here
1
GPT fdisk (aka gdisk) by Roderick W. Smith, rodsmith@rodsbooks.com
1
GPT fdisk (aka gdisk) by Roderick W. Smith, rodsmith@rodsbooks.com
2
2
3
This software is intended as a (somewhat) fdisk-workalike program for
3
This software is intended as a (somewhat) fdisk-workalike program for
4
GPT-partitioned disks. Specific advantages of gdisk and sgdisk include:
4
GPT-partitioned disks. Specific advantages of gdisk, cgdisk and
5
sgdisk include:
5
6
6
 * Edit GUID partition table (GPT) definitions in Linux, FreeBSD, MacOS X,
7
 * Edit GUID partition table (GPT) definitions in Linux, FreeBSD, MacOS X,
7
   or Windows
8
   or Windows
Lines 14-16 Link Here
14
 * Clear identification of the number of unallocated sectors on a disk
15
 * Clear identification of the number of unallocated sectors on a disk
15
16
16
WWW: http://www.rodsbooks.com/gdisk/
17
WWW: http://www.rodsbooks.com/gdisk/
18
     http://www.rodsbooks.com/fixparts/
(-)gdisk/pkg-message (-4 / +3 lines)
Lines 3-13 Link Here
3
3
4
        PLEASE, READ DOCUMENTATION BEFORE USE
4
        PLEASE, READ DOCUMENTATION BEFORE USE
5
5
6
See `man gdisk' , `man sgdisk' , `${DOCSDIR}/gdisk.html' ,
6
See `man gdisk' , `man cgdisk', `man sgdisk', `man fixparts'.
7
`${DOCSDIR}/sgdisk.html'.
8
7
9
Any errors in usage gdisk (sgdisk) or not understanding
8
Any errors in usage gdisk (cgdisk, sgdisk, fixparts) or
10
of that you do, can call loss of your data.
9
not understanding of that you do, can call loss of your data.
11
Make a backup copy of all data of a disk before you use
10
Make a backup copy of all data of a disk before you use
12
these programs for its processing.
11
these programs for its processing.
13
12
(-)gdisk/pkg-plist (-3 / +2 lines)
Lines 1-5 Link Here
1
sbin/cgdisk
2
sbin/fixparts
1
sbin/gdisk
3
sbin/gdisk
2
sbin/sgdisk
4
sbin/sgdisk
3
%%PORTDOCS%%%%DOCSDIR%%/gdisk.html
4
%%PORTDOCS%%%%DOCSDIR%%/sgdisk.html
5
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 160812