On 2019/06/25 22:49, Kurt Mosiejczuk wrote:
> On Fri, May 24, 2019 at 07:34:02AM +0200, Remi Pointel wrote:
>
> > attached is the port of bencode.py, needed by the update of plaso.
>
> > I'm not sure of the pkgname: py-bencode.py or py-bencodepy?
>
> > Ok?
>
> In the time since you sent this port, there is an actual release on PyPI
> now, so it's probably better to just use that rather than all the GH
> macros.
>
> I'm wondering though if perhaps we should move the py-bencode port over
> to this fork? The only consumer of the old py-bencode port is plaso, and
> it is going to use the new port.
>
> Anyone else have any feelings on it.
Yes I'd prefer that.
> In either case, I'm attaching both a diff to update the old py-bencode
> port to use the new fork and an updated version of the new py-bencode.py
> port.
>
> --Kurt
> Index: Makefile
> ===
> RCS file: /cvs/ports/devel/py-bencode/Makefile,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 Makefile
> --- Makefile 22 Jan 2017 08:00:32 - 1.1.1.1
> +++ Makefile 26 Jun 2019 02:47:30 -
> @@ -2,24 +2,31 @@
>
> COMMENT =bencoding and bdecoding implementation
>
> -MODPY_EGG_VERSION = 1.0
> -DISTNAME = bencode-${MODPY_EGG_VERSION}
> -PKGNAME =py-${DISTNAME}
> +MODPY_EGG_VERSION = 2.1.0
> +DISTNAME = bencode.py-${MODPY_EGG_VERSION}
> +PKGNAME =py-bencode-${MODPY_EGG_VERSION}
>
> CATEGORIES = devel
>
> -HOMEPAGE = https://pypi.python.org/pypi/bencode
> +HOMEPAGE = https://github.com/fuzeman/bencode.py
>
> MAINTAINER = Remi Pointel
>
> # BitTorrent Open Source License
> # BTOSL http://www.bittorrent.com/license
> -PERMIT_PACKAGE_CDROM = Yes
> +PERMIT_PACKAGE = Yes
>
> MODULES =lang/python
> MODPY_PI = Yes
> MODPY_SETUPTOOLS = Yes
>
> -NO_TEST =Yes
> +FLAVORS =python3
> +FLAVOR ?=
> +
> +BUILD_DEPENDS = devel/py-pbr${MODPY_FLAVOR}
> +TEST_DEPENDS = devel/py-test${MODPY_FLAVOR}
> +
> +do-test:
> + cd ${WRKSRC} && py.test${MODPY_BIN_SUFFIX}
>
> .include
> Index: distinfo
> ===
> RCS file: /cvs/ports/devel/py-bencode/distinfo,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 distinfo
> --- distinfo 22 Jan 2017 08:00:32 - 1.1.1.1
> +++ distinfo 26 Jun 2019 02:47:30 -
> @@ -1,2 +1,2 @@
> -SHA256 (bencode-1.0.tar.gz) = AwHCICIzo/J0yUBwK6x70C1dBTuL+VArCFFWJw4wvps=
> -SIZE (bencode-1.0.tar.gz) = 2385
> +SHA256 (bencode.py-2.1.0.tar.gz) =
> fWWwLxdAl6RCorE4IIruf+EE0s5556KftFfQ4C84/D0=
> +SIZE (bencode.py-2.1.0.tar.gz) = 17076
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/devel/py-bencode/pkg/PLIST,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 PLIST
> --- pkg/PLIST 22 Jan 2017 08:00:32 - 1.1.1.1
> +++ pkg/PLIST 26 Jun 2019 02:47:30 -
> @@ -1,12 +1,16 @@
> @comment $OpenBSD: PLIST,v 1.1.1.1 2017/01/22 08:00:32 rpointel Exp $
> lib/python${MODPY_VERSION}/site-packages/bencode/
> -lib/python${MODPY_VERSION}/site-packages/bencode-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
> -lib/python${MODPY_VERSION}/site-packages/bencode-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
> -lib/python${MODPY_VERSION}/site-packages/bencode-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
> -lib/python${MODPY_VERSION}/site-packages/bencode-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
> -lib/python${MODPY_VERSION}/site-packages/bencode-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
> -lib/python${MODPY_VERSION}/site-packages/bencode-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe
> +lib/python${MODPY_VERSION}/site-packages/bencode.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
> +lib/python${MODPY_VERSION}/site-packages/bencode.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
> +lib/python${MODPY_VERSION}/site-packages/bencode.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
> +lib/python${MODPY_VERSION}/site-packages/bencode.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
> +lib/python${MODPY_VERSION}/site-packages/bencode.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
> +lib/python${MODPY_VERSION}/site-packages/bencode.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/pbr.json
> +lib/python${MODPY_VERSION}/site-packages/bencode.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
> lib/python${MODPY_VERSION}/site-packages/bencode/BTL.py
> -lib/python${MODPY_VERSION}/site-packages/bencode/BTL.pyc
> lib/python${MODPY_VERSION}/site-packages/bencode/__init__.py
> -lib/python${MODPY_VERSION}/site-packages/bencode/__init__.pyc
> +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/bencode/${MODPY_PYCACHE}/
> +lib/pyth