aboutsummaryrefslogtreecommitdiff
path: root/mail/bsmtp/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-25 13:59:50 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-25 13:59:50 +0000
commitd7663243e295b7b541cb8367bc549f0deee628f0 (patch)
treed3af05a6e78f06481cb9d8200384e0e676b3e2d5 /mail/bsmtp/Makefile
parentb37feffa8ae329df1ea59342e220bf835cab3289 (diff)
downloadports-d7663243e295b7b541cb8367bc549f0deee628f0.tar.gz
ports-d7663243e295b7b541cb8367bc549f0deee628f0.zip
- Add license
- Style nits - Switch to options helpers - Modernize plist - Drop @dirrm's PR: 205571 Submitted by: amdmi3 Approved by: naddy (maintainer)
Notes
Notes: svn path=/head/; revision=404421
Diffstat (limited to 'mail/bsmtp/Makefile')
-rw-r--r--mail/bsmtp/Makefile45
1 files changed, 26 insertions, 19 deletions
diff --git a/mail/bsmtp/Makefile b/mail/bsmtp/Makefile
index 4a52412cab2b..f7f26eaab093 100644
--- a/mail/bsmtp/Makefile
+++ b/mail/bsmtp/Makefile
@@ -9,6 +9,9 @@ MASTER_SITES= LOCAL/naddy
MAINTAINER= naddy@FreeBSD.org
COMMENT= Batch SMTP support for sendmail, incoming and outgoing
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYING
+
RUN_DEPENDS= ${LOCALBASE}/bin/uux:${PORTSDIR}/net/freebsd-uucp
CONFLICTS= smail-3.*
@@ -19,6 +22,12 @@ HAS_CONFIGURE= yes
CONFIGURE_ARGS= --redo
SHEBANG_FILES= configure
+PRIVBIN= ${STAGEDIR}${PREFIX}/libexec/bsmtp
+PUBBIN= ${STAGEDIR}${PREFIX}/bin
+MAILERDIR= ${STAGEDIR}${PREFIX}/share/sendmail
+
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${CP} ${WRKSRC}/bsmtp.m4.8.9.in ${WRKSRC}/bsmtp.m4.8.10.in
@${CP} ${FILESDIR}/bsmtp.m4.8.11.in ${WRKSRC}/
@@ -34,32 +43,30 @@ pre-configure:
-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}
+ @${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
+ ${LN} -s rcsmtp ${PUBBIN}/$i
.endfor
- ${INSTALL_PROGRAM} ${WRKSRC}/rsmtp.wrapper ${pubbin}/rsmtp
- ${INSTALL_SCRIPT} ${WRKSRC}/rsmtp ${privbin}
+ ${INSTALL_PROGRAM} ${WRKSRC}/rsmtp.wrapper ${PUBBIN}/rsmtp
+ ${INSTALL_SCRIPT} ${WRKSRC}/rsmtp ${PRIVBIN}
.for i in bsmtp
- ${LN} -s rsmtp ${pubbin}/$i
+ ${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}
+ ${INSTALL_SCRIPT} ${WRKSRC}/transmitter.$i ${PRIVBIN}
.endfor
- ${INSTALL_PROGRAM} ${WRKSRC}/_bqueue ${pubbin}
- ${INSTALL_SCRIPT} ${WRKSRC}/bqueue ${pubbin}
-# post-install:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/_bqueue ${PUBBIN}
+ ${INSTALL_SCRIPT} ${WRKSRC}/bqueue ${PUBBIN}
+ ${MKDIR} ${STAGEDIR}/var/spool/bsnmp
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>