pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/py-dkim



Module Name:    pkgsrc
Committed By:   jym
Date:           Sat May  4 23:52:07 UTC 2024

Modified Files:
        pkgsrc/mail/py-dkim: DESCR Makefile distinfo
Added Files:
        pkgsrc/mail/py-dkim/patches: patch-setup.py

Log Message:
Patch setup.py to implement PKGMANDIR and remove the associated
post-install phase to better handle man page installs. Bump revision
due to the patch addition although PLIST should remain unaffected.

Add the unittest command for do-test (as documented by the project).

Modify DESCR to better reflect that it also supports Ed25519 headers,
which is the main interest of py-dkim.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/mail/py-dkim/DESCR
cvs rdiff -u -r1.4 -r1.5 pkgsrc/mail/py-dkim/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/mail/py-dkim/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/py-dkim/patches/patch-setup.py

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

Modified files:

Index: pkgsrc/mail/py-dkim/DESCR
diff -u pkgsrc/mail/py-dkim/DESCR:1.1 pkgsrc/mail/py-dkim/DESCR:1.2
--- pkgsrc/mail/py-dkim/DESCR:1.1       Sun May  7 20:37:52 2023
+++ pkgsrc/mail/py-dkim/DESCR   Sat May  4 23:52:06 2024
@@ -1,2 +1,3 @@
 dkimpy is a library that implements DKIM (DomainKeys Identified Mail) email
-signing and verification. Basic DKIM requirements are defined in RFC 6376
+signing and verification. It supports both RSA and Ed25519-based signatures.
+Basic DKIM requirements are defined in RFC 6376.

Index: pkgsrc/mail/py-dkim/Makefile
diff -u pkgsrc/mail/py-dkim/Makefile:1.4 pkgsrc/mail/py-dkim/Makefile:1.5
--- pkgsrc/mail/py-dkim/Makefile:1.4    Wed Apr 17 19:58:31 2024
+++ pkgsrc/mail/py-dkim/Makefile        Sat May  4 23:52:06 2024
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2024/04/17 19:58:31 adam Exp $
+# $NetBSD: Makefile,v 1.5 2024/05/04 23:52:06 jym Exp $
 
 DISTNAME=      dkimpy-1.1.6
+PKGREVISION=   1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    mail python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/dkimpy/}
@@ -25,10 +26,13 @@ INSTALLATION_DIRS=  ${PKGMANDIR}/man1
 
 .include "../../mk/bsd.prefs.mk"
 
-post-install:
-.if ${PKGMANDIR} != "share/man"
-       ${MV} ${DESTDIR}${PREFIX}/share/man/man1/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-.endif
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     setup.py
+SUBST_VARS.paths=      PKGMANDIR
+
+do-test:
+       cd ${WRKSRC} && ${PYTHONBIN} -m unittest discover -v
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/mail/py-dkim/distinfo
diff -u pkgsrc/mail/py-dkim/distinfo:1.3 pkgsrc/mail/py-dkim/distinfo:1.4
--- pkgsrc/mail/py-dkim/distinfo:1.3    Wed Apr 17 19:58:31 2024
+++ pkgsrc/mail/py-dkim/distinfo        Sat May  4 23:52:06 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2024/04/17 19:58:31 adam Exp $
+$NetBSD: distinfo,v 1.4 2024/05/04 23:52:06 jym Exp $
 
 BLAKE2s (dkimpy-1.1.6.tar.gz) = 70fa5797b71ca5f5c421bbeb8ce0703302b267b77a155c1e1d692977cb52b6e3
 SHA512 (dkimpy-1.1.6.tar.gz) = d61331cc7baa3bd5156d919a4a88ad792ac3c3077381585f8b5aa1a35dc50761b86286312e13f3514496ab50bdc6f2dac469f4b5419b49053c1c9204d569d317
 Size (dkimpy-1.1.6.tar.gz) = 66557 bytes
+SHA1 (patch-setup.py) = 9515270a101c71e9adce4ced196b32f3cf8a23dc

Added files:

Index: pkgsrc/mail/py-dkim/patches/patch-setup.py
diff -u /dev/null pkgsrc/mail/py-dkim/patches/patch-setup.py:1.1
--- /dev/null   Sat May  4 23:52:07 2024
+++ pkgsrc/mail/py-dkim/patches/patch-setup.py  Sat May  4 23:52:06 2024
@@ -0,0 +1,23 @@
+$NetBSD: patch-setup.py,v 1.1 2024/05/04 23:52:06 jym Exp $
+
+Fix man paths
+
+--- setup.py.orig      2024-05-04 02:24:25.601004533 +0000
++++ setup.py
+@@ -57,11 +57,11 @@ setup(
+             'dknewkey = dkim.dknewkey:main'
+         ],
+     },
+-    data_files = [(os.path.join('share', 'man', 'man1'),
+-        ['man/arcsign.1']), (os.path.join('share', 'man', 'man1'),
+-        ['man/arcverify.1']),(os.path.join('share', 'man', 'man1'),
+-        ['man/dkimsign.1']), (os.path.join('share', 'man', 'man1'),
+-        ['man/dkimverify.1']),(os.path.join('share', 'man', 'man1'),
++    data_files = [(os.path.join('@PKGMANDIR@', 'man1'),
++        ['man/arcsign.1']), (os.path.join('@PKGMANDIR@', 'man1'),
++        ['man/arcverify.1']),(os.path.join('@PKGMANDIR@', 'man1'),
++        ['man/dkimsign.1']), (os.path.join('@PKGMANDIR@', 'man1'),
++        ['man/dkimverify.1']),(os.path.join('@PKGMANDIR@', 'man1'),
+         ['man/dknewkey.1']),],
+     classifiers = [
+       'Development Status :: 5 - Production/Stable',



Home | Main Index | Thread Index | Old Index