- update to 3.0.0

- add an options for NLS
- upstream changes:
  * fix size and inode calculation on FreeBSD
  * new aguments:
    -l: show only local mounts
    -d: show the used size
    -e: allow to export informations in TeX, HTML, CSV
    -p: filter on file system name
    -q: sort the output
  * more: http://projects.gw-computing.net/news/12
This commit is contained in:
Baptiste Daroussin 2012-06-15 21:53:04 +00:00
parent 85529db3d5
commit 1145d6019e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299372
4 changed files with 45 additions and 24 deletions

View file

@ -6,22 +6,31 @@
# #
PORTNAME= dfc PORTNAME= dfc
PORTVERSION= 2.5.0 PORTVERSION= 3.0.0
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= http://projects.gw-computing.net/attachments/download/42/ MASTER_SITES= http://projects.gw-computing.net/attachments/download/63/
MAINTAINER= bapt@FreeBSD.org MAINTAINER= bapt@FreeBSD.org
COMMENT= Display file system space usage using graph and colors COMMENT= Display file system space usage using graph and colors
LICENSE= BSD LICENSE= BSD
PLIST_FILES= bin/dfc OPTIONS_DEFINE= NLS
USE_CMAKE= yes
CMAKE_ARGS+= -DMAN_PATH=${MANPREFIX}/man -DDFC_DOC_PATH=${DOCSDIR}
MANLANG= "" fr
MAN1= dfc.1 MAN1= dfc.1
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if ${OSVERSION} < 800000 .if ${PORT_OPTIONS:MNLS}
BROKEN= does not compile on FreeBSD 7.X CMAKE_ARGS+= -DNLS_ENABLED=true
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CMAKE_ARGS+= -DNLS_ENABLED=false
PLIST_SUB+= NLS="@comment "
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (dfc-2.5.0.tar.gz) = c76c6fc3cefd12609e5e09e3cd2773b1c78e2020ef58546964ce2180c83f65b1 SHA256 (dfc-3.0.0.tar.gz) = 703c40e99eeee764b53af3e2a16159fe24f87152780942d307a86535b07c5a8f
SIZE (dfc-2.5.0.tar.gz) = 12226 SIZE (dfc-3.0.0.tar.gz) = 39334

View file

@ -1,15 +1,11 @@
--- ./src/dfc.c.orig 2012-04-03 23:38:18.000000000 +0200 --- ./src/dfc.c.orig 2012-05-31 00:25:46.000000000 +0200
+++ ./src/dfc.c 2012-04-13 00:05:00.488294758 +0200 +++ ./src/dfc.c 2012-06-15 23:39:58.405538089 +0200
@@ -713,10 +713,12 @@ @@ -853,7 +853,7 @@
if (strlcat(buffer, ",acls", bufsize) >= bufsize) #if defined(__FreeBSD__) || defined(__APPLE__)
goto truncated; { MNT_MULTILABEL, "multilabel" },
/* NOTREACHED */ #endif
+#if __FreeBSD__version > 800000 -#if defined(__FreeBSD__)
if (flags & MNT_NFS4ACLS) +#if defined(__FreeBSD__) && __FreeBSD__version > 800000
if (strlcat(buffer, ",nfsv4acls", bufsize) >= bufsize) { MNT_NFS4ACLS, "nfs4acls" },
goto truncated; #endif
/* NOTREACHED */ #if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) \
+#endif
return buffer;
/* NOTREACHED */

16
sysutils/dfc/pkg-plist Normal file
View file

@ -0,0 +1,16 @@
etc/xdg/dfc/dfcrc
etc/xdg/dfc/fr/dfcrc
bin/dfc
%%DOCSDIR%%/AUTHORS
%%DOCSDIR%%/HACKING
%%DOCSDIR%%/LICENSE
%%DOCSDIR%%/README
%%DOCSDIR%%/TRANSLATORS
%%NLS%% share/locale/fr/LC_MESSAGES/dfc.mo
@dirrmtry %%DOCSDIR%%/
@dirrmtry man/fr/man1
@dirrmtry man/fr
@dirrmtry etc/xdg/dfc/fr
@dirrmtry etc/xdg/dfc
@dirrmtry etc/xdg