Add qmail-dkim-wrappers: Sign and verify DKIM without patching qmail

This package contains Kyle Wheeler's wrapper scripts for qmail-remote
and qmail-queue, respectively, to DKIM-sign and DKIM-verify messages.
This commit is contained in:
schmonz 2024-02-04 07:12:13 +00:00
parent 6d5edf64ea
commit bbc3697cef
4 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,2 @@
This package contains Kyle Wheeler's wrapper scripts for qmail-remote
and qmail-queue, respectively, to DKIM-sign and DKIM-verify messages.

View file

@ -0,0 +1,45 @@
# $NetBSD: Makefile,v 1.1 2024/02/04 07:12:13 schmonz Exp $
PKGNAME= qmail-dkim-wrappers-0.0.20211012
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}
DIST_SUBDIR= ${PKGNAME_NOREV}
DISTFILES= qmail-remote.sh.txt dkverifier.sh.txt
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= https://www.memoryhole.net/qmail/\#dkim
COMMENT= Sign and verify DKIM without patching qmail
DEPENDS+= p5-Mail-DKIM>=1.20240124nb1:../../mail/p5-Mail-DKIM
WRKSRC= ${WRKDIR}
USE_TOOLS+= bash:run
NO_BUILD= yes
REPLACE_BASH= qmail-dkim*
SUBST_CLASSES+= paths
SUBST_STAGE.paths= do-configure
SUBST_FILES.paths= qmail-dkim*
SUBST_SED.paths= -e 's|^PATH=|PATH=${PREFIX}/bin:|g'
SUBST_SED.paths+= -e 's|/var/qmail|${QMAILDIR}|g'
SUBST_SED.paths+= -e 's|qmail-remote\.orig|qmail-remote|g'
SUBST_SED.paths+= -e 's|/etc|${PKG_SYSCONFDIR}|g'
INSTALLATION_DIRS= bin
BUILD_DEFS+= QMAILDIR
post-extract:
cd ${WRKSRC}; \
${MV} -f qmail-remote.sh.txt qmail-dkimsign-remote; \
${MV} -f dkverifier.sh.txt qmail-dkimverify-queue
do-install:
cd ${WRKSRC}; \
for f in qmail-dkim*; do \
${INSTALL_SCRIPT} $$f ${DESTDIR}${PREFIX}/bin/; \
done
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2024/02/04 07:12:13 schmonz Exp $
bin/qmail-dkimsign-remote
bin/qmail-dkimverify-queue

View file

@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.1 2024/02/04 07:12:13 schmonz Exp $
BLAKE2s (qmail-dkim-wrappers-0.0.20211012/dkverifier.sh.txt) = 57101f94970fde23c4ded99435cc29d608c8cbd4463899318417f613dc4155fa
SHA512 (qmail-dkim-wrappers-0.0.20211012/dkverifier.sh.txt) = 2b33592e436e04886e558c334d13069f341c7b04026d54e173507f19155c14fa9a5f1e3eeffbc24206308cdf8dcce1bf41e9e4f5a1152671b4c86285b3416eef
Size (qmail-dkim-wrappers-0.0.20211012/dkverifier.sh.txt) = 528 bytes
BLAKE2s (qmail-dkim-wrappers-0.0.20211012/qmail-remote.sh.txt) = 6bd4c3189047b3672c37acfcaf7ba01a9b11784263cfbd7416a723f13fb2e134
SHA512 (qmail-dkim-wrappers-0.0.20211012/qmail-remote.sh.txt) = bd86c96bf2421c98bedd36cb056ff8b50206725c5b72b6ececc253655de62a77068b4f73cf86343f7834a867fdecd82b76e9c4291c17eb52d290e26066538cae
Size (qmail-dkim-wrappers-0.0.20211012/qmail-remote.sh.txt) = 2571 bytes