aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dbmail/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-16 18:27:25 +0800
committermiwi <miwi@FreeBSD.org>2006-12-16 18:27:25 +0800
commita120a5db6087be2fd493c364647a834ebd4bd5ab (patch)
treef7c8671f18c1560501cb09bf46eb7963673b3632 /mail/dbmail/files
parent13cb6021aafebb2ac15a9c4462a018177d18f799 (diff)
downloadfreebsd-ports-gnome-a120a5db6087be2fd493c364647a834ebd4bd5ab.tar.gz
freebsd-ports-gnome-a120a5db6087be2fd493c364647a834ebd4bd5ab.tar.zst
freebsd-ports-gnome-a120a5db6087be2fd493c364647a834ebd4bd5ab.zip
- Adds dbmail-timsieved.sh
- Adds workaround for installations after some previous revision which didn't deinstall completely - Adds fix for bug #461 from dbmail bugtracker PR: ports/106760 Submitted by: Mark Starovoytov <mark_sf@kikg.ifmo.ru> (maintainer)
Diffstat (limited to 'mail/dbmail/files')
-rw-r--r--mail/dbmail/files/dbmail-timsieved.sh.in32
-rw-r--r--mail/dbmail/files/patch-2.2.1_001_46131
2 files changed, 63 insertions, 0 deletions
diff --git a/mail/dbmail/files/dbmail-timsieved.sh.in b/mail/dbmail/files/dbmail-timsieved.sh.in
new file mode 100644
index 000000000000..26b5888cba6d
--- /dev/null
+++ b/mail/dbmail/files/dbmail-timsieved.sh.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: dbmail-timsieved
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable dbmail-timsieved:
+#
+#dbmail_timsieved_enable="YES"
+#
+# See dbmail-timsieved(8) for flags
+#
+
+. %%RC_SUBR%%
+
+name=dbmail_timsieved
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/dbmail-timsieved
+pidfile=/var/run/dbmail-timsieved.pid
+required_files=%%PREFIX%%/etc/dbmail.conf
+
+# read settings, set default values
+load_rc_config "$name"
+: ${dbmail_timsieved_enable="NO"}
+: ${dbmail_timsieved_flags=""}
+
+run_rc_command "$1"
diff --git a/mail/dbmail/files/patch-2.2.1_001_461 b/mail/dbmail/files/patch-2.2.1_001_461
new file mode 100644
index 000000000000..972841a08572
--- /dev/null
+++ b/mail/dbmail/files/patch-2.2.1_001_461
@@ -0,0 +1,31 @@
+Index: misc.c
+===================================================================
+--- misc.c (revision 2388)
++++ misc.c (revision 2390)
+@@ -2112,8 +2112,14 @@
+ char prev,next=0;
+ unsigned incode=0, inquote=0;
+ size_t i, l;
+- GString *s = g_string_new("");
++ GString *s;
++
++ if (!a)
++ return g_strdup("");
++ if (!a[0])
++ return g_strdup("");
+
++ s = g_string_new("");
+ t = g_strdup(a);
+ inptr = t;
+ inptr = g_strstrip(inptr);
+@@ -2130,9 +2136,8 @@
+ }
+
+ l = strlen(inptr);
++ for (i = 0; i < l - 1; i++) {
+
+- for (i=0; i<l-1; i++) {
+-
+ next=inptr[i+1];
+
+ if (inptr[i] == '<')