source: trunk/dports/mail/spambnc/Portfile @ 5616

Last change on this file since 5616 was 5616, checked in by blb, 16 years ago

Submitted by: andrea+darwinports a webcom.it
Port: spambnc
Version: 20040225

Update port mail/spambnc
Use version-specific dist_subdir to avoid checksum errors when the file
(not version-tagged) is updated.

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1# $Id: Portfile,v 1.4 2004/02/26 09:00:14 blb Exp $
2
3PortSystem        1.0
4name              spambnc
5version           20040225
6categories        mail
7description       Set of procmail recipies which handle known/suspected spam
8maintainers       andrea+darwinports@webcom.it
9long_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.
19homepage          http://www.spambouncer.org/
20platforms         darwin
21master_sites      ${homepage} ftp://ftp.spambouncer.org/
22distfiles         sb.tar.gz index.shtml
23checksums         sb.tar.gz md5 d569bd3297af88df3fe2bb18d5d1c716
24depends_run       bin:procmail:procmail
25patchfiles        patch-procmail.rc
26
27dist_subdir       ${portname}-${version}
28worksrcdir        ${portname}
29extract.only      sb.tar.gz
30extract           {
31                  system "mkdir ${workpath}/${portname}"
32                  system "cd ${workpath}/${portname} && \
33                    gzip -dc ${distpath}/sb.tar.gz | tar -xf -"
34                  system "cp ${distpath}/index.shtml ${workpath}/documentation.html"
35}
36configure         {}
37build             {}
38destroot          {
39                  system "cp -pr ${workpath}/${portname} \
40                    ${destroot}${prefix}/share/${portname} "
41                  reinplace "s=%%SBDIR%%=${prefix}/share/${portname}=" \
42                    ${destroot}${prefix}/share/${portname}/procmail.rc
43                  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${portname}
44                  xinstall -m 644 -c ${workpath}/documentation.html \
45                    ${destroot}${prefix}/share/doc/${portname}
46}
Note: See TracBrowser for help on using the repository browser.