From owner-freebsd-ports Thu Apr 4 10:30:28 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F0DBD37B41F for ; Thu, 4 Apr 2002 10:30:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g34IU2613292; Thu, 4 Apr 2002 10:30:02 -0800 (PST) (envelope-from gnats) Received: from wit379119.student.utwente.nl (wit379119.student.utwente.nl [130.89.165.196]) by hub.freebsd.org (Postfix) with ESMTP id 4057F37B41F for ; Thu, 4 Apr 2002 10:29:16 -0800 (PST) Received: by wit379119.student.utwente.nl (Postfix, from userid 1000) id 4788C540E; Thu, 4 Apr 2002 20:29:15 +0200 (CEST) Message-Id: <20020404182915.4788C540E@wit379119.student.utwente.nl> Date: Thu, 4 Apr 2002 20:29:15 +0200 (CEST) From: Niek Bergboer Reply-To: Niek Bergboer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/36760: Upgraded ports/misc/birthday from v1.4 to v1.5 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36760 >Category: ports >Synopsis: Upgraded ports/misc/birthday from v1.4 to v1.5 >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: Thu Apr 04 10:30:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Niek Bergboer >Release: FreeBSD 4.5-STABLE i386 >Organization: None >Environment: System: FreeBSD wit379119 4.5-STABLE FreeBSD 4.5-STABLE #0: Tue Feb 26 17:02:16 CET 2002 root@wit379119:/usr/obj/usr/src/sys/WUTRA1 i386 >Description: None >How-To-Repeat: None >Fix: The following shell-script contains the new info: --- birthday-1.5.sh begins here --- # 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/files # birthday/files/patch-getopt.h # birthday/files/patch-Makefile # birthday/pkg-plist # birthday/Makefile # birthday/distinfo # birthday/pkg-descr # birthday/pkg-comment # echo c - birthday mkdir -p birthday > /dev/null 2>&1 echo c - birthday/files mkdir -p birthday/files > /dev/null 2>&1 echo x - birthday/files/patch-getopt.h sed 's/^X//' >birthday/files/patch-getopt.h << 'END-of-birthday/files/patch-getopt.h' X--- getopt.h Thu Apr 4 19:15:06 2002 X+++ getopt.h Thu Apr 4 19:15:32 2002 X@@ -93,15 +93,22 @@ X optional_argument X }; X X+ X+// Note: FreeBSD does follow the normal GNU definition for getopt, but X+// the checks below would cause it to use a new --conflicting-- definition. X+// Therefore, the checks have been commented out. X+// X+// Niek Bergboer, 04-Apr-2002 X+ X #if __STDC__ X-#if defined(__GNU_LIBRARY__) X+//#if defined(__GNU_LIBRARY__) X /* Many other libraries have conflicting prototypes for getopt, with X differences in the consts, in stdlib.h. To avoid compilation 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-#endif /* not __GNU_LIBRARY__ */ X+//#else /* not __GNU_LIBRARY__ */ X+//extern int getopt (); 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); X extern int getopt_long_only (int argc, char *const *argv, END-of-birthday/files/patch-getopt.h echo x - birthday/files/patch-Makefile sed 's/^X//' >birthday/files/patch-Makefile << 'END-of-birthday/files/patch-Makefile' X--- Makefile Sat Jan 16 18:08:59 1999 X+++ Makefile Thu Apr 4 19:21:49 2002 X@@ -1,24 +1,39 @@ 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+# $Id: Makefile.in,v 1.3 2000/01/02 19:17:33 andy Exp $ 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+# NB note the different syntax for if X+ X+# UNIX is replaced by name of OS by makemake X+OS=UNIX X+ X+# can override this on the commandline if req'd X+DEBUG= X+OSCFLAGS=-Wall -Wstrict-prototypes X+CFLAGS+=-O2 $(DEBUG) -D$(OS) $(OSCFLAGS) X+# engine X+ENGSRC=bdengine.c xmalloc.c X+ X+# OS-specific sources X+OSSRC= X+ X+CMDSRC=birthday.c bdcal.c $(ENGSRC) $(OSSRC) X+ X+CMDOBJ=$(CMDSRC:.c=.o) X+ X+birthday: $(CMDOBJ) X+ $(CC) $(LDFLAGS) $(CMDOBJ) -o $@ X+ X+# you can override this to use the new FHS locations. X+SHARE= X+#SHARE=/share X+ X+install: birthday birthday.man X+ # Installation of dirs bin and man/man1 removed X+ install -s birthday $(PREFIX)/bin/birthday X+ install -m 0644 birthday.man $(PREFIX)/man/man1/birthday.1 X+ X+clean: X+ rm -f birthday *.o END-of-birthday/files/patch-Makefile 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/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 X# X# $FreeBSD: ports/misc/birthday/Makefile,v 1.1 2001/06/11 03:48:33 will Exp $ X# X XPORTNAME= birthday XPORTVERSION= 1.5 XCATEGORIES= misc XMASTER_SITES= http://users.zetnet.co.uk/mortia/source/ X XMAINTAINER= niek@bergboer.net X XMAN1= birthday.1 XMANCOMPRESSED= no X Xpost-install: X strip ${PREFIX}/bin/birthday X X.include END-of-birthday/Makefile echo x - birthday/distinfo sed 's/^X//' >birthday/distinfo << 'END-of-birthday/distinfo' XMD5 (birthday-1.5.tar.gz) = d2ceb7ca58d998645a4bdc04d986139c END-of-birthday/distinfo 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 XPorted by Niek Bergboer 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 --- birthday-1.5.sh ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message