From f0fdcd72c110b6f8e00c1abca6f732ec5b39ab66 Mon Sep 17 00:00:00 2001 From: Andrew Strong Date: Sun, 19 Jun 2011 23:13:42 -0500 Subject: [PATCH] network/leafnode: Included upstream patch for texpire Signed-off-by: Robby Workman --- network/leafnode/leafnode.SlackBuild | 8 ++++--- .../{ => patches}/applyfilter_plugleak.diff | 0 .../leafnode/{ => patches}/sizeof_fix.diff | 0 network/leafnode/patches/texpire_delete.diff | 21 +++++++++++++++++++ 4 files changed, 26 insertions(+), 3 deletions(-) rename network/leafnode/{ => patches}/applyfilter_plugleak.diff (100%) rename network/leafnode/{ => patches}/sizeof_fix.diff (100%) create mode 100644 network/leafnode/patches/texpire_delete.diff diff --git a/network/leafnode/leafnode.SlackBuild b/network/leafnode/leafnode.SlackBuild index d485cba99e..e7b9b505c9 100644 --- a/network/leafnode/leafnode.SlackBuild +++ b/network/leafnode/leafnode.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=leafnode VERSION=2.0.0.alpha20081229a -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -70,9 +70,11 @@ find . \ -exec chmod 644 {} \; # Fix compiler error with recent gcc: -patch -p1 < $CWD/sizeof_fix.diff +patch -p1 < $CWD/patches/sizeof_fix.diff # Fix memory leak with applyfilter: -patch -p1 < $CWD/applyfilter_plugleak.diff +patch -p1 < $CWD/patches/applyfilter_plugleak.diff +# Don't delete articles when texpire -n -C MessID is run: +patch -p1 < $CWD/patches/texpire_delete.diff CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/network/leafnode/applyfilter_plugleak.diff b/network/leafnode/patches/applyfilter_plugleak.diff similarity index 100% rename from network/leafnode/applyfilter_plugleak.diff rename to network/leafnode/patches/applyfilter_plugleak.diff diff --git a/network/leafnode/sizeof_fix.diff b/network/leafnode/patches/sizeof_fix.diff similarity index 100% rename from network/leafnode/sizeof_fix.diff rename to network/leafnode/patches/sizeof_fix.diff diff --git a/network/leafnode/patches/texpire_delete.diff b/network/leafnode/patches/texpire_delete.diff new file mode 100644 index 0000000000..9347a39e43 --- /dev/null +++ b/network/leafnode/patches/texpire_delete.diff @@ -0,0 +1,21 @@ +# commit f8c3b831ea2af3de9036c3dbebcff27fbfcfeec4 +# Author: Matthias Andree +# Date: Fri May 27 01:22:44 2011 +0200 +# +# Bugfix: don't delete articles when texpire -n -C MessID is run. +# +# Found by Paul Brooks. + +--- a/texpire.c ++++ b/texpire.c +@@ -1123,7 +1123,9 @@ main(int argc, char **argv) + while(optind < argc) { + if (verbose) + printf("Trying to remove %s...\n", argv[optind]); +- delete_article(argv[optind], "Remove", "Removed", 1); ++ if (!dryrun) { ++ delete_article(argv[optind], "Remove", "Removed", 1); ++ } + optind++; + } + break;