Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Sep 2018 21:43:26 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r480535 - in head/misc: . pyobd pyobd/files
Message-ID:  <201809232143.w8NLhQli011579@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Sep 23 21:43:25 2018
New Revision: 480535
URL: https://svnweb.freebsd.org/changeset/ports/480535

Log:
  New port: misc/pyobd: OBD-II compliant car diagnostic tool

Added:
  head/misc/pyobd/
  head/misc/pyobd/Makefile   (contents, props changed)
  head/misc/pyobd/distinfo   (contents, props changed)
  head/misc/pyobd/files/
  head/misc/pyobd/files/patch-pyobd   (contents, props changed)
  head/misc/pyobd/files/patch-pyobd.desktop   (contents, props changed)
  head/misc/pyobd/pkg-descr   (contents, props changed)
  head/misc/pyobd/pkg-message   (contents, props changed)
  head/misc/pyobd/pkg-plist   (contents, props changed)
Modified:
  head/misc/Makefile

Modified: head/misc/Makefile
==============================================================================
--- head/misc/Makefile	Sun Sep 23 21:16:17 2018	(r480534)
+++ head/misc/Makefile	Sun Sep 23 21:43:25 2018	(r480535)
@@ -445,6 +445,7 @@
     SUBDIR += py-tqdm
     SUBDIR += py-yolk
     SUBDIR += pylize
+    SUBDIR += pyobd
     SUBDIR += qbrew
     SUBDIR += qlas
     SUBDIR += qmetro

Added: head/misc/pyobd/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/pyobd/Makefile	Sun Sep 23 21:43:25 2018	(r480535)
@@ -0,0 +1,45 @@
+# $FreeBSD$
+
+PORTNAME=	pyobd
+DISTVERSION=	0.9.3
+CATEGORIES=	misc
+MASTER_SITES=	http://www.obdtester.com/download/
+DISTNAME=	pyobd_${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	OBD-II compliant car diagnostic tool
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	convert:graphics/ImageMagick
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}serial>0:comms/py-serial@${PY_FLAVOR}
+
+USES=		dos2unix gnome python:2.7 shebangfix
+DOS2UNIX_FILES=	${PORTNAME}.desktop
+SHEBANG_FILES=	${PORTNAME}
+USE_WX=		3.0
+WX_COMPS=	python
+
+INSTALLS_ICONS=	yes
+
+NO_ARCH=	yes
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+do-build:
+	@convert ${WRKSRC}/${PORTNAME}.gif ${WRKSRC}/${PORTNAME}.png
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
+		${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/${PORTNAME}.png
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME} ${WRKSRC}/*.py ${WRKSRC}/*.pyc \
+		${STAGEDIR}${DATADIR}
+	@${CHMOD} +x ${STAGEDIR}${DATADIR}/${PORTNAME}
+	@${LN} -sf ../share/${PORTNAME}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/misc/pyobd/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/pyobd/distinfo	Sun Sep 23 21:43:25 2018	(r480535)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1468366650
+SHA256 (pyobd_0.9.3.tar.gz) = f3004db4000e2bc166aae3b4342c98aa62f74f3372c5829472af0ee56c5e110c
+SIZE (pyobd_0.9.3.tar.gz) = 768154

Added: head/misc/pyobd/files/patch-pyobd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/pyobd/files/patch-pyobd	Sun Sep 23 21:43:25 2018	(r480535)
@@ -0,0 +1,47 @@
+--- pyobd.orig	2015-04-21 10:02:41 UTC
++++ pyobd
+@@ -356,7 +356,7 @@ class MyApp(wx.App):
+         else:
+           self.configfilepath=os.environ['HOME']+'/.pyobdrc'
+         if self.config.read(self.configfilepath)==[]:
+-          self.COMPORT="/dev/ttyACM0"
++          self.COMPORT="/dev/ttyU0"
+           self.RECONNATTEMPTS=5
+           self.SERTIMEOUT=2
+         else:
+@@ -592,34 +592,7 @@ the Free Software Foundation, Inc., 59 T
+     def scanSerial(self):
+         """scan for available ports. return a list of serial names"""
+         available = []
+-        for i in range(256):
+-          try: #scan standart ttyS*
+-            s = serial.Serial(i)
+-            available.append(s.portstr)
+-            s.close()   # explicit close 'cause of delayed GC in java
+-          except serial.SerialException:
+-            pass
+-        for i in range(256):
+-          try: #scan USB ttyACM
+-            s = serial.Serial("/dev/ttyACM"+str(i))
+-            available.append(s.portstr)
+-            s.close()   # explicit close 'cause of delayed GC in java
+-          except serial.SerialException:
+-            pass
+-        for i in range(256):
+-          try:
+-            s = serial.Serial("/dev/ttyUSB"+str(i))
+-            available.append(s.portstr)
+-            s.close()   # explicit close 'cause of delayed GC in java
+-          except serial.SerialException:
+-            pass
+-        for i in range(256):
+-          try:
+-            s = serial.Serial("/dev/ttyd"+str(i))
+-            available.append(s.portstr)
+-            s.close()   # explicit close 'cause of delayed GC in java
+-          except serial.SerialException:
+-            pass
++        available.append("/dev/ttyU0")
+             
+         # ELM-USB shows up as /dev/tty.usbmodemXXXX, where XXXX is a changing hex string
+         # on connection; so we have to search through all 64K options

Added: head/misc/pyobd/files/patch-pyobd.desktop
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/pyobd/files/patch-pyobd.desktop	Sun Sep 23 21:43:25 2018	(r480535)
@@ -0,0 +1,16 @@
+--- pyobd.desktop.orig	2016-07-21 17:05:31 UTC
++++ pyobd.desktop
+@@ -1,9 +1,10 @@
+ [Desktop Entry]
+ Encoding=UTF8
+-Icon=/usr/share/pyobd/pyobd.gif
+-Name=pyOBD: OBD2 Diagnostics
++Icon=pyOBD
++Name=pyOBD
++GenericName=OBD2 Diagnostics
+ Comment=Car On-Board 2 vehicle diagnostics (ELM-32x compatible interface)
+-Exec=python /usr/bin/pyobd
++Exec=pyobd
+ Terminal=false
+ Type=Application
+ Categories=Utility;

Added: head/misc/pyobd/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/pyobd/pkg-descr	Sun Sep 23 21:43:25 2018	(r480535)
@@ -0,0 +1,12 @@
+pyOBD (aka pyOBD-II or pyOBD2) is an OBD-II compliant car diagnostic tool.
+It is designed to interface with low-cost ELM 32x OBD-II diagnostic interfaces
+such as ELM-USB. It will basically allow you to talk to your car's ECU, ...
+display fault codes, display measured values, read status tests, etc. All cars
+made since 1996 (in the US) or 2001 (in the EU) must be OBD-II compliant, i.e.
+they should work with pyOBD.
+
+pyOBD is written entirely in Python and was originally written by Donour
+Sizemore, now maintained and improved by SECONS Ltd. and it is Free Software
+and is distributed under the terms of the GPL.
+
+WWW: http://www.obdtester.com/pyobd

Added: head/misc/pyobd/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/pyobd/pkg-message	Sun Sep 23 21:43:25 2018	(r480535)
@@ -0,0 +1,15 @@
+======================================================================
+You installed pyOBD: OBD-II compliant car diagnostic tool.
+
+pyOBD expects the device /dev/ttyU0 that should be created when you
+connect the OBD-II cable.
+
+You need these lines in /etc/devfs.rules to make the device readable
+and writable by you. If your user is in the group users:
+
+[localrules=5]
+add path 'ttyU*' mode 0660 group users
+
+You also need this line in /etc/rc.conf to allow localrules to take effect:
+devfs_system_ruleset="localrules"
+======================================================================

Added: head/misc/pyobd/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/pyobd/pkg-plist	Sun Sep 23 21:43:25 2018	(r480535)
@@ -0,0 +1,12 @@
+bin/pyobd
+share/applications/pyobd.desktop
+share/icons/hicolor/32x32/apps/pyobd.png
+%%DATADIR%%/debugEvent.py
+%%DATADIR%%/debugEvent.pyc
+%%DATADIR%%/obd2_codes.py
+%%DATADIR%%/obd2_codes.pyc
+%%DATADIR%%/obd_io.py
+%%DATADIR%%/obd_io.pyc
+%%DATADIR%%/obd_sensors.py
+%%DATADIR%%/obd_sensors.pyc
+%%DATADIR%%/pyobd



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