aboutsummaryrefslogtreecommitdiff
path: root/mail/panda-imap
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-07-18 16:41:19 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-07-18 16:41:19 +0000
commit7b46a49633afec24c1083e469d2ad93dca3d38c2 (patch)
treede0e34a6fbc7678aaaa6fa7ea4c31c9e5b56add8 /mail/panda-imap
parent1aa2c6a6b7f64ec2221a9944d9602a35c66600ca (diff)
downloadports-7b46a49633afec24c1083e469d2ad93dca3d38c2.tar.gz
ports-7b46a49633afec24c1083e469d2ad93dca3d38c2.zip
Don't echo in post-install, use pkg-message. Also, don't "fix"
pkg-message in post-install, use SUB_FILES/SUB_LIST. Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=418715
Diffstat (limited to 'mail/panda-imap')
-rw-r--r--mail/panda-imap/Makefile26
-rw-r--r--mail/panda-imap/files/pkg-message.in15
2 files changed, 18 insertions, 23 deletions
diff --git a/mail/panda-imap/Makefile b/mail/panda-imap/Makefile
index 747656c9b56d..586050db9448 100644
--- a/mail/panda-imap/Makefile
+++ b/mail/panda-imap/Makefile
@@ -3,6 +3,7 @@
PORTNAME= panda-imap
PORTVERSION= 20130621
+PORTREVISION= 1
CATEGORIES= mail ipv6
MAINTAINER= thierry@FreeBSD.org
@@ -31,6 +32,7 @@ ALL_TARGET= bsf
OPTIONS_DEFINE= SSL SSL_AND_PLAINTEXT DRAC NETSCAPE_BRAIN_DAMAGE DOCS
OPTIONS_DEFAULT= SSL
+OPTIONS_SUB= yes
SSL_DESC= Compile with SSL support
SSL_AND_PLAINTEXT_DESC= Allow plain text passwords and SSL
DRAC_DESC= Dynamically open MTA for relaying
@@ -92,32 +94,10 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/src/mailutil/mailutil.1 ${STAGEDIR}${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/src/tmail/tmail.1 ${STAGEDIR}${PREFIX}/man/man1/
-post-install:
- @${CAT} ${PKGMESSAGE}
-.if ${PORT_OPTIONS:MDRAC}
- @${ECHO} "================================================================================"
- @${ECHO} "To have DRAC working, you must create ${PREFIX}/etc/dracd.host, containing"
- @${ECHO} "the hostname of the DRAC server:"
- @${ECHO}
- @${ECHO} "localhost"
- @${ECHO} "================================================================================"
-.endif
-.if ${PORT_OPTIONS:MSSL}
- @${ECHO}
- @${ECHO} "To create and install a new SSL certificate for imapd and ipop3d, type \"make"
- @${ECHO} "cert\". Or install manually in ${PREFIX}/certs."
- @${ECHO}
- @${ECHO} "Example inetd config for SSL only services:"
- @${ECHO}
- @${ECHO} "pop3s stream tcp nowait root ${PREFIX}/libexec/ipop3d ipop3d"
- @${ECHO} "imaps stream tcp nowait root ${PREFIX}/libexec/imapd imapd"
- @${ECHO} "================================================================================"
-.endif
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
${MKDIR} -m 0755 -p ${STAGEDIR}${DOCSDIR}
${TAR} -C ${WRKSRC}/docs -cf - . | \
(umask 022; ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf -)
-.endif
cert:
${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/certs
diff --git a/mail/panda-imap/files/pkg-message.in b/mail/panda-imap/files/pkg-message.in
index 21f0badd3448..62b3f7d2c277 100644
--- a/mail/panda-imap/files/pkg-message.in
+++ b/mail/panda-imap/files/pkg-message.in
@@ -31,3 +31,18 @@ dir accessed.
WITHOUT_SSL - build without SSL/encryption support.
WITH_SSL_AND_PLAINTEXT - build with SSL/encryption support, but allow
non-encrypted logins.
+%%DRAC%%================================================================================
+%%DRAC%%To have DRAC working, you must create ${PREFIX}/etc/dracd.host, containing
+%%DRAC%%the hostname of the DRAC server:
+%%DRAC%%
+%%DRAC%%localhost
+%%DRAC%%================================================================================
+%%SSL%%
+%%SSL%%To create and install a new SSL certificate for imapd and ipop3d, type \"make
+%%SSL%%cert\". Or install manually in ${PREFIX}/certs.
+%%SSL%%
+%%SSL%%Example inetd config for SSL only services:
+%%SSL%%
+%%SSL%%pop3s stream tcp nowait root ${PREFIX}/libexec/ipop3d ipop3d
+%%SSL%%imaps stream tcp nowait root ${PREFIX}/libexec/imapd imapd
+%%SSL%%================================================================================