ospam.patch
changeset 1 32f160a66da4
child 32 2eac1b7c3997
equal deleted inserted replaced
0:ad6bd3a91cab 1:32f160a66da4
       
     1 From aad149d8eae95620d3ed9a2bd0cd81c8a01ce79d Mon Sep 17 00:00:00 2001
       
     2 From: Tomas Zeman <tzeman@volny.cz>
       
     3 Date: Sun, 16 Dec 2007 00:18:44 +0100
       
     4 Subject: [PATCH] ospam-0.01-1-i686:
       
     5  *added
       
     6 
       
     7 ---
       
     8  source/custom/ospam/FrugalBuild |   25 ++++++++++++
       
     9  source/custom/ospam/ospam.patch |   82 +++++++++++++++++++++++++++++++++++++++
       
    10  2 files changed, 107 insertions(+), 0 deletions(-)
       
    11  create mode 100644 source/custom/ospam/FrugalBuild
       
    12  create mode 100644 source/custom/ospam/ospam.patch
       
    13 
       
    14 diff --git a/source/custom/ospam/FrugalBuild b/source/custom/ospam/FrugalBuild
       
    15 new file mode 100644
       
    16 index 0000000..d1191b7
       
    17 --- /dev/null
       
    18 +++ b/source/custom/ospam/FrugalBuild
       
    19 @@ -0,0 +1,25 @@
       
    20 +# Maintainer: Tomas Zeman <tzeman@volny.cz>
       
    21 +
       
    22 +pkgname=ospam
       
    23 +pkgver=0.01
       
    24 +pkgrel=1
       
    25 +pkgdesc=""
       
    26 +url="http://omail.omnis.ch/ospam/"
       
    27 +archs=(i686)
       
    28 +up2date="lynx $url?M=D -dump -nolist|grep 'tar.gz'|head -1|sed -e 's/.*$pkgname-\(.*\)\.tar\.gz.*$/\1/'"
       
    29 +depends=('spamassassin' 'clamav' 'conn-tools' 'qmail' 'perl-dbd-mysql' 'mess822')
       
    30 +backup=(etc/ospam/ospam-dotqmail etc/ospam/spamclam)
       
    31 +source=($url/$pkgname-$pkgver.tar.gz spamclam ospam.patch)
       
    32 +sha1sums=('7a47fbdedddc16d8fe04ca400daee00a962408da' \
       
    33 +          'acd24f2b9daa5f15e2e9360050d9ea0bd96c1dbc' \
       
    34 +          '7e8aa8d7d8b9a0ac5e88e5304a0f69d4b267a784')
       
    35 +
       
    36 +build() {
       
    37 +	Fcd
       
    38 +	Fpatchall
       
    39 +	Fmkdir /usr/bin /usr/share/$pkgname /etc/$pkgname
       
    40 +	Finstall 755 $pkgname-$pkgver/ospam-dotqmail.pl /usr/bin/ospam-dotqmail
       
    41 +	Finstall 755 spamclam /usr/bin
       
    42 +	Finstall 644 $pkgname-$pkgver/sql/nospam.sql /usr/share/ospam/dbschema.sql
       
    43 +}
       
    44 +# vim: ft=sh
       
    45 diff --git a/source/custom/ospam/ospam.patch b/source/custom/ospam/ospam.patch
       
    46 new file mode 100644
       
    47 index 0000000..36535a7
       
    48 --- /dev/null
       
    49 +++ b/source/custom/ospam/ospam.patch
       
    50 @@ -0,0 +1,82 @@
       
    51 +diff -u ospam-0.01.orig/ospam-dotqmail.pl ospam-0.01/ospam-dotqmail.pl
       
    52 +--- ospam-0.01.orig/ospam-dotqmail.pl	2003-05-04 04:21:26.000000000 +0200
       
    53 ++++ ospam-0.01/ospam-dotqmail.pl	2007-12-16 00:13:19.000000000 +0100
       
    54 +@@ -32,50 +32,52 @@
       
    55 + 
       
    56 + # SETUP:
       
    57 + 
       
    58 +-my $debug = 1;  
       
    59 ++our $debug = 1;  
       
    60 + 
       
    61 + # emails:
       
    62 + 
       
    63 +-my $debug_bcc_mail = '';  # keep empty after testing
       
    64 +-my $admin_mail = '';  # for error notices
       
    65 +-my $mail_sender = 'oSpam system <ospam@your-domain-here.ext>';
       
    66 ++our $debug_bcc_mail = '';  # keep empty after testing
       
    67 ++our $admin_mail = '';  # for error notices
       
    68 ++our $mail_sender = 'oSpam system <ospam@your-domain-here.ext>';
       
    69 + 
       
    70 + # database:
       
    71 + 
       
    72 +-my $db_username = "nospam";
       
    73 +-my $db_password = "*********";
       
    74 +-my $db_hostname = "localhost";
       
    75 +-my $db_database = "nospam";
       
    76 ++our $db_username = "nospam";
       
    77 ++our $db_password = "*********";
       
    78 ++our $db_hostname = "localhost";
       
    79 ++our $db_database = "nospam";
       
    80 + 
       
    81 +-my $tb_userpref = "userpref";	# SA sql table
       
    82 +-my $tb_dotqmail = "dotqmail";	# ospam data
       
    83 ++our $tb_userpref = "userpref";	# SA sql table
       
    84 ++our $tb_dotqmail = "dotqmail";	# ospam data
       
    85 + 
       
    86 + # file & cmd path:
       
    87 + 
       
    88 +-my $cmd_preline = "/var/qmail/bin/preline";
       
    89 +-my $cmd_spamc = "/usr/bin/spamc";
       
    90 +-my $cmd_vdeliver = "/usr/local/bin/vdeliver";
       
    91 +-my $cmd_filepipe = "/usr/local/nospam/filepipe";
       
    92 +-my $cmd_ifspamh = "/usr/local/nospam/ifspamh";
       
    93 +-my $spamc_options = "-f";
       
    94 +-my $cmd_md5sum = "/usr/bin/md5sum";
       
    95 +-my $cmd_chown = "/bin/chown";
       
    96 +-my $cmd_chmod = "/bin/chmod";
       
    97 +-my $cmd_sendmail = "/usr/sbin/sendmail";
       
    98 +-my $sendmail_opt = "-oem -oi -t";
       
    99 ++our $cmd_preline = "/var/qmail/bin/preline";
       
   100 ++our $cmd_spamc = "/usr/bin/spamc";
       
   101 ++our $cmd_vdeliver = "/usr/local/bin/vdeliver";
       
   102 ++our $cmd_filepipe = "/usr/local/nospam/filepipe";
       
   103 ++our $cmd_ifspamh = "/usr/local/nospam/ifspamh";
       
   104 ++our $spamc_options = "-f";
       
   105 ++our $cmd_md5sum = "/usr/bin/md5sum";
       
   106 ++our $cmd_chown = "/bin/chown";
       
   107 ++our $cmd_chmod = "/bin/chmod";
       
   108 ++our $cmd_sendmail = "/usr/sbin/sendmail";
       
   109 ++our $sendmail_opt = "-oem -oi -t";
       
   110 + 
       
   111 + # qmail setup: 
       
   112 + 
       
   113 +-my $cfg_virtualdomains = "/var/qmail/control/virtualdomains";
       
   114 +-my $cfg_rcpthosts = "/var/qmail/control/rcpthosts";
       
   115 +-my $dot_qmail_prefix = ".qmail-"; 
       
   116 ++our $cfg_virtualdomains = "/var/qmail/control/virtualdomains";
       
   117 ++our $cfg_rcpthosts = "/var/qmail/control/rcpthosts";
       
   118 ++our $dot_qmail_prefix = ".qmail-"; 
       
   119 + 
       
   120 + # internal values
       
   121 + 
       
   122 + my $version = 1; 		# integer
       
   123 + my $internal_version = 1000; 	# incrementing this number will force re-generation of all .qmail-files
       
   124 + 
       
   125 ++my $cfg_file = "/etc/ospam/ospam-dotqmail";
       
   126 + 
       
   127 ++do $cfg_file if (-f $cfg_file);
       
   128 + 
       
   129 + #################################################
       
   130 + 
       
   131 +Only in ospam-0.01: ospam-dotqmail.pl~
       
   132 +Common subdirectories: ospam-0.01.orig/sql and ospam-0.01/sql
       
   133 -- 
       
   134 1.5.3.4
       
   135