1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/mail/smtptrapd/Makefile
2006-07-27 17:10:02 +00:00

38 lines
892 B
Makefile

# Ports collection makefile for: smtptrapd
# Date created: 19 March 2005
# Whom: Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= smtptrapd
PORTVERSION= 1.3
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>