summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2006-01-23 07:10:11 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2006-01-23 07:10:11 +0000
commite6b78e47f8ae34d9f2427efd6268a4a3a48686fc (patch)
tree72a15608a643d0194e1c1a47b21e3b04cc45c61a /misc
parentRevert last commit. It is not possible (yet) to have the dirrmtry usage (diff)
An implementation of AT&T Research UNIX V8 newer(1)
PR: ports/92146 Submitted by: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
Notes
Notes: svn path=/head/; revision=154216
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile1
-rw-r--r--misc/newer/Makefile30
-rw-r--r--misc/newer/distinfo4
-rw-r--r--misc/newer/pkg-descr19
4 files changed, 54 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 3790415b4881..b59101410a46 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -311,6 +311,7 @@
SUBDIR += muuz
SUBDIR += nagios-base-logos
SUBDIR += najitool
+ SUBDIR += newer
SUBDIR += nserver
SUBDIR += nsf
SUBDIR += numchar
diff --git a/misc/newer/Makefile b/misc/newer/Makefile
new file mode 100644
index 000000000000..eb067b074c0d
--- /dev/null
+++ b/misc/newer/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: newer
+# Date created: 22 January 2006
+# Whom: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= newer
+PORTVERSION= 1.0
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.cwru.edu/pub/chet/
+DISTFILES= newer.c
+EXTRACT_ONLY= # none
+
+MAINTAINER= CPE1704TKS@bellsouth.net
+COMMENT= An implementation of AT&T Research UNIX V8 newer(1)
+
+CONFLICTS= teTeX-base-[0-9]*
+
+PLIST_FILES= bin/newer
+NO_EXTRACT= yes
+
+do-build:
+ ${CP} ${DISTDIR}/newer.c ${WRKDIR}/newer.c
+ ${CC} ${CFLAGS} -o ${WRKDIR}/newer ${WRKDIR}/newer.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKDIR}/newer ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/misc/newer/distinfo b/misc/newer/distinfo
new file mode 100644
index 000000000000..4e458f5eb6c6
--- /dev/null
+++ b/misc/newer/distinfo
@@ -0,0 +1,4 @@
+MD5 (newer.c) = b21df1d77cfa2a7559d2e9cd6e0ca841
+SHA256 (newer.c) =
+42117fa1b4fe735742bc5be1e73e80cffb041ae264290432ae5dc7faa292d0d4
+SIZE (newer.c) = 1539
diff --git a/misc/newer/pkg-descr b/misc/newer/pkg-descr
new file mode 100644
index 000000000000..d5881319f30f
--- /dev/null
+++ b/misc/newer/pkg-descr
@@ -0,0 +1,19 @@
+> There doesn't appear to be any decent way to compare the last modified
+> times of files from the shell...
+
+Before everybody starts inventing their own names for this, it should be
+noted that V8 already has a program for this, newer(1). It takes two
+filenames as arguments, and exits with status 0 if and only if either
+(a) the first exists and the second does not, or (b) both exist and the
+first's modification time is at least as recent as the second's. Other-
+wise it exits with non-zero status. (The preceding two sentences are
+essentially the whole of the manual page for it.)
+
+Relatively few people have V8, but in the absence of any other precedent
+for what this facility should like look, it seems reasonable to follow
+V8's lead:
+
+newer file1 file2
+
+exit with 0 status if file1 exists and file2 does not, or if file1's last
+modified time is at least as recent as file2's.