1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/mail/usendmail/Makefile
Bryan Drewery 63f96859ce - Convert USE_QMAIL_RUN, USE_QMAIL_BUILD and WANT_QMAIL into USES feature
bapt contributed to the qmail.mk as well
- Trim headers

USES= qmail:run will add qmail into RUN_DEPENDS
USES= qmail:build will add qmail into BUILD_DEPENDS
USES= qmail[:both] will add qmail into both RUN and BUILD DEPENDS
USES= qmail:vars will set QMAIL_PREFIX

With hat:	portmgr
2013-03-15 22:03:42 +00:00

40 lines
893 B
Makefile

# 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= tmseck@FreeBSD.org
COMMENT= A replacement for qmail's sendmail drop-in
USES= qmail
WRKSRC= ${WRKDIR}/mail/${DISTNAME}
PLIST_FILES= sbin/usendmail
PORTDOCS= NEWS README
SUB_FILES= pkg-message
SUB_LIST= QMAIL_PREFIX=${QMAIL_PREFIX}
post-patch:
@${REINPLACE_CMD} -e 's,/var/qmail,${QMAIL_PREFIX},' \
${WRKSRC}/src/usendmail.c
@${REINPLACE_CMD} -e 's,^CC=,CC\?=,' \
${WRKSRC}/src/Makefile
regression-test: build
cd ${WRKSRC} && ./package/check
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/command/usendmail ${PREFIX}/sbin/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/src && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>