Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 2014 18:11:23 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r352298 - in head/sysutils/moreutils: . files
Message-ID:  <201404261811.s3QIBNA5071224@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Apr 26 18:11:23 2014
New Revision: 352298
URL: http://svnweb.freebsd.org/changeset/ports/352298
QAT: https://qat.redports.org/buildarchive/r352298/

Log:
  - Add ifdata [1]
  - Bump PORTREVISION for package change
  - Update pkg-descr
  
  Requested by:	Patrick Lindblad <patrick@kattmodell.se> [1]

Added:
  head/sysutils/moreutils/files/ifdata.1   (contents, props changed)
Modified:
  head/sysutils/moreutils/Makefile
  head/sysutils/moreutils/pkg-descr
  head/sysutils/moreutils/pkg-plist

Modified: head/sysutils/moreutils/Makefile
==============================================================================
--- head/sysutils/moreutils/Makefile	Sat Apr 26 18:11:17 2014	(r352297)
+++ head/sysutils/moreutils/Makefile	Sat Apr 26 18:11:23 2014	(r352298)
@@ -3,7 +3,7 @@
 
 PORTNAME=	moreutils
 PORTVERSION=	0.51
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 MASTER_SITES=	DEBIAN_POOL
 DISTNAME=	${PORTNAME}_${PORTVERSION}
@@ -24,6 +24,7 @@ USES=		perl5 shebangfix
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
 CANNED_MANPAGES=errno.1 \
+		ifdata.1 \
 		ifne.1 \
 		isutf8.1 \
 		lckdo.1 \
@@ -40,6 +41,7 @@ PERL_MANPAGES=	chronic.1 \
 SHEBANG_FILES=	${PERL_MANPAGES:R}
 
 post-patch:
+	@${REINPLACE_CMD} -e 's|__APPLE__|__FreeBSD__|' ${WRKSRC}/ifdata.c
 	@cd ${FILESDIR}/ && ${CP} ${CANNED_MANPAGES} ${WRKSRC}/
 
 post-build:

Added: head/sysutils/moreutils/files/ifdata.1
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/moreutils/files/ifdata.1	Sat Apr 26 18:11:23 2014	(r352298)
@@ -0,0 +1,200 @@
+'\" t
+.\"     Title: ifdata
+.\"    Author: Joey Hess
+.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>;
+.\"      Date: 2006-03-07
+.\"    Manual: moreutils
+.\"    Source: moreutils
+.\"  Language: English
+.\"
+.TH "IFDATA" "1" "2006\-03\-07" "moreutils" "moreutils"
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
+.\" -----------------------------------------------------------------
+.\" * set default formatting
+.\" -----------------------------------------------------------------
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.\" -----------------------------------------------------------------
+.\" * MAIN CONTENT STARTS HERE *
+.\" -----------------------------------------------------------------
+.SH "NAME"
+ifdata \- get network interface info without parsing ifconfig output
+.SH "SYNOPSIS"
+.HP \w'\fBifdata\fR\ 'u
+\fBifdata\fR [options] {\fIiface\fR}
+.SH "DESCRIPTION"
+.PP
+
+\fBifdata\fR
+can be used to check for the existence of a network interface, or to get information abut the interface, such as its IP address\&. Unlike
+\fBifconfig\fR
+or
+\fBip\fR,
+\fBifdata\fR
+has simple to parse output that is designed to be easily used by a shell script\&.
+.SH "OPTIONS"
+.PP
+\fB\-h\fR
+.RS 4
+Print out a help summary\&.
+.RE
+.PP
+\fB\-e\fR
+.RS 4
+Test to see if the interface exists, exit nonzero if it does not\&.
+.RE
+.PP
+\fB\-p\fR
+.RS 4
+Prints out the whole configuration of the interface\&.
+.RE
+.PP
+\fB\-pe\fR
+.RS 4
+Prints "yes" or "no" if the interface exists or not\&.
+.RE
+.PP
+\fB\-pa\fR
+.RS 4
+Prints the IPv4 address of the interface\&.
+.RE
+.PP
+\fB\-pn\fR
+.RS 4
+Prints the netmask of the interface\&.
+.RE
+.PP
+\fB\-pN\fR
+.RS 4
+Prints the network address of the interface\&.
+.RE
+.PP
+\fB\-pb\fR
+.RS 4
+Prints the broadcast address of the interface\&.
+.RE
+.PP
+\fB\-pm\fR
+.RS 4
+Prints the MTU of the interface\&.
+.RE
+.PP
+Following options are Linux only\&.
+.PP
+\fB\-ph\fR
+.RS 4
+Prints the hardware address of the interface\&.
+.RE
+.PP
+\fB\-pf\fR
+.RS 4
+Prints the flags of the interface\&.
+.RE
+.PP
+\fB\-si\fR
+.RS 4
+Prints out all the input statistics of the interface\&.
+.RE
+.PP
+\fB\-sip\fR
+.RS 4
+Prints the number of input packets\&.
+.RE
+.PP
+\fB\-sib\fR
+.RS 4
+Prints the number of input bytes\&.
+.RE
+.PP
+\fB\-sie\fR
+.RS 4
+Prints the number of input errors\&.
+.RE
+.PP
+\fB\-sid\fR
+.RS 4
+Prints the number of dropped input packets\&.
+.RE
+.PP
+\fB\-sif\fR
+.RS 4
+Prints the number of input fifo overruns\&.
+.RE
+.PP
+\fB\-sic\fR
+.RS 4
+Print the number of compressed input packets\&.
+.RE
+.PP
+\fB\-sim\fR
+.RS 4
+Prints the number of input multicast packets\&.
+.RE
+.PP
+\fB\-so\fR
+.RS 4
+Prints out all the output statistics of the interface\&.
+.RE
+.PP
+\fB\-sop\fR
+.RS 4
+Prints the number of output packets\&.
+.RE
+.PP
+\fB\-sob\fR
+.RS 4
+Prints the number of output bytes\&.
+.RE
+.PP
+\fB\-soe\fR
+.RS 4
+Prints the number of output errors\&.
+.RE
+.PP
+\fB\-sod\fR
+.RS 4
+Prints the number of dropped output packets\&.
+.RE
+.PP
+\fB\-sof\fR
+.RS 4
+Prints the number of output fifo overruns\&.
+.RE
+.PP
+\fB\-sox\fR
+.RS 4
+Print the number of output collisions\&.
+.RE
+.PP
+\fB\-soc\fR
+.RS 4
+Prints the number of output carrier losses\&.
+.RE
+.PP
+\fB\-som\fR
+.RS 4
+Prints the number of output multicast packets\&.
+.RE
+.PP
+\fB\-bips\fR
+.RS 4
+Prints the number of bytes of incoming traffic measured in one second\&.
+.RE
+.PP
+\fB\-bops\fR
+.RS 4
+Prints the number of bytes of outgoing traffic measured in one second\&.
+.RE
+.SH "AUTHOR"
+.PP
+Benjamin BAYART

Modified: head/sysutils/moreutils/pkg-descr
==============================================================================
--- head/sysutils/moreutils/pkg-descr	Sat Apr 26 18:11:17 2014	(r352297)
+++ head/sysutils/moreutils/pkg-descr	Sat Apr 26 18:11:23 2014	(r352298)
@@ -1,12 +1,14 @@
-moreutils is a growing collection of the unix tools that nobody thought to
-write thirty years ago.
+This is a collection of the unix tools that nobody thought to write long ago,
+when unix was young.
 
-So far, it includes the following utilities:
-- chronic: run a command quietly, unless it fails
+Currently it consists of these tools:
+- chronic: runs a command quietly unless it fails
 - combine: combine the lines in two files using boolean operations
-- ifne: run a program if the standard input is not empty
+- errno: look up errno names and descriptions
+- ifdata: get network interface info without parsing ifconfig output
+- ifne: run a command if the standard input is not empty
 - isutf8: check if a file or standard input is utf-8
-- lckdo: execute a program with a lock held
+- lckdo: execute a program with a lock held (deprecated)
 - mispipe: pipe two commands, returning the exit status of the first
 - pee: tee standard input to pipes
 - sponge: soak up standard input and write to a file
@@ -15,6 +17,6 @@ So far, it includes the following utilit
 - vipe: insert a text editor into a pipe
 - zrun: automatically uncompress arguments to command
 
-The Linux-specific 'ifdata' utility is not included in this FreeBSD port.
+The 'parallel' utility is split into sysutils/moreutils-parallel.
 
 WWW: http://joeyh.name/code/moreutils/

Modified: head/sysutils/moreutils/pkg-plist
==============================================================================
--- head/sysutils/moreutils/pkg-plist	Sat Apr 26 18:11:17 2014	(r352297)
+++ head/sysutils/moreutils/pkg-plist	Sat Apr 26 18:11:23 2014	(r352298)
@@ -1,6 +1,7 @@
 bin/chronic
 bin/combine
 bin/errno
+bin/ifdata
 bin/ifne
 bin/isutf8
 bin/lckdo
@@ -14,6 +15,7 @@ bin/zrun
 %%MANPAGES%%man/man1/chronic.1.gz
 %%MANPAGES%%man/man1/combine.1.gz
 %%MANPAGES%%man/man1/errno.1.gz
+%%MANPAGES%%man/man1/ifdata.1.gz
 %%MANPAGES%%man/man1/ifne.1.gz
 %%MANPAGES%%man/man1/isutf8.1.gz
 %%MANPAGES%%man/man1/lckdo.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404261811.s3QIBNA5071224>