freebsd-ports/mail/bsmtp/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

65 lines
1.8 KiB
Makefile

# $FreeBSD$
PORTNAME= bsmtp
PORTVERSION= 1.02
PORTREVISION= 5
CATEGORIES= mail
MASTER_SITES= LOCAL/naddy
MAINTAINER= naddy@FreeBSD.org
COMMENT= Batch SMTP support for sendmail, incoming and outgoing
RUN_DEPENDS= ${LOCALBASE}/bin/uux:${PORTSDIR}/net/freebsd-uucp
CONFLICTS= smail-3.*
USES= shebangfix perl5
WRKSRC= ${WRKDIR}/${PORTNAME}
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --redo
SHEBANG_FILES= configure
post-patch:
@${CP} ${WRKSRC}/bsmtp.m4.8.9.in ${WRKSRC}/bsmtp.m4.8.10.in
@${CP} ${FILESDIR}/bsmtp.m4.8.11.in ${WRKSRC}/
.for v in 12 13 14
@${CP} ${FILESDIR}/bsmtp.m4.8.12.in ${WRKSRC}/bsmtp.m4.8.$v.in
.endfor
pre-configure:
@${SED} <${FILESDIR}/config.sed >${WRKSRC}/config.sed \
-e 's:%%CC%%:${CC}:' \
-e 's:%%CFLAGS%%:${CFLAGS}:' \
-e 's:%%PERL%%:${PERL}:' \
-e 's:%%PREFIX%%:${PREFIX}:' \
-e 's:%%LOCALBASE%%:${LOCALBASE}:'
privbin= ${STAGEDIR}${PREFIX}/libexec/bsmtp
pubbin= ${STAGEDIR}${PREFIX}/bin
mailerdir= ${STAGEDIR}${PREFIX}/share/sendmail
do-install:
${MKDIR} ${privbin}
${MKDIR} ${mailerdir}
${INSTALL_PROGRAM} ${WRKSRC}/batcher.new ${privbin}/batcher
${INSTALL_PROGRAM} ${WRKSRC}/bsmtp ${privbin}
${INSTALL_DATA} ${WRKSRC}/bsmtp.m4.8.14 ${mailerdir}/bsmtp.m4
${INSTALL_SCRIPT} ${WRKSRC}/rcsmtp ${pubbin}
.for i in cbsmtp crsmtp rgsmtp
${LN} -s rcsmtp ${pubbin}/$i
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/rsmtp.wrapper ${pubbin}/rsmtp
${INSTALL_SCRIPT} ${WRKSRC}/rsmtp ${privbin}
.for i in bsmtp
${LN} -s rsmtp ${pubbin}/$i
.endfor
.for i in c-cbsmtp c-rcsmtp g-rcsmtp g-rgsmtp n-rsmtp
${INSTALL_SCRIPT} ${WRKSRC}/transmitter.$i ${privbin}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/_bqueue ${pubbin}
${INSTALL_SCRIPT} ${WRKSRC}/bqueue ${pubbin}
# post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>