pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/qmail-dovecot-checkpassword
Module Name: pkgsrc
Committed By: schmonz
Date: Fri Jun 9 19:38:25 UTC 2023
Added Files:
pkgsrc/sysutils/qmail-dovecot-checkpassword: DESCR Makefile PLIST
distinfo
pkgsrc/sysutils/qmail-dovecot-checkpassword/patches: patch-Makefile
patch-base64.c patch-checkpasswd.c
Log Message:
Add qmail-dovecot-checkpassword: DJB-style checkpassword for Dovecot auth socket
qmail checkpassword helper for dovecot auth socket. This can be used as
checkpassword tool from within qmail. Very useful if you use dovecot
with several authdbs and you want to ask all at once. Checks user auth
on (hardcoded) dovecot auth socket.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/qmail-dovecot-checkpassword/DESCR \
pkgsrc/sysutils/qmail-dovecot-checkpassword/Makefile \
pkgsrc/sysutils/qmail-dovecot-checkpassword/PLIST \
pkgsrc/sysutils/qmail-dovecot-checkpassword/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-Makefile \
pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-base64.c \
pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-checkpasswd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/sysutils/qmail-dovecot-checkpassword/DESCR
diff -u /dev/null pkgsrc/sysutils/qmail-dovecot-checkpassword/DESCR:1.1
--- /dev/null Fri Jun 9 19:38:25 2023
+++ pkgsrc/sysutils/qmail-dovecot-checkpassword/DESCR Fri Jun 9 19:38:24 2023
@@ -0,0 +1,4 @@
+qmail checkpassword helper for dovecot auth socket. This can be used as
+checkpassword tool from within qmail. Very useful if you use dovecot
+with several authdbs and you want to ask all at once. Checks user auth
+on (hardcoded) dovecot auth socket.
Index: pkgsrc/sysutils/qmail-dovecot-checkpassword/Makefile
diff -u /dev/null pkgsrc/sysutils/qmail-dovecot-checkpassword/Makefile:1.1
--- /dev/null Fri Jun 9 19:38:25 2023
+++ pkgsrc/sysutils/qmail-dovecot-checkpassword/Makefile Fri Jun 9 19:38:24 2023
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2023/06/09 19:38:24 schmonz Exp $
+
+DISTNAME= ${GITHUB_PROJECT}-${GITHUB_TAG}
+PKGNAME= ${GITHUB_PROJECT}-0.0.20141125
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=Securepoint/}
+GITHUB_PROJECT= qmail-dovecot-checkpassword
+GITHUB_TAG= 9ff0341fa93d638c0249d0ae90fe20349ce9ab37
+
+MAINTAINER= schmonz%NetBSD.org@localhost
+HOMEPAGE= https://github.com/Securepoint/qmail-dovecot-checkpassword/
+COMMENT= DJB-style checkpassword for Dovecot auth socket
+#LICENSE= # TODO: (see mk/license.mk)
+
+BUILD_DEFS+= VARBASE
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= checkpasswd.c
+SUBST_VARS.paths= VARBASE
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/qmail-dovecot-checkpassword/PLIST
diff -u /dev/null pkgsrc/sysutils/qmail-dovecot-checkpassword/PLIST:1.1
--- /dev/null Fri Jun 9 19:38:25 2023
+++ pkgsrc/sysutils/qmail-dovecot-checkpassword/PLIST Fri Jun 9 19:38:24 2023
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2023/06/09 19:38:24 schmonz Exp $
+bin/checkpasswd-dovecot
Index: pkgsrc/sysutils/qmail-dovecot-checkpassword/distinfo
diff -u /dev/null pkgsrc/sysutils/qmail-dovecot-checkpassword/distinfo:1.1
--- /dev/null Fri Jun 9 19:38:25 2023
+++ pkgsrc/sysutils/qmail-dovecot-checkpassword/distinfo Fri Jun 9 19:38:24 2023
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2023/06/09 19:38:24 schmonz Exp $
+
+BLAKE2s (qmail-dovecot-checkpassword-9ff0341fa93d638c0249d0ae90fe20349ce9ab37-9ff0341fa93d638c0249d0ae90fe20349ce9ab37.tar.gz) = 8b5e8c8be5cfdd4a67bf80977463eca886d511479a1a9335ffb6abe0977bf56a
+SHA512 (qmail-dovecot-checkpassword-9ff0341fa93d638c0249d0ae90fe20349ce9ab37-9ff0341fa93d638c0249d0ae90fe20349ce9ab37.tar.gz) =
e306110544700bacaff9c5934f81b2b0ad90e56a6e58f430e6acc3fa926d139cde78584afc677abca46bfa227338a8dab3d1fa141e3a5d3f0eb723bda33f6c73
+Size (qmail-dovecot-checkpassword-9ff0341fa93d638c0249d0ae90fe20349ce9ab37-9ff0341fa93d638c0249d0ae90fe20349ce9ab37.tar.gz) = 2700 bytes
+SHA1 (patch-Makefile) = f214c662912069083c34a760d84454383507ef50
+SHA1 (patch-base64.c) = 1780bbf8767bc6caa4786be9ed7b9ef63b147e3d
+SHA1 (patch-checkpasswd.c) = c67f5478cc499c9f55ba1759597eef13fd03f25a
Index: pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-Makefile:1.1
--- /dev/null Fri Jun 9 19:38:25 2023
+++ pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-Makefile Fri Jun 9 19:38:24 2023
@@ -0,0 +1,13 @@
+$NetBSD: patch-Makefile,v 1.1 2023/06/09 19:38:24 schmonz Exp $
+
+Allow overriding PREFIX.
+
+--- Makefile.orig 2014-11-25 13:40:32.000000000 +0000
++++ Makefile
+@@ -1,5 +1,5 @@
+ DESTDIR =
+-PREFIX = /usr/local
++PREFIX ?= /usr/local
+ BINDIR = $(PREFIX)/bin
+
+ INSTALL = install
Index: pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-base64.c
diff -u /dev/null pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-base64.c:1.1
--- /dev/null Fri Jun 9 19:38:25 2023
+++ pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-base64.c Fri Jun 9 19:38:24 2023
@@ -0,0 +1,28 @@
+$NetBSD: patch-base64.c,v 1.1 2023/06/09 19:38:24 schmonz Exp $
+
+Squelch -Wdeprecated-non-prototype warnings.
+
+--- base64.c.orig 2014-11-25 13:40:32.000000000 +0000
++++ base64.c
+@@ -3,9 +3,7 @@
+ char b64string[] =
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+
+-long base64_encode(to, from, len)
+- char *to, *from;
+- unsigned int len;
++long base64_encode(char *to, char *from, unsigned int len)
+ {
+ char *fromp = from;
+ char *top = to;
+@@ -60,9 +58,7 @@ long base64_encode(to, from, len)
+ /* location of c or null into p. */
+ #define badchar(c,p) (!(p = memchr(b64string, c, 64)))
+
+-long base64_decode(to, from, len)
+- char *to, *from;
+- unsigned int len;
++long base64_decode(char *to, char *from, unsigned int len)
+ {
+ char *fromp = from;
+ char *top = to;
Index: pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-checkpasswd.c
diff -u /dev/null pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-checkpasswd.c:1.1
--- /dev/null Fri Jun 9 19:38:25 2023
+++ pkgsrc/sysutils/qmail-dovecot-checkpassword/patches/patch-checkpasswd.c Fri Jun 9 19:38:24 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-checkpasswd.c,v 1.1 2023/06/09 19:38:24 schmonz Exp $
+
+Find Dovecot socket in VARBASE.
+
+--- checkpasswd.c.orig 2014-11-25 13:40:32.000000000 +0000
++++ checkpasswd.c
+@@ -12,7 +12,7 @@
+ #include "base64.h"
+
+ #define BUFSIZE 513
+-#define AUTHSOCKET "/var/run/dovecot/auth-client"
++#define AUTHSOCKET "@VARBASE@/run/dovecot/auth-client"
+
+ int connect_sock(struct sockaddr_un *sock_addr)
+ {
Home |
Main Index |
Thread Index |
Old Index