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

Last change on this file since 5871 was 5871, checked in by mij, 16 years ago

Chase the libintl library version from the gettext update.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

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