pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/mailman Allow for selecting a different CGI GID t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/888adb08f56a
branches:  trunk
changeset: 466102:888adb08f56a
user:      kim <kim%pkgsrc.org@localhost>
date:      Sun Jan 11 17:17:25 2004 +0000

description:
Allow for selecting a different CGI GID than the default pkgsrc APACHE GID.

Allow for not using a CGI extension (no extension was the pkgsrc default
for the previous mailman version, and forcing to add one seems like just
a gratuitous change).

Record BUILD_DEFS. (XXX: All these should be documented, too.)

diffstat:

 mail/mailman/Makefile |  19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r 1a12c12d6262 -r 888adb08f56a mail/mailman/Makefile
--- a/mail/mailman/Makefile     Sun Jan 11 17:06:31 2004 +0000
+++ b/mail/mailman/Makefile     Sun Jan 11 17:17:25 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2003/12/23 11:02:13 xtraeme Exp $
+# $NetBSD: Makefile,v 1.9 2004/01/11 17:17:25 kim Exp $
 
 DISTNAME=      mailman-2.1.3
 CATEGORIES=    mail www
@@ -28,7 +28,9 @@
 DOCDIR=                 ${PREFIX}/share/doc/mailman
 MAILMAN_USER?=                 mailman
 MAILMAN_GROUP?=        mailman
+MAILMAN_CGIGROUP?=     ${APACHE_GROUP}
 MAILMAN_MAILGROUP?=    guest # group of user 'daemon'
+MAILMAN_CGIEXT?=       .cgi
 
 MESSAGE_SUBST+=                EXECDIR=${EXECDIR}
 FILES_SUBST+=          EXECDIR=${EXECDIR}
@@ -63,10 +65,10 @@
 PYTHON_PATCH_SCRIPTS+= admin/bin/mm2do
 PYTHON_PATCH_SCRIPTS+= bin/msgfmt.py
 
-APACHE_GROUP?=         www
-
-CONFIGURE_ARGS+=       --with-cgi-gid=${APACHE_GROUP}
-CONFIGURE_ARGS+=       --with-cgi-ext=.cgi
+CONFIGURE_ARGS+=       --with-cgi-gid=${MAILMAN_CGIGROUP}
+.if ${MAILMAN_CGIEXT} != "none"
+CONFIGURE_ARGS+=       --with-cgi-ext=${MAILMAN_CGIEXT}
+.endif
 CONFIGURE_ARGS+=       --with-groupname=${MAILMAN_GROUP}
 CONFIGURE_ARGS+=       --with-mail-gid=${MAILMAN_MAILGROUP}
 CONFIGURE_ARGS+=       --with-python=${PYTHONBIN}
@@ -78,6 +80,13 @@
 CONFIGURE_ARGS+=       --with-mailhost=localhost
 CONFIGURE_ARGS+=       --with-urlhost=localhost
 
+BUILD_DEFS+=           MAILMAN_DATADIR
+BUILD_DEFS+=           MAILMAN_USER
+BUILD_DEFS+=           MAILMAN_GROUP
+BUILD_DEFS+=           MAILMAN_CGIGROUP
+BUILD_DEFS+=           MAILMAN_MAILGROUP
+BUILD_DEFS+=           MAILMAN_CGIEXT
+
 post-patch:
        @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailman.conf.dist \
                >${WRKDIR}/mailman.conf.dist



Home | Main Index | Thread Index | Old Index