Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  4 Apr 2002 19:56:55 +0200 (CEST)
From:      Niek Bergboer <niek@bergboer.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/36759: 
Message-ID:  <20020404175655.B8D57540E@wit379119.student.utwente.nl>

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

>Number:         36759
>Category:       ports
>Synopsis:       
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 04 10:00:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Submitter-Id:	current-users
 Originator:	Niek Bergboer
 Organization:	None
 Confidential:	no 
 Synopsis:	Upgraded ports/misc/birthday from v1.4 to v1.5
 Severity:	non-critical
 Priority:	low
 Class:		change-request
 Release:	FreeBSD 4.5-STABLE i386
 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:
 
 Shell archive to update ports/misc/birthday from version 1.4 to 1.5
 
 Fix:
 
 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/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 <niek@bergboer.net>
 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 <bsd.port.mk>
 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 <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
 
 
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

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?20020404175655.B8D57540E>