From stb@diesel.lassitu.de  Sun Dec 26 11:31:36 2010
Return-Path: <stb@diesel.lassitu.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BE4C0106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Dec 2010 11:31:36 +0000 (UTC)
	(envelope-from stb@diesel.lassitu.de)
Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea])
	by mx1.freebsd.org (Postfix) with ESMTP id 463318FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Dec 2010 11:31:35 +0000 (UTC)
Received: by gilb.zs64.net (Postfix, from zs64submitaccount@zs64.net) id 20D0ECBD7E
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Dec 2010 12:31:34 +0100 (CET)
Message-Id: <20101226123133-211459@diesel.lassitu.de>
Date: Sun, 26 Dec 2010 12:31:33 
From: Stefan Bethke <stb@lassitu.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: science/py-ws2300 A driver for the LaCrosse WS-2300 weather
	station
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         153452
>Category:       ports
>Synopsis:       New port: science/py-ws2300 A driver for the LaCrosse WS-2300 weather station
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    stephen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 26 11:40:10 UTC 2010
>Closed-Date:    Fri Jul 01 20:25:37 UTC 2011
>Last-Modified:  Fri Jul  1 20:30:08 UTC 2011
>Originator:     Stefan Bethke
>Release:        FreeBSD 8.2-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD diesel.lassitu.de 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #6 r216182: Sat Dec 4 14:44:46 CET 2010 root@diesel.lassitu.de:/usr/obj/usr/src/sys/DIESEL amd64


Ws2300 manipulates the LaCrosse WS-2300 weather station via its RS232
interface. It can read and write values, and can continuously log data from
WS-2300 to a file or SQL database.

WWW: http://ace-host.stuart.id.au/russell/files/ws2300/


# 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:
#
#	py-ws2300
#	py-ws2300/distinfo
#	py-ws2300/pkg-plist
#	py-ws2300/Makefile
#	py-ws2300/files
#	py-ws2300/files/ws2300
#	py-ws2300/pkg-descr
#
echo c - py-ws2300
mkdir -p py-ws2300 > /dev/null 2>&1
echo x - py-ws2300/distinfo
sed 's/^X//' >py-ws2300/distinfo << 'd6658d0e9f20f34fad70eb0626cb729c'
XSHA256 (ws2300-1.3.tar.gz) = f824943f04791d63fc5edd940a60181bde2c8f575c11be1e473036fce76c7eef
XSIZE (ws2300-1.3.tar.gz) = 63738
d6658d0e9f20f34fad70eb0626cb729c
echo x - py-ws2300/pkg-plist
sed 's/^X//' >py-ws2300/pkg-plist << 'f76cabf254af03cfc8bad852c78c288d'
X%%PYTHON_SITELIBDIR%%/ws2300.py
X%%PYTHON_SITELIBDIR%%/ws2300.pyc
X%%PYTHON_SITELIBDIR%%/ws2300.pyo
Xbin/ws2300
f76cabf254af03cfc8bad852c78c288d
echo x - py-ws2300/Makefile
sed 's/^X//' >py-ws2300/Makefile << '7a0b06e1c53503f2c69695bf7d7531a7'
X# New ports collection makefile for:	py-ws2300
X# Date created:				26 December 2010
X# Whom:					Stefan Bethke <stb@lassitu.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ws2300
XPORTVERSION=	1.3
XCATEGORIES=	science python
XMASTER_SITES=	http://ace-host.stuart.id.au/russell/files/ws2300/ \
X		http://www.transit.hanse.de/mirror/ace-host.stuart.id.au/russell/files/ws2300/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X#DISTNAME=	pydns-${PORTVERSION}
X
XMAINTAINER=	stb@lassitu.de
XCOMMENT=	A driver for the LaCrosse WS-2300 weather station
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
X#PYDISTUTILS_PKGNAME=	x
X
XMAN1=	ws2300.1
X
Xpost-install:
X	#@${LN} -sf ${PYTHONPREFIX_SITELIBDIR}/ws2300.py ${PREFIX}/bin/ws2300
X	@${INSTALL_SCRIPT} ${FILESDIR}/ws2300 ${PREFIX}/bin/ws2300
X	@${INSTALL_MAN} ${WRKSRC}/ws2300.1 ${PREFIX}/man/man1/
X
X.include <bsd.port.mk>
7a0b06e1c53503f2c69695bf7d7531a7
echo c - py-ws2300/files
mkdir -p py-ws2300/files > /dev/null 2>&1
echo x - py-ws2300/files/ws2300
sed 's/^X//' >py-ws2300/files/ws2300 << '02cea18e519bd17929d719270a34d8f7'
X#!/usr/bin/env python
X
Xfrom ws2300 import *
Xmain(sys.argv)
02cea18e519bd17929d719270a34d8f7
echo x - py-ws2300/pkg-descr
sed 's/^X//' >py-ws2300/pkg-descr << '008ccc22a6abb8405cc79d0e3f0a0ef6'
XWs2300 manipulates the LaCrosse WS-2300 weather station via its RS232
Xinterface. It can read and write values, and can continuously log data from
XWS-2300 to a file or SQL database.
X
XWWW: http://ace-host.stuart.id.au/russell/files/ws2300/
008ccc22a6abb8405cc79d0e3f0a0ef6
exit

>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Stefan Bethke <stb@lassitu.de>
To: FreeBSD-gnats-submit@FreeBSD.org,
 freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/153452: New port: science/py-ws2300 A driver for the LaCrosse WS-2300 weather station
Date: Sun, 26 Dec 2010 13:14:55 +0100

 --Apple-Mail-1--621600839
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 I forgot a patch. Here's the complete SHAR with the patch included.
 
 
 --Apple-Mail-1--621600839
 Content-Disposition: attachment;
 	filename=py-ws2300.shar
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="py-ws2300.shar"
 Content-Transfer-Encoding: 7bit
 
 # 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:
 #
 #	py-ws2300
 #	py-ws2300/distinfo
 #	py-ws2300/pkg-plist
 #	py-ws2300/Makefile
 #	py-ws2300/files
 #	py-ws2300/files/ws2300
 #	py-ws2300/files/patch-ws2300.py
 #	py-ws2300/pkg-descr
 #
 echo c - py-ws2300
 mkdir -p py-ws2300 > /dev/null 2>&1
 echo x - py-ws2300/distinfo
 sed 's/^X//' >py-ws2300/distinfo << 'd6658d0e9f20f34fad70eb0626cb729c'
 XSHA256 (ws2300-1.3.tar.gz) = f824943f04791d63fc5edd940a60181bde2c8f575c11be1e473036fce76c7eef
 XSIZE (ws2300-1.3.tar.gz) = 63738
 d6658d0e9f20f34fad70eb0626cb729c
 echo x - py-ws2300/pkg-plist
 sed 's/^X//' >py-ws2300/pkg-plist << 'f76cabf254af03cfc8bad852c78c288d'
 X%%PYTHON_SITELIBDIR%%/ws2300.py
 X%%PYTHON_SITELIBDIR%%/ws2300.pyc
 X%%PYTHON_SITELIBDIR%%/ws2300.pyo
 Xbin/ws2300
 f76cabf254af03cfc8bad852c78c288d
 echo x - py-ws2300/Makefile
 sed 's/^X//' >py-ws2300/Makefile << '7a0b06e1c53503f2c69695bf7d7531a7'
 X# New ports collection makefile for:	py-ws2300
 X# Date created:				26 December 2010
 X# Whom:					Stefan Bethke <stb@lassitu.de>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	ws2300
 XPORTVERSION=	1.3
 XCATEGORIES=	science python
 XMASTER_SITES=	http://ace-host.stuart.id.au/russell/files/ws2300/ \
 X		http://www.transit.hanse.de/mirror/ace-host.stuart.id.au/russell/files/ws2300/
 XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 X#DISTNAME=	pydns-${PORTVERSION}
 X
 XMAINTAINER=	stb@lassitu.de
 XCOMMENT=	A driver for the LaCrosse WS-2300 weather station
 X
 XUSE_PYTHON=	yes
 XUSE_PYDISTUTILS=	yes
 X#PYDISTUTILS_PKGNAME=	x
 X
 XMAN1=	ws2300.1
 X
 Xpost-install:
 X	#@${LN} -sf ${PYTHONPREFIX_SITELIBDIR}/ws2300.py ${PREFIX}/bin/ws2300
 X	@${INSTALL_SCRIPT} ${FILESDIR}/ws2300 ${PREFIX}/bin/ws2300
 X	@${INSTALL_MAN} ${WRKSRC}/ws2300.1 ${PREFIX}/man/man1/
 X
 X.include <bsd.port.mk>
 7a0b06e1c53503f2c69695bf7d7531a7
 echo c - py-ws2300/files
 mkdir -p py-ws2300/files > /dev/null 2>&1
 echo x - py-ws2300/files/ws2300
 sed 's/^X//' >py-ws2300/files/ws2300 << '02cea18e519bd17929d719270a34d8f7'
 X#!/usr/bin/env python
 X
 Xfrom ws2300 import *
 Xmain(sys.argv)
 02cea18e519bd17929d719270a34d8f7
 echo x - py-ws2300/files/patch-ws2300.py
 sed 's/^X//' >py-ws2300/files/patch-ws2300.py << '84061ef936654111515b41c19f08d83c'
 X--- ws2300.py.orig	2008-02-09 01:05:06.000000000 +0100
 X+++ ws2300.py	2010-12-26 13:09:04.204179367 +0100
 X@@ -26,15 +26,16 @@
 X import math
 X import optparse
 X import os
 X-import popen2
 X import select
 X import signal
 X import socket
 X import stat
 X import string
 X import struct
 X+import subprocess
 X import sys
 X import syslog
 X+import termios
 X import traceback
 X import time
 X import tty
 X@@ -182,7 +183,10 @@
 X       setup[6][tty.VMIN] = 1
 X       setup[6][tty.VTIME] = 0
 X       tty.tcflush(self.serial_port, tty.TCIOFLUSH)
 X-      tty.tcflow(self.serial_port, tty.TCOON|tty.TCION)
 X+      try:
 X+        tty.tcflow(self.serial_port, tty.TCOON|tty.TCION)
 X+      except termios.error:
 X+        pass
 X       tty.tcsetattr(self.serial_port, tty.TCSAFLUSH, setup)
 X       #
 X       # Set DTR low and RTS high and leave other control lines untouched.
 X@@ -2714,9 +2718,9 @@
 X # If some sort of error occurred, send an email.
 X #
 X def email_fatal(me, email, lines):
 X-  stdout, stdin = popen2.popen2("/usr/sbin/sendmail -t")
 X-  stdout.close()
 X-  w = lambda s: stdin.write(s + "\n")
 X+  p = subprocess.Popen(["/usr/sbin/sendmail", "-t"],
 X+    stdin=subprocess.PIPE, close_fds=True)
 X+  w = lambda s: p.stdin.write(s + "\n")
 X   if not isinstance(email, (type(()), type([]))):
 X     email = [email]
 X   w("To: " + ",".join(email))
 X@@ -2730,7 +2734,7 @@
 X   w("Regards,")
 X   w(me)
 X   w("Running on " + socket.gethostname())
 X-  stdin.close()
 X+  p.stdin.close()
 X 
 X #
 X # Daemon mode recording.
 84061ef936654111515b41c19f08d83c
 echo x - py-ws2300/pkg-descr
 sed 's/^X//' >py-ws2300/pkg-descr << '008ccc22a6abb8405cc79d0e3f0a0ef6'
 XWs2300 manipulates the LaCrosse WS-2300 weather station via its RS232
 Xinterface. It can read and write values, and can continuously log data from
 XWS-2300 to a file or SQL database.
 X
 XWWW: http://ace-host.stuart.id.au/russell/files/ws2300/
 008ccc22a6abb8405cc79d0e3f0a0ef6
 exit
 
 
 --Apple-Mail-1--621600839
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 
 -- 
 Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811
 
 
 
 
 --Apple-Mail-1--621600839--

From: Stefan Bethke <stb@lassitu.de>
To: FreeBSD-gnats-submit@FreeBSD.org,
 freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/153452: New port: science/py-ws2300 A driver for the LaCrosse WS-2300 weather station
Date: Mon, 27 Dec 2010 13:16:54 +0100

 --Apple-Mail-3--535081652
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=us-ascii
 
 The upstream author was nice enough to incorporate the changes in the =
 patch, so here's the new SHAR with version 1.4.
 
 --=20
 Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811
 
 
 
 --Apple-Mail-3--535081652
 Content-Disposition: attachment;
 	filename=py-ws2300.shar
 Content-Type: application/octet-stream;
 	name="py-ws2300.shar"
 Content-Transfer-Encoding: 7bit
 
 # 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:
 #
 #	py-ws2300/distinfo
 #	py-ws2300/pkg-plist
 #	py-ws2300/Makefile
 #	py-ws2300/files/ws2300
 #	py-ws2300/pkg-descr
 #
 echo x - py-ws2300/distinfo
 sed 's/^X//' >py-ws2300/distinfo << 'd6658d0e9f20f34fad70eb0626cb729c'
 XSHA256 (ws2300-1.4.tar.gz) = b12a94e004490ba6664e50803cd04d955a667af9f331359f4c100b299830909f
 XSIZE (ws2300-1.4.tar.gz) = 74094
 d6658d0e9f20f34fad70eb0626cb729c
 echo x - py-ws2300/pkg-plist
 sed 's/^X//' >py-ws2300/pkg-plist << 'f76cabf254af03cfc8bad852c78c288d'
 X%%PYTHON_SITELIBDIR%%/ws2300.py
 X%%PYTHON_SITELIBDIR%%/ws2300.pyc
 X%%PYTHON_SITELIBDIR%%/ws2300.pyo
 Xbin/ws2300
 f76cabf254af03cfc8bad852c78c288d
 echo x - py-ws2300/Makefile
 sed 's/^X//' >py-ws2300/Makefile << '7a0b06e1c53503f2c69695bf7d7531a7'
 X# New ports collection makefile for:	py-ws2300
 X# Date created:				26 December 2010
 X# Whom:					Stefan Bethke <stb@lassitu.de>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	ws2300
 XPORTVERSION=	1.4
 XCATEGORIES=	science python
 XMASTER_SITES=	http://ace-host.stuart.id.au/russell/files/ws2300/ \
 X		http://www.transit.hanse.de/mirror/ace-host.stuart.id.au/russell/files/ws2300/
 XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 X#DISTNAME=	pydns-${PORTVERSION}
 X
 XMAINTAINER=	stb@lassitu.de
 XCOMMENT=	A driver for the LaCrosse WS-2300 weather station
 X
 XUSE_PYTHON=	yes
 XUSE_PYDISTUTILS=	yes
 X#PYDISTUTILS_PKGNAME=	x
 X
 XMAN1=	ws2300.1
 X
 Xpost-install:
 X	#@${LN} -sf ${PYTHONPREFIX_SITELIBDIR}/ws2300.py ${PREFIX}/bin/ws2300
 X	@${INSTALL_SCRIPT} ${FILESDIR}/ws2300 ${PREFIX}/bin/ws2300
 X	@${INSTALL_MAN} ${WRKSRC}/ws2300.1 ${PREFIX}/man/man1/
 X
 X.include <bsd.port.mk>
 7a0b06e1c53503f2c69695bf7d7531a7
 echo x - py-ws2300/files/ws2300
 sed 's/^X//' >py-ws2300/files/ws2300 << '02cea18e519bd17929d719270a34d8f7'
 X#!/usr/bin/env python
 X
 Xfrom ws2300 import *
 Xmain(sys.argv)
 02cea18e519bd17929d719270a34d8f7
 echo x - py-ws2300/pkg-descr
 sed 's/^X//' >py-ws2300/pkg-descr << '008ccc22a6abb8405cc79d0e3f0a0ef6'
 XWs2300 manipulates the LaCrosse WS-2300 weather station via its RS232
 Xinterface. It can read and write values, and can continuously log data from
 XWS-2300 to a file or SQL database.
 X
 XWWW: http://ace-host.stuart.id.au/russell/files/ws2300/
 008ccc22a6abb8405cc79d0e3f0a0ef6
 exit
 
 
 --Apple-Mail-3--535081652--
Responsible-Changed-From-To: freebsd-ports-bugs->stephen 
Responsible-Changed-By: stephen 
Responsible-Changed-When: Fri Jul 1 01:27:11 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153452 
State-Changed-From-To: open->closed 
State-Changed-By: stephen 
State-Changed-When: Fri Jul 1 20:24:39 UTC 2011 
State-Changed-Why:  
Committed, and updated to 1.5.  Thanks, Stephen 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/153452: commit references a PR
Date: Fri,  1 Jul 2011 20:23:50 +0000 (UTC)

 stephen     2011-07-01 20:23:41 UTC
 
   FreeBSD ports repository
 
   Modified files:
     science              Makefile 
   Added files:
     science/py-ws2300    Makefile distinfo pkg-descr pkg-plist 
     science/py-ws2300/files ws2300 
   Log:
   - New port science/py-ws2300
   
   Ws2300 manipulates the LaCrosse WS-2300 weather station via its RS232
   interface. It can read and write values, and can continuously log data
   from WS-2300 to a file or SQL database.
   
   WWW: http://ace-host.stuart.id.au/russell/files/ws2300/
   
   PR:             ports/153452
   Submitted by:   Stefan Bethke <stb@lassitu.de>
   Approved by:    gabor (mentor)
   
   Revision  Changes    Path
   1.218     +1 -0      ports/science/Makefile
   1.1       +28 -0     ports/science/py-ws2300/Makefile (new)
   1.1       +2 -0      ports/science/py-ws2300/distinfo (new)
   1.1       +4 -0      ports/science/py-ws2300/files/ws2300 (new)
   1.1       +5 -0      ports/science/py-ws2300/pkg-descr (new)
   1.1       +4 -0      ports/science/py-ws2300/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
