mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
- 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:
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
|
@ -6,22 +6,31 @@
|
|||
#
|
||||
|
||||
PORTNAME= dfc
|
||||
PORTVERSION= 2.5.0
|
||||
PORTVERSION= 3.0.0
|
||||
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
|
||||
COMMENT= Display file system space usage using graph and colors
|
||||
|
||||
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
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OSVERSION} < 800000
|
||||
BROKEN= does not compile on FreeBSD 7.X
|
||||
.if ${PORT_OPTIONS:MNLS}
|
||||
CMAKE_ARGS+= -DNLS_ENABLED=true
|
||||
USE_GETTEXT= yes
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
CMAKE_ARGS+= -DNLS_ENABLED=false
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (dfc-2.5.0.tar.gz) = c76c6fc3cefd12609e5e09e3cd2773b1c78e2020ef58546964ce2180c83f65b1
|
||||
SIZE (dfc-2.5.0.tar.gz) = 12226
|
||||
SHA256 (dfc-3.0.0.tar.gz) = 703c40e99eeee764b53af3e2a16159fe24f87152780942d307a86535b07c5a8f
|
||||
SIZE (dfc-3.0.0.tar.gz) = 39334
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
--- ./src/dfc.c.orig 2012-04-03 23:38:18.000000000 +0200
|
||||
+++ ./src/dfc.c 2012-04-13 00:05:00.488294758 +0200
|
||||
@@ -713,10 +713,12 @@
|
||||
if (strlcat(buffer, ",acls", bufsize) >= bufsize)
|
||||
goto truncated;
|
||||
/* NOTREACHED */
|
||||
+#if __FreeBSD__version > 800000
|
||||
if (flags & MNT_NFS4ACLS)
|
||||
if (strlcat(buffer, ",nfsv4acls", bufsize) >= bufsize)
|
||||
goto truncated;
|
||||
/* NOTREACHED */
|
||||
+#endif
|
||||
|
||||
return buffer;
|
||||
/* NOTREACHED */
|
||||
--- ./src/dfc.c.orig 2012-05-31 00:25:46.000000000 +0200
|
||||
+++ ./src/dfc.c 2012-06-15 23:39:58.405538089 +0200
|
||||
@@ -853,7 +853,7 @@
|
||||
#if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
{ MNT_MULTILABEL, "multilabel" },
|
||||
#endif
|
||||
-#if defined(__FreeBSD__)
|
||||
+#if defined(__FreeBSD__) && __FreeBSD__version > 800000
|
||||
{ MNT_NFS4ACLS, "nfs4acls" },
|
||||
#endif
|
||||
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) \
|
||||
|
|
16
sysutils/dfc/pkg-plist
Normal file
16
sysutils/dfc/pkg-plist
Normal 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
|
||||
|
Loading…
Add table
Reference in a new issue