From c99e82c73aee559f13201506b75ddb433367eb17 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sat, 16 Jun 2001 18:12:37 +0000 Subject: add datedif Calculates the number of days between two dates --- misc/Makefile | 1 + misc/datedif/Makefile | 22 ++++++++++++++++++++++ misc/datedif/distinfo | 1 + misc/datedif/files/patch-Makefile | 15 +++++++++++++++ misc/datedif/pkg-comment | 1 + misc/datedif/pkg-descr | 6 ++++++ misc/datedif/pkg-plist | 1 + 7 files changed, 47 insertions(+) create mode 100644 misc/datedif/Makefile create mode 100644 misc/datedif/distinfo create mode 100644 misc/datedif/files/patch-Makefile create mode 100644 misc/datedif/pkg-comment create mode 100644 misc/datedif/pkg-descr create mode 100644 misc/datedif/pkg-plist diff --git a/misc/Makefile b/misc/Makefile index 081399f476c0..47aecbb6a956 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -36,6 +36,7 @@ SUBDIR += cstream SUBDIR += cuecat SUBDIR += cwish + SUBDIR += datedif SUBDIR += deco SUBDIR += dejagnu SUBDIR += delay diff --git a/misc/datedif/Makefile b/misc/datedif/Makefile new file mode 100644 index 000000000000..1f82e0025254 --- /dev/null +++ b/misc/datedif/Makefile @@ -0,0 +1,22 @@ +# ex:ts=8 +# New ports collection makefile for: datedif +# Date created: Jun 16, 2001 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= datedif +PORTVERSION= 0.9.1.4 +CATEGORIES= misc +MASTER_SITES= http://buschencrew.hypermart.net/software/datedif/ +DISTNAME= ${PORTNAME}-0.9.1-4 + +MAINTAINER= ports@FreeBSD.org + +ALL_TARGET= + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/datedif ${PREFIX}/bin + +.include diff --git a/misc/datedif/distinfo b/misc/datedif/distinfo new file mode 100644 index 000000000000..f1ef69a54c3c --- /dev/null +++ b/misc/datedif/distinfo @@ -0,0 +1 @@ +MD5 (datedif-0.9.1-4.tar.gz) = 3483ac3a5c4ce8f952c959ac3f99a1f7 diff --git a/misc/datedif/files/patch-Makefile b/misc/datedif/files/patch-Makefile new file mode 100644 index 000000000000..dc343b78dcbe --- /dev/null +++ b/misc/datedif/files/patch-Makefile @@ -0,0 +1,15 @@ +--- Makefile.orig Sun Jun 17 01:59:03 2001 ++++ Makefile Sun Jun 17 02:01:47 2001 +@@ -4,10 +4,10 @@ + LIBS = + + project: $(OBJS) +- gcc -s -o datedif $(LIBS) $(OBJS) ++ ${CC} ${CFLAGS} -o datedif $(LIBS) $(OBJS) + + main.o: main.c +- gcc -O2 -c -o main.o main.c ++ ${CC} ${CFLAGS} -c -o main.o main.c + + clean: + rm -f main.o diff --git a/misc/datedif/pkg-comment b/misc/datedif/pkg-comment new file mode 100644 index 000000000000..c95eaf954f8d --- /dev/null +++ b/misc/datedif/pkg-comment @@ -0,0 +1 @@ +Calculates the number of days between two dates diff --git a/misc/datedif/pkg-descr b/misc/datedif/pkg-descr new file mode 100644 index 000000000000..d3a59e4a0821 --- /dev/null +++ b/misc/datedif/pkg-descr @@ -0,0 +1,6 @@ +Datedif is a simple console program that calculates the difference in days +between two dates. It has two types of output, the first for scripts and the +second for shellprompt use. The default output is the script-output, which is +only the difference in days, not even followed by a carriage return. The second +output can be accessed with the -m option, and it displays an output suitable +for shellprompt use. diff --git a/misc/datedif/pkg-plist b/misc/datedif/pkg-plist new file mode 100644 index 000000000000..cb87904aec4a --- /dev/null +++ b/misc/datedif/pkg-plist @@ -0,0 +1 @@ +bin/datedif -- cgit v1.2.3