From lxv@mix.omut.org  Wed Oct  8 20:27:26 2003
Return-Path: <lxv@mix.omut.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id ECC9716A4D8; Wed,  8 Oct 2003 20:27:26 -0700 (PDT)
Received: from mix.omut.org (node-4024009a.sfo.onnet.us.uu.net [64.36.0.154])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 3B8DD43FD7; Wed,  8 Oct 2003 20:27:26 -0700 (PDT)
	(envelope-from lxv@mix.omut.org)
Received: from mix.omut.org (IDENT:VOSNku29/KoBjWslwdQ6uOYaLg2Z3wTI@localhost [127.0.0.1])
	by mix.omut.org (8.12.10/8.12.10) with ESMTP id h993RPPY058445;
	Wed, 8 Oct 2003 20:27:25 -0700 (PDT)
	(envelope-from lxv@mix.omut.org)
Received: (from lxv@localhost)
	by mix.omut.org (8.12.10/8.12.10/Submit) id h993RPB1058444;
	Wed, 8 Oct 2003 20:27:25 -0700 (PDT)
	(envelope-from lxv)
Message-Id: <200310090327.h993RPB1058444@mix.omut.org>
Date: Wed, 8 Oct 2003 20:27:25 -0700 (PDT)
From: Alex Vasylenko <lxv@send2pr.sink.omut.org>
Reply-To: Alex Vasylenko <lxv@send2pr.sink.omut.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Dirk Meyer <dinoex@freebsd.org>
Subject: option to build mail/sendmail w/o shared memory support
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57781
>Category:       ports
>Synopsis:       option to build mail/sendmail w/o shared memory support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 08 20:30:15 PDT 2003
>Closed-Date:    Thu Oct 09 18:25:43 CEST 2003
>Last-Modified:  Thu Oct 09 18:25:43 CEST 2003
>Originator:     Alex Vasylenko
>Release:        FreeBSD 4.8-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD 4.8-RELEASE-p4


	
>Description:
	Port mail/sendmail fails to build from within a jail when jail.sysvipc_allowed=0
>How-To-Repeat:
	Login into a jail && cd /usr/ports/mail/sendmail && make
	
>Fix:

diff -ur --unidirectional-new-file /usr/ports/mail/sendmail/Makefile ./Makefile
--- /usr/ports/mail/sendmail/Makefile	Wed Sep 24 10:25:30 2003
+++ ./Makefile	Wed Oct  8 20:21:40 2003
@@ -39,6 +39,7 @@
 # SENDMAIL_WITH_SASL2=yes
 # SENDMAIL_WITH_LDAP=yes
 # SENDMAIL_WITH_PICKY_HELO_CHECK=yes
+# SENDMAIL_WITHOUT_SHMEM=yes
 
 .if defined(SENDMAIL_WITH_SMTPS)
 .if !defined(SENDMAIL_WITH_TLS) && !defined(WITH_TLS)
@@ -87,6 +88,9 @@
 .endif
 .if defined(SENDMAIL_WITH_TLS) || defined(WITH_TLS)
 USE_OPENSSL=	yes
+.endif
+.if defined(SENDMAIL_WITHOUT_SHMEM)
+SITE+=	${FILESDIR}/site.config.m4.noshmem
 .endif
 
 # install directly if no mailwrapper support
diff -ur --unidirectional-new-file /usr/ports/mail/sendmail/files/site.config.m4.noshmem ./files/site.config.m4.noshmem
--- /usr/ports/mail/sendmail/files/site.config.m4.noshmem	Wed Dec 31 16:00:00 1969
+++ ./files/site.config.m4.noshmem	Wed Oct  8 19:43:09 2003
@@ -0,0 +1 @@
+APPENDDEF(`confENVDEF', `-DSM_CONF_SHM=0')
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: osa 
Responsible-Changed-When: Wed Oct 8 23:16:42 PDT 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57781 
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Thu Oct 9 18:24:10 CEST 2003 
State-Changed-Why:  
committed with changes, thanks. 

To build and use sendmail in a jail, 
please set in the /etc/sysctl.conf of the real host: 
jail.sysvipc_allowed=1 


http://www.freebsd.org/cgi/query-pr.cgi?pr=57781 
>Unformatted:
