aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qpopper
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-06-05 09:28:48 +0800
committerlioux <lioux@FreeBSD.org>2002-06-05 09:28:48 +0800
commitb473055233a4963339dde177d9712e63d51f6b81 (patch)
tree48a957a40615d3b56b72e3afb43af706772523c0 /mail/qpopper
parent761128b9279de69c512b654d7b474538d1115986 (diff)
downloadfreebsd-ports-gnome-b473055233a4963339dde177d9712e63d51f6b81.tar.gz
freebsd-ports-gnome-b473055233a4963339dde177d9712e63d51f6b81.tar.zst
freebsd-ports-gnome-b473055233a4963339dde177d9712e63d51f6b81.zip
Install pdf documnetation if WITH_DOCUMENTATION but unless NOPORTDOCS
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 039c1765ffbc..1d6e03836ad0 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 166f96cd60df..65f1a6d84f59 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