mailman: add version 2.1.16

This commit is contained in:
Peter Simons 2013-10-21 15:02:35 +02:00
parent d43d1aa0d0
commit 3af6415ab8
3 changed files with 62 additions and 1 deletions

View File

@ -0,0 +1,26 @@
{ stdenv, fetchurl, python }:
stdenv.mkDerivation rec {
name = "mailman-2.1.16";
src = fetchurl {
url = "mirror://gnu/mailman/${name}.tgz";
sha256 = "0qsgnqjfi07kdiwzik0i78a5q3q5kcw1r61g48abix9qjc32n5ax";
};
buildInputs = [ python ];
patches = [ ./fix-var-prefix.patch ];
configureFlags = "--without-permcheck --with-cgi-ext=.cgi --with-var-prefix=/var/lib/mailman";
installTargets = "doinstall"; # Leave out the 'update' target that's implied by 'install'.
meta = {
homepage = "http://www.gnu.org/software/mailman/";
description = "Free software for managing electronic mail discussion and e-newsletter lists";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}

View File

@ -0,0 +1,33 @@
diff -ubr mailman-2.1.16-orig/contrib/redhat_fhs.patch mailman-2.1.16/contrib/redhat_fhs.patch
--- mailman-2.1.16-orig/contrib/redhat_fhs.patch 2013-10-21 14:55:48.797631434 +0200
+++ mailman-2.1.16/contrib/redhat_fhs.patch 2013-10-21 14:56:42.534310378 +0200
@@ -197,7 +197,7 @@
+ else true; \
+ fi; \
+ done
- chmod o-r $(DESTDIR)$(var_prefix)/archives/private
+ chmod o-r $(prefix)$(var_prefix)/archives/private
@for d in $(ARCH_INDEP_DIRS); \
do \
Only in mailman-2.1.5.FHS: Makefile.in~
diff -ubr mailman-2.1.16-orig/Makefile.in mailman-2.1.16/Makefile.in
--- mailman-2.1.16-orig/Makefile.in 2013-10-21 14:55:48.798631519 +0200
+++ mailman-2.1.16/Makefile.in 2013-10-21 14:56:42.562313220 +0200
@@ -87,7 +87,7 @@
@echo "Creating architecture independent directories..."
@for d in $(VAR_DIRS); \
do \
- dir=$(DESTDIR)$(var_prefix)/$$d; \
+ dir=$(prefix)$(var_prefix)/$$d; \
if test ! -d $$dir; then \
echo "Creating directory hierarchy $$dir"; \
$(srcdir)/mkinstalldirs $$dir; \
@@ -96,7 +96,7 @@
else true; \
fi; \
done
- chmod o-r $(DESTDIR)$(var_prefix)/archives/private
+ chmod o-r $(prefix)$(var_prefix)/archives/private
@for d in $(ARCH_INDEP_DIRS); \
do \
dir=$(DESTDIR)$(prefix)/$$d; \

View File

@ -6157,6 +6157,8 @@ let
lighttpd = callPackage ../servers/http/lighttpd { };
mailman = callPackage ../servers/mail/mailman { };
mediatomb = callPackage ../servers/mediatomb {
ffmpeg = ffmpeg_0_6_90;
};