aboutsummaryrefslogtreecommitdiffstats
path: root/mail/imap-uw/Makefile
blob: 8135a1dc42eb34f703f5fdff0cb00b7a3b1ac902 (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
# New ports collection makefile for:    imap-uw
# Date created:     9 Jan 1997
# Whom:         pst
#
# $FreeBSD$
#

PORTNAME=   imap
PORTVERSION=    2000c
CATEGORIES= mail
MASTER_SITES=   ftp://ftp.cac.washington.edu/imap/%SUBDIR%/ \
        ftp://ftp.funet.fi/pub/mirrors/ftp.cac.washington.edu/mail/%SUBDIR%/ \
        http://mirror.nucba.ac.jp/mirror/imap/%SUBDIR%/ \
        ftp://ftp.uni-halle.de/pub/mail/pine/%SUBDIR%/
MASTER_SITE_SUBDIR= . old
PKGNAMESUFFIX=  -uw
DISTFILES=  ${DISTNAME}.tar.Z \
        imap-utils.tar.Z

MAINTAINER= petef@databits.net

LIB_DEPENDS=    c-client4.8:${PORTSDIR}/mail/cclient
.if defined(WITH_DRAC)
BUILD_DEPENDS=  ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif

MAN8=       ipopd.8 imapd.8
ALL_TARGET= bsf

.include <bsd.port.pre.mk>

pre-extract:
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
    @${SH} ${PKGINSTALL} foo PRE-INSTALL || ${FALSE}
.endif

post-build:
    @(cd ${WRKDIR}/mlock; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} all)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec
    ${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec
    ${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec
    ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g mail -m 2711 \
        ${WRKDIR}/mlock/mlock ${PREFIX}/libexec
    ${INSTALL_PROGRAM} ${WRKSRC}/mtest/mtest ${PREFIX}/bin/mboxtest
    ${INSTALL_MAN} \
        ${WRKSRC}/src/imapd/imapd.8c ${PREFIX}/man/man8/imapd.8
    ${INSTALL_MAN} \
        ${WRKSRC}/src/ipopd/ipopd.8c ${PREFIX}/man/man8/ipopd.8

.if defined(WITH_DRAC)
post-install:
    @${ECHO} "================================================================================"
    @${ECHO} "To have DRAC working, you must create ${PREFIX}/etc/dracd.host, containing"
    @${ECHO} "the hostname of the DRAC server:"
    @${ECHO}
    @${ECHO} "localhost"
    @${ECHO} "================================================================================"
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>