From kew@icehouse.net  Sat Dec  2 21:13:43 2000
Return-Path: <kew@icehouse.net>
Received: from mail.icehouse.net (mail.icehouse.net [204.203.53.2])
	by hub.freebsd.org (Postfix) with ESMTP id E98E537B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Dec 2000 21:13:42 -0800 (PST)
Received: from mars.walker.dom (ppp-404.icehouse.net [204.203.54.174])
	by mail.icehouse.net (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id VAA28727
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 2 Dec 2000 21:13:36 -0800
Received: (from root@localhost)
	by mars.walker.dom (8.11.1/8.11.1) id eB35Db402126;
	Sat, 2 Dec 2000 21:13:37 -0800 (PST)
	(envelope-from kew)
Message-Id: <200012030513.eB35Db402126@mars.walker.dom>
Date: Sat, 2 Dec 2000 21:13:37 -0800 (PST)
From: kew@icehouse.net
Reply-To: kew@icehouse.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: new port
X-Send-Pr-Version: 3.2

>Number:         23245
>Category:       ports
>Synopsis:       new port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 02 21:20:01 PST 2000
>Closed-Date:    Tue Dec 19 05:36:43 PST 2000
>Last-Modified:  Fri Dec 22 09:10:01 PST 2000
>Originator:     Keith Walker
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

	

>Description:

	

>How-To-Repeat:

	

>Fix:


# 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:
#
#	sscalc/Makefile
#	sscalc/pkg-descr
#	sscalc/pkg-plist
#	sscalc/pkg-comment
#	sscalc/distinfo
#
echo x - sscalc/Makefile
sed 's/^X//' >sscalc/Makefile << 'END-of-sscalc/Makefile'
X# New ports collection makefile for: 	sscalc
X# Date created:				Wed Nov 29 15:08:00 PST 2000
X# Whom:					Keith Walker <kew@icehouse.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sscalc
XPORTVERSION=	1.0
XCATEGORIES=	astro
XMASTER_SITES=	http://www.icehouse.net/kew/
X
XMAINTAINER=	kew@icehouse.net
X
Xpre-fetch:
X.if !defined(LAT)
X	@${ECHO_MSG} "Type \"make LAT=<nnn.nn> LON=<nnn.nn>\" to hardwire your site"
X.else
X	@${ECHO_MSG} "Compiling in lat/longs"
X.endif
X
Xpost-install:
X	@strip ${PREFIX}/bin/sscalc
X	@${MKDIR} ${PREFIX}/share/doc/sscalc
X	${INSTALL_DATA} ${WRKSRC}/cities.txt ${PREFIX}/share/doc/sscalc
X	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sscalc
X
X.include <bsd.port.mk>
END-of-sscalc/Makefile
echo x - sscalc/pkg-descr
sed 's/^X//' >sscalc/pkg-descr << 'END-of-sscalc/pkg-descr'
XThis is sscalc, a sunrise/sunset time calculator, ported to C.
XYou can find the sunrise and sunset times for anywhere in the world
Xas long as you know the latitude and longitude of the location.
X
XThe program is a port of the Javascript program located at
Xhttp://www.srrb.noaa.gov/highlights/sunrise/gen.html
X
XThe page was written by Aaron Horiuchi, Chris Lehman and Chris
XCornwall.
END-of-sscalc/pkg-descr
echo x - sscalc/pkg-plist
sed 's/^X//' >sscalc/pkg-plist << 'END-of-sscalc/pkg-plist'
Xbin/sscalc
Xshare/doc/sscalc/cities.txt
Xshare/doc/sscalc/README
X@dirrm share/doc/sscalc
END-of-sscalc/pkg-plist
echo x - sscalc/pkg-comment
sed 's/^X//' >sscalc/pkg-comment << 'END-of-sscalc/pkg-comment'
XA sunrise/sunset time calculator
END-of-sscalc/pkg-comment
echo x - sscalc/distinfo
sed 's/^X//' >sscalc/distinfo << 'END-of-sscalc/distinfo'
XMD5 (sscalc-1.0.tar.gz) = e3777b9b3031af7215c514fc3c0665b3
END-of-sscalc/distinfo
exit



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Tue Dec 19 05:36:43 PST 2000 
State-Changed-Why:  
Committed, thanks!  Next time remember to make your shars 
properly so they create the port's directory first.  It would 
be nice if there was a patch to make this program use getopt() 
instead of hardcoding the long/lat into it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23245 

From: kew@icehouse.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: ports/23245 [PATCH] sscalc-1.0
Date: Thu, 21 Dec 2000 07:57:55 -0800 (PST)

 >Submitter-Id:   current-users
 >Originator:     Keith Walker
 >Organization:   
 >Confidential:   no 
 >Synopsis:       Fix to Makefile to clear up hardwired lat/longs
 >Severity:       non-critical
 >Priority:       low
 >Category:       ports
 >Release:        FreeBSD 4.2-STABLE i386
 >Class:          change-request
 >Environment: 
 
 	current ports
 
 >Description: 
 
 	This patch makes it clear that the program has always been
 	able to accept latitude and longitude via the command line.
 
 >How-To-Repeat: 
 
 	
 
 >Fix: 
 
 
 diff -ur sscalc-master/Makefile sscalc/Makefile
 --- sscalc-master/Makefile	Tue Dec 19 05:36:31 2000
 +++ sscalc/Makefile	Thu Dec 21 07:17:18 2000
 @@ -2,7 +2,7 @@
  # Date created:				Wed Nov 29 15:08:00 PST 2000
  # Whom:					Keith Walker <kew@icehouse.net>
  #
 -# $FreeBSD: ports/astro/sscalc/Makefile,v 1.1 2000/12/19 13:36:31 will Exp $
 +# $FreeBSD$
  #
  
  PORTNAME=	sscalc
 @@ -14,9 +14,14 @@
  
  pre-fetch:
  .if !defined(LAT)
 -	@${ECHO_MSG} "Type \"make LAT=<nnn.nn> LON=<nnn.nn>\" to hardwire your site"
 +	@${ECHO} "*****************************************************************"
 +	@${ECHO} "While you can ALWAYS provide the lat/longs via the command"
 +	@${ECHO} "line, you can choose to hardwire the coordinates to ease"
 +	@${ECHO} "things a bit:"
 +	@${ECHO} "   use \"make LAT=<nnn.nn> LON=<nnn.nn>\" if you want to."
 +	@${ECHO} "*****************************************************************"
  .else
 -	@${ECHO_MSG} "Compiling in lat/longs"
 +	@${ECHO} "Compiling in lat/longs"
  .endif
  
  post-install:
 @@ -24,5 +29,11 @@
  	@${MKDIR} ${PREFIX}/share/doc/sscalc
  	${INSTALL_DATA} ${WRKSRC}/cities.txt ${PREFIX}/share/doc/sscalc
  	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sscalc
 +	@${ECHO} "*****************************************************************"
 +	@${ECHO} " Located in ${PREFIX}/share/doc/sscalc/cities.txt is a list"
 +	@${ECHO} " of lat/longs for many, many cities all over the globe."
 +	@${ECHO} " You may be able to find your town in that file if you don't"
 +	@${ECHO} " know your latitude and longitude."
 +	@${ECHO} "*****************************************************************"
  
  .include <bsd.port.mk>
 

From: Will Andrews <will@physics.purdue.edu>
To: kew@icehouse.net
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/23245 [PATCH] sscalc-1.0
Date: Fri, 22 Dec 2000 12:01:06 -0500

 On Thu, Dec 21, 2000 at 08:00:03AM -0800, kew@icehouse.net wrote:
 >  	This patch makes it clear that the program has always been
 >  	able to accept latitude and longitude via the command line.
 
 :-)
 
 As you wish.  :-)
 
 -- 
 wca
 
>Unformatted:
