blob: 6d59b4a34c4689384828de79129bc6104636df4d (
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
|
# $NetBSD: Makefile,v 1.22 2004/04/10 14:15:24 schmonz Exp $
#
DISTNAME= qmail-1.03
PKGREVISION= 5
CATEGORIES= mail
MASTER_SITES= http://cr.yp.to/software/ \
ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \
ftp://ftp.jp.qmail.org/qmail/ \
ftp://ftp.net.ohio-state.edu/pub/networking/mail/qmail/
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://www.qmail.org/
COMMENT= Secure, reliable, efficient, simple, and fast MTA for UNIX systems
DEPENDS+= qmail-users>=1.0:../../mail/qmail-users
DEPENDS+= ucspi-tcp-[0-9]*:../../net/ucspi-tcp
ALL_TARGET= it man
INSTALL_TARGET= setup check
RESTRICTED= "djb does not permit modified binary packages"
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_PACKAGE= "needs work to function properly as a binary package"
USE_PKGINSTALL= yes
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
OWN_DIRS+= ${QMAILDIR}
EVAL_PREFIX+= LOCALBASE_UCSPI_TCP=ucspi-tcp
FILES_SUBST+= QMAILDIR=${QMAILDIR}
FILES_SUBST+= LOCALBASE_UCSPI_TCP=${LOCALBASE_UCSPI_TCP}
RCD_SCRIPTS= qmail qmailsmtpd
RCD_SCRIPTS_EXAMPLEDIR= ${QMAILDIR}/etc/rc.d
.include "../../mk/bsd.prefs.mk"
NO_MTREE= YES
LOCALBASE= /
do-configure:
${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
${ECHO} ${CC} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
${ECHO} ${QMAILDIR} > ${WRKSRC}/conf-qmail
pre-install:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf \
> ${WRKDIR}/mailer.conf.qmail
post-install:
${INSTALL_DATA_DIR} ${QMAILDIR}/etc
${INSTALL_DATA} ${WRKDIR}/mailer.conf.qmail ${QMAILDIR}/etc
${INSTALL_DATA_DIR} ${QMAILDIR}/alias
cd ${QMAILDIR}/alias && \
${TOUCH} .qmail-postmaster .qmail-mailer-daemon .qmail-root
.include "../../mk/bsd.pkg.mk"
|