From 510fb688ebd19345a20d607d32071cfa7dff66be Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 12 Jul 2017 12:11:05 +0200 Subject: [PATCH] bsd-games: fix countmail. --- srcpkgs/bsd-games/patches/countmail.diff | 31 ++++++++++++++++++++++++ srcpkgs/bsd-games/template | 4 +-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/bsd-games/patches/countmail.diff diff --git a/srcpkgs/bsd-games/patches/countmail.diff b/srcpkgs/bsd-games/patches/countmail.diff new file mode 100644 index 0000000000..0f510eeadd --- /dev/null +++ b/srcpkgs/bsd-games/patches/countmail.diff @@ -0,0 +1,31 @@ +--- bsd-games-2.17/countmail/countmail.orig ++++ bsd-games-2.17/countmail/countmail +@@ -39,27 +39,7 @@ + + # Count the messages in your mailbox, using only POSIX shell builtins. + # +-# Caveats: +-# +-# The read loop is horrendously slow on every implementation I've +-# tried. I suggest using from(1) and wc(1) instead, though these are +-# not shell builtins. +- +-# for krb. +-#set -- `from -t` +-#v=$3 +-set -- `from | wc -l` +-v=$1 +-#v=`from | wc -l` +- +-#v=0 +-#exec 0