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:   nikita
Date:           Thu May 18 12:57:16 UTC 2023

Modified Files:
        pkgsrc/devel: Makefile
Added Files:
        pkgsrc/devel/py-tlv8: DESCR Makefile PLIST distinfo

Log Message:
py-tlv8: import as devel/py-tlv8 version 0.10.0

Type-Length-Value8 (TLV8) for python

Type-Length-Value (TLV) are used to encode arbitrary data.
In this case the type and length are represented by 1 byte each.
Hence the name TLV8.

A TLV8 entry consists of the following parts:
    * the type: this 8 bit field denotes the type of information
      that is represented by the data.
    * the length: this 8 bit field denotes the length of the data
      (this does not include the 2 bytes for type and length.
      For data longer than 255 bytes, there is a defined procedure available.
    * the value: these length bytes represent the value of this TLV.
      The different types of data is represented differently:
        * bytes: this is raw binary data and will be used as is, no further
          interpretation takes place
        * tlv8: this is a specialized case of bytes values. Using this instead
          of pure bytes enables nesting of data and creating a hierarchy.
        * integer: integers are stored in little-endian byte order and are
          encoded with the minimal number of bytes possible (1, 2, 4 or 8)
        * float: floats are stored as little-endian ieee754 numbers
        * string: strings are always UTF-8 encoded and do not contain the
          terminating NULL byte

TLV8 entries whose content is longer than 255 bytes are split up into fragments.
The type is repeated is repeated in each fragment, only the last fragment may
contain less than 255 bytes. Fragments of one TLV8 entry must be continuous.

Multiple TLV8 entries can be combined to create larger structures.
Entries of different types can placed one after another.
Entries of the same type must be separated by a TLV8 entry of a different
type (and probably zero length).

TLV8 entries of unknown or unwanted type are to be silently ignored.


To generate a diff of this commit:
cvs rdiff -u -r1.3993 -r1.3994 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-tlv8/DESCR \
    pkgsrc/devel/py-tlv8/Makefile pkgsrc/devel/py-tlv8/PLIST \
    pkgsrc/devel/py-tlv8/distinfo

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.3993 pkgsrc/devel/Makefile:1.3994
--- pkgsrc/devel/Makefile:1.3993        Thu May 18 12:01:02 2023
+++ pkgsrc/devel/Makefile       Thu May 18 12:57:15 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3993 2023/05/18 12:01:02 nikita Exp $
+# $NetBSD: Makefile,v 1.3994 2023/05/18 12:57:15 nikita Exp $
 #
 
 COMMENT=       Development utilities
@@ -3004,6 +3004,7 @@ SUBDIR+=  py-testtools
 SUBDIR+=       py-thrift
 SUBDIR+=       py-timeout-decorator
 SUBDIR+=       py-tlsh
+SUBDIR+=       py-tlv8
 SUBDIR+=       py-toolconfig
 SUBDIR+=       py-toolz
 SUBDIR+=       py-tortoisehg

Added files:

Index: pkgsrc/devel/py-tlv8/DESCR
diff -u /dev/null pkgsrc/devel/py-tlv8/DESCR:1.1
--- /dev/null   Thu May 18 12:57:16 2023
+++ pkgsrc/devel/py-tlv8/DESCR  Thu May 18 12:57:16 2023
@@ -0,0 +1,34 @@
+Type-Length-Value8 (TLV8) for python
+
+Type-Length-Value (TLV) are used to encode arbitrary data.
+In this case the type and length are represented by 1 byte each.
+Hence the name TLV8.
+
+A TLV8 entry consists of the following parts:
+    * the type: this 8 bit field denotes the type of information
+      that is represented by the data.
+    * the length: this 8 bit field denotes the length of the data
+      (this does not include the 2 bytes for type and length.
+      For data longer than 255 bytes, there is a defined procedure available.
+    * the value: these length bytes represent the value of this TLV.
+      The different types of data is represented differently:
+        * bytes: this is raw binary data and will be used as is, no further
+         interpretation takes place
+        * tlv8: this is a specialized case of bytes values. Using this instead
+         of pure bytes enables nesting of data and creating a hierarchy.
+        * integer: integers are stored in little-endian byte order and are
+         encoded with the minimal number of bytes possible (1, 2, 4 or 8)
+        * float: floats are stored as little-endian ieee754 numbers
+        * string: strings are always UTF-8 encoded and do not contain the
+         terminating NULL byte
+
+TLV8 entries whose content is longer than 255 bytes are split up into fragments.
+The type is repeated is repeated in each fragment, only the last fragment may
+contain less than 255 bytes. Fragments of one TLV8 entry must be continuous.
+
+Multiple TLV8 entries can be combined to create larger structures.
+Entries of different types can placed one after another.
+Entries of the same type must be separated by a TLV8 entry of a different
+type (and probably zero length).
+
+TLV8 entries of unknown or unwanted type are to be silently ignored.
Index: pkgsrc/devel/py-tlv8/Makefile
diff -u /dev/null pkgsrc/devel/py-tlv8/Makefile:1.1
--- /dev/null   Thu May 18 12:57:16 2023
+++ pkgsrc/devel/py-tlv8/Makefile       Thu May 18 12:57:16 2023
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2023/05/18 12:57:16 nikita Exp $
+
+DISTNAME=      tlv8-0.10.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=t/tlv8/}
+
+MAINTAINER=    nikita%NetBSD.org@localhost
+HOMEPAGE=      https://pypi.org/project/tlv8/
+COMMENT=       Type-Length-Value8 (TLV8) for Python
+LICENSE=       apache-2.0
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-tlv8/PLIST
diff -u /dev/null pkgsrc/devel/py-tlv8/PLIST:1.1
--- /dev/null   Thu May 18 12:57:16 2023
+++ pkgsrc/devel/py-tlv8/PLIST  Thu May 18 12:57:16 2023
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2023/05/18 12:57:16 nikita Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${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}/top_level.txt
+${PYSITELIB}/tlv8/__init__.py
+${PYSITELIB}/tlv8/__init__.pyc
Index: pkgsrc/devel/py-tlv8/distinfo
diff -u /dev/null pkgsrc/devel/py-tlv8/distinfo:1.1
--- /dev/null   Thu May 18 12:57:16 2023
+++ pkgsrc/devel/py-tlv8/distinfo       Thu May 18 12:57:16 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/05/18 12:57:16 nikita Exp $
+
+BLAKE2s (tlv8-0.10.0.tar.gz) = f8f08192aec0759df185c448164cea5de91495dc5c99d28a6aa41f4a4bd3de3e
+SHA512 (tlv8-0.10.0.tar.gz) = b16b284a7fa1e17c7b68633c3efc8114eaebfdfee8593683a68881dadd6ba411ab41060ecdcc4ba2235511c2f7862f646690081e75669dee3e855b10c4def745
+Size (tlv8-0.10.0.tar.gz) = 16054 bytes



Home | Main Index | Thread Index | Old Index