diff options
author | ume <ume@FreeBSD.org> | 2013-10-06 01:52:49 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2013-10-06 01:52:49 +0800 |
commit | f365c197bf1cb9190e46c2190a34967d976cec60 (patch) | |
tree | 0a19dd497eee3b59aca26da4abe9ff91330a567e /mail/cyrus-imapd23 | |
parent | 51f003d9c120ff29ab7aac515ee6ac53cb1c1aa3 (diff) | |
download | freebsd-ports-gnome-f365c197bf1cb9190e46c2190a34967d976cec60.tar.gz freebsd-ports-gnome-f365c197bf1cb9190e46c2190a34967d976cec60.tar.zst freebsd-ports-gnome-f365c197bf1cb9190e46c2190a34967d976cec60.zip |
- enable stage.
- use new LIB_DEPENDS format.
Diffstat (limited to 'mail/cyrus-imapd23')
-rw-r--r-- | mail/cyrus-imapd23/Makefile | 125 | ||||
-rw-r--r-- | mail/cyrus-imapd23/pkg-plist | 22 |
2 files changed, 78 insertions, 69 deletions
diff --git a/mail/cyrus-imapd23/Makefile b/mail/cyrus-imapd23/Makefile index 04b1c91287bf..d5bafb8f39a8 100644 --- a/mail/cyrus-imapd23/Makefile +++ b/mail/cyrus-imapd23/Makefile @@ -12,8 +12,8 @@ COMMENT= The cyrus mail server, supporting POP3 and IMAP4 protocols LICENSE= BSD LICENSE_FILE= ${WRKSRC}/COPYRIGHT -LIB_DEPENDS= sasl2:${PORTSDIR}/security/cyrus-sasl2 \ - pcre:${PORTSDIR}/devel/pcre +LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 \ + libpcre.so:${PORTSDIR}/devel/pcre BUILD_DEPENDS= p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 CONFLICTS= cyrus-1.* cyrus-imapd-2.[^3].* @@ -58,7 +58,6 @@ REPLICATION_DESC= Enable replication SNMP_5_DESC= Enable SNMP support SQLITE_DESC= Enable SQLite backend (experimental) -NO_STAGE= yes .include <bsd.port.pre.mk> # Autocreate Inbox and Autosieve patches from UoA @@ -159,7 +158,7 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac .endif .if ${PORT_OPTIONS:MSNMP_5} -LIB_DEPENDS+= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp +LIB_DEPENDS+= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} .else CONFIGURE_ARGS+=--with-snmp=no @@ -190,10 +189,6 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure CYRUS_USER?= cyrus CYRUS_GROUP?= cyrus -MAN1= cyradm.1 imtest.1 installsieve.1 lmtptest.1 mupdatetest.1 \ - nntptest.1 pop3test.1 sieveshell.1 sivtest.1 smtptest.1 -MAN3= imclient.3 -MAN5= cyrus.conf.5 imapd.conf.5 krb.equiv.5 CYRUS_MAN3= Cyrus::IMAP.3 Cyrus::IMAP::Admin.3 Cyrus::IMAP::IMSP.3 \ Cyrus::IMAP::Shell.3 Cyrus::SIEVE::managesieve.3 CYRUS_MAN8= arbitron.8 chk_cyrus.8 nntpd.8 ctl_cyrusdb.8 ctl_deliver.8 \ @@ -221,87 +216,87 @@ PKGDEINSTALL= ${WRKDIR}/pkg-deinstall PKGINSTALL= ${WRKDIR}/pkg-install post-patch: - @${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \ - -e "s|%%PREFIX%%|${PREFIX}|g" \ - -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \ - ${.CURDIR}/pkg-install > ${PKGINSTALL} - @${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \ - -e "s|%%PREFIX%%|${PREFIX}|g" \ - -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \ - ${.CURDIR}/pkg-deinstall > ${PKGDEINSTALL} - @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \ - -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \ - -e "s|%%CYRUS_GROUP%%|${CYRUS_GROUP}|g" \ - ${WRKSRC}/tools/mkimap - @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|g" \ - -e "s|/usr/sieve|/var/imap/sieve|g" \ - ${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 + @${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \ + -e "s|%%PREFIX%%|${PREFIX}|g" \ + -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \ + ${.CURDIR}/pkg-install > ${PKGINSTALL} + @${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \ + -e "s|%%PREFIX%%|${PREFIX}|g" \ + -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \ + ${.CURDIR}/pkg-deinstall > ${PKGDEINSTALL} + @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \ + -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \ + -e "s|%%CYRUS_GROUP%%|${CYRUS_GROUP}|g" \ + ${WRKSRC}/tools/mkimap + @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|g" \ + -e "s|/usr/sieve|/var/imap/sieve|g" \ + ${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 + @${RM} -rf ${WRKSRC}/autom4te.cache .endif post-install: .for f in ${CYRUS_MAN3} - @${GZIP_CMD} ${PREFIX}/${PERLMAN}/man/man3/${f} - @${ECHO_CMD} ${PERLMAN}/man/man3/${f}.gz >>${TMPPLIST} + @${GZIP_CMD} ${STAGEDIR}${PREFIX}/${PERLMAN}/man/man3/${f} + @${ECHO_CMD} ${PERLMAN}/man/man3/${f}.gz >>${TMPPLIST} .endfor .for f in ${CYRUS_MAN8} - @${GZIP_CMD} ${PREFIX}/cyrus/man/man8/${f} - @${ECHO_CMD} cyrus/man/man8/${f}.gz >>${TMPPLIST} + @${GZIP_CMD} ${STAGEDIR}${PREFIX}/cyrus/man/man8/${f} + @${ECHO_CMD} cyrus/man/man8/${f}.gz >>${TMPPLIST} .endfor - @${ECHO_CMD} "@dirrm cyrus/man/man8" >>${TMPPLIST} - @${ECHO_CMD} "@dirrm cyrus/man" >>${TMPPLIST} - @${ECHO_CMD} "@dirrm cyrus" >>${TMPPLIST} + @${ECHO_CMD} "@dirrm cyrus/man/man8" >>${TMPPLIST} + @${ECHO_CMD} "@dirrm cyrus/man" >>${TMPPLIST} + @${ECHO_CMD} "@dirrm cyrus" >>${TMPPLIST} .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR}/man - @${MKDIR} ${DOCSDIR}/text + @${MKDIR} ${STAGEDIR}${DOCSDIR}/man + @${MKDIR} ${STAGEDIR}${DOCSDIR}/text .for f in ${DOCS} - @${INSTALL_DATA} ${WRKSRC}/doc/${f}.html ${DOCSDIR} - @${ECHO_CMD} share/doc/${PORTNAME}/${f}.html >>${TMPPLIST} + @${INSTALL_DATA} ${WRKSRC}/doc/${f}.html ${STAGEDIR}${DOCSDIR} + @${ECHO_CMD} share/doc/${PORTNAME}/${f}.html >>${TMPPLIST} .endfor .for f in ${MAN1} ${MAN3} ${MAN5} ${CYRUS_MAN8} - @if [ -f ${WRKSRC}/doc/man/${f}.html ]; then \ + @if [ -f ${WRKSRC}/doc/man/${f}.html ]; then \ ${INSTALL_DATA} ${WRKSRC}/doc/man/${f}.html \ - ${DOCSDIR}/man/${f}.html; \ + ${STAGEDIR}${DOCSDIR}/man/${f}.html; \ ${ECHO_CMD} share/doc/${PORTNAME}/man/${f}.html \ >>${TMPPLIST}; \ - fi + fi .endfor .for f in cyrusv2.mc murder.fig murder.png netnews.fig netnews.png - @${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} - @${ECHO_CMD} share/doc/${PORTNAME}/${f} >>${TMPPLIST} + @${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR} + @${ECHO_CMD} share/doc/${PORTNAME}/${f} >>${TMPPLIST} .endfor .for f in ${DOCS} - @${INSTALL_DATA} ${WRKSRC}/doc/text/${f} ${DOCSDIR}/text - @${ECHO_CMD} share/doc/${PORTNAME}/text/${f} >>${TMPPLIST} + @${INSTALL_DATA} ${WRKSRC}/doc/text/${f} \ + ${STAGEDIR}${DOCSDIR}/text + @${ECHO_CMD} share/doc/${PORTNAME}/text/${f} >>${TMPPLIST} .endfor - @${ECHO_CMD} "@dirrm share/doc/${PORTNAME}/text" >>${TMPPLIST} - @${ECHO_CMD} "@dirrm share/doc/${PORTNAME}/man" >>${TMPPLIST} - @${ECHO_CMD} "@dirrm share/doc/${PORTNAME}" >>${TMPPLIST} + @${ECHO_CMD} "@dirrm share/doc/${PORTNAME}/text" >>${TMPPLIST} + @${ECHO_CMD} "@dirrm share/doc/${PORTNAME}/man" >>${TMPPLIST} + @${ECHO_CMD} "@dirrm share/doc/${PORTNAME}" >>${TMPPLIST} .endif - @${MKDIR} ${EXAMPLESDIR} - @${INSTALL_DATA} ${FILESDIR}/imapd.conf ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + @${INSTALL_DATA} ${FILESDIR}/imapd.conf \ + ${STAGEDIR}${EXAMPLESDIR} .for f in ${CONFS} - @${INSTALL_DATA} ${WRKSRC}/master/conf/${f} ${EXAMPLESDIR} - @${ECHO_CMD} ${EXAMPLESDIR:S,^${PREFIX}/,,}/${f} >>${TMPPLIST} + @${INSTALL_DATA} ${WRKSRC}/master/conf/${f} \ + ${STAGEDIR}${EXAMPLESDIR} + @${ECHO_CMD} ${EXAMPLESDIR:S,^${PREFIX}/,,}/${f} >>${TMPPLIST} .endfor - @${ECHO_CMD} @dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,} \ - >>${TMPPLIST} - @${INSTALL_SCRIPT} ${WRKSRC}/tools/mkimap \ - ${PREFIX}/cyrus/bin/mkimap - @${INSTALL_SCRIPT} ${WRKSRC}/tools/masssievec \ - ${PREFIX}/cyrus/bin/masssievec + @${ECHO_CMD} @dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,} \ + >>${TMPPLIST} + @${INSTALL_SCRIPT} ${WRKSRC}/tools/mkimap \ + ${STAGEDIR}${PREFIX}/cyrus/bin/mkimap + @${INSTALL_SCRIPT} ${WRKSRC}/tools/masssievec \ + ${STAGEDIR}${PREFIX}/cyrus/bin/masssievec .if ${OSVERSION} >= 900022 - @${INSTALL_DATA} ${WRKDIR}/cyrus-imapd-man.conf \ - ${PREFIX}/etc/man.d/cyrus-imapd.conf + @${INSTALL_DATA} ${WRKDIR}/cyrus-imapd-man.conf \ + ${STAGEDIR}${PREFIX}/etc/man.d/cyrus-imapd.conf .endif - @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} \ - POST-INSTALL - @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/mail/cyrus-imapd23/pkg-plist b/mail/cyrus-imapd23/pkg-plist index 81a711e70e7f..292793ed4f38 100644 --- a/mail/cyrus-imapd23/pkg-plist +++ b/mail/cyrus-imapd23/pkg-plist @@ -57,6 +57,7 @@ cyrus/bin/squatter cyrus/bin/timsieved cyrus/bin/tls_prune cyrus/bin/unexpunge +%%MANCONF%%etc/man.d/cyrus-imapd.conf include/cyrus/acl.h include/cyrus/assert.h include/cyrus/auth.h @@ -93,8 +94,8 @@ include/cyrus/util.h include/cyrus/xmalloc.h include/cyrus/xstrlcat.h include/cyrus/xstrlcpy.h -lib/libcyrus_min.a lib/libcyrus.a +lib/libcyrus_min.a %%SITE_PERL%%/%%PERL_ARCH%%/Cyrus/IMAP/Admin.pm %%SITE_PERL%%/%%PERL_ARCH%%/Cyrus/IMAP/IMSP.pm %%SITE_PERL%%/%%PERL_ARCH%%/Cyrus/IMAP/Shell.pm @@ -106,10 +107,21 @@ lib/libcyrus.a %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cyrus/SIEVE/managesieve/.packlist %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cyrus/SIEVE/managesieve/managesieve.bs %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cyrus/SIEVE/managesieve/managesieve.so +man/man1/cyradm.1.gz +man/man1/imtest.1.gz +man/man1/installsieve.1.gz +man/man1/lmtptest.1.gz +man/man1/mupdatetest.1.gz +man/man1/nntptest.1.gz +man/man1/pop3test.1.gz +man/man1/sieveshell.1.gz +man/man1/sivtest.1.gz +man/man1/smtptest.1.gz +man/man3/imclient.3.gz +man/man5/cyrus.conf.5.gz +man/man5/imapd.conf.5.gz +man/man5/krb.equiv.5.gz %%EXAMPLESDIR%%/imapd.conf -%%MANCONF%%etc/man.d/cyrus-imapd.conf -@dirrm cyrus/bin -@dirrm include/cyrus @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Cyrus/IMAP @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Cyrus/SIEVE @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Cyrus @@ -117,3 +129,5 @@ lib/libcyrus.a @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cyrus/SIEVE/managesieve @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cyrus/SIEVE @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cyrus +@dirrm include/cyrus +@dirrm cyrus/bin |