sympa: init at 6.2.52
This commit is contained in:
parent
80098e9a71
commit
e39d7fab27
116
pkgs/servers/mail/sympa/default.nix
Normal file
116
pkgs/servers/mail/sympa/default.nix
Normal file
@ -0,0 +1,116 @@
|
||||
{ stdenv, perl, fetchFromGitHub, autoreconfHook
|
||||
}:
|
||||
|
||||
let
|
||||
dataDir = "/var/lib/sympa";
|
||||
runtimeDir = "/run/sympa";
|
||||
perlEnv = perl.withPackages (p: with p; [
|
||||
ArchiveZip
|
||||
CGI
|
||||
CGIFast
|
||||
ClassSingleton
|
||||
DateTime
|
||||
DBI
|
||||
DateTimeFormatMail
|
||||
DateTimeTimeZone
|
||||
DigestMD5
|
||||
Encode
|
||||
FCGI
|
||||
FileCopyRecursive
|
||||
FileNFSLock
|
||||
FilePath
|
||||
HTMLParser
|
||||
HTMLFormatter
|
||||
HTMLTree
|
||||
HTMLStripScriptsParser
|
||||
IO
|
||||
IOStringy
|
||||
LWP
|
||||
libintl_perl
|
||||
|
||||
MHonArc
|
||||
MIMEBase64
|
||||
MIMECharset
|
||||
MIMETools
|
||||
MIMEEncWords
|
||||
MIMELiteHTML
|
||||
MailTools
|
||||
NetCIDR
|
||||
ScalarListUtils
|
||||
SysSyslog
|
||||
TermProgressBar
|
||||
TemplateToolkit
|
||||
URI
|
||||
UnicodeLineBreak
|
||||
XMLLibXML
|
||||
|
||||
### Features
|
||||
Clone
|
||||
CryptEksblowfish
|
||||
|
||||
DBDPg
|
||||
DBDSQLite
|
||||
DBDmysql
|
||||
|
||||
DataPassword
|
||||
EncodeLocale
|
||||
IOSocketSSL
|
||||
MailDKIM
|
||||
NetDNS
|
||||
NetLDAP
|
||||
NetSMTP
|
||||
SOAPLite
|
||||
]);
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sympa";
|
||||
version = "6.2.52";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sympa-community";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "071kx6ryifs2f6fhfky9g297frzp5584kn444af1vb2imzydsbnh";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
"--without-initdir"
|
||||
"--without-unitsdir"
|
||||
"--without-smrshdir"
|
||||
|
||||
"--with-lockdir=${runtimeDir}"
|
||||
"--with-piddir=${runtimeDir}"
|
||||
"--with-confdir=${dataDir}/etc"
|
||||
"--sysconfdir=${dataDir}/etc"
|
||||
"--with-spooldir=${dataDir}/spool"
|
||||
"--with-expldir=${dataDir}/list_data"
|
||||
];
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ perlEnv ];
|
||||
patches = [ ./make-docs.patch ];
|
||||
|
||||
prePatch = ''
|
||||
patchShebangs po/sympa/add-lang.pl
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir "$TMP/bin"
|
||||
for i in chown chgrp chmod; do
|
||||
echo '#!${stdenv.shell}' >> "$TMP/bin/$i"
|
||||
chmod +x "$TMP/bin/$i"
|
||||
done
|
||||
PATH="$TMP/bin:$PATH"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rm -rf "$TMP/bin"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Open source mailing list manager";
|
||||
homepage = "https://www.sympa.org";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ sorki mmilata ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
11
pkgs/servers/mail/sympa/make-docs.patch
Normal file
11
pkgs/servers/mail/sympa/make-docs.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -ur sympa-6.2.44-orig/doc/Makefile.am sympa-6.2.44/doc/Makefile.am
|
||||
--- sympa-6.2.44-orig/doc/Makefile.am 2019-08-29 01:57:43.512539087 +0200
|
||||
+++ sympa-6.2.44/doc/Makefile.am 2019-08-29 01:58:24.393531358 +0200
|
||||
@@ -83,6 +83,4 @@
|
||||
--lax --release="$(VERSION)" $< $@
|
||||
|
||||
.podpl.pod:
|
||||
- $(AM_V_GEN)PERL5LIB=$(top_builddir)/src/lib:$(top_srcdir)/src/lib; \
|
||||
- export PERL5LIB; \
|
||||
- $(PERL) $< --top_srcdir=$(top_srcdir) > $*.pod
|
||||
+ $(AM_V_GEN)$(PERL) -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib $< --top_srcdir=$(top_srcdir) > $*.pod
|
@ -15449,6 +15449,8 @@ in
|
||||
|
||||
pshs = callPackage ../servers/http/pshs { };
|
||||
|
||||
sympa = callPackage ../servers/mail/sympa { };
|
||||
|
||||
system-sendmail = lowPrio (callPackage ../servers/mail/system-sendmail { });
|
||||
|
||||
# PulseAudio daemons
|
||||
|
Loading…
Reference in New Issue
Block a user