mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
a1e9b170d0
PR: ports/64085 Submitted by: maintainer
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# New ports collection makefile for: usendmail
|
|
# Date created: 2004-02-19
|
|
# Whom: Thomas Seck <tmseck@netcologne.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# Tunables: QMAIL_DIR: Where qmail resides (default: /var/qmail)
|
|
|
|
PORTNAME= usendmail
|
|
PORTVERSION= 0.1.6
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.ohse.de/uwe/usendmail/
|
|
|
|
MAINTAINER= tmseck@netcologne.de
|
|
COMMENT= A replacement for qmail's sendmail drop-in
|
|
|
|
BUILD_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
|
|
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
|
|
|
|
QMAIL_DIR?= /var/qmail
|
|
|
|
NO_SIZE= yes
|
|
USE_REINPLACE= yes
|
|
WRKSRC= ${WRKDIR}/mail/${DISTNAME}
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
PLIST_FILES= sbin/usendmail
|
|
PORTDOCS= NEWS README
|
|
|
|
do-patch:
|
|
@${REINPLACE_CMD} -e 's,/var/qmail,${QMAIL_DIR},' \
|
|
${WRKSRC}/src/usendmail.c
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ./package/build
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/command/usendmail ${PREFIX}/sbin/
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/src && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
|
|
-e's:%%QMAIL_DIR%%:${QMAIL_DIR}:g' <pkg-message \
|
|
>${PKGMESSAGE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|