diff options
author | Wen Heping <wen@FreeBSD.org> | 2010-04-08 09:04:33 +0000 |
---|---|---|
committer | Wen Heping <wen@FreeBSD.org> | 2010-04-08 09:04:33 +0000 |
commit | bd5ff1e90df8ece2d94621f21954290d5e5ed1cd (patch) | |
tree | 6c116d73450b52a474f72c311f938b859cc310ef /finance/openerp-server/Makefile | |
parent | 9684e2a7ca43507508c90f604be1ca7b2c1e1183 (diff) |
- Update to 5.0.9
- Improve Makefile [1]
Submitted by: claudius_herder@ambtec.de [1] (via Email)
Notes
Notes:
svn path=/head/; revision=252437
Diffstat (limited to 'finance/openerp-server/Makefile')
-rw-r--r-- | finance/openerp-server/Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/finance/openerp-server/Makefile b/finance/openerp-server/Makefile index d141af6342b7..9dfb38a5482a 100644 --- a/finance/openerp-server/Makefile +++ b/finance/openerp-server/Makefile @@ -6,8 +6,7 @@ # PORTNAME= openerp-server -PORTVERSION= 5.0.7 -PORTREVISION= 1 +PORTVERSION= 5.0.9 CATEGORIES= finance python MASTER_SITES= http://openerp.com/download/stable/source/ @@ -40,6 +39,9 @@ MAN5= openerp_serverrc.5 .include <bsd.port.pre.mk> +post-patch: + @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|g' ${WRKSRC}/bin/openerp-server.py + post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} @@ -51,8 +53,15 @@ post-install: ${INSTALL_MAN} ${WRKSRC}/man/openerp-server.1 ${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/man/openerp_serverrc.5 ${PREFIX}/man/man5 - ${INSTALL_DATA} ${WRKDIR}/openerp-server.conf ${PREFIX}/etc/openerp-server.conf - @${ECHO} etc/openerp-server.conf >> ${TMPPLIST} + ${INSTALL_DATA} ${WRKDIR}/openerp-server.conf ${PREFIX}/etc/openerp-server.conf.sample + @if [ ! -f ${PREFIX}/etc/openerp-server.conf ]; then \ + ${CP} -p ${PREFIX}/etc/openerp-server.conf.sample ${PREFIX}/etc/openerp-server.conf ; \ + fi + @${ECHO} '@unexec if cmp -s %D/etc/openerp-server.conf.sample %D/etc/openerp-server.conf; then rm -f %D/etc/openerp-server.conf; fi' >> ${TMPPLIST} + @${ECHO} etc/openerp-server.conf.sample >> ${TMPPLIST} + @${ECHO} '@exec if [ ! -f %D/etc/openerp-server.conf ]; then cp -p %D/%F %B/openerp-server.conf; fi' >> ${TMPPLIST} + + @${CHMOD} a+x ${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/openerp-server.py @${ECHO} bin/openerp-server >> ${TMPPLIST} @${FIND} -s -d ${PYTHON_SITELIBDIR}/${PORTNAME} \ |