summaryrefslogtreecommitdiff
path: root/mail/dspam
diff options
context:
space:
mode:
authorjwise <jwise@pkgsrc.org>2005-08-24 01:44:07 +0000
committerjwise <jwise@pkgsrc.org>2005-08-24 01:44:07 +0000
commit93a64bc29180649bf2c68245c1ee2996183097e4 (patch)
treef91dc4af4e6f35593ba9ef59bfc7764b7c8236d4 /mail/dspam
parent7713a328bedce5bfd86aee1ec28aaaab62f3f912 (diff)
downloadpkgsrc-93a64bc29180649bf2c68245c1ee2996183097e4.tar.gz
Add a small patch for daemon mode -- if running on NetBSD, call daemon() to
properly dissociate ourselves from the controlling terminal (and more). This is still not enough to make daemon mode stable for me on 3.0_BETA, but it's certainly a step in the right direction.
Diffstat (limited to 'mail/dspam')
-rw-r--r--mail/dspam/distinfo3
-rw-r--r--mail/dspam/patches/patch-ab13
2 files changed, 15 insertions, 1 deletions
diff --git a/mail/dspam/distinfo b/mail/dspam/distinfo
index 8ee9a3c66ad..3ca979fee8b 100644
--- a/mail/dspam/distinfo
+++ b/mail/dspam/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.21 2005/08/08 11:10:15 xtraeme Exp $
+$NetBSD: distinfo,v 1.22 2005/08/24 01:44:07 jwise Exp $
SHA1 (dspam-3.4.9.tar.gz) = e697774e0f2eb4a9a363cf80257072219641f8e3
RMD160 (dspam-3.4.9.tar.gz) = f4088017e3e5984101bba7d5e5e313d35076d469
Size (dspam-3.4.9.tar.gz) = 701069 bytes
SHA1 (patch-aa) = 15c6fc58dd0d91799f0c97554f4188cbe68dbd96
+SHA1 (patch-ab) = 96c77d23174f51cd8df46a91ff9d8c38cd98d8a7
diff --git a/mail/dspam/patches/patch-ab b/mail/dspam/patches/patch-ab
new file mode 100644
index 00000000000..aabd91ff4a5
--- /dev/null
+++ b/mail/dspam/patches/patch-ab
@@ -0,0 +1,13 @@
+--- src/dspam.c.orig 2005-04-20 10:07:19.000000000 -0400
++++ src/dspam.c 2005-04-28 10:49:13.000000000 -0400
+@@ -3094,6 +3094,10 @@
+ DRIVER_CTX DTX;
+ char *pidfile;
+
++#ifdef __NetBSD__
++ daemon(0, 0);
++#endif
++
+ __daemon_run = 1;
+ __num_threads = 0;
+ __hup = 0;