From owner-svn-ports-all@freebsd.org Sun Sep 23 21:43:28 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F06A3109A938; Sun, 23 Sep 2018 21:43:27 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A57A584565; Sun, 23 Sep 2018 21:43:27 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A03A8106C2; Sun, 23 Sep 2018 21:43:27 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8NLhRj7011586; Sun, 23 Sep 2018 21:43:27 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8NLhQli011579; Sun, 23 Sep 2018 21:43:26 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201809232143.w8NLhQli011579@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 23 Sep 2018 21:43:26 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/misc: . pyobd pyobd/files X-SVN-Commit-Revision: 480535 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Sep 2018 21:43:28 -0000 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 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