pkgsrc-WIP-changes archive

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

py-mtp: Import py-mtp-1.1.0



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Mar 14 17:20:22 2025 +0100
Changeset:	a89e0eb071819031895490a0ac61e9c30bdcbd3d

Added Files:
	py-mtp/ALTERNATIVES
	py-mtp/DESCR
	py-mtp/Makefile
	py-mtp/PLIST
	py-mtp/TODO
	py-mtp/distinfo

Log Message:
py-mtp: Import py-mtp-1.1.0

Keys in One-time pad encryption (OTP) should only be used once, when
they get reused we can do a Many-time pad attack.

MTP Interactive uses automated cryptanalysis to present a partial
decryption which can be solved interactively.

It installs a cli.py that should be moved elsewhere! (this is documented via
TODO)

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

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

diffstat:
 py-mtp/ALTERNATIVES |  1 +
 py-mtp/DESCR        |  5 +++++
 py-mtp/Makefile     | 22 ++++++++++++++++++++++
 py-mtp/PLIST        | 24 ++++++++++++++++++++++++
 py-mtp/TODO         |  1 +
 py-mtp/distinfo     |  5 +++++
 6 files changed, 58 insertions(+)

diffs:
diff --git a/py-mtp/ALTERNATIVES b/py-mtp/ALTERNATIVES
new file mode 100644
index 0000000000..08b0388411
--- /dev/null
+++ b/py-mtp/ALTERNATIVES
@@ -0,0 +1 @@
+bin/mtp @PREFIX@/bin/mtp@PYVERSSUFFIX@
diff --git a/py-mtp/DESCR b/py-mtp/DESCR
new file mode 100644
index 0000000000..8a4dca7753
--- /dev/null
+++ b/py-mtp/DESCR
@@ -0,0 +1,5 @@
+Keys in One-time pad encryption (OTP) should only be used once, when
+they get reused we can do a Many-time pad attack.
+
+MTP Interactive uses automated cryptanalysis to present a partial
+decryption which can be solved interactively.
diff --git a/py-mtp/Makefile b/py-mtp/Makefile
new file mode 100644
index 0000000000..e1f3262a61
--- /dev/null
+++ b/py-mtp/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+DISTNAME=	mtp-1.1.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	security
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mtp/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/CameronLonsdale/mtp
+COMMENT=	Many-Time Pad Interactive
+LICENSE=	mit
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>0:../../devel/py-setuptools
+DEPENDS+=	${PYPKGPREFIX}-urwid>0:../../devel/py-urwid
+
+USE_LANGUAGES=	# none
+
+post-install:
+	${MV} ${DESTDIR}${PREFIX}/bin/mtp ${DESTDIR}${PREFIX}/bin/mtp${PYVERSSUFFIX}
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-mtp/PLIST b/py-mtp/PLIST
new file mode 100644
index 0000000000..509b53e025
--- /dev/null
+++ b/py-mtp/PLIST
@@ -0,0 +1,24 @@
+@comment $NetBSD$
+bin/cli.py
+bin/mtp${PYVERSSUFFIX}
+${PYSITELIB}/manytime/__init__.py
+${PYSITELIB}/manytime/__init__.pyc
+${PYSITELIB}/manytime/__init__.pyo
+${PYSITELIB}/manytime/analysis.py
+${PYSITELIB}/manytime/analysis.pyc
+${PYSITELIB}/manytime/analysis.pyo
+${PYSITELIB}/manytime/interactive.py
+${PYSITELIB}/manytime/interactive.pyc
+${PYSITELIB}/manytime/interactive.pyo
+${PYSITELIB}/manytime/keys.py
+${PYSITELIB}/manytime/keys.pyc
+${PYSITELIB}/manytime/keys.pyo
+${PYSITELIB}/manytime/models.py
+${PYSITELIB}/manytime/models.pyc
+${PYSITELIB}/manytime/models.pyo
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
diff --git a/py-mtp/TODO b/py-mtp/TODO
new file mode 100644
index 0000000000..03f90116c8
--- /dev/null
+++ b/py-mtp/TODO
@@ -0,0 +1 @@
+Install cli.py somewhere else so that it does not conflicts.
diff --git a/py-mtp/distinfo b/py-mtp/distinfo
new file mode 100644
index 0000000000..298876ebba
--- /dev/null
+++ b/py-mtp/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (mtp-1.1.0.tar.gz) = 0222fa5d332ab82e66795de5c75d94758c54ac2f322f505e5569e21540d92ecc
+SHA512 (mtp-1.1.0.tar.gz) = 9500288e39a797eecd3b743915fb68274d060aa9e865b20284ac152c37f35aba99a0b5b0573179f9e04668d1fb3e3569ad5f7e49e041dd75db5b21d0a729e3a3
+Size (mtp-1.1.0.tar.gz) = 8471 bytes


Home | Main Index | Thread Index | Old Index