aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qpopper/Makefile
blob: 214ba1a063e27df8a60d12e8a80f4763a9388050 (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
65
66
# New ports collection makefile for:    popper
# Version required:     2.5*
# Date created:     1 April 1995
# Whom:         pst
#
# $FreeBSD$
#

DISTNAME=       qpopper2.53
PKGNAME=        qpopper-2.53
CATEGORIES= mail
MASTER_SITES=   ftp://ftp.qualcomm.com/eudora/servers/unix/popper/
EXTRACT_SUFX=   .tar.Z

MAINTAINER= ache@freebsd.org

# Set POPD_YOUBIN_SUPPORT variable in the environment to enable
# youbin support.
#
# If APOP_ONLY variable present in the environment, popper builds
# with APOP authentification only.
#
# If FULL_POPD_DEBUG variable present in the environment, popper builds
# with more verbose debugging.

O_DEFS=         -DSETPROCTITLE -DKEEP_TEMP_DROP -DBSD44_DBM -DBIND43 \
        -DBULLDB -DNONAUTHFILE='\"/etc/ftpusers\"'

.if !defined(APOP_ONLY)
.if exists(/usr/lib/libskey.a)
P_LIBS=         -lskey
O_DEFS+=        -DSKEY
.endif
.else
O_DEFS+=        -DAPOP_ONLY
.endif

.if defined(POPD_YOUBIN_SUPPORT)
O_DEFS+=        -DYOUBIN -DCALLED_FROM_POPD
.endif

P_LIBS+=        -lmd -lutil

GNU_CONFIGURE=          yes
CONFIGURE_ARGS=         --enable-apop=${PREFIX}/etc/popper/pop.auth \
            --with-apopuid=pop
.if defined(FULL_POPD_DEBUG)
CONFIGURE_ARGS+=        --enable-debugging
.endif
CONFIGURE_ENV=          LIBS="${P_LIBS}" O_DEFS="${O_DEFS}"

MAN8=   popauth.8 popper.8

post-patch:
    $(RM) ${WRKSRC}/md5.h
    $(CP) ${FILESDIR}/sendto.c ${WRKSRC}

do-install:
    cd ${WRKSRC} && \
        ${INSTALL_PROGRAM} -o pop -m 4111 popauth ${PREFIX}/bin
    cd ${WRKSRC} && \
        ${INSTALL_PROGRAM} popper ${PREFIX}/libexec
    cd ${WRKSRC} && \
        ${INSTALL_MAN} ${MAN8} ${PREFIX}/man/man8

.include <bsd.port.mk>