pkgsrc-Changes archive

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

CVS commit: [pkgsrc-2017Q1] pkgsrc/mail/queue-fix



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Mon Apr 17 15:56:43 UTC 2017

Modified Files:
        pkgsrc/mail/queue-fix [pkgsrc-2017Q1]: Makefile distinfo
Added Files:
        pkgsrc/mail/queue-fix/patches [pkgsrc-2017Q1]: patch-queue-fix.c

Log Message:
Pullup ticket #5296 - requested by schmonz
mail/queue-fix: bugfix

Revisions pulled up:
- mail/queue-fix/Makefile                                       1.10
- mail/queue-fix/distinfo                                       1.5
- mail/queue-fix/patches/patch-queue-fix.c                      1.1

---
   Module Name: pkgsrc
   Committed By:        schmonz
   Date:                Tue Apr  4 07:46:14 UTC 2017

   Modified Files:
        pkgsrc/mail/queue-fix: Makefile distinfo
   Added Files:
        pkgsrc/mail/queue-fix/patches: patch-queue-fix.c

   Log Message:
   Substitute configured qmail users. Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.36.1 pkgsrc/mail/queue-fix/Makefile
cvs rdiff -u -r1.4 -r1.4.12.1 pkgsrc/mail/queue-fix/distinfo
cvs rdiff -u -r0 -r1.1.2.2 pkgsrc/mail/queue-fix/patches/patch-queue-fix.c

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

Modified files:

Index: pkgsrc/mail/queue-fix/Makefile
diff -u pkgsrc/mail/queue-fix/Makefile:1.9 pkgsrc/mail/queue-fix/Makefile:1.9.36.1
--- pkgsrc/mail/queue-fix/Makefile:1.9  Mon Oct  8 12:19:29 2012
+++ pkgsrc/mail/queue-fix/Makefile      Mon Apr 17 15:56:42 2017
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2012/10/08 12:19:29 asau Exp $
+# $NetBSD: Makefile,v 1.9.36.1 2017/04/17 15:56:42 bsiegert Exp $
 #
 
 DISTNAME=              queue-fix-1.4
+PKGREVISION=           1
 CATEGORIES=            mail
 MASTER_SITES=          ${HOMEPAGE}
 
@@ -13,9 +14,25 @@ INSTALLATION_DIRS=   bin
 
 DJB_RESTRICTED=                NO
 
+SUBST_CLASSES+=                groups
+SUBST_STAGE.groups=    do-configure
+SUBST_FILES.groups=    queue-fix.c
+SUBST_SED.groups=      -e 's,@QMAIL_QMAIL_GROUP@,${QMAIL_QMAIL_GROUP:Q},g'
+
+SUBST_CLASSES+=                users
+SUBST_STAGE.users=     do-configure
+SUBST_FILES.users=     queue-fix.c
+SUBST_SED.users+=      -e 's,@QMAIL_QUEUE_USER@,${QMAIL_QUEUE_USER:Q},g'
+SUBST_SED.users+=      -e 's,@QMAIL_REMOTE_USER@,${QMAIL_REMOTE_USER:Q},g'
+SUBST_SED.users+=      -e 's,@QMAIL_SEND_USER@,${QMAIL_SEND_USER:Q},g'
+
+BUILD_DEFS+=           QMAIL_QUEUE_USER QMAIL_REMOTE_USER QMAIL_SEND_USER
+BUILD_DEFS+=           QMAIL_QMAIL_GROUP
+
+INSTALLATION_DIRS+=    share/doc/queue-fix
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/queue-fix ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/queue-fix
        ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/queue-fix
 
 .include "../../mk/djbware.mk"

Index: pkgsrc/mail/queue-fix/distinfo
diff -u pkgsrc/mail/queue-fix/distinfo:1.4 pkgsrc/mail/queue-fix/distinfo:1.4.12.1
--- pkgsrc/mail/queue-fix/distinfo:1.4  Tue Nov  3 23:27:18 2015
+++ pkgsrc/mail/queue-fix/distinfo      Mon Apr 17 15:56:42 2017
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 23:27:18 agc Exp $
+$NetBSD: distinfo,v 1.4.12.1 2017/04/17 15:56:42 bsiegert Exp $
 
 SHA1 (queue-fix-1.4.tar.gz) = ce42fcc4daf5076adcf8fea6a9a84f2e1716c67c
 RMD160 (queue-fix-1.4.tar.gz) = 7babeb21844214779dc58b96129ab0ee555393f8
 SHA512 (queue-fix-1.4.tar.gz) = b7e0ac070a409eff156b3803cc1bb78d1c800ae685d107b872bf5b022a8645d1ca55a5c3380f6bc82e99927df8dbf586b74af587e882938b9a7678b506c600e0
 Size (queue-fix-1.4.tar.gz) = 18486 bytes
+SHA1 (patch-queue-fix.c) = 0967151617cf39cc5d88362ae0ed839a947d85f8

Added files:

Index: pkgsrc/mail/queue-fix/patches/patch-queue-fix.c
diff -u /dev/null pkgsrc/mail/queue-fix/patches/patch-queue-fix.c:1.1.2.2
--- /dev/null   Mon Apr 17 15:56:43 2017
+++ pkgsrc/mail/queue-fix/patches/patch-queue-fix.c     Mon Apr 17 15:56:43 2017
@@ -0,0 +1,35 @@
+$NetBSD: patch-queue-fix.c,v 1.1.2.2 2017/04/17 15:56:43 bsiegert Exp $
+
+Configure qmail users and groups at build time.
+
+--- queue-fix.c.orig   1999-03-14 19:54:50.000000000 +0000
++++ queue-fix.c
+@@ -729,20 +729,20 @@ struct group * gr;
+       }
+ 
+       /*prepare the uid and gid*/
+-      pw = getpwnam("qmailq");
+-      if(!pw) die_user("qmailq");
++      pw = getpwnam("@QMAIL_QUEUE_USER@");
++      if(!pw) die_user("@QMAIL_QUEUE_USER@");
+       qmailq_uid = pw->pw_uid;
+ 
+-      pw = getpwnam("qmails");
+-      if(!pw) die_user("qmails");
++      pw = getpwnam("@QMAIL_SEND_USER@");
++      if(!pw) die_user("@QMAIL_SEND_USER@");
+       qmails_uid = pw->pw_uid;
+ 
+-      pw = getpwnam("qmailr");
+-      if(!pw) die_user("qmailr");
++      pw = getpwnam("@QMAIL_REMOTE_USER@");
++      if(!pw) die_user("@QMAIL_REMOTE_USER@");
+       qmailr_uid = pw->pw_uid;
+ 
+-      gr = getgrnam("qmail");
+-      if(!gr) die_group("qmail");
++      gr = getgrnam("@QMAIL_QMAIL_GROUP@");
++      if(!gr) die_group("@QMAIL_QMAIL_GROUP@");
+       qmail_gid = gr->gr_gid;
+ 
+       /*check that all the proper directories exist with proper credentials*/



Home | Main Index | Thread Index | Old Index