Merge pull request #7195 from KoviRobi/mailcheck

Added mailcheck, simple utility to check for mail.
This commit is contained in:
Arseniy Seroka 2015-04-06 00:41:53 +03:00
commit e7dc8c3f27
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "mailcheck-${version}";
version = "1.91.2";
patches = [ ./mailcheck-Makefile.patch ];
src = fetchurl {
url = "mirror://sourceforge/mailcheck/mailcheck_${version}.tar.gz";
sha256 = "0p0azaxsnjvjbg41ycicc1i0kzw6jiynq8k49cfkdhlckxfdm9kc";
};
meta = {
description = "Simple command line tool to check for new messages";
homepage = http://mailcheck.sourceforge.net/;
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ kovirobi ];
platforms = stdenv.lib.platforms.linux;
inherit version;
longDescription = ''
A simple command line tool to check for new mail in local mbox and
maildir and remote POP3 and IMAP mailboxes.
'';
};
}

View File

@ -0,0 +1,22 @@
diff -u a/Makefile b/Makefile
--- a/Makefile 2015-04-05 19:31:41.871227295 +0100
+++ b/Makefile 2015-04-05 19:42:49.743517508 +0100
@@ -1,3 +1,5 @@
+prefix=$(out)
+
all: mailcheck
debug: mailcheck.c netrc.c netrc.h socket.c
@@ -7,8 +9,10 @@
$(CC) -Wall -O2 mailcheck.c netrc.c socket.c -s -o mailcheck
install: mailcheck
- install mailcheck $(prefix)/usr/bin
- install -m 644 mailcheckrc $(prefix)/etc
+ [ -d $(prefix)/bin ] || mkdir $(prefix)/bin
+ [ -d $(prefix)/etc ] || mkdir $(prefix)/etc
+ install mailcheck $(prefix)/bin/
+ install -m 644 mailcheckrc $(prefix)/etc/
distclean: clean

View File

@ -1900,6 +1900,8 @@ let
macchanger = callPackage ../os-specific/linux/macchanger { };
mailcheck = callPackage ../applications/networking/mailreaders/mailcheck { };
maildrop = callPackage ../tools/networking/maildrop { };
mailsend = callPackage ../tools/networking/mailsend { };