blob: 4bbbed0ed94b17f5131836cce7530ca4c5363b4e (
plain)
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
|
# $NetBSD: Makefile,v 1.17 2000/12/13 21:26:53 tron Exp $
DISTNAME= imap-2000a
PKGNAME= imap-uw-2000a
CATEGORIES= mail
MASTER_SITES= ftp://ftp.cac.washington.edu/imap/
EXTRACT_SUFX= .tar.Z
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://www.washington.edu/imap/
USE_LIBTOOL= # defined
MESSAGE_FILE= ${WRKDIR}/MESSAGE
INST_PROG= ${LIBTOOL} ${INSTALL_PROGRAM}
INST_LIB= ${LIBTOOL} ${INSTALL_DATA}
DOC_DIR= ${PREFIX}/share/doc/imap-uw
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
BUILDNAME= gso
.else
BUILDNAME= neb
.endif
do-configure:
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
< ${WRKSRC}/src/imapd/imapd.8c > ${WRKDIR}/imapd.8
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
< ${WRKSRC}/src/ipopd/ipopd.8c > ${WRKDIR}/ipopd.8
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
< ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
do-build:
cd ${WRKSRC} && ${MAKE} ${BUILDNAME} PREFIX=${PREFIX} CC="${LIBTOOL} ${CC} -g"
do-install:
${INST_LIB} ${WRKSRC}/c-client/libimapuw.la ${PREFIX}/lib
${INST_PROG} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec
${INST_PROG} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec
${INST_PROG} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec
${INST_PROG} ${WRKSRC}/mtest/mtest ${PREFIX}/sbin
${LN} -sf ${PREFIX}/libexec/imapd ${PREFIX}/sbin/rimapd
${INSTALL_MAN} ${WRKDIR}/imapd.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKDIR}/ipopd.8 ${PREFIX}/man/man8
${LN} -sf ipopd.8 ${PREFIX}/man/man8/ipop2d.8
${LN} -sf ipopd.8 ${PREFIX}/man/man8/ipop3d.8
${INSTALL_DATA_DIR} ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/docs/RELNOTES ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOC_DIR}
${INSTALL_DATA_DIR} ${PREFIX}/include/c-client
for i in linkage.h mail.h rfc822.h misc.h imap4r1.h osdep.h smtp.h \
nntp.h env_unix.h fs.h ftl.h nl.h tcp.h env.h linkage.c; \
do \
${INSTALL_DATA} ${WRKSRC}/c-client/$$i \
${PREFIX}/include/c-client ; \
done
.include "../../mk/bsd.pkg.mk"
|