aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2013-07-16 03:45:38 +0800
committerume <ume@FreeBSD.org>2013-07-16 03:45:38 +0800
commitfcee2c17da468c43a5937f8a71e26ad0a49d1d68 (patch)
treef01f03d3308e276e1515e6d16c1d452e02bc2b3f /mail
parent42b6cc30663bc4b15f225d63167f0cbf977b79d5 (diff)
downloadfreebsd-ports-gnome-fcee2c17da468c43a5937f8a71e26ad0a49d1d68.tar.gz
freebsd-ports-gnome-fcee2c17da468c43a5937f8a71e26ad0a49d1d68.tar.zst
freebsd-ports-gnome-fcee2c17da468c43a5937f8a71e26ad0a49d1d68.zip
Add Cyrus man pages to manpath.
PR: ports/180363 Submitted by: Panagiotis Christias <p.christias__at__noc.ntua.gr>
Diffstat (limited to 'mail')
-rw-r--r--mail/cyrus-imapd24/Makefile18
-rw-r--r--mail/cyrus-imapd24/files/cyrus-imapd-man.conf1
-rw-r--r--mail/cyrus-imapd24/pkg-plist1
3 files changed, 17 insertions, 3 deletions
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index 9352e301f8bb..1c1ab2d71018 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -2,7 +2,7 @@
PORTNAME= cyrus-imapd
PORTVERSION= 2.4.17
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.cyrusimap.org/cyrus-imapd/ \
http://cyrusimap.org/releases/
@@ -159,6 +159,12 @@ PLIST_SUB+= LDAP=""
PLIST_SUB+= LDAP="@comment "
.endif
+.if ${OSVERSION} >= 900022
+PLIST_SUB+= MANCONF=""
+.else
+PLIST_SUB+= MANCONF="@comment "
+.endif
+
.if !exists(/usr/lib/libkrb5.a)
CONFIGURE_ARGS+=--disable-gssapi
.endif
@@ -223,6 +229,9 @@ post-patch:
${WRKSRC}/tools/masssievec
@${REINPLACE_CMD} -e "s|-lpthread|\$$(PTHREAD_LIBS)|g" \
${WRKSRC}/imap/Makefile.in
+ @${SED} -e "s|%%PREFIX%%|${PREFIX}|g;" \
+ ${FILESDIR}/cyrus-imapd-man.conf \
+ > ${WRKDIR}/cyrus-imapd-man.conf
.if ${PORT_OPTIONS:MDRAC}
@${RM} -rf ${WRKSRC}/autom4te.cache
.endif
@@ -230,8 +239,7 @@ post-patch:
post-install:
.for f in ${CYRUS_MAN3}
@${GZIP_CMD} ${PREFIX}/${PERLMAN}/man/man3/${f}
- @${ECHO_CMD} ${PERLMAN}/man/man3/${f}.gz \
- >>${TMPPLIST}
+ @${ECHO_CMD} ${PERLMAN}/man/man3/${f}.gz >>${TMPPLIST}
.endfor
.for f in ${CYRUS_MAN8}
@${GZIP_CMD} ${PREFIX}/cyrus/man/man8/${f}
@@ -279,6 +287,10 @@ post-install:
${PREFIX}/cyrus/bin/mkimap
@${INSTALL_SCRIPT} ${WRKSRC}/tools/masssievec \
${PREFIX}/cyrus/bin/masssievec
+.if ${OSVERSION} >= 900022
+ @${INSTALL_DATA} ${WRKDIR}/cyrus-imapd-man.conf \
+ ${PREFIX}/etc/man.d/cyrus-imapd.conf
+.endif
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} \
POST-INSTALL
@${CAT} ${PKGMESSAGE}
diff --git a/mail/cyrus-imapd24/files/cyrus-imapd-man.conf b/mail/cyrus-imapd24/files/cyrus-imapd-man.conf
new file mode 100644
index 000000000000..b7ba70fcce77
--- /dev/null
+++ b/mail/cyrus-imapd24/files/cyrus-imapd-man.conf
@@ -0,0 +1 @@
+MANPATH %%PREFIX%%/cyrus/man
diff --git a/mail/cyrus-imapd24/pkg-plist b/mail/cyrus-imapd24/pkg-plist
index f57fbc315f5e..220cce107716 100644
--- a/mail/cyrus-imapd24/pkg-plist
+++ b/mail/cyrus-imapd24/pkg-plist
@@ -108,6 +108,7 @@ lib/libcyrus.a
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cyrus/SIEVE/managesieve/managesieve.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cyrus/SIEVE/managesieve/managesieve.so
%%EXAMPLESDIR%%/imapd.conf
+%%MANCONF%%etc/man.d/cyrus-imapd.conf
@dirrm cyrus/bin
@dirrm include/cyrus
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Cyrus/IMAP