[Midnightbsd-cvs] mports [21673] trunk/sysutils: add di port

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Aug 15 22:36:10 EDT 2016


Revision: 21673
          http://svnweb.midnightbsd.org/mports/?rev=21673
Author:   laffer1
Date:     2016-08-15 22:36:09 -0400 (Mon, 15 Aug 2016)
Log Message:
-----------
add di port

Modified Paths:
--------------
    trunk/sysutils/Makefile

Added Paths:
-----------
    trunk/sysutils/di/
    trunk/sysutils/di/Makefile
    trunk/sysutils/di/distinfo
    trunk/sysutils/di/files/
    trunk/sysutils/di/files/patch-C-Makefile
    trunk/sysutils/di/files/patch-Makefile
    trunk/sysutils/di/pkg-descr
    trunk/sysutils/di/pkg-plist

Modified: trunk/sysutils/Makefile
===================================================================
--- trunk/sysutils/Makefile	2016-08-16 02:28:43 UTC (rev 21672)
+++ trunk/sysutils/Makefile	2016-08-16 02:36:09 UTC (rev 21673)
@@ -23,6 +23,7 @@
 SUBDIR += consolehm
 SUBDIR += coreutils
 SUBDIR += devcpu-data
+SUBDIR += di
 SUBDIR += dirdiff
 SUBDIR += dmidecode
 SUBDIR += docker-freebsd

Added: trunk/sysutils/di/Makefile
===================================================================
--- trunk/sysutils/di/Makefile	                        (rev 0)
+++ trunk/sysutils/di/Makefile	2016-08-16 02:36:09 UTC (rev 21673)
@@ -0,0 +1,32 @@
+# Created by: Brad Lanam <bll at gentoo.com>
+# $FreeBSD: head/sysutils/di/Makefile 419323 2016-07-30 15:52:46Z pawel $
+# $MidnightBSD$
+
+PORTNAME=	di
+PORTVERSION=	4.43
+CATEGORIES=	sysutils
+MASTER_SITES=	https://gentoo.com/di/ \
+		http://www.cyberbotx.com/di/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Disk Information Utility
+
+LICENSE=	other
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+MAKE_ENV=	prefix="${PREFIX}"
+MAKE_ARGS=	-e
+
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=	gettext
+NLS_MAKE_ENV_OFF=	DI_NO_NLS=T
+
+post-patch:
+	@${REINPLACE_CMD} -e "s|zoneid_t|zoneId_t|g" ${WRKSRC}/C/di.c
+
+pre-install:
+	@${STRIP_CMD} ${WRKSRC}/C/di
+
+.include <bsd.port.mk>


Property changes on: trunk/sysutils/di/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/di/distinfo
===================================================================
--- trunk/sysutils/di/distinfo	                        (rev 0)
+++ trunk/sysutils/di/distinfo	2016-08-16 02:36:09 UTC (rev 21673)
@@ -0,0 +1,2 @@
+SHA256 (di-4.43.tar.gz) = c8374d2ab7a82274d733be01639f48440accf4c70c70b152f5fa3b1c8a9745e0
+SIZE (di-4.43.tar.gz) = 267160


Property changes on: trunk/sysutils/di/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/di/files/patch-C-Makefile
===================================================================
--- trunk/sysutils/di/files/patch-C-Makefile	                        (rev 0)
+++ trunk/sysutils/di/files/patch-C-Makefile	2016-08-16 02:36:09 UTC (rev 21673)
@@ -0,0 +1,38 @@
+--- C/Makefile.orig	2015-05-18 19:48:09 UTC
++++ C/Makefile
+@@ -6,7 +6,7 @@
+ #  $Id$
+ #
+ 
+-CC = cc
++CC ?= cc
+ # for tests.done
+ DC = gdc
+ 
+@@ -34,7 +34,7 @@ TEST = test
+ ###
+ # installation options
+ #
+-prefix = /usr/local
++prefix ?= /usr/local
+ LOCALEDIR = $(prefix)/share/locale
+ 
+ ###
+@@ -141,7 +141,7 @@ bsd43-cc:
+ 	$(MAKE) _MKCONFIG_SHELL=$(MKCONFIG_SHELL) \
+ 		CC=cc LD=cc EXE_EXT="" OBJ_EXT=".o" \
+ 		CFLAGS="$(CFLAGS) -O" \
+-		LDFLAGS="-O" di-programs
++		LDFLAGS="-O $(LDFLAGS)" di-programs
+ 
+ .PHONY: bsd43-gcc
+ bsd43-gcc:
+@@ -155,7 +155,7 @@ bsd43-gcc:
+ 	$(MAKE) _MKCONFIG_SHELL=$(MKCONFIG_SHELL) \
+ 		CC=gcc LD=gcc EXE_EXT="" OBJ_EXT=".o" \
+ 		CFLAGS="$(CFLAGS) -O2" \
+-		LDFLAGS="-O2" di-programs
++		LDFLAGS="-O2 $(LDFLAGS)" di-programs
+ 
+ .PHONY: ultrix-cc
+ ultrix-cc:


Property changes on: trunk/sysutils/di/files/patch-C-Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/di/files/patch-Makefile
===================================================================
--- trunk/sysutils/di/files/patch-Makefile	                        (rev 0)
+++ trunk/sysutils/di/files/patch-Makefile	2016-08-16 02:36:09 UTC (rev 21673)
@@ -0,0 +1,35 @@
+--- Makefile.orig	2015-05-18 19:48:09 UTC
++++ Makefile
+@@ -36,12 +36,12 @@ MKC_DIR = ./mkconfig
+ ###
+ # installation options
+ #
+-prefix = /usr/local
++prefix ?= /usr/local
+ LOCALEDIR = $(prefix)/share/locale
+ PROG = di
+ MPROG = mi
+ #
+-INSTALL_DIR = $(prefix)
++INSTALL_DIR = $(DESTDIR)$(prefix)
+ INSTALL_BIN_DIR = $(INSTALL_DIR)/bin
+ INST_LOCALEDIR = $(INSTALL_DIR)/share/locale
+ TARGET = $(INSTALL_BIN_DIR)/$(PROG)$(EXE_EXT)
+@@ -58,7 +58,7 @@ INSTPERM = 4111   # install suid if your
+ #
+ # simple man page installation
+ #
+-DI_MANINSTDIR = $(INSTALL_DIR)/share/man
++DI_MANINSTDIR = $(INSTALL_DIR)/man
+ DI_MANDIR = $(DI_MANINSTDIR)/man1
+ MAN_TARGET = $(PROG).1
+ MANPERM = 644
+@@ -140,7 +140,7 @@ install-prog:
+ 	$(TEST) -d $(INSTALL_BIN_DIR) || $(MKDIR) $(INSTALL_BIN_DIR)
+ 	$(CP) -f ./$(FROMDIR)/$(PROG)$(EXE_EXT) $(TARGET)
+ 	-$(RM) -f $(MTARGET) > /dev/null 2>&1
+-	-$(LN) -s $(PROG)$(EXE_EXT) $(MTARGET)
++	-( cd $(INSTALL_BIN_DIR) && $(LN) -s $(PROG)$(EXE_EXT) $(MPROG)$(EXE_EXT) )
+ 	@-test -f $(FROMDIR)/config.h && \
+ 		grep '^#define _enable_nls 1' $(FROMDIR)/config.h >/dev/null 2>&1 && \
+ 		(. ./$(FROMDIR)/di.env; $(MAKE) -e INST_LOCALEDIR="$(INST_LOCALEDIR)" \


Property changes on: trunk/sysutils/di/files/patch-Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/di/pkg-descr
===================================================================
--- trunk/sysutils/di/pkg-descr	                        (rev 0)
+++ trunk/sysutils/di/pkg-descr	2016-08-16 02:36:09 UTC (rev 21673)
@@ -0,0 +1,7 @@
+'di' is a disk information utility, displaying everything
+(and more) that your 'df' command does. It features the
+ability to display your disk usage in whatever format you
+desire/prefer/are used to. It is designed to be portable
+across many platforms.
+
+WWW: http://www.gentoo.com/di/


Property changes on: trunk/sysutils/di/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/di/pkg-plist
===================================================================
--- trunk/sysutils/di/pkg-plist	                        (rev 0)
+++ trunk/sysutils/di/pkg-plist	2016-08-16 02:36:09 UTC (rev 21673)
@@ -0,0 +1,6 @@
+bin/di
+bin/mi
+man/man1/di.1.gz
+%%NLS%%share/locale/de/LC_MESSAGES/di.mo
+%%NLS%%share/locale/en/LC_MESSAGES/di.mo
+%%NLS%%share/locale/es/LC_MESSAGES/di.mo


Property changes on: trunk/sysutils/di/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list