1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/mail/usendmail/Makefile
Pav Lucistnik 8aebee472e - pass 'make all' verbatim to the package instead of calling the package's
scripts manually
- define a regression-test target depending on build: that runs the package's
  test script in order to automate regression testing on the ports cluster
- belatedly change QMAIL_DIR to QMAIL_PREFIX in files/pkg-message.in, too

PR:		ports/99426
Submitted by:	Thomas-Martin Seck <tmseck@netcologne.de> (maintainer)
2006-06-26 14:20:16 +00:00

45 lines
985 B
Makefile

# New ports collection makefile for: usendmail
# Date created: 2004-02-19
# Whom: Thomas Seck <tmseck@netcologne.de>
#
# $FreeBSD$
#
PORTNAME= usendmail
PORTVERSION= 0.1.6
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.ohse.de/uwe/usendmail/
MAINTAINER= tmseck@netcologne.de
COMMENT= A replacement for qmail's sendmail drop-in
USE_QMAIL= yes
NO_SIZE= yes
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>