areguera / rpms / mailman

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