diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2010-05-13 23:21:07 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-16 22:24:33 -0500 |
commit | 58d3760cc703f1527a213560cc71b97cd31f4521 (patch) | |
tree | d498dd0f34921edbf92d8ba0d0461a73b1637860 /network/policyd2/patches | |
parent | c300db04940ef5b0e82bf05f7f2f84ce26720fd4 (diff) |
network/policyd2: Added (policy server for MTAs).
Diffstat (limited to 'network/policyd2/patches')
-rw-r--r-- | network/policyd2/patches/cbpadmin.patch | 20 | ||||
-rw-r--r-- | network/policyd2/patches/cbpolicyd.patch | 28 | ||||
-rw-r--r-- | network/policyd2/patches/httpd_policyd2_conf.patch | 14 | ||||
-rw-r--r-- | network/policyd2/patches/policyd2_config.patch | 26 |
4 files changed, 88 insertions, 0 deletions
diff --git a/network/policyd2/patches/cbpadmin.patch b/network/policyd2/patches/cbpadmin.patch new file mode 100644 index 0000000000000..bcc8ede9a98bf --- /dev/null +++ b/network/policyd2/patches/cbpadmin.patch @@ -0,0 +1,20 @@ +--- cbpadmin.orig 2010-01-02 10:38:04.625362848 -0600 ++++ cbpadmin 2010-01-02 10:42:26.850146337 -0600 +@@ -22,7 +22,7 @@ + use warnings; + + +-use lib('/usr/local/lib/policyd-2.0','/usr/lib/policyd-2.0'); ++use lib('/usr/lib/policyd-2.0','/usr/lib64/policyd-2.0'); + + use Config::IniFiles; + use Getopt::Long; +@@ -52,7 +52,7 @@ + + # Set defaults + my $cfg; +-$cfg->{'config_file'} = "/etc/cluebringer.conf"; ++$cfg->{'config_file'} = "/etc/policyd2.conf"; + + # Check if we must override + if (defined($opts{'config'}) && $opts{'config'} ne "") { diff --git a/network/policyd2/patches/cbpolicyd.patch b/network/policyd2/patches/cbpolicyd.patch new file mode 100644 index 0000000000000..4a6efc4d18041 --- /dev/null +++ b/network/policyd2/patches/cbpolicyd.patch @@ -0,0 +1,28 @@ +--- cbpolicyd.orig 2010-01-02 10:38:11.820144965 -0600 ++++ cbpolicyd 2010-01-02 10:41:45.097397504 -0600 +@@ -22,7 +22,7 @@ + use strict; + use warnings; + +-use lib('/usr/local/lib/policyd-2.0','/usr/lib/policyd-2.0'); ++use lib('/usr/lib/policyd-2.0','/usr/lib64/policyd-2.0'); + + package cbp; + +@@ -53,13 +53,13 @@ + + + # Set defaults +- $cfg->{'config_file'} = "/etc/cluebringer.conf"; ++ $cfg->{'config_file'} = "/etc/policyd2.conf"; + + $server->{'timeout'} = 120; + $server->{'background'} = "yes"; +- $server->{'pid_file'} = "/var/run/cbpolicyd.pid"; ++ $server->{'pid_file'} = "/var/run/policyd2.pid"; + $server->{'log_level'} = 2; +- $server->{'log_file'} = "/var/log/cbpolicyd.log"; ++ $server->{'log_file'} = "/var/log/policyd2.log"; + + $server->{'host'} = "*"; + $server->{'port'} = 10031; diff --git a/network/policyd2/patches/httpd_policyd2_conf.patch b/network/policyd2/patches/httpd_policyd2_conf.patch new file mode 100644 index 0000000000000..d1f539d60ec32 --- /dev/null +++ b/network/policyd2/patches/httpd_policyd2_conf.patch @@ -0,0 +1,14 @@ +--- httpd-policyd2.conf.orig 2009-01-06 00:53:09.000000000 -0600 ++++ httpd-policyd2.conf.new 2009-12-25 15:25:50.593040339 -0600 +@@ -8,9 +8,9 @@ + # as well as the authors' long time involvement in large scale mail + # hosting industry. + +-Alias /cluebringer /usr/share/cluebringer/webui ++Alias /policyd2 @DOCROOT@/policyd2-webui + +-<Directory /usr/share/cluebringer/webui> ++<Directory @DOCROOT@/policyd2-webui> + # Comment out the following 3 lines to make web ui accessible from anywhere + Order Deny,Allow + Deny from all diff --git a/network/policyd2/patches/policyd2_config.patch b/network/policyd2/patches/policyd2_config.patch new file mode 100644 index 0000000000000..e5750fa669f3f --- /dev/null +++ b/network/policyd2/patches/policyd2_config.patch @@ -0,0 +1,26 @@ +--- policyd2.conf.orig 2010-01-02 11:12:18.047653694 -0600 ++++ policyd2.conf.new 2010-01-02 11:13:16.250398479 -0600 +@@ -20,11 +20,11 @@ + EOT + + # User to run this daemon as +-#user= +-#group= ++user=policyd ++group=policyd + + # Filename to store pid of parent process +-#pid_file=/var/run/cbpolicyd.pid ++pid_file=/var/run/policyd2.pid + + # Uncommenting the below option will prevent cbpolicyd going into the background + #background=no +@@ -60,7 +60,7 @@ + #log_level=2 + + # File to log to instead of stdout +-#log_file=/var/log/cbpolicyd.log ++log_file=/var/log/policyd2.log + + # Log destination for mail logs... + # main - Default. Log to policyd's main log mechanism, accepts NO args |