1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Add extra patch to fix functionality under > 4.x

(disk usage would always show 0)
- Bump PORTREVISION

PR:		88151
Submitted by:	Serge Gagnon <serge.gagnon@b2b2c.ca>
This commit is contained in:
Emanuel Haupt 2005-10-28 20:36:30 +00:00
parent 2ec826ae42
commit 99b92e4d72
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=146594
2 changed files with 23 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= disktool
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://ftp.auxio.org/pub/mirrors/step.polymtl.ca/pub/Xview/apps/disktool/
DISTNAME= disktool-2.0c
@ -26,6 +27,12 @@ ALL_TARGET= disktool
MAN1= disktool.1
PLIST_FILES= bin/disktool
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000
EXTRA_PATCHES= ${FILESDIR}/extrapatch-disktool.c
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile
@ -34,4 +41,4 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/disktool.man \
${PREFIX}/man/man1/disktool.1
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -0,0 +1,15 @@
--- disktool.c.orig Fri Oct 28 14:10:55 2005
+++ disktool.c Fri Oct 28 14:13:09 2005
@@ -168,9 +168,9 @@
}
/* ==========================================================================*/
-long kbytes(blocks, blocksize)
- long blocks;
- long blocksize;
+int64_t kbytes(blocks, blocksize)
+ int64_t blocks;
+ uint64_t blocksize;
{
/* Return number of kilobytes given the number of blocks and the block size.
This isn't quite trivial because a 32 bit signed long integer could easily