Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21.05] listadmin: init at 2.73 #134534

Merged
merged 1 commit into from Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 48 additions & 0 deletions pkgs/applications/networking/listadmin/default.nix
@@ -0,0 +1,48 @@
{ lib, stdenvNoCC, fetchurl, makeWrapper, perl, installShellFiles }:

stdenvNoCC.mkDerivation rec {
pname = "listadmin";
version = "2.73";

src = fetchurl {
url = "mirror://sourceforge/project/listadmin/${version}/listadmin-${version}.tar.gz";
sha256 = "00333d65ygdbm1hqr4yp2j8vh1cgh3hyfm7iy9y1alf0p0f6aqac";
};

buildInputs = [ perl ];
nativeBuildInputs = [ makeWrapper installShellFiles ];

# There is a Makefile, but we don’t need it, and it prints errors
dontBuild = true;

installPhase = ''
mkdir -p $out/bin $out/share/man/man1
install -m 755 listadmin.pl $out/bin/listadmin
installManPage listadmin.1

wrapProgram $out/bin/listadmin \
--prefix PERL5LIB : "${with perl.pkgs; makeFullPerlPath [
TextReform NetINET6Glue LWPProtocolhttps
]}"
'';

doInstallCheck = true;
installCheckPhase = ''
$out/bin/listadmin --help 2> /dev/null
'';

meta = with lib; {
description = "Command line mailman moderator queue manipulation";
longDescription = ''
listadmin is a command line tool to manipulate the queues of messages
held for moderator approval by mailman. It is designed to keep user
interaction to a minimum, in theory you could run it from cron to prune
the queue. It can use the score from a header added by SpamAssassin to
filter, or it can match specific senders, subjects, or reasons.
'';
homepage = "https://sourceforge.net/projects/listadmin/";
license = licenses.publicDomain;
platforms = platforms.unix;
maintainers = with maintainers; [ nomeata ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -19161,6 +19161,8 @@ in

mailman-web = with python3.pkgs; toPythonApplication mailman-web;

listadmin = callPackage ../applications/networking/listadmin {};

mastodon = callPackage ../servers/mastodon { };

materialize = callPackage ../servers/sql/materialize {
Expand Down
14 changes: 14 additions & 0 deletions pkgs/top-level/perl-packages.nix
Expand Up @@ -15169,6 +15169,20 @@ let
};
};

NetINET6Glue = buildPerlPackage {
pname = "Net-INET6Glue";
version = "0.604";
src = fetchurl {
url = "mirror://cpan/authors/id/S/SU/SULLR/Net-INET6Glue-0.604.tar.gz";
sha256 = "05xvbdrqq88npzg14bjm9wmjykzplwirzcm8rp61852hz6c67hwh";
};
meta = {
homepage = "https://github.com/noxxi/p5-net-inet6glue";
description = "Make common modules IPv6 ready by hotpatching";
license = lib.licenses.artistic1;
};
};

NetAddrIP = buildPerlPackage {
pname = "NetAddr-IP";
version = "4.079";
Expand Down