mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
mailman: add version 2.1.16
This commit is contained in:
parent
d43d1aa0d0
commit
3af6415ab8
26
pkgs/servers/mail/mailman/default.nix
Normal file
26
pkgs/servers/mail/mailman/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
33
pkgs/servers/mail/mailman/fix-var-prefix.patch
Normal file
33
pkgs/servers/mail/mailman/fix-var-prefix.patch
Normal 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; \
|
|
@ -4470,7 +4470,7 @@ let
|
|||
|
||||
heimdal = callPackage ../development/libraries/kerberos/heimdal.nix { };
|
||||
|
||||
harfbuzz = callPackage ../development/libraries/harfbuzz {
|
||||
harfbuzz = callPackage ../development/libraries/harfbuzz {
|
||||
icu = null;
|
||||
graphite2 = null;
|
||||
};
|
||||
|
@ -6157,6 +6157,8 @@ let
|
|||
|
||||
lighttpd = callPackage ../servers/http/lighttpd { };
|
||||
|
||||
mailman = callPackage ../servers/mail/mailman { };
|
||||
|
||||
mediatomb = callPackage ../servers/mediatomb {
|
||||
ffmpeg = ffmpeg_0_6_90;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue