mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- Support STAGEDIR
- While I'm here, fix typo in PLIST PR: ports/183961 Submitted by: Alan Hicks <ahicks@p-o.co.uk> (maintainer)
This commit is contained in:
parent
7ff77bf98a
commit
7508fe8426
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333846
@ -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}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user