aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmail-dk/Makefile
blob: b150be618bf3eff8661b5d615a74388f1160b6b3 (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
# $FreeBSD$

PORTNAME=   dk
PORTVERSION=    0.54
PORTREVISION=   1
CATEGORIES= mail
MASTER_SITES=   ${MASTER_SITE_QMAIL}
PKGNAMEPREFIX=  qmail-
DISTFILES=  qmail-1.03.tar.gz
DIST_SUBDIR=    qmail

MAINTAINER= bdrewery@FreeBSD.org
COMMENT=    DomainKeys implementation for qmail

LIB_DEPENDS+=   domainkeys:${PORTSDIR}/mail/libdomainkeys

PATCH_SITES=    ${MASTER_SITE_QMAIL}
PATCHFILES= qmail-1.03-dk-0.54.patch

USES=       qmail

PREFIX?=    ${QMAIL_PREFIX}

WRKSRC=     ${WRKDIR}/qmail-1.03
PLIST_FILES=    bin/qmail-dk \
        man/man8/qmail-dk.8.gz
ALL_TARGET= qmail-dk qmail-dk.8
CFLAGS+=    -I${LOCALBASE}/include

OPTIONS_DEFINE= SMTP_AUTH
OPTIONS_DEFAULT=SMTP_AUTH

SMTP_AUTH_DESC= Support SMTP_AUTH

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSMTP_AUTH}
PATCH_SITES+=   http://jeremy.kister.net/code/:auth
PATCHFILES+=    qmail-dk-0.54-auth.patch:auth
.endif

do-configure:
    @${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
    @${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-qmail

post-patch:
    @${REINPLACE_CMD} -e 's,"../domainkeys.h",<domainkeys.h>,' \
        ${WRKSRC}/qmail-dk.c
    @${REINPLACE_CMD} -e 's,../libdomainkeys.a,${LOCALBASE}/lib/libdomainkeys.a,g' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -E 's|( *c\(auto.*")qmail-smtpd(".*)$$|\1qmail-smtpd\2\1qmail-dk\2|' \
        ${WRKSRC}/hier.c
    @${REINPLACE_CMD} 's!/var/qmail!${PREFIX}!; \
               s!/usr/local/!${LOCALBASE}/!' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} 's!nofiles!qnofiles!g' \
        ${WRKSRC}/conf-groups

do-install:
    ${INSTALL} -o qmailq -m 4711 ${WRKSRC}/qmail-dk ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/qmail-dk.8 ${STAGEDIR}${MAN8PREFIX}/man/man8

.include <bsd.port.mk>
/commit/x11-wm/bbconf?h=gstreamer&id=da880765886f48c0ac8fd253e5601d04ea853215'>Conversion to a single libtool environment.ade2006-02-231-1/+6 * - Add SHA256pav2005-11-261-0/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * At Kris's request, back out the MACHINE_ARCH spelling correction untilobrien2005-04-121-1/+1 * Assist getting more ports working on AMD64 by obeying theobrien2005-04-111-1/+1 * Update to version 1.10krion2004-08-115-72/+24 * Reset maintainer. Much thanks to Stijn for maintaining the ports so far!vs2004-08-101-1/+1 * Apply a big libtool patch to allow porters to use the libtool installed bymarcus2004-07-101-1/+1 * Add size data, approved by maintainers.trevor2004-03-191-0/+1 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * Define USE_PERL5_BUILD, not erroneous USE_PERL.trevor2003-11-201-1/+1 * Define USE_PERL to make Perl available for (mostly deprecated)trevor2003-11-201-0/+1 * Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.trevor2003-11-131-2/+2 * De-pkg-comment.knu2003-02-212-1/+1 * Fix MASTER_SITESlioux2002-09-241-1/+2