pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   nikita
Date:           Thu May 18 12:39:49 UTC 2023

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/py-nkdfu: ALTERNATIVES DESCR Makefile PLIST distinfo

Log Message:
py-nkdfu: import as sysutils/py-nkdfu version 0.2

nkdfu is a Python DFU tool for updating Nitrokeys' firmware.
It currently supports Nitrokey Pro only.
It is based on python-dfu project, which brings implementation
of USB DFU 1.1 spec.


To generate a diff of this commit:
cvs rdiff -u -r1.1046 -r1.1047 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/py-nkdfu/ALTERNATIVES \
    pkgsrc/sysutils/py-nkdfu/DESCR pkgsrc/sysutils/py-nkdfu/Makefile \
    pkgsrc/sysutils/py-nkdfu/PLIST pkgsrc/sysutils/py-nkdfu/distinfo

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

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.1046 pkgsrc/sysutils/Makefile:1.1047
--- pkgsrc/sysutils/Makefile:1.1046     Thu May 11 05:27:50 2023
+++ pkgsrc/sysutils/Makefile    Thu May 18 12:39:49 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1046 2023/05/11 05:27:50 adam Exp $
+# $NetBSD: Makefile,v 1.1047 2023/05/18 12:39:49 nikita Exp $
 #
 
 COMMENT=       System utilities
@@ -577,6 +577,7 @@ SUBDIR+=    py-kazoo
 SUBDIR+=       py-kubernetes
 SUBDIR+=       py-loguru
 SUBDIR+=       py-magic
+SUBDIR+=       py-nkdfu
 SUBDIR+=       py-notify
 SUBDIR+=       py-notify2
 SUBDIR+=       py-pathtools

Added files:

Index: pkgsrc/sysutils/py-nkdfu/ALTERNATIVES
diff -u /dev/null pkgsrc/sysutils/py-nkdfu/ALTERNATIVES:1.1
--- /dev/null   Thu May 18 12:39:49 2023
+++ pkgsrc/sysutils/py-nkdfu/ALTERNATIVES       Thu May 18 12:39:49 2023
@@ -0,0 +1 @@
+bin/nkdfu @PREFIX@/bin/nkdfu-${PYVERSSUFFIX}
Index: pkgsrc/sysutils/py-nkdfu/DESCR
diff -u /dev/null pkgsrc/sysutils/py-nkdfu/DESCR:1.1
--- /dev/null   Thu May 18 12:39:49 2023
+++ pkgsrc/sysutils/py-nkdfu/DESCR      Thu May 18 12:39:49 2023
@@ -0,0 +1,4 @@
+nkdfu is a Python DFU tool for updating Nitrokeys' firmware.
+It currently supports Nitrokey Pro only.
+It is based on python-dfu project, which brings implementation
+of USB DFU 1.1 spec.
Index: pkgsrc/sysutils/py-nkdfu/Makefile
diff -u /dev/null pkgsrc/sysutils/py-nkdfu/Makefile:1.1
--- /dev/null   Thu May 18 12:39:49 2023
+++ pkgsrc/sysutils/py-nkdfu/Makefile   Thu May 18 12:39:49 2023
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 2023/05/18 12:39:49 nikita Exp $
+
+DISTNAME=      nkdfu-0.2
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    sysutils python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=n/nkdfu/}
+
+MAINTAINER=    nikita%NetBSD.org@localhost
+HOMEPAGE=      https://pypi.org/project/nkdfu/
+COMMENT=       Python DFU tool for updating Nitrokeys' firmware
+LICENSE=       gnu-gpl-v2
+
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core
+DEPENDS+=      ${PYPKGPREFIX}-libusb1-[0-9]*:../../devel/py-libusb1
+DEPENDS+=      ${PYPKGPREFIX}-intelhex-[0-9]*:../../devel/py-intelhex
+DEPENDS+=      ${PYPKGPREFIX}-tqdm-[0-9]*:../../misc/py-tqdm
+DEPENDS+=      ${PYPKGPREFIX}-fire-[0-9]*:../../devel/py-fire
+
+# Only supports python 3.6 or higher.
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+USE_LANGUAGES= # none
+
+#FIXME
+#REPLACE_PYTHON+=      nkdfu/dfu_flash.py
+
+SUBST_CLASSES+=         python
+SUBST_STAGE.python=     pre-build
+SUBST_MESSAGE.python=   Fix python invocation
+SUBST_FILES.python+=    nkdfu/dfu_flash.py
+SUBST_SED.python+=      -e 's,/usr/bin/env.*,${PYTHONBIN},g'
+
+
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/nkdfu ${DESTDIR}${PREFIX}/bin/nkdfu-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/py-nkdfu/PLIST
diff -u /dev/null pkgsrc/sysutils/py-nkdfu/PLIST:1.1
--- /dev/null   Thu May 18 12:39:49 2023
+++ pkgsrc/sysutils/py-nkdfu/PLIST      Thu May 18 12:39:49 2023
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1 2023/05/18 12:39:49 nikita Exp $
+bin/nkdfu-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/nkdfu/__init__.py
+${PYSITELIB}/nkdfu/__init__.pyc
+${PYSITELIB}/nkdfu/dfu.py
+${PYSITELIB}/nkdfu/dfu.pyc
+${PYSITELIB}/nkdfu/dfu_flash.py
+${PYSITELIB}/nkdfu/dfu_flash.pyc
Index: pkgsrc/sysutils/py-nkdfu/distinfo
diff -u /dev/null pkgsrc/sysutils/py-nkdfu/distinfo:1.1
--- /dev/null   Thu May 18 12:39:49 2023
+++ pkgsrc/sysutils/py-nkdfu/distinfo   Thu May 18 12:39:49 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/05/18 12:39:49 nikita Exp $
+
+BLAKE2s (nkdfu-0.2.tar.gz) = 96b02d77c7bfe236c8ad0c204551c291578d170a3bb632e599a40139d42f14cf
+SHA512 (nkdfu-0.2.tar.gz) = f99436c0f28077cbf26cfc6ced3b5f0b42ec6fca2f62cd55cd435c9200766899b4073791617731cc1dff0717d59943b5438a78692f7b6b66d398478d616c49e5
+Size (nkdfu-0.2.tar.gz) = 16700 bytes



Home | Main Index | Thread Index | Old Index