pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/maildrop Build fix for auth_mkhomedir() that is m...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0e7e95e1bae6
branches: trunk
changeset: 427418:0e7e95e1bae6
user: manu <manu%pkgsrc.org@localhost>
date: Thu Apr 16 12:49:34 2020 +0000
description:
Build fix for auth_mkhomedir() that is missing from courrier-authlib
diffstat:
mail/maildrop/distinfo | 4 +-
mail/maildrop/patches/patch-libs_maildrop_main.C | 34 +++++++++++++++++++----
2 files changed, 30 insertions(+), 8 deletions(-)
diffs (77 lines):
diff -r 7cc3ac35a827 -r 0e7e95e1bae6 mail/maildrop/distinfo
--- a/mail/maildrop/distinfo Thu Apr 16 12:43:45 2020 +0000
+++ b/mail/maildrop/distinfo Thu Apr 16 12:49:34 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2019/05/24 14:17:16 hauke Exp $
+$NetBSD: distinfo,v 1.22 2020/04/16 12:49:34 manu Exp $
SHA1 (maildrop-3.0.0.tar.bz2) = d982d4d9d4ee2fa8637102049126c5202eb82c73
RMD160 (maildrop-3.0.0.tar.bz2) = 9be87d2615f49bb02702c88ade8ebc3260c03e51
@@ -7,4 +7,4 @@
SHA1 (patch-Makefile.in) = 6629f46889d6f3c73cac08d5ab10308a84c41ec2
SHA1 (patch-libs_maildrop_configure) = 76b12b194463095a65cde90d992ac6b023b694e2
SHA1 (patch-libs_maildrop_filelock.C) = d278b66bf77fe46f5ad51f860b6e5efdd7d7f29b
-SHA1 (patch-libs_maildrop_main.C) = e8d4229e6ae742876bef0134af41134fd53f5850
+SHA1 (patch-libs_maildrop_main.C) = fe53391fa0823f471a19b924aedd558d3da63aca
diff -r 7cc3ac35a827 -r 0e7e95e1bae6 mail/maildrop/patches/patch-libs_maildrop_main.C
--- a/mail/maildrop/patches/patch-libs_maildrop_main.C Thu Apr 16 12:43:45 2020 +0000
+++ b/mail/maildrop/patches/patch-libs_maildrop_main.C Thu Apr 16 12:49:34 2020 +0000
@@ -1,10 +1,27 @@
-$NetBSD: patch-libs_maildrop_main.C,v 1.1 2019/05/24 13:17:58 hauke Exp $
+$NetBSD: patch-libs_maildrop_main.C,v 1.2 2020/04/16 12:49:35 manu Exp $
Make this maildrop install usable by both Courier and other MTAs.
---- libs/maildrop/main.C.orig 2018-09-13 23:22:17.000000000 +0000
-+++ libs/maildrop/main.C
-@@ -754,7 +754,7 @@ uid_t my_u=getuid();
+--- libs/maildrop/main.C.orig 2018-09-14 01:22:17.000000000 +0200
++++ libs/maildrop/main.C 2020-04-10 03:32:11.795122838 +0200
+@@ -278,13 +278,15 @@
+ void *void_arg)
+ {
+ Maildrop &maildrop=*(Maildrop *)void_arg;
+
++#if 0 /* auth_mkhomedir does not exist in courrier-authlib */
+ if (auth_mkhomedir(auth))
+ {
+ perror(auth->homedir);
+ exit(1);
+ }
++#endif
+
+ if (VerboseLevel() > 1)
+ {
+ Buffer b;
+@@ -753,9 +755,9 @@
+
if (!found)
{
#if HAVE_COURIER
@@ -13,7 +30,9 @@
#endif
{
my_pw=getpwuid(my_u);
-@@ -814,6 +814,14 @@ Buffer value;
+ if (!my_pw)
+@@ -813,8 +815,16 @@
+ if (deliverymode && orig_uid == getuid())
{
const char *p;
@@ -28,7 +47,9 @@
if ((p=getenv("HOME")) && *p)
maildrop.init_home=p;
-@@ -838,6 +846,8 @@ Buffer value;
+ if ((p=getenv("LOGNAME")) && *p)
+@@ -837,8 +847,10 @@
+ maildrop.init_default=p;
if ((p=getenv("MAILDIRQUOTA")) && *p)
maildrop.init_quota=p;
@@ -37,3 +58,4 @@
}
#endif
+ if (deliverymode)
Home |
Main Index |
Thread Index |
Old Index