Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2001 00:26:21 +0200 (CEST)
From:      Niek Bergboer <niek@bergboer.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/27723: New port: misc/birthday - Displays summary of upcoming events (e.g. birthdays)
Message-ID:  <200105282226.f4SMQLX02809@wit379112.student.utwente.nl>

next in thread | raw e-mail | index | archive | help

>Number:         27723
>Category:       ports
>Synopsis:       New port: misc/birthday - Displays summary of upcoming events (e.g. birthdays)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 28 15:30:04 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Niek Bergboer
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
None
>Environment:
System: FreeBSD kaidaw.student.utwente.nl 4.3-STABLE FreeBSD 4.3-STABLE #3: Mon May 28 20:19:15 CEST 2001 root@kaidaw.student.utwente.nl:/usr/obj/usr/src/sys/KAIDAW1 i386


>Description:

New port: misc/birthday. It displays a summary of upcoming events based on a 
data file in the user's homedir.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
 >Issue:
 
 The original program is only available as Debian package, therefore the 
 Makefile still contains a debian site as master site. Since the author
 does not have any other publicly available server for the source, I will
 have to be put on freebsd.org and the makefile will have to be changed.
 Shar archive:
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	birthday
 #	birthday/distinfo
 #	birthday/Makefile
 #	birthday/files
 #	birthday/files/patch-aa
 #	birthday/pkg-plist
 #	birthday/pkg-descr
 #	birthday/pkg-comment
 #
 echo c - birthday
 mkdir -p birthday > /dev/null 2>&1
 echo x - birthday/distinfo
 sed 's/^X//' >birthday/distinfo << 'END-of-birthday/distinfo'
 XMD5 (birthday_1.4.tar.gz) = 43a3fb421c4221a61719b61fd47055b2
 END-of-birthday/distinfo
 echo x - birthday/Makefile
 sed 's/^X//' >birthday/Makefile << 'END-of-birthday/Makefile'
 X# New ports collection makefile for:   birthday
 X# Date created:        21 May 2001
 X# Whom:                Niek Bergboer <niek@bergboer.net>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=      birthday
 XPORTVERSION=   1.4
 XCATEGORIES=    misc
 XMASTER_SITES=  ftp://ftp.nl.debian.org/debian/pool/main/b/birthday/
 XDISTNAME=	birthday_1.4
 X
 XMAINTAINER=    niek@bergboer.net
 X
 XMAN1=          birthday.1
 XMANCOMPRESSED= no
 X
 XWRKSRC=	${WRKDIR}/birthday-1.4
 X
 X.include <bsd.port.mk>
 END-of-birthday/Makefile
 echo c - birthday/files
 mkdir -p birthday/files > /dev/null 2>&1
 echo x - birthday/files/patch-aa
 sed 's/^X//' >birthday/files/patch-aa << 'END-of-birthday/files/patch-aa'
 X--- Makefile--	Sat Jan 16 18:08:59 1999
 X+++ Makefile	Thu May 24 21:49:08 2001
 X@@ -1,24 +1,27 @@
 X-# overall makefile for birthday, to get around the differing syntax of Borland and GNU makes.
 X+######################################################################
 X+# birthday. Reminder of birthdays and other events in the near future.
 X+# CVS/RCS string removed 
 X+# Edited by Niek Bergboer <niek@bergboer.net> for FreeBSD ports
 X 
 X-# version for GNU make
 X-Makefile.gnu: makemake Makefile.in
 X-	./makemake unix < Makefile.in > $@
 X-
 X-# version for Borland make
 X-Makefile.bor: makemake Makefile.in
 X-	makemake dos < Makefile.in > $@
 X-
 X-# I think -o for BCC sets the /object/ file name, rather than the executable ...
 X-makemake: makemake.c
 X-	$(CC) -o makemake makemake.c
 X-
 X-# targets to make directly, without having to make -f
 X-birthday install clean: Makefile.gnu
 X-	make -f Makefile.gnu $@
 X-
 X-birthday.exe bdwin.exe: Makefile.bor
 X-	make -f Makefile.bor $@
 X-
 X-# for UNIX only
 X-../birthday.tgz: *
 X-	tar --exclude=RCS/* --dereference -czf ../birthday.tgz *
 X+all: birthday
 X+
 X+OS=UNIX
 X+OSCFLAGS=-Wall -Wstrict-prototypes
 X+CFLAGS+=-D$(OS) $(OSCFLAGS)
 X+
 X+# engine
 X+ENGSRC=bdengine.c xmalloc.c
 X+CMDSRC=birthday.c bdcal.c $(ENGSRC) 
 X+
 X+CMDOBJ=$(CMDSRC:.c=.o)
 X+
 X+birthday: $(CMDOBJ)
 X+	$(CC) $(LDFLAGS) $(CMDOBJ) -o $@
 X+
 X+install: birthday birthday.man
 X+       # Installation of dirs bin and man/man1 removed 
 X+	install -c -s birthday $(PREFIX)/bin/birthday
 X+	install -c -m 0644 birthday.man $(PREFIX)/man/man1/birthday.1
 X+
 X+clean:
 X+	rm -f birthday *.o 
 X--- bdengine.c--	Thu May 10 20:03:34 2001
 X+++ bdengine.c	Thu May 24 21:43:51 2001
 X@@ -186,9 +186,10 @@
 X     if (n > 0) { \
 X       ptr+=sprintf(ptr, "%d " txt "%s", n, (n == 1 ? "" : "s")); \
 X       terms--; \
 X-      if (orgterms > 1) \
 X-	if (terms == 1) ptr += sprintf(ptr, " and "); \
 X-	else if (terms > 1) ptr += sprintf(ptr, ", "); \
 X+      if (orgterms > 1) { \
 X+	if (terms == 1) { ptr += sprintf(ptr, " and "); } \
 X+	else { if (terms > 1) ptr += sprintf(ptr, ", "); } \
 X+      } \
 X     }
 X #endif /* NUMS_AS_WORDS */
 X 
 X--- getopt.h--	Fri Aug  9 11:53:20 1996
 X+++ getopt.h	Thu May 24 21:43:51 2001
 X@@ -100,7 +100,8 @@
 X    errors, only prototype getopt for the GNU C library.  */
 X extern int getopt (int argc, char *const *argv, const char *shortopts);
 X #else /* not __GNU_LIBRARY__ */
 X-extern int getopt ();
 X+/* But FreeBSD STDC does have the GNU syntax */
 X+extern int getopt (int argc, char *const *argv, const char *shortopts);
 X #endif /* not __GNU_LIBRARY__ */
 X extern int getopt_long (int argc, char *const *argv, const char *shortopts,
 X 		        const struct option *longopts, int *longind);
 END-of-birthday/files/patch-aa
 echo x - birthday/pkg-plist
 sed 's/^X//' >birthday/pkg-plist << 'END-of-birthday/pkg-plist'
 Xbin/birthday
 END-of-birthday/pkg-plist
 echo x - birthday/pkg-descr
 sed 's/^X//' >birthday/pkg-descr << 'END-of-birthday/pkg-descr'
 XBirthday displays a list of events which are coming up in the near future,
 Xbased on a config file (~/.birthdays) in the user's home directory.  
 XUsed in a user's .profile or crontab it can save the day for many
 Xa terminally disorganised soul...
 X
 XOriginally by Andy Mortimer <andy.mortimer@zetnet.co.uk>
 XPorted by Niek Bergboer <niek@bergboer.net>
 END-of-birthday/pkg-descr
 echo x - birthday/pkg-comment
 sed 's/^X//' >birthday/pkg-comment << 'END-of-birthday/pkg-comment'
 XA program that outputs reminders for upcoming events (e.g. birthdays)
 END-of-birthday/pkg-comment
 exit
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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