FreeBSD Bugzilla – Attachment 106017 Details for
Bug 146571
[patch] mail/spamd -- let obspamlogd manage its own pflog i/f
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
spamd.diff
spamd.diff (text/plain), 1.41 KB, created by
Matthew Seaman
on 2010-05-14 09:50:02 UTC
(
hide
)
Description:
spamd.diff
Filename:
MIME Type:
Creator:
Matthew Seaman
Created:
2010-05-14 09:50:02 UTC
Size:
1.41 KB
patch
obsolete
>? work >Index: files/obspamlogd.in >=================================================================== >RCS file: /home/ncvs/ports/mail/spamd/files/obspamlogd.in,v >retrieving revision 1.4 >diff -u -u -r1.4 obspamlogd.in >--- files/obspamlogd.in 27 Mar 2010 00:13:25 -0000 1.4 >+++ files/obspamlogd.in 14 May 2010 08:20:57 -0000 >@@ -15,6 +15,7 @@ > # > # obspamlogd_enable="YES" # Run the spamlogd(8) daemon (YES/NO). > # obspamlogd_flags="" # Extra flags for spamlogd(8) (if enabled). >+# obspamlogd_pflog_if="" # pflog Interface for spamlogd(8) to monitor > # > # DO NOT CHANGE THESE DEFAULT VALUES HERE > # >@@ -32,6 +33,20 @@ > > obspamlogd_precmd() > { >+ if [ -n ${obspamlogd_pflog_if} ]; then >+ # Configure i/f explicitly >+ load_kld pflog || { >+ warn "Unable to kldload pflog module" >+ return 1 >+ } >+ >+ if ! ifconfig ${obspamlogd_pflog_if} create up; then >+ warn "could not bring up ${obspamlogd_pflog_if}" >+ return 1 >+ fi >+ >+ rc_flags="${rc_flags} -l ${obspamlogd_pflog_if}" >+ fi > _rc=0 > /sbin/mount -p | grep 'fdescfs.*/dev/fd.*fdescfs.*rw' 2>&1 > /dev/null > _rc=${?} >@@ -48,6 +63,9 @@ > > obspamlogd_cleanup() > { >+ if [ -n ${obspamlogd_pflog_if} ]; then >+ ifconfig ${obspamlogd_pflog_if} destroy >+ fi > /bin/rm -f ${pidfile} > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 146571
: 106017