source: trunk/dports/mail/fetchmail/Portfile @ 3778

Last change on this file since 3778 was 3778, checked in by rshaw, 16 years ago

updated to version 6.2.5.
updated to honor porthier.7 for man pages location.
fixed to properly build on Panther (and Jaguar).

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1# $Id: Portfile,v 1.3 2003/10/24 03:15:48 rshaw Exp $
2PortSystem 1.0
3name            fetchmail
4version         6.2.5
5categories      mail
6maintainers     rshaw@opendarwin.org
7description     Batch mail retrieval utility for IMAP, POP2, POP3, \
8                APOP, KPOP, ETRN, or ODMR
9long_description        Fetchmail is a full-featured IMAP, POP2, POP3, \
10                        APOP, KPOP, ETRN, ODMR client with easy \
11                        configuration, daemon mode, forwarding via SMTP \
12                        or local MDA, and superior reply handling.  It \
13                        is used to handle intermittent email connections \
14                        by acting as a coupling that seamlessly batch \
15                        forwards fetched mail from your mail server to \
16                        your local delivery system, allowing you to read \
17                        your it with your favourite mail user agent. \
18                        Fetchmail also includes useful spam filtering \
19                        and multi-user functions.  \
20                        A typical use of fetchmail is to connect to your \
21                        ISP's POP3 server, downloading your mail into \
22                        the INBOX on your local computer.  You may then \
23                        read the mail, offline if you want, using Pine, \
24                        mutt, or any standard mail user agent.   \
25                        Fetchmail is the lineal descendant of and \
26                        replacement for the old popclient program.
27homepage        http://www.catb.org/~esr/fetchmail/
28master_sites    http://www.catb.org/~esr/fetchmail/ \
29                ftp://ftp.ccil.org/pub/esr/fetchmail/
30checksums       md5 9956b30139edaa4f5f77c4d0dbd80225
31platforms       darwin
32depends_lib     lib:libintl.1:gettext
33depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
34
35patch           { cd ${worksrcpath}
36                  reinplace "s|lock_release|fm_lock_release|g" fetchmail.c
37                  reinplace "s|lock_release|fm_lock_release|g" fetchmail.h
38                  reinplace "s|lock_release|fm_lock_release|g" lock.c }
39
40pre-configure   { cd ${worksrcpath}
41                  reinplace "s|@l@||g" intl/Makefile.in
42                  reinplace "s|@GT_NO@||g" intl/Makefile.in
43                  reinplace "s|@GT_YES@|#|g" intl/Makefile.in }
44
45configure.env   CFLAGS=-I${prefix}/include
46configure.args  --mandir=${prefix}/share/man \
47                --without-ssl --disable-inet6
48
49post-configure  { cd ${worksrcpath}
50                  reinplace "s|^#define HAVE_ARPA_NAMESER_H.*$|&\\\n#define BIND_8_COMPAT 1|" config.h }
51
52variant ssl     { depends_lib-append    lib:libssl.0.9:openssl
53                  configure.args-delete --without-ssl
54                  configure.args-append --with-ssl }
55
56variant ipv6    { configure.args-delete --disable-inet6
57                  configure.args-append --enable-inet6 }
58
59post-build      { file copy -force ${portpath}/files/fetchmail.sh ${worksrcpath}/
60                  reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/fetchmail.sh }
61
62post-destroot   { system "install -m 755 -d ${destroot}${prefix}/etc/rc.d"
63                  system "install -m 755 -c ${worksrcpath}/fetchmail.sh ${destroot}${prefix}/etc/rc.d/" }
64
Note: See TracBrowser for help on using the repository browser.