diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2006-07-18 03:08:23 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2006-07-18 03:08:23 +0000 |
commit | b54b2ee69164bbb05ee4cf74a4c4a39bb296cfd0 (patch) | |
tree | a8ce3fa2aafaff2bb6d2f198e7aadc47095a9535 /mail/assp/files/patch-assp.pl | |
parent | - Utilise full Berlios MASTER_SITE list (diff) |
- Update to 1.2.2
- Use new style rc script name (no .sh suffix)
- Add more OPTIONS
PR: ports/100233
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=168112
Diffstat (limited to 'mail/assp/files/patch-assp.pl')
-rw-r--r-- | mail/assp/files/patch-assp.pl | 57 |
1 files changed, 25 insertions, 32 deletions
diff --git a/mail/assp/files/patch-assp.pl b/mail/assp/files/patch-assp.pl index e36d719102fd..d9685c23a202 100644 --- a/mail/assp/files/patch-assp.pl +++ b/mail/assp/files/patch-assp.pl @@ -1,56 +1,49 @@ ---- assp.pl.orig Tue Mar 15 06:41:24 2005 -+++ assp.pl Wed May 18 11:33:35 2005 -@@ -39,7 +39,7 @@ - +--- assp.pl.orig Sun Jun 25 15:35:15 2006 ++++ assp.pl Sun Jun 25 15:43:20 2006 +@@ -67,7 +67,7 @@ loadConfig(); + sub loadConfig { - print "loading config -- base='$base'\n"; + # print "loading config -- base='$base'\n"; @Config=( - [0,0,0,heading,'Network Setup'], + [0,0,0,'heading','Network Setup'], # except for the heading lines, all config lines have the following: -@@ -58,7 +58,7 @@ +@@ -86,7 +86,7 @@ 'The address:port of your message handling system\'s smtp server. For example: 127.0.0.1:125'], - [AsAService,'As a Service',0,checkbox,'','(\S*)',undef, + [AsAService,'As a Service',0,checkbox,0,'(.*)',undef, 'In Windows 2000 / NT you can run it as a service; requires <a href="http://www.roth.net/perl/Daemon/" rel="external">win32::daemon</a>. Requires start from the service control panel.'], -- [AsADaemon,'As a Daemon',0,checkbox,'','(\S*)',undef, -+ [AsADaemon,'As a Daemon',0,checkbox,1,'(\S*)',undef, +- [AsADaemon,'As a Daemon',0,checkbox,0,'(.*)',undef, ++ [AsADaemon,'As a Daemon',0,checkbox,1,'(.*)',undef, 'In Linux/BSD/Unix/OSX fork and close file handles, kinda like "perl assp.pl &" but better. Requires restart.'], - [myName,'My Name',20,textinput,'ASSP-nospam','(\S+)',undef, - 'What the program calls itself in the email "received by" header. Usually ASSP-nospam.'], -@@ -355,7 +355,7 @@ - No mail is delivered! For example: assp-notspam'], - [EmailWhitelist,'Add to Whitelist Address',20,textinput,'assp-white','(.*)',undef, - 'Any mail sent by local/authenticated users to this username will be interpreted as a request to add addresses to the whitelist.<br /> No mail is delivered! For example: assp-white'], -- [EmailFrom,'From Address for Email',20,textinput,'ASSP <>','(.+)',undef, -+ [EmailFrom,'From Address for Email',20,textinput,'ASSP <postmaster@yourdomain.com>','(.+)',undef, + [myName,'My Name',40,textinput,'ASSP.nospam','(\S+)',undef, + 'What the program calls itself in the email "received by" header. Usually ASSP.nospam.'], +@@ -811,7 +811,7 @@ + '<span class="negative"> 0 = no report, 1 = to user, 2 = to TO address, 3 = both</span>'], + [EmailRedlistTo,'To Address for Redlist-Reports',40,textinput,'','(.+)',undef, + 'Email sent from ASSP acknowledging your submissions will be sent to this address. For example: admin@domain.com'], +- [EmailFrom,'From Address for Reports',40,textinput,'<>','(.+)',undef, ++ [EmailFrom,'From Address for Reports',40,textinput,'<postmaster@yourdomain.com>','(.+)',undef, 'Email sent from ASSP acknowledging your submissions will be sent from this address.<br /> Some mailers don\'t like the default setting. For example: ASSP <> or Mail Administrator - <mailadmin@mydomain.com>'], -@@ -423,9 +423,9 @@ - 'ASSP closes and renames the log file after this number of days. Decimals are ok. For example: 14 or 0.5'], + <mailadmin@mydomain.com> +@@ -913,9 +913,9 @@ + '], - [0,0,0,heading,'Security'], + [0,0,0,'heading','Security'], - [runAsUser,'Run as UID',20,textinput,'','(\S*)',undef, + [runAsUser,'Run as UID',20,textinput,'nobody','(\S*)',undef, 'The *nix user name to assume after startup: assp or nobody -- requires ASSP restart.'], - [runAsGroup,'Run as GID',20,textinput,'','(\S*)',undef, + [runAsGroup,'Run as GID',20,textinput,'nobody','(\S*)',undef, 'The *nix group to assume after startup: assp or nogroup -- requires ASSP restart.'], - [ChangeRoot,'Change Root',60,textinput,'','(.*)',undef, + [ChangeRoot,'Change Root',40,textinput,'','(.*)',undef, 'Non-blank means to run in chroot jail in *nix. You need an etc/protocols file to make this work<br /> -@@ -3631,6 +3631,7 @@ - @PossibleOptionFiles=(); - for (@Config) { +@@ -7865,6 +7865,7 @@ + @PossibleOptionFiles2=(); + foreach (@Config) { if($_->[6] eq 'ConfigMakeRe') { + $silent=1 if($AsADaemon); ${$_->[0]}=optionList(${$_->[0]},$_->[0]); push(@PossibleOptionFiles,$_->[0]); } elsif($_->[6] eq 'ConfigCompileRe') { -@@ -4462,4 +4462,4 @@ - dynablock.njabl.org - ); - } --1; -\ No newline at end of file -+1; |