Subject: pkg/23178: mail/mailman needs to know webserver's GID
To: None <gnats-bugs@gnats.netbsd.org>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: netbsd-bugs
Date: 10/17/2003 17:28:37
>Number:         23178
>Category:       pkg
>Synopsis:       mail/mailman needs to know webserver's GID
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 17 15:29:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hauke Fath <hf@spg.tu-darmstadt.de>
>Release:        NetBSD 1.6.1
>Organization:
	
>Environment:
	
	
System: NetBSD brocken 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Tue Apr 8 12:05:52 UTC 2003 autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/i386/OBJ/autobuild/netbsd-1-6/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	Mailman comes with a pre-configured list of group names under
	which to execute its cgi scripts. The most likely gid is
	compiled into binary wrappers in $PREFIX/lib/mailman/bin. If
	you run Apache with custom gid (e.g. by setting APACHE_GROUP
	in/etc/mk.conf) that is not in this list, any web access will
	run into an error unless you communicate that gid to the
	configure script.

>How-To-Repeat:
	Put APACHE_GROUP = httpd into /etc/mk.conf, install Apache,
	install Mailman. Wonder why it complains about gid mismatch
	although the Makefile calls configure with group name. Look
	closer, find it says nothing about cgis.

>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/mailman/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	2003/09/05 21:18:52	1.7
+++ Makefile	2003/10/17 15:18:34
@@ -108,6 +108,7 @@
 MAILMAN_CONFIGURE_ARGS+= --with-username=${MAILMAN_USER}
 MAILMAN_CONFIGURE_ARGS+= --with-groupname=${MAILMAN_GROUP}
 MAILMAN_CONFIGURE_ARGS+= --with-mail-gid=${MAILMAN_MAILGROUP}
+MAILMAN_CONFIGURE_ARGS+= --with-cgi-gid=${APACHE_GROUP}
 
 # we can't do the configure things before install, because the user/group has
 # to exist and this is only done after build

>Release-Note:
>Audit-Trail:
>Unformatted: