pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-adb: Update wip/py-adb to 1.3.0



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Jun 15 15:52:56 2018 +0200
Changeset:	7e996e6b6793ccba61dbd2cc2e9d894ec45d5c81

Modified Files:
	py-adb/Makefile
	py-adb/PLIST
	py-adb/distinfo

Log Message:
py-adb: Update wip/py-adb to 1.3.0

pkgsrc changes:
 - Use security/py-rsa instead of security/py-m2crypto (the latter is not
   ported to openssl-1.1.0 ATM and py-adb is agnostic and can use py-rsa,
   py-cryptodome and py-m2crypto).

Changes:
1.3.0
=====
Backwards Incompatible changes
------------------------------
adb_commands.AdbCommands() is now a normal class rather than a
collection of staticmethods. Using the following example code to
get started:

device = adb_commands.AdbCommands()
device.ConnectDevice(rsa_keys=[signer])

Other changes/fixes
-------------------
Many changes since 1.2.0!:

 - New entrypoints exposed by pip: pyadb and pyfastboot
 - Lots of Python 2/3 compatibility fixes
 - Windows compatibility fixes
 - Transfer progress available (Push, Pull, Install)
 - Handle some misbehaving devices (double CLSE bug)
 - New options for Push and Install (st_mode and grant_permissions)

XXX: WARNING: I have not actually tested with real HW! (if there is any
XXX:          regression feel free to poke me!)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7e996e6b6793ccba61dbd2cc2e9d894ec45d5c81

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-adb/Makefile | 8 ++++++--
 py-adb/PLIST    | 6 ++++++
 py-adb/distinfo | 8 ++++----
 3 files changed, 16 insertions(+), 6 deletions(-)

diffs:
diff --git a/py-adb/Makefile b/py-adb/Makefile
index df2c5d6ab5..db05e3c4cd 100644
--- a/py-adb/Makefile
+++ b/py-adb/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.1 2017/04/14 12:10:26 leot Exp $
 
-DISTNAME=	adb-1.2.0
+DISTNAME=	adb-1.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=a/adb/}
@@ -10,10 +10,14 @@ HOMEPAGE=	https://github.com/google/python-adb
 COMMENT=	Pure Python implementation of the Android ADB and Fastboot protocols
 LICENSE=	apache-2.0
 
-DEPENDS+=	${PYPKGPREFIX}-m2crypto>=0.21.1:../../security/py-m2crypto
+DEPENDS+=	${PYPKGPREFIX}-rsa-[0-9]*:../../security/py-rsa
 DEPENDS+=	${PYPKGPREFIX}-libusb1>=1.0.16:../../wip/py-libusb1
 
 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"
diff --git a/py-adb/PLIST b/py-adb/PLIST
index 161d6cb0d6..44d68dab52 100644
--- a/py-adb/PLIST
+++ b/py-adb/PLIST
@@ -1,7 +1,10 @@
 @comment $NetBSD$
+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
@@ -34,6 +37,9 @@ ${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
diff --git a/py-adb/distinfo b/py-adb/distinfo
index b201d0a89a..388b05ac38 100644
--- a/py-adb/distinfo
+++ b/py-adb/distinfo
@@ -1,6 +1,6 @@
 $NetBSD: distinfo,v 1.1 2017/04/14 12:10:26 leot Exp $
 
-SHA1 (adb-1.2.0.tar.gz) = 2674959cf57597ef91e3c659678936b2e0db3a9e
-RMD160 (adb-1.2.0.tar.gz) = a1d428cbef5058ccf6e0ee7df624efa5ee4f510b
-SHA512 (adb-1.2.0.tar.gz) = 2bb02adbd43602471a48f8de92fd660835b9f0dfc41df30ebdbf6408f410ff56fc7e073b0e636ac1f1ed44aa98719e10ed64f646f5e5477d321a676c7f2f1708
-Size (adb-1.2.0.tar.gz) = 20508 bytes
+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


Home | Main Index | Thread Index | Old Index