currently MAILMAN_GROUP in lib/mailman/Mailman/Defaults.py is empty
because the configure script is dumb enough to check for whatever
--without-checkperms does after its too late; so just remove the group
check completely, mirroring what was done for MAILMAN_USER - allows for
a build and package without having _mailman:_mailman user and group.
fixes default install of mailman.
ok?
cheers,
okan
Index: Makefile
===================================================================
RCS file: /home/open/anoncvs/cvs/ports/mail/mailman/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- Makefile 15 Sep 2009 17:37:21 -0000 1.53
+++ Makefile 4 Jan 2010 17:01:52 -0000
@@ -3,7 +3,7 @@
COMMENT= mailing list manager with web interface
DISTNAME= mailman-2.1.12
-PKGNAME= ${DISTNAME}p0
+PKGNAME= ${DISTNAME}p1
CATEGORIES= mail www
HOMEPAGE= http://www.gnu.org/software/mailman/
Index: patches/patch-configure
===================================================================
RCS file: /home/open/anoncvs/cvs/ports/mail/mailman/patches/patch-configure,v
retrieving revision 1.8
diff -u -p -r1.8 patch-configure
--- patches/patch-configure 2 May 2009 09:56:44 -0000 1.8
+++ patches/patch-configure 4 Jan 2010 17:01:44 -0000
@@ -1,11 +1,12 @@
$OpenBSD: patch-configure,v 1.8 2009/05/02 09:56:44 djm Exp $
---- configure.orig Tue Feb 24 08:23:35 2009
-+++ configure Sat Apr 25 12:02:36 2009
-@@ -3178,60 +3178,7 @@ fi
+--- configure.orig Mon Feb 23 16:23:35 2009
++++ configure Mon Jan 4 12:01:38 2010
+@@ -3178,61 +3178,8 @@ fi
USERNAME=$with_username
{ echo "$as_me:$LINENO: result: $USERNAME" >&5
echo "${ECHO_T}$USERNAME" >&6; }
--
++MAILMAN_USER=$with_username
+
-# User `mailman' must exist
-
-{ echo "$as_me:$LINENO: checking for user name \"$USERNAME\"" >&5
@@ -59,7 +60,70 @@ $OpenBSD: patch-configure,v 1.8 2009/05/
-{ echo "$as_me:$LINENO: result: okay" >&5
-echo "${ECHO_T}okay" >&6; }
-
-+MAILMAN_USER=$with_username
-
+-
# Check for some other gid to use than `mailman'
{ echo "$as_me:$LINENO: checking for --with-groupname" >&5
+ echo $ECHO_N "checking for --with-groupname... $ECHO_C" >&6; }
+@@ -3250,61 +3197,7 @@ fi
+ GROUPNAME=$with_groupname
+ { echo "$as_me:$LINENO: result: $GROUPNAME" >&5
+ echo "${ECHO_T}$GROUPNAME" >&6; }
+-
+-
+-# Target group must exist
+-
+-{ echo "$as_me:$LINENO: checking for group name \"$GROUPNAME\"" >&5
+-echo $ECHO_N "checking for group name \"$GROUPNAME\"... $ECHO_C" >&6; }
+-
+-# MAILMAN_GROUP == variable name
+-# $GROUPNAME == user id to check for
+-
+-
+-if test -z "$MAILMAN_GROUP"
+-then
+- cat > conftest.py <<EOF
+-import grp
+-gid = ''
+-for group in "$GROUPNAME".split():
+- try:
+- try:
+- gname = grp.getgrgid(int(group))[0]
+- break
+- except ValueError:
+- gname = grp.getgrnam(group)[0]
+- break
+- except KeyError:
+- gname = ''
+-fp = open("conftest.out", "w")
+-fp.write("%s\n" % gname)
+-fp.close()
+-EOF
+- $PYTHON conftest.py
+- MAILMAN_GROUP=`cat conftest.out`
+-fi
+-
+-rm -f conftest.out conftest.py
+-if test -z "$MAILMAN_GROUP"
+-then
+- if test "$with_permcheck" = "yes"
+- then
+- { { echo "$as_me:$LINENO: error:
+-***** No \"$GROUPNAME\" group found!
+-***** Your system must have a \"$GROUPNAME\" group defined
+-***** (usually in your /etc/group file). Please see the INSTALL
+-***** file for details." >&5
+-echo "$as_me: error:
+-***** No \"$GROUPNAME\" group found!
+-***** Your system must have a \"$GROUPNAME\" group defined
+-***** (usually in your /etc/group file). Please see the INSTALL
+-***** file for details." >&2;}
+- { (exit 1); exit 1; }; }
+- fi
+-fi
+-{ echo "$as_me:$LINENO: result: okay" >&5
+-echo "${ECHO_T}okay" >&6; }
+-
++MAILMAN_GROUP=$with_groupname
+
+ { echo "$as_me:$LINENO: checking permissions on $prefixcheck" >&5
+ echo $ECHO_N "checking permissions on $prefixcheck... $ECHO_C" >&6; }