pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel
Module Name: pkgsrc
Committed By: nia
Date: Fri Apr 3 23:06:35 UTC 2020
Modified Files:
pkgsrc/devel: Makefile
Added Files:
pkgsrc/devel/py-adb: ALTERNATIVES DESCR Makefile PLIST distinfo
pkgsrc/devel/py-adb/patches: patch-adb_common.py
Log Message:
devel: Add py-adb. Based on work by leot in pkgsrc-wip.
This is a complete replacement and rearchitecture of the Android
project's ADB and fastboot, using libusb1 for USB communications.
This code is mainly targeted to users that need to communicate with
Android devices in an automated fashion, such as in automated
testing. It does not have a daemon between the client and the
device, and therefore does not support multiple simultaneous commands
to the same device.
To generate a diff of this commit:
cvs rdiff -u -r1.3088 -r1.3089 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-adb/ALTERNATIVES \
pkgsrc/devel/py-adb/DESCR pkgsrc/devel/py-adb/Makefile \
pkgsrc/devel/py-adb/PLIST pkgsrc/devel/py-adb/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-adb/patches/patch-adb_common.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.3088 pkgsrc/devel/Makefile:1.3089
--- pkgsrc/devel/Makefile:1.3088 Fri Apr 3 23:04:54 2020
+++ pkgsrc/devel/Makefile Fri Apr 3 23:06:34 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3088 2020/04/03 23:04:54 nia Exp $
+# $NetBSD: Makefile,v 1.3089 2020/04/03 23:06:34 nia Exp $
#
COMMENT= Development utilities
@@ -2098,6 +2098,7 @@ SUBDIR+= py-ZopeInterface
SUBDIR+= py-ZopeSchema
SUBDIR+= py-ZopeTestrunner
SUBDIR+= py-absl-py
+SUBDIR+= py-adb
SUBDIR+= py-aiofiles
SUBDIR+= py-angr
SUBDIR+= py-anytree
Added files:
Index: pkgsrc/devel/py-adb/ALTERNATIVES
diff -u /dev/null pkgsrc/devel/py-adb/ALTERNATIVES:1.1
--- /dev/null Fri Apr 3 23:06:35 2020
+++ pkgsrc/devel/py-adb/ALTERNATIVES Fri Apr 3 23:06:35 2020
@@ -0,0 +1,2 @@
+bin/pyadb @PREFIX@/bin/pyadb-@PYVERSSUFFIX@
+bin/pyfastboot @PREFIX@/bin/pyfastboot-@PYVERSSUFFIX@
Index: pkgsrc/devel/py-adb/DESCR
diff -u /dev/null pkgsrc/devel/py-adb/DESCR:1.1
--- /dev/null Fri Apr 3 23:06:35 2020
+++ pkgsrc/devel/py-adb/DESCR Fri Apr 3 23:06:35 2020
@@ -0,0 +1,8 @@
+This is a complete replacement and rearchitecture of the Android
+project's ADB and fastboot, using libusb1 for USB communications.
+
+This code is mainly targeted to users that need to communicate with
+Android devices in an automated fashion, such as in automated
+testing. It does not have a daemon between the client and the
+device, and therefore does not support multiple simultaneous commands
+to the same device.
Index: pkgsrc/devel/py-adb/Makefile
diff -u /dev/null pkgsrc/devel/py-adb/Makefile:1.1
--- /dev/null Fri Apr 3 23:06:35 2020
+++ pkgsrc/devel/py-adb/Makefile Fri Apr 3 23:06:35 2020
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/04/03 23:06:35 nia Exp $
+
+DISTNAME= adb-1.3.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_PYPI:=a/adb/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/google/python-adb
+COMMENT= Pure Python implementation of the Android ADB and Fastboot protocols
+LICENSE= apache-2.0
+
+DEPENDS+= ${PYPKGPREFIX}-libusb1>=1.0.16:../../devel/py-libusb1
+DEPENDS+= ${PYPKGPREFIX}-rsa-[0-9]*:../../security/py-rsa
+
+USE_LANGUAGES= # none
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/bin/pyadb ${DESTDIR}${PREFIX}/bin/pyadb-${PYVERSSUFFIX} || ${TRUE}
+ ${MV} ${DESTDIR}${PREFIX}/bin/pyfastboot ${DESTDIR}${PREFIX}/bin/pyfastboot-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-adb/PLIST
diff -u /dev/null pkgsrc/devel/py-adb/PLIST:1.1
--- /dev/null Fri Apr 3 23:06:35 2020
+++ pkgsrc/devel/py-adb/PLIST Fri Apr 3 23:06:35 2020
@@ -0,0 +1,48 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/03 23:06:35 nia Exp $
+bin/pyadb-${PYVERSSUFFIX}
+bin/pyfastboot-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/adb/__init__.py
+${PYSITELIB}/adb/__init__.pyc
+${PYSITELIB}/adb/__init__.pyo
+${PYSITELIB}/adb/adb_commands.py
+${PYSITELIB}/adb/adb_commands.pyc
+${PYSITELIB}/adb/adb_commands.pyo
+${PYSITELIB}/adb/adb_debug.py
+${PYSITELIB}/adb/adb_debug.pyc
+${PYSITELIB}/adb/adb_debug.pyo
+${PYSITELIB}/adb/adb_protocol.py
+${PYSITELIB}/adb/adb_protocol.pyc
+${PYSITELIB}/adb/adb_protocol.pyo
+${PYSITELIB}/adb/common.py
+${PYSITELIB}/adb/common.pyc
+${PYSITELIB}/adb/common.pyo
+${PYSITELIB}/adb/common_cli.py
+${PYSITELIB}/adb/common_cli.pyc
+${PYSITELIB}/adb/common_cli.pyo
+${PYSITELIB}/adb/fastboot.py
+${PYSITELIB}/adb/fastboot.pyc
+${PYSITELIB}/adb/fastboot.pyo
+${PYSITELIB}/adb/fastboot_debug.py
+${PYSITELIB}/adb/fastboot_debug.pyc
+${PYSITELIB}/adb/fastboot_debug.pyo
+${PYSITELIB}/adb/filesync_protocol.py
+${PYSITELIB}/adb/filesync_protocol.pyc
+${PYSITELIB}/adb/filesync_protocol.pyo
+${PYSITELIB}/adb/sign_m2crypto.py
+${PYSITELIB}/adb/sign_m2crypto.pyc
+${PYSITELIB}/adb/sign_m2crypto.pyo
+${PYSITELIB}/adb/sign_pycryptodome.py
+${PYSITELIB}/adb/sign_pycryptodome.pyc
+${PYSITELIB}/adb/sign_pycryptodome.pyo
+${PYSITELIB}/adb/sign_pythonrsa.py
+${PYSITELIB}/adb/sign_pythonrsa.pyc
+${PYSITELIB}/adb/sign_pythonrsa.pyo
+${PYSITELIB}/adb/usb_exceptions.py
+${PYSITELIB}/adb/usb_exceptions.pyc
+${PYSITELIB}/adb/usb_exceptions.pyo
Index: pkgsrc/devel/py-adb/distinfo
diff -u /dev/null pkgsrc/devel/py-adb/distinfo:1.1
--- /dev/null Fri Apr 3 23:06:35 2020
+++ pkgsrc/devel/py-adb/distinfo Fri Apr 3 23:06:35 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/04/03 23:06:35 nia Exp $
+
+SHA1 (adb-1.3.0.tar.gz) = 5a5ebffbfaffeeba2b36d519ab8bad212c218506
+RMD160 (adb-1.3.0.tar.gz) = aa708a57ba992168e43d99f40c7d03783de0ca73
+SHA512 (adb-1.3.0.tar.gz) = 0ec5c2acee688498c065cfd136491594631e5410121f9f856cf9d0818af238bbf41f2646bf50b8503873bbd48e9bc97065638d3f4af35ba82681a0c84a26139c
+Size (adb-1.3.0.tar.gz) = 27050 bytes
+SHA1 (patch-adb_common.py) = 40490613f464bdf28d179ee62bd20b245797254e
Index: pkgsrc/devel/py-adb/patches/patch-adb_common.py
diff -u /dev/null pkgsrc/devel/py-adb/patches/patch-adb_common.py:1.1
--- /dev/null Fri Apr 3 23:06:35 2020
+++ pkgsrc/devel/py-adb/patches/patch-adb_common.py Fri Apr 3 23:06:35 2020
@@ -0,0 +1,14 @@
+$NetBSD: patch-adb_common.py,v 1.1 2020/04/03 23:06:35 nia Exp $
+
+This fails on NetBSD too.
+
+--- adb/common.py.orig 2018-05-31 08:43:12.000000000 +0000
++++ adb/common.py
+@@ -118,6 +118,7 @@ class UsbHandle(object):
+ iface_number = self._setting.getNumber()
+ try:
+ if (platform.system() != 'Windows'
++ and platform.system() != 'NetBSD'
+ and handle.kernelDriverActive(iface_number)):
+ handle.detachKernelDriver(iface_number)
+ except libusb1.USBError as e:
Home |
Main Index |
Thread Index |
Old Index