aboutsummaryrefslogtreecommitdiffstats
path: root/mail/bsmtp
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-25 21:59:50 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-25 21:59:50 +0800
commitee2d33b6c11da8953d2a7ac3b6a9d6cbfe20d2b8 (patch)
treed3af05a6e78f06481cb9d8200384e0e676b3e2d5 /mail/bsmtp
parentaeeb07948932b7d01a5c79ebfe082f9f95cee191 (diff)
downloadfreebsd-ports-gnome-ee2d33b6c11da8953d2a7ac3b6a9d6cbfe20d2b8.tar.gz
freebsd-ports-gnome-ee2d33b6c11da8953d2a7ac3b6a9d6cbfe20d2b8.tar.zst
freebsd-ports-gnome-ee2d33b6c11da8953d2a7ac3b6a9d6cbfe20d2b8.zip
- Add license
- Style nits - Switch to options helpers - Modernize plist - Drop @dirrm's PR: 205571 Submitted by: amdmi3 Approved by: naddy (maintainer)
Diffstat (limited to 'mail/bsmtp')
-rw-r--r--mail/bsmtp/Makefile45
-rw-r--r--mail/bsmtp/pkg-plist19
2 files changed, 30 insertions, 34 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>
diff --git a/mail/bsmtp/pkg-plist b/mail/bsmtp/pkg-plist
index c84c10df4b2d..e72fff0c8915 100644
--- a/mail/bsmtp/pkg-plist
+++ b/mail/bsmtp/pkg-plist
@@ -1,8 +1,4 @@
-@owner uucp
-@mode 4555
-bin/_bqueue
-@mode
-@owner
+@(uucp,,4555) bin/_bqueue
bin/bqueue
bin/bsmtp
bin/cbsmtp
@@ -11,20 +7,13 @@ bin/rcsmtp
bin/rgsmtp
bin/rsmtp
libexec/bsmtp/batcher
-@mode 4555
-libexec/bsmtp/bsmtp
-@mode
+@(root,,4555) libexec/bsmtp/bsmtp
libexec/bsmtp/rsmtp
libexec/bsmtp/transmitter.c-cbsmtp
libexec/bsmtp/transmitter.c-rcsmtp
libexec/bsmtp/transmitter.g-rcsmtp
libexec/bsmtp/transmitter.g-rgsmtp
libexec/bsmtp/transmitter.n-rsmtp
-%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README
share/sendmail/bsmtp.m4
-@dirrm libexec/bsmtp
-@dirrm share/doc/bsmtp
-@dirrm share/sendmail
-@exec install -d -o uucp -g uucp -m 0770 /var/spool/bsmtp
-@comment Do not use rmdir to avoid inappropriate pkg tools magic
-@unexec rm -d /var/spool/bsmtp 2>/dev/null || true
+@dir(uucp,uucp,770) /var/spool/bsnmp