aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qpopper/Makefile
blob: 4a43cc305056babc2aad415c4004fa6e7311c78d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# New ports collection makefile for:    qpopper
# Date created:     1 April 1995
# Whom:         pst
#
# $FreeBSD$
#

PORTNAME=   qpopper
PORTVERSION=    3.1.2
PORTREVISION=   1
CATEGORIES= mail ipv6
MASTER_SITES=   ftp://ftp.qualcomm.com/eudora/servers/unix/popper/ \
        ftp://ftp.gmxuk.net/pub/qpopper/ \
        ftp://sunsite.doc.ic.ac.uk/Mirrors/ftp.qualcomm.com/eudora/servers/unix/popper/ \
        ftp://ftp.kracked.com/pub/qpopper/
DISTNAME=   ${PORTNAME}${PORTVERSION}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 400014
PATCH_SITES=    http://www.imasy.or.jp/~ume/ipv6/
PATCHFILES=     qpopper3.1.2-ipv6-20001214.diff.gz
PATCH_DIST_STRIP=       -p1
.endif

MAINTAINER= lioux@FreeBSD.org

GNU_CONFIGURE=  yes
CONFIGURE_ENV=  LIBS="-lmd -lutil" \
        OS_DEFS="-DSETPROCTITLE ${OS_DEFS}"
CONFIGURE_ARGS= --enable-apop=${PREFIX}/etc/qpopper/pop.auth \
        --enable-nonauth-file=/etc/ftpusers \
        --with-apopuid=pop \
        --enable-keep-temp-drop

MAN8=       qpopauth.8 qpopper.8

# If APOP_ONLY variable present in the environment, qpopper builds
# with APOP authentification only.
.if defined(APOP_ONLY)
OS_DEFS+=   -DAPOP_ONLY
.endif

# If FULL_POPD_DEBUG variable present in the environment, qpopper builds
# with more verbose debugging. See also -d option to qpopper
.if defined(FULL_POPD_DEBUG)
CONFIGURE_ARGS+=    --enable-debugging
.endif

post-patch:
    @${RM} -f ${WRKSRC}/popper/md5.h
    @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/man/*

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/popper/popauth ${PREFIX}/bin/qpopauth
    ${INSTALL_PROGRAM} ${WRKSRC}/popper/popper ${PREFIX}/libexec/qpopper
    ${INSTALL_MAN} ${WRKSRC}/man/popauth.8 ${MANPREFIX}/man/man8/qpopauth.8
    ${INSTALL_MAN} ${WRKSRC}/man/popper.8 ${MANPREFIX}/man/man8/qpopper.8
    ${LN} -sf ${PREFIX}/bin/qpopauth ${PREFIX}/bin/qapopauth

post-install:
    @${SED} -e "s:/usr/local:${PREFIX}:g" ${PKGMESSAGE}

.include <bsd.port.post.mk>