Commit graph

15 commits

Author SHA1 Message Date
Doug Barton
9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00
Dirk Meyer
e99e060d34 - escape shell names 2012-01-14 14:52:13 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Doug Barton
29813d5397 Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""

These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.

In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.

In a few places, add $FreeBSD$

No functional changes, so no PORTREVISION bumps
2011-05-15 02:49:17 +00:00
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Dirk Meyer
eaa578daf7 - use RC_SUBR 2009-01-16 19:54:13 +00:00
Dirk Meyer
eea2bd7c98 - update to 1.2 2005-04-26 17:51:30 +00:00
Dirk Meyer
4a732520f3 - force milter dir as first include path
- fix build with sendmail 8.13 mfapi.h
- switch default to sendmail 8.13
2004-10-12 16:16:19 +00:00
Dirk Meyer
12fc4ace75 - fix Usage 2003-12-04 03:24:09 +00:00
Dirk Meyer
b27d7e16af - use DOCSDIR and EXAMPLESDIR 2003-10-12 10:58:50 +00:00
Dirk Meyer
23214d189f - Fix bogus kill -SIGUSR1 to -USR1 for reload target
- update Usage.
2003-09-26 07:17:47 +00:00
Dirk Meyer
cbc0bb7a96 - add reload target in rc.script 2003-09-25 18:31:25 +00:00
Dirk Meyer
cc0a724bb7 - Update noattach to 1.0beta12
- Make startupscript smarter
2002-03-28 04:43:59 +00:00
Dirk Meyer
cfecb977d8 - Update noattach to 1.0beta11
- syncronize sample startup-scripts

PR:		36005
Submitted by:	oli@amun.isnic.is
2002-03-17 18:00:07 +00:00
Dirk Meyer
a8b5fc19bb Add-Port:
A attatchment filter for Sendmail

There really isn't much to say, noattach is a milter that parses the body
of email messages from sendmail and checks if the filename of attachments
matches one of the regular expressions in a given pattern file and rejects
those emails that match.
Filenames are MIME decoded if needed.

This program needs sendmail version 8.12.1 or newer to be compiled with
libsm and libmilter.

WWW: http://freshmeat.net/projects/noattach/
2002-02-10 06:04:46 +00:00