summaryrefslogtreecommitdiffstats
path: root/mail/qpopper
diff options
context:
space:
mode:
Diffstat (limited to 'mail/qpopper')
-rw-r--r--mail/qpopper/Makefile11
-rw-r--r--mail/qpopper/pkg-plist2
2 files changed, 13 insertions, 0 deletions
diff --git a/mail/qpopper/Makefile b/mail/qpopper/Makefile
index 039c176..1d6e038 100644
--- a/mail/qpopper/Makefile
+++ b/mail/qpopper/Makefile
@@ -67,6 +67,7 @@ pre-everything::
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
@${ECHO_MSG} "WITH_APOP_ONLY=yes builds with APOP authentication only"
+ @${ECHO_MSG} "WITH_DOCUMENTATION=yes installs pdf documentation"
@${ECHO_MSG} "WITH_DRAC=yes builds with Dynamic Relay Authorization"
@${ECHO_MSG} " Control support"
@${ECHO_MSG} "WITHOUT_IPV6=yes builds without IPv6 support"
@@ -95,6 +96,12 @@ pre-everything::
OS_DEFS+= -DAPOP_ONLY
.endif
+# Do not install documentation since it is in pdf format and normally
+# not used unless user wants it
+.if !defined(WITH_DOCUMENTATION)
+NOPORTDOCS= yes
+.endif
+
# If WITH_DRAC variable present in the environment, qpopper builds
# with Dynamic Relay Authorization Control support
.if defined(WITH_DRAC)
@@ -173,6 +180,10 @@ do-install:
.endif
@${INSTALL} -d -o ${POP_USER} -g ${POP_GROUP} -m ${POP_MODE_DIR} \
${PREFIX}/etc/${PORTNAME}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/GUIDE.pdf ${DOCSDIR}
+.endif
post-install: install-conf-file
@${SED} -e "s:/usr/local:${PREFIX}:g" ${PKGMESSAGE}
diff --git a/mail/qpopper/pkg-plist b/mail/qpopper/pkg-plist
index 166f96c..65f1a6d 100644
--- a/mail/qpopper/pkg-plist
+++ b/mail/qpopper/pkg-plist
@@ -6,4 +6,6 @@ libexec/qpopper
@exec mkdir -p %D/etc/qpopper && chown %%POP_USER%%:%%POP_GROUP%% %D/etc/qpopper && chmod %%POP_MODE_DIR%% %D/etc/qpopper
@mode %%POP_MODE_CONF%%
etc/qpopper/popusers.sample
+%%PORTDOCS%%share/doc/qpopper/GUIDE.pdf
+%%PORTDOCS%%@dirrm share/doc/qpopper
@unexec rmdir %D/etc/qpopper 2>/dev/null || echo "If you are permanently removing this port, you should do a ``rm -rf ${PKG_PREFIX}/etc/qpopper`` to remove any configuration files and logs left." | fmt
OpenPOWER on IntegriCloud