| 1 | # $Id$ |
| 2 | |
| 3 | PortSystem 1.0 |
| 4 | name spambnc |
| 5 | version 20040217 |
| 6 | categories mail |
| 7 | description Set of procmail recipies which handle known/suspected spam |
| 8 | maintainers andrea+darwinports@webcom.it |
| 9 | long_description The Spam Bouncer is a set of procmail recipes, or instructions, which \ |
| 10 | search the headers and text of your incoming email to see if it meets \ |
| 11 | one or more of several categories (known addresses, rogue ISPs, bulk \ |
| 12 | mail software etc etc). \ |
| 13 | \ |
| 14 | The Spam Bouncer sorts suspected spam into two categories -- mail from \ |
| 15 | known spam sources which is definitely spam, and other mail which is \ |
| 16 | probably spam, but might also be legitimate. It then tags this email \ |
| 17 | with appropriate headers giving the spam classification, and responds \ |
| 18 | according to the parameters you have set. |
| 19 | homepage http://www.spambouncer.org/ |
| 20 | platforms darwin |
| 21 | master_sites ${homepage} ftp://ftp.spambouncer.org/ |
| 22 | distfiles sb.tar.gz index.shtml |
| 23 | checksums sb.tar.gz md5 203c1a4183510ee86a48f877a25e12f6 \ |
| 24 | index.shtml md5 d1c9d200dfa0bc3c0bbe4afed7b6bf67 |
| 25 | patchfiles patch-procmail.rc |
| 26 | |
| 27 | worksrcdir ${portname} |
| 28 | extract.only sb.tar.gz |
| 29 | extract { |
| 30 | system "mkdir ${workpath}/${portname}" |
| 31 | system "cd ${workpath}/${portname} && \ |
| 32 | gzip -dc ${distpath}/sb.tar.gz | tar -xf -" |
| 33 | system "cp ${distpath}/index.shtml ${workpath}/documentation.html" |
| 34 | } |
| 35 | configure {} |
| 36 | build {} |
| 37 | destroot { |
| 38 | system "cp -pr ${workpath}/${portname} \ |
| 39 | ${destroot}${prefix}/share/${portname} " |
| 40 | reinplace "s=%%SBDIR%%=${prefix}/share/${portname}=" \ |
| 41 | ${destroot}${prefix}/share/${portname}/procmail.rc |
| 42 | xinstall -m 755 -d ${destroot}${prefix}/doc/${portname} |
| 43 | xinstall -m 644 -c ${workpath}/documentation.html \ |
| 44 | ${destroot}${prefix}/doc/${portname} |
| 45 | } |