aboutsummaryrefslogtreecommitdiffstats
path: root/mail/usendmail/Makefile
blob: dc18812918b0fda0c84a349651296b9a180fe7b6 (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
# Created by: Thomas Seck <tmseck@netcologne.de>
# $FreeBSD$

PORTNAME=   usendmail
PORTVERSION=    0.1.6
PORTREVISION=   2
CATEGORIES= mail
MASTER_SITES=   http://www.ohse.de/uwe/usendmail/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Replacement for qmail's sendmail drop-in

USES=       qmail

BROKEN_aarch64= Fails to build: regparm is not valid on this platform

WRKSRC=     ${WRKDIR}/mail/${DISTNAME}

PLIST_FILES=    sbin/usendmail
PORTDOCS=   NEWS README
SUB_FILES=  pkg-message
SUB_LIST=   QMAIL_PREFIX=${QMAIL_PREFIX}

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's,/var/qmail,${QMAIL_PREFIX},' \
        ${WRKSRC}/src/usendmail.c
    @${REINPLACE_CMD} -e 's,^CC=,CC\?=,' \
        ${WRKSRC}/src/Makefile

do-test:
    cd ${WRKSRC} && ./package/check

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/command/usendmail ${STAGEDIR}${PREFIX}/sbin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/src && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>