diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2013-11-15 10:44:06 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2013-11-15 10:44:06 +0000 |
commit | 7508fe84266c3c53d39e735135ab662a6dc2b7c0 (patch) | |
tree | 3b8a6b106d222bb1ca6e808947449d4eecd32a17 | |
parent | 7ff77bf98aea87562b0750f67d3ea3320994e647 (diff) |
- Support STAGEDIR
- While I'm here, fix typo in PLIST
PR: ports/183961
Submitted by: Alan Hicks <ahicks@p-o.co.uk> (maintainer)
Notes
Notes:
svn path=/head/; revision=333846
-rw-r--r-- | mail/dbmail22/Makefile | 26 | ||||
-rw-r--r-- | mail/dbmail22/pkg-plist | 13 |
2 files changed, 22 insertions, 17 deletions
diff --git a/mail/dbmail22/Makefile b/mail/dbmail22/Makefile index ec3d4ddd42ef..d8fa4f8d65c0 100644 --- a/mail/dbmail22/Makefile +++ b/mail/dbmail22/Makefile @@ -42,11 +42,6 @@ PORTDOCS= AUTHORS BUGS COPYING INSTALL NEWS README \ README.postfix README.qmail README.sieve \ README.smtp README.solaris README.usermap \ THANKS -MAN1= dbmail-smtp.1 dbmail.1 -MAN5= dbmail.conf.5 -MAN8= dbmail-export.8 dbmail-imapd.8 dbmail-lmtpd.8 \ - dbmail-pop3d.8 dbmail-sievecmd.8 dbmail-timsieved.8 \ - dbmail-users.8 dbmail-util.8 SUB_FILES= pkg-message PLIST_SUB+= PORTNAME=${PORTNAME} @@ -56,7 +51,6 @@ PLIST_SUB+= PORTDOCS="@comment " PLIST_SUB+= PORTDOCS="" .endif -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MMYSQL} @@ -114,24 +108,24 @@ post-configure: # fixes the `Shared object "libpgsqldbmail.so.0" not found, required by "libdbmail.so.0"' error. pre-install: @for f in 'a' 'la' 'so' 'so.0'; do \ - if [ -f ${PREFIX}/lib/libdbmail.$$f ] ; then \ - ${RM} ${PREFIX}/lib/libdbmail.$$f; \ + if [ -f ${STAGEDIR}${PREFIX}/lib/libdbmail.$$f ] ; then \ + ${RM} ${STAGEDIR}${PREFIX}/lib/libdbmail.$$f; \ fi; \ done post-install: - @${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${PREFIX}/etc/dbmail.conf-dist - @if [ ! -f ${PREFIX}/etc/dbmail.conf ] ; then \ - ${CP} -p ${PREFIX}/etc/dbmail.conf-dist ${PREFIX}/etc/dbmail.conf; \ + @${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${STAGEDIR}${PREFIX}/etc/dbmail.conf-dist + @if [ ! -f ${STAGEDIR}${PREFIX}/etc/dbmail.conf ] ; then \ + ${CP} -p ${STAGEDIR}${PREFIX}/etc/dbmail.conf-dist ${STAGEDIR}${PREFIX}/etc/dbmail.conf; \ fi - @${MKDIR} ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} @for f in ${DATABASE}; do \ - ${MKDIR} ${DATADIR}/$$f ; \ - ${INSTALL_DATA} ${WRKSRC}/sql/$$f/* ${DATADIR}/$$f; \ + ${MKDIR} ${STAGEDIR}${DATADIR}/$$f ; \ + ${INSTALL_DATA} ${WRKSRC}/sql/$$f/* ${STAGEDIR}${DATADIR}/$$f; \ done .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} diff --git a/mail/dbmail22/pkg-plist b/mail/dbmail22/pkg-plist index cb010c553592..c0a76013273f 100644 --- a/mail/dbmail22/pkg-plist +++ b/mail/dbmail22/pkg-plist @@ -31,6 +31,17 @@ lib/dbmail/libdbmail.so.0 %%SQLITE%%lib/dbmail/libsqlite.so %%SQLITE%%lib/dbmail/libsqlite.so.0 @dirrm lib/dbmail +man/man1/dbmail-smtp.1.gz +man/man1/dbmail.1.gz +man/man5/dbmail.conf.5.gz +man/man8/dbmail-export.8.gz +man/man8/dbmail-imapd.8.gz +man/man8/dbmail-lmtpd.8.gz +man/man8/dbmail-pop3d.8.gz +man/man8/dbmail-sievecmd.8.gz +man/man8/dbmail-timsieved.8.gz +man/man8/dbmail-users.8.gz +man/man8/dbmail-util.8.gz sbin/dbmail-export sbin/dbmail-imapd sbin/dbmail-lmtpd @@ -41,7 +52,7 @@ sbin/dbmail-smtp sbin/dbmail-users sbin/dbmail-util @exec mkdir -p %D/share/%%PORTNAME%% -%%MYSQL%%@exec mkdir -p %D/share/PORTNAME/%%PORTNAME%%/mysql +%%MYSQL%%@exec mkdir -p %D/share/%%PORTNAME%%/mysql %%MYSQL%%share/%%PORTNAME%%/mysql/2_1_7-2_2_0.mysql %%MYSQL%%share/%%PORTNAME%%/mysql/create_tables.mysql %%MYSQL%%share/%%PORTNAME%%/mysql/migrate_from_1.x_to_2.0_innodb.mysql |