NetBSD Problem Report #17570

Received: (qmail 18329 invoked by uid 605); 12 Jul 2002 13:10:34 -0000
Message-Id: <20020712131026.4CD3E35481@gornik.tgr.lubin.edu.pl>
Date: Fri, 12 Jul 2002 15:10:26 +0200 (CEST)
From: dawszy@tgr.lubin.edu.pl
Sender: gnats-bugs-owner@netbsd.org
Reply-To: dawszy@tgr.lubin.edu.pl
To: gnats-bugs@gnats.netbsd.org
Subject: mail/postfix TLS patch !
X-Send-Pr-Version: 3.95

>Number:         17570
>Category:       pkg
>Synopsis:       mail/postfix TLS patch !
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    martti
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 12 13:11:00 +0000 2002
>Closed-Date:    Mon Jul 22 10:39:41 +0000 2002
>Last-Modified:  Mon Jul 22 10:39:41 +0000 2002
>Originator:     Dawid Szymanski
>Release:        NetBSD 1.6_BETA3
>Organization:


Regards,
Dawid Szymanski

-- 
http://www.NetBSD.org/ http://www.pl.silcnet.org/ http://www.google.com/ Enjoy!
     .:: mobile: +48691626681 :: DAWS-6BONE :: DAWS-RIPE  :: SQ6EMM ::.
>Environment:


System: NetBSD gornik.tgr.lubin.edu.pl 1.6_BETA3 NetBSD 1.6_BETA3 (GORNIK) #0: Mon Jun 24 19:46:14 CEST 2002 dawszy@gornik.tgr.lubin.edu.pl:/usr/src/sys/arch/i386/compile/GORNIK i386
Architecture: i386
Machine: i386
>Description:

	Some adjustments to allow compile postfix with TLS patch by
	Lutz Jaenicke
>How-To-Repeat:

	Apply patch, and add files:
	PLIST.tls
	MESSAGE.tls
>Fix:

	MESSAGE.tls:
===========================================================================
$NetBSD$

To enable TLS, you might need to reconfigure /etc/postfix/main.cf and
/etc/postfix/master.cf (See ${PREFIX}/share/postfix/sample-tls.cf.)

master.cf:
----------
 tlsmgr    fifo  -       -       y       300     1       tlsmgr
 smtps     inet  n       -       y       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
 submission inet n       -       y       -       -       smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

===========================================================================
	PLIST.tls:

@comment $NetBSD$
libexec/postfix/tlsmgr
man/man8/tlsmgr.8
share/postfix/sample-tls.cf
	DIFF:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/postfix/Makefile,v
retrieving revision 1.66
diff -u -r1.66 Makefile
--- Makefile	2002/07/03 11:11:12	1.66
+++ Makefile	2002/07/12 13:05:03
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.66 2002/07/03 11:11:12 hubertf Exp $

 DISTNAME=	postfix-1.1.11
-PKGREVISION=	1
+PKGREVISION=	2
 CATEGORIES=	mail
 MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/official/

@@ -26,6 +26,7 @@
 .if defined(POSTFIX_USE_PCRE) && ${POSTFIX_USE_PCRE} == "YES" \
 	|| defined(USE_SASL) && ${USE_SASL} == "YES" \
 	|| defined(POSTFIX_USE_MYSQL) && ${POSTFIX_USE_MYSQL} == "YES"
+	|| defined(POSTFIX_USE_TLS) && ${POSTFIX_USE_TLS} == "YES"
 CCARGS=		-I${LOCALBASE}/include
 AUXLIBS=	-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib
 MAKE_ENV+=	AUXLIBS="${AUXLIBS}" CCARGS="${CCARGS}"
@@ -56,6 +57,19 @@
 BUILD_DEFS+=	USE_SASL
 .endif

+.if defined(POSTFIX_USE_TLS) && ${POSTFIX_USE_TLS} == "YES"
+# Above file is version specific, extracted from original TLS patch!
+PATCH_SITES+=	http://people.arhea.net/dawszy/NetBSD/postfix_tls/
+PATCHFILES+=	pfixtls.diff.gz
+PATCH_DIST_STRIP=	-p1
+DEPENDS+=	openssl>=0.9.5:../../security/openssl
+CCARGS+=	-DHAS_SSL -I${LOCALBASE}/include/openssl
+AUXLIBS=	-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lssl
+PLIST_SRC+=	${PKGDIR}/PLIST.tls
+MESSAGE_SRC+=	${PKGDIR}/MESSAGE.tls
+BUILD_DEFS+=	POSTFIX_USE_TLS
+.endif
+
 PLIST_SRC+=	${PKGDIR}/PLIST
 ALL_TARGET=	#empty
 MAKE_ENV=	CC="${CC}" OPT="${CFLAGS}"
@@ -134,4 +148,5 @@
 	${TEST} -f /etc/postfix/master.cf || \
 		${INSTALL_DATA} ${PREFIX}/share/postfix/master.cf /etc/postfix

+.include "../../mk/bsd.pkg.install.mk"
 .include "../../mk/bsd.pkg.mk"
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/mail/postfix/distinfo,v
retrieving revision 1.22
diff -u -r1.22 distinfo
--- distinfo	2002/06/27 04:47:54	1.22
+++ distinfo	2002/07/12 13:05:03
@@ -2,6 +2,8 @@

 SHA1 (postfix/postfix-1.1.11.tar.gz) = 3a28c32800f94df0c504df68c4c6191f48217c5c
 Size (postfix/postfix-1.1.11.tar.gz) = 1190741 bytes
+SHA1 (postfix/pfixtls.diff.gz) = 9cf910346d46c106d52e9012c4a84cdd15491cec
+Size (postfix/pfixtls.diff.gz) = 63310 bytes
 SHA1 (patch-aa) = 01d0df30acc0ee454771ade263b6e793d0dba6a4
 SHA1 (patch-ab) = d4e50ffc31d71ff64067101f6d733655fcf76713
 SHA1 (patch-ac) = 0c79f73f1a9327e97ab6e6910d03b479c849d9f4
>Release-Note:
>Audit-Trail:

From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
To: dawszy@tgr.lubin.edu.pl
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/17570: mail/postfix TLS patch !
Date: Fri, 12 Jul 2002 15:14:38 +0200

 On Fri, Jul 12, 2002 at 03:10:26PM +0200, dawszy@tgr.lubin.edu.pl wrote:
 > +# Above file is version specific, extracted from original TLS patch!
 > +PATCH_SITES+=	http://people.arhea.net/dawszy/NetBSD/postfix_tls/
 > +PATCHFILES+=	pfixtls.diff.gz

 If the comment is true, the filename should reflect this, like
 pfixtls-1.1.11.diff.gz or similar.

 Bye,
  Thomas

 -- 
 Thomas Klausner - wiz@danbala.ifoer.tuwien.ac.at
 Intolerance is the last defense of the insecure.

From: Dawid Szymanski <dawszy@tgr.lubin.edu.pl>
To: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
Cc: pkg-manager@netbsd.org
Subject: Re: pkg/17570: mail/postfix TLS patch !
Date: Fri, 12 Jul 2002 15:55:35 +0200

 On Fri, Jul 12, 2002 at 03:14:38PM +0200, Thomas Klausner wrote:
 =>On Fri, Jul 12, 2002 at 03:10:26PM +0200, dawszy@tgr.lubin.edu.pl wrote:
 =>> +# Above file is version specific, extracted from original TLS patch!
 =>> +PATCH_SITES+=	http://people.arhea.net/dawszy/NetBSD/postfix_tls/
 =>> +PATCHFILES+=	pfixtls.diff.gz
 =>
 =>If the comment is true, the filename should reflect this, like
 =>pfixtls-1.1.11.diff.gz or similar.

 Done, please update file as you suggested an make distinfo if you
 would like to commit it.


 Regards,
 Dawid Szymanski

 -- 
 http://www.NetBSD.org/ http://www.pl.silcnet.org/ http://www.google.com/ Enjoy!
      .:: mobile: +48691626681 :: DAWS-6BONE :: DAWS-RIPE  :: SQ6EMM ::.
Responsible-Changed-From-To: pkg-manager->martti 
Responsible-Changed-By: martti 
Responsible-Changed-When: Tue Jul 16 06:30:47 PDT 2002 
Responsible-Changed-Why:  
I'll take care of this. 
State-Changed-From-To: open->closed 
State-Changed-By: martti 
State-Changed-When: Mon Jul 22 03:39:01 PDT 2002 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.