areguera / rpms / mailman

Forked from rpms/mailman 4 years ago
Clone
7812c9
diff --git a/Mailman/Archiver/Makefile.in b/Mailman/Archiver/Makefile.in
7812c9
index 65e46cb..dc3a1c6 100644
7812c9
--- a/Mailman/Archiver/Makefile.in
7812c9
+++ b/Mailman/Archiver/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -47,7 +46,7 @@ pipermail.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -63,8 +62,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(PACKAGEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Mailman/Bouncers/Makefile.in b/Mailman/Bouncers/Makefile.in
7812c9
index 8865a9f..8878cd9 100644
7812c9
--- a/Mailman/Bouncers/Makefile.in
7812c9
+++ b/Mailman/Bouncers/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -45,7 +44,7 @@ MODULES=	*.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -61,8 +60,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(PACKAGEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Mailman/Cgi/Makefile.in b/Mailman/Cgi/Makefile.in
7812c9
index 47929e9..e20c07e 100644
7812c9
--- a/Mailman/Cgi/Makefile.in
7812c9
+++ b/Mailman/Cgi/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -47,7 +46,7 @@ CGI_MODULES=	*.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -63,8 +62,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(CGIDIR); \
7812c9
         done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Mailman/Commands/Makefile.in b/Mailman/Commands/Makefile.in
7812c9
index 645d78b..12bbc1b 100644
7812c9
--- a/Mailman/Commands/Makefile.in
7812c9
+++ b/Mailman/Commands/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -45,7 +44,7 @@ MODULES=	*.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -61,8 +60,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(PACKAGEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Mailman/Gui/Makefile.in b/Mailman/Gui/Makefile.in
7812c9
index 000441e..9273b8a 100644
7812c9
--- a/Mailman/Gui/Makefile.in
7812c9
+++ b/Mailman/Gui/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -45,7 +44,7 @@ MODULES=	*.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -61,8 +60,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(PACKAGEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Mailman/Handlers/Makefile.in b/Mailman/Handlers/Makefile.in
7812c9
index 71e5576..56ee2eb 100644
7812c9
--- a/Mailman/Handlers/Makefile.in
7812c9
+++ b/Mailman/Handlers/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -45,7 +44,7 @@ MODULES=	*.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -61,8 +60,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(PACKAGEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Mailman/Logging/Makefile.in b/Mailman/Logging/Makefile.in
7812c9
index e185775..ad5c128 100644
7812c9
--- a/Mailman/Logging/Makefile.in
7812c9
+++ b/Mailman/Logging/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -45,7 +44,7 @@ MODULES=	*.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -61,8 +60,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(PACKAGEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Mailman/MTA/Makefile.in b/Mailman/MTA/Makefile.in
7812c9
index 0338806..e1de296 100644
7812c9
--- a/Mailman/MTA/Makefile.in
7812c9
+++ b/Mailman/MTA/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -45,7 +44,7 @@ MODULES=	*.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -61,8 +60,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(PACKAGEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Mailman/Makefile.in b/Mailman/Makefile.in
7812c9
index 93c7efd..45439f0 100644
7812c9
--- a/Mailman/Makefile.in
7812c9
+++ b/Mailman/Makefile.in
7812c9
@@ -20,8 +20,6 @@
7812c9
 
7812c9
 # Variables set by configure
7812c9
 
7812c9
-VERSION=	@VERSION@
7812c9
-
7812c9
 VPATH=		@srcdir@
7812c9
 srcdir= 	@srcdir@
7812c9
 bindir= 	@bindir@
7812c9
@@ -30,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -48,7 +45,7 @@ SUBDIRS=	Cgi Logging Archiver Handlers Bouncers Queue MTA Gui Commands
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -79,12 +76,6 @@ install: install-here
7812c9
 	    (cd $$d; $(MAKE) DESTDIR=$(DESTDIR) install); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-	@for d in $(SUBDIRS); \
7812c9
-	do \
7812c9
-	    (cd $$d; $(MAKE) DESTDIR=$(DESTDIR) finish); \
7812c9
-	done
7812c9
-
7812c9
 clean:
7812c9
 	for d in $(SUBDIRS); \
7812c9
 	do \
7812c9
diff --git a/Mailman/Queue/Makefile.in b/Mailman/Queue/Makefile.in
7812c9
index 179f3d9..e0e97ad 100644
7812c9
--- a/Mailman/Queue/Makefile.in
7812c9
+++ b/Mailman/Queue/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -45,7 +44,7 @@ MODULES=	*.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -61,8 +60,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $(srcdir)/$$f $(DESTDIR)$(PACKAGEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/Makefile.in b/Makefile.in
7812c9
index 40e04f5..eb40844 100644
7812c9
--- a/Makefile.in
7812c9
+++ b/Makefile.in
7812c9
@@ -61,11 +61,10 @@ SUBDIRS=	bin cron misc Mailman scripts src templates messages tests
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
-DIRSETGID=	chmod g+s
7812c9
 
7812c9
 DATE = $(shell python -c 'import time; print time.strftime("%d-%b-%Y"),')
7812c9
 LANGPACK = README-I18N.en templates messages
7812c9
@@ -85,14 +84,24 @@ install: doinstall update
7812c9
 
7812c9
 doinstall: $(SUBDIRS)
7812c9
 	@echo "Creating architecture independent directories..."
7812c9
+	dir=$(DESTDIR)$(prefix); \
7812c9
+	if test ! -d $$dir; then \
7812c9
+		echo "Creating directory hierarchy $$dir"; \
7812c9
+		$(INSTALL) -d -m $(DIRMODE) $$dir; \
7812c9
+	else true; \
7812c9
+	fi;
7812c9
+	dir=$(DESTDIR)$(var_prefix); \
7812c9
+	if test ! -d $$dir; then \
7812c9
+		echo "Creating directory hierarchy $$dir"; \
7812c9
+		$(INSTALL) -d -m $(DIRMODE) $$dir; \
7812c9
+	else true; \
7812c9
+	fi;
7812c9
 	@for d in $(VAR_DIRS); \
7812c9
 	do \
7812c9
 	    dir=$(DESTDIR)$(var_prefix)/$$d; \
7812c9
 	    if test ! -d $$dir; then \
7812c9
 		echo "Creating directory hierarchy $$dir"; \
7812c9
-		$(srcdir)/mkinstalldirs $$dir; \
7812c9
-		chmod $(DIRMODE) $$dir; \
7812c9
-		$(DIRSETGID) $$dir; \
7812c9
+		$(INSTALL) -d -m $(DIRMODE) $$dir; \
7812c9
 	    else true; \
7812c9
 	    fi; \
7812c9
 	done
7812c9
@@ -102,9 +111,7 @@ doinstall: $(SUBDIRS)
7812c9
 	    dir=$(DESTDIR)$(prefix)/$$d; \
7812c9
 	    if test ! -d $$dir; then \
7812c9
 		echo "Creating directory hierarchy $$dir"; \
7812c9
-		$(srcdir)/mkinstalldirs $$dir; \
7812c9
-		chmod $(DIRMODE) $$dir; \
7812c9
-		$(DIRSETGID) $$dir; \
7812c9
+		$(INSTALL) -d -m $(DIRMODE) $$dir; \
7812c9
 	    else true; \
7812c9
 	    fi; \
7812c9
 	done
7812c9
@@ -114,9 +121,7 @@ doinstall: $(SUBDIRS)
7812c9
 	    dir=$(DESTDIR)$(exec_prefix)/$$d; \
7812c9
 	    if test ! -d $$dir; then \
7812c9
 		echo "Creating directory hierarchy $$dir"; \
7812c9
-		$(srcdir)/mkinstalldirs $$dir; \
7812c9
-		chmod $(DIRMODE) $$dir; \
7812c9
-		$(DIRSETGID) $$dir; \
7812c9
+		$(INSTALL) -d -m $(DIRMODE) $$dir; \
7812c9
 	    else true; \
7812c9
 	    fi; \
7812c9
 	done
7812c9
diff --git a/bin/Makefile.in b/bin/Makefile.in
7812c9
index 22c24b0..d795333 100644
7812c9
--- a/bin/Makefile.in
7812c9
+++ b/bin/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -56,7 +55,7 @@ BUILDDIR=	../build/bin
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -72,8 +71,6 @@ install:
7812c9
 	    $(INSTALL) -m $(EXEMODE) $(BUILDDIR)/$$f $(DESTDIR)$(SCRIPTSDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/cron/Makefile.in b/cron/Makefile.in
7812c9
index 2a7c8fd..c14d119 100644
7812c9
--- a/cron/Makefile.in
7812c9
+++ b/cron/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -68,8 +67,6 @@ install:
7812c9
 	    $(INSTALL) -m $(EXEMODE) $(BUILDDIR)/$$f $(DESTDIR)$(CRONDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/messages/Makefile.in b/messages/Makefile.in
7812c9
index 2bbec3f..0b8b7d6 100644
7812c9
--- a/messages/Makefile.in
7812c9
+++ b/messages/Makefile.in
7812c9
@@ -32,7 +32,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -43,7 +42,6 @@ OPT=		@OPT@
7812c9
 CFLAGS=		$(OPT) $(DEFS)
7812c9
 PACKAGEDIR= 	$(prefix)/messages
7812c9
 SHELL=		/bin/sh
7812c9
-DIRSETGID=	chmod g+s
7812c9
 MSGFMT= 	@PYTHON@ ../build/bin/msgfmt.py
7812c9
 MSGMERGE=	msgmerge
7812c9
 
7812c9
@@ -60,7 +58,7 @@ TARGETS=	$(MOFILES)
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -90,9 +88,8 @@ doinstall: mofiles
7812c9
 	do \
7812c9
 	    dir=$(DESTDIR)$(prefix)/$$d; \
7812c9
 	    echo "Creating language directory $$dir"; \
7812c9
-	    $(srcdir)/../mkinstalldirs $$dir; \
7812c9
-	    chmod $(DIRMODE) $$dir; \
7812c9
-	    $(DIRSETGID) $$dir; \
7812c9
+	    $(INSTALL) -d -m $(DIRMODE) `dirname $$dir`; \
7812c9
+	    $(INSTALL) -d -m $(DIRMODE) $$dir; \
7812c9
 	done
7812c9
 	@for d in $(LANGUAGES); \
7812c9
 	do \
7812c9
@@ -113,8 +110,6 @@ doinstall: mofiles
7812c9
 
7812c9
 mofiles: $(MOFILES)
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 	-rm -f */LC_MESSAGES/mailman.mo
7812c9
 
7812c9
diff --git a/misc/Makefile.in b/misc/Makefile.in
7812c9
index 5125cd8..af99c04 100644
7812c9
--- a/misc/Makefile.in
7812c9
+++ b/misc/Makefile.in
7812c9
@@ -30,7 +30,6 @@ var_prefix=	@VAR_PREFIX@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 PYTHON=		@PYTHON@
7812c9
 
7812c9
@@ -62,7 +61,7 @@ PACKAGES= $(EMAILPKG) $(JACODECSPKG) $(KOCODECSPKG)
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 DATAMODE=	664
7812c9
@@ -101,8 +100,6 @@ install-packages:
7812c9
 	    (cd $(PKGDIR)/$$p ; umask 02 ; PYTHONPATH=$(PYTHONLIBDIR) $(PYTHON) $(SETUPCMD)); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/scripts/Makefile.in b/scripts/Makefile.in
7812c9
index 49b82ec..cea250c 100644
7812c9
--- a/scripts/Makefile.in
7812c9
+++ b/scripts/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -49,7 +48,7 @@ SCRIPTS=	bounces confirm driver join leave owner post request
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -68,8 +67,6 @@ install:
7812c9
 	$(INSTALL) -m $(FILEMODE) $(srcdir)/join    $(DESTDIR)$(SCRIPTSDIR)/subscribe
7812c9
 	$(INSTALL) -m $(FILEMODE) $(srcdir)/leave   $(DESTDIR)$(SCRIPTSDIR)/unsubscribe
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/src/Makefile.in b/src/Makefile.in
7812c9
index ce52356..7ed820b 100644
7812c9
--- a/src/Makefile.in
7812c9
+++ b/src/Makefile.in
7812c9
@@ -28,7 +28,6 @@ bindir= 	@bindir@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 PYTHON=  	@PYTHON@
7812c9
 
7812c9
@@ -65,10 +64,9 @@ COMMON_FLAGS=	-DPREFIX="\"$(prefix)\"" \
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
-EXEMODE=	755
7812c9
+DIRMODE=	2775
7812c9
+EXEMODE=	2755
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
-DIRSETGID=	chmod g+s
7812c9
 
7812c9
 # Fixed definitions
7812c9
 
7812c9
@@ -112,20 +110,10 @@ install: all
7812c9
 	do \
7812c9
 	    exe=$(DESTDIR)$(CGIDIR)/$$f$(CGIEXT); \
7812c9
 	    $(INSTALL_PROGRAM) $$f $$exe; \
7812c9
-	    $(DIRSETGID) $$exe; \
7812c9
 	done
7812c9
 	for f in $(MAIL_PROGS); \
7812c9
 	do \
7812c9
 	    $(INSTALL_PROGRAM) $$f $(DESTDIR)$(MAILDIR); \
7812c9
-	    $(DIRSETGID) $(DESTDIR)$(MAILDIR)/$$f; \
7812c9
-	done
7812c9
-
7812c9
-finish:
7812c9
-	-for f in $(SUID_CGI_PROGS); \
7812c9
-	do \
7812c9
-	    exe=$(DESTDIR)$(CGIDIR)/$$f$(CGIEXT); \
7812c9
-	    chown $(MAILMAN_USER) $$exe; \
7812c9
-	    chmod u+s $$exe; \
7812c9
 	done
7812c9
 
7812c9
 clean:
7812c9
diff --git a/templates/Makefile.in b/templates/Makefile.in
7812c9
index 3dfee3a..b23d7c1 100644
7812c9
--- a/templates/Makefile.in
7812c9
+++ b/templates/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 TRUE=		@TRUE@
7812c9
 
7812c9
@@ -48,7 +47,7 @@ LANGUAGES=	ar ast ca cs da de el en es et eu fi fr gl he hr hu ia it ja \
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -61,15 +60,13 @@ all:
7812c9
 install:
7812c9
 	for d in $(LANGUAGES); \
7812c9
 	do \
7812c9
-	    $(srcdir)/../mkinstalldirs $(DESTDIR)$(TEMPLATEDIR)/$$d; \
7812c9
+	    $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(TEMPLATEDIR)/$$d; \
7812c9
 	    for f in $(srcdir)/$$d/*.html $(srcdir)/$$d/*.txt; \
7812c9
 	    do \
7812c9
 	    	$(INSTALL) -m $(FILEMODE) $$f $(DESTDIR)$(TEMPLATEDIR)/$$d; \
7812c9
 	    done; \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/tests/Makefile.in b/tests/Makefile.in
7812c9
index 26d6e31..ca92425 100644
7812c9
--- a/tests/Makefile.in
7812c9
+++ b/tests/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -46,7 +45,7 @@ EXECS=  	$(srcdir)/onebounce.py $(srcdir)/fblast.py
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -71,8 +70,6 @@ install:
7812c9
 	    (cd $$d; $(MAKE) DESTDIR=$(DESTDIR) install); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/tests/bounces/Makefile.in b/tests/bounces/Makefile.in
7812c9
index 5798097..f7014cb 100644
7812c9
--- a/tests/bounces/Makefile.in
7812c9
+++ b/tests/bounces/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -46,7 +45,7 @@ BOUNCE_FILES=	$(srcdir)/*.txt
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -60,8 +59,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $$f $(DESTDIR)$(BOUNCEDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean:
7812c9
diff --git a/tests/msgs/Makefile.in b/tests/msgs/Makefile.in
7812c9
index 736d721..edef5ae 100644
7812c9
--- a/tests/msgs/Makefile.in
7812c9
+++ b/tests/msgs/Makefile.in
7812c9
@@ -28,7 +28,6 @@ exec_prefix=	@exec_prefix@
7812c9
 DESTDIR=
7812c9
 
7812c9
 CC=		@CC@
7812c9
-CHMOD=  	@CHMOD@
7812c9
 INSTALL=	@INSTALL@
7812c9
 
7812c9
 DEFS=   	@DEFS@
7812c9
@@ -46,7 +45,7 @@ MSG_FILES=	$(srcdir)/*.txt
7812c9
 # Modes for directories and executables created by the install
7812c9
 # process.  Default to group-writable directories but
7812c9
 # user-only-writable for executables.
7812c9
-DIRMODE=	775
7812c9
+DIRMODE=	2775
7812c9
 EXEMODE=	755
7812c9
 FILEMODE=	644
7812c9
 INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
7812c9
@@ -60,8 +59,6 @@ install:
7812c9
 	    $(INSTALL) -m $(FILEMODE) $$f $(DESTDIR)$(MSGSDIR); \
7812c9
 	done
7812c9
 
7812c9
-finish:
7812c9
-
7812c9
 clean:
7812c9
 
7812c9
 distclean: