pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/spamass-milter Do the same for the rc.subr case v...
details: https://anonhg.NetBSD.org/pkgsrc/rev/828939a56a4a
branches: trunk
changeset: 498476:828939a56a4a
user: tv <tv%pkgsrc.org@localhost>
date: Tue Aug 23 13:46:37 2005 +0000
description:
Do the same for the rc.subr case via a backflip hack to munge command_args.
Noted in private e-mail.
diffstat:
mail/spamass-milter/Makefile | 4 ++--
mail/spamass-milter/files/spamass-milter.sh | 9 ++++++++-
2 files changed, 10 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r 7e2d50e90d32 -r 828939a56a4a mail/spamass-milter/Makefile
--- a/mail/spamass-milter/Makefile Tue Aug 23 13:40:02 2005 +0000
+++ b/mail/spamass-milter/Makefile Tue Aug 23 13:46:37 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2005/08/23 13:40:02 tv Exp $
+# $NetBSD: Makefile,v 1.19 2005/08/23 13:46:37 tv Exp $
#
DISTNAME= spamass-milter-0.3.0
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://savannah.nongnu.org/download/spamass-milt/
diff -r 7e2d50e90d32 -r 828939a56a4a mail/spamass-milter/files/spamass-milter.sh
--- a/mail/spamass-milter/files/spamass-milter.sh Tue Aug 23 13:40:02 2005 +0000
+++ b/mail/spamass-milter/files/spamass-milter.sh Tue Aug 23 13:46:37 2005 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: spamass-milter.sh,v 1.2 2005/08/23 13:40:02 tv Exp $
+# $NetBSD: spamass-milter.sh,v 1.3 2005/08/23 13:46:37 tv Exp $
#
# PROVIDE: spamass-milter
@@ -18,6 +18,13 @@
if [ -f /etc/rc.subr ]; then
load_rc_config $name
+
+ # hack: put ${spamass_milter_flags} last in args,
+ # so that "-- ..." spamc flags can be added to the end
+ #
+ command_args="${command_args} ${spamass_milter_flags}"
+ spamass_milter_flags=
+
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
Home |
Main Index |
Thread Index |
Old Index