summaryrefslogtreecommitdiff
path: root/mail/qpopper
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-06-05 01:28:48 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-06-05 01:28:48 +0000
commit343ecd310a9e24eccbb176accafce96ac8ca9456 (patch)
treea0e37e93c20cfc720a70ff217bbe4fcb485fab19 /mail/qpopper
parentAllow scm to load modules. (diff)
Install pdf documnetation if WITH_DOCUMENTATION but unless NOPORTDOCS
Notes
Notes: svn path=/head/; revision=60633
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