moreutils is a growing collection of the unix tools that nobody thought to

write thirty years ago.

So far, it includes the following utilities:

 - sponge: soak up standard input and write to a file
 - ifne: run a program if the standard input is not empty
 - vidir: edit a directory in your text editor
 - vipe: insert a text editor into a pipe
 - ts: timestamp standard input
 - combine: combine the lines in two files using boolean operations
 - pee: tee standard input to pipes
 - zrun: automatically uncompress arguments to command
 - mispipe: pipe two commands, returning the exit status of the first
 - isutf8: check if a file or standard input is utf-8
 - lckdo: execute a program with a lock held

WWW:	http://kitenet.net/~joey/code/moreutils/

PR:		ports/135869
Submitted by:	Charlie Kester <corky1951@comcast.net>
This commit is contained in:
Dennis Herrmann 2009-06-21 10:24:50 +00:00
parent 61c574f03b
commit 1e26add69b
5 changed files with 133 additions and 0 deletions

View file

@ -477,6 +477,7 @@
SUBDIR += monitord
SUBDIR += monkeytail
SUBDIR += mono-kmod
SUBDIR += moreutils
SUBDIR += most
SUBDIR += mount.app
SUBDIR += mountsmb2

View file

@ -0,0 +1,74 @@
# ex:ts=8
# Ports collection makefile for: moreutils
# Date created: 16 June 2009
# Whom: Charlie Kester <corky1951@comcast.net>
#
# $FreeBSD$
#
PORTNAME= moreutils
PORTVERSION= 0.35
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= corky1951@comcast.net
COMMENT= Additional Unix utilities
.if !defined(NO_INSTALL_MANPAGES)
BUILD_DEPENDS= docbook2man:${PORTSDIR}/textproc/docbook2X \
${LOCALBASE}/share/xml/docbook/4.4/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml-440
.endif
USE_PERL5= yes
USE_GMAKE= yes
PLIST_FILES= bin/combine \
bin/ifne \
bin/isutf8 \
bin/lckdo \
bin/mispipe \
bin/pee \
bin/sponge \
bin/ts \
bin/vidir \
bin/vipe \
bin/zrun
ALL_TARGET= bins
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
.if !defined(NO_INSTALL_MANPAGES)
MAN1= combine.1 \
ifne.1 \
isutf8.1 \
lckdo.1 \
mispipe.1 \
pee.1 \
sponge.1 \
ts.1 \
vidir.1 \
vipe.1 \
zrun.1
ALL_TARGET+= mans
MANCOMPRESSED= no
# portlint will warn about the next line, but we need it this way
OLD_DTD= /usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd
NEW_DTD= ${LOCALBASE}/share/xml/docbook/4.4/docbookx.dtd
post-patch:
@${FIND} ${WRKSRC} -type f -name "*.docbook" | ${XARGS} -n 7 -x ${REINPLACE_CMD} -E -e 's|${OLD_DTD}|${NEW_DTD}|g'
post-install:
.for manpage in ${MAN1}
${INSTALL_MAN} ${WRKSRC}/${manpage} ${MANPREFIX}/man/man1
.endfor
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,3 @@
MD5 (moreutils_0.35.tar.gz) = e3089831539284f740f0180ec589d079
SHA256 (moreutils_0.35.tar.gz) = 8ac8467171c099a1c5b661f02286d59ba264c2034c77a30832015cc68f62ed2e
SIZE (moreutils_0.35.tar.gz) = 37009

View file

@ -0,0 +1,37 @@
--- Makefile.orig 2009-05-05 12:09:22.000000000 -0700
+++ Makefile 2009-06-20 07:59:27.000000000 -0700
@@ -1,24 +1,24 @@
-BINS=isutf8 ifdata ifne pee sponge mispipe lckdo
+BINS=isutf8 ifne pee sponge mispipe lckdo
PERLSCRIPTS=vidir vipe ts combine zrun
-MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1
+MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1
CFLAGS=-O2 -g -Wall
INSTALL_BIN?=install -s
-PREFIX=/usr
-DOCBOOK2XMAN=docbook2x-man
+DOCBOOK2XMAN=docbook2man
all: $(BINS) $(MANS)
+bins: $(BINS)
+
+mans: $(MANS)
+
clean:
rm -f $(BINS) $(MANS)
install:
- mkdir -p $(DESTDIR)$(PREFIX)/bin
- $(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin
- install $(PERLSCRIPTS) $(DESTDIR)$(PREFIX)/bin
-
- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
- install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
+ mkdir -p $(PREFIX)/bin
+ $(INSTALL_BIN) $(BINS) $(PREFIX)/bin
+ install $(PERLSCRIPTS) $(PREFIX)/bin
check: isutf8
./check-isutf8

View file

@ -0,0 +1,18 @@
moreutils is a growing collection of the unix tools that nobody thought to
write thirty years ago.
So far, it includes the following utilities:
- sponge: soak up standard input and write to a file
- ifne: run a program if the standard input is not empty
- vidir: edit a directory in your text editor
- vipe: insert a text editor into a pipe
- ts: timestamp standard input
- combine: combine the lines in two files using boolean operations
- pee: tee standard input to pipes
- zrun: automatically uncompress arguments to command
- mispipe: pipe two commands, returning the exit status of the first
- isutf8: check if a file or standard input is utf-8
- lckdo: execute a program with a lock held
WWW: http://kitenet.net/~joey/code/moreutils/