aboutsummaryrefslogtreecommitdiffstats
path: root/mail/smtptrapd/Makefile
blob: 269e0ab0173b41c03032e27d389b2a27dd98aa14 (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
# Ports collection makefile for:    smtptrapd
# Date created:             19 March 2005
# Whom:                 Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   smtptrapd
PORTVERSION=    1.2
CATEGORIES= mail
MASTER_SITES=   http://smtptrapd.inodes.org/

MAINTAINER= anders@FreeBSD.org
COMMENT=    RFC 2821 compliant SMTP service that always returns a 4xx soft error

USE_RC_SUBR=    smtptrapd.sh

PLIST_FILES=    bin/smtptrapd

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
LIB_DEPENDS+=   lthread.2:${PORTSDIR}/devel/linuxthreads

CFLAGS+=    ${PTHREAD_CFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include/pthread/linuxthreads -llthread -llgcc_r
.else
CFLAGS+=    ${PTHREAD_CFLAGS} ${PTHREAD_LIBS}
.endif

do-build:
    (cd ${WRKSRC} && ${CC} ${CFLAGS} -o smtptrapd smtptrapd.c)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/smtptrapd ${PREFIX}/bin/
    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.post.mk>