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 | |
parent | Unbreak on recent versions of FreeBSd-8. (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')
-rw-r--r-- | finance/openerp-server/Makefile | 17 | ||||
-rw-r--r-- | finance/openerp-server/distinfo | 6 |
2 files changed, 16 insertions, 7 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} \ diff --git a/finance/openerp-server/distinfo b/finance/openerp-server/distinfo index cae767e0cce1..386cd9330881 100644 --- a/finance/openerp-server/distinfo +++ b/finance/openerp-server/distinfo @@ -1,3 +1,3 @@ -MD5 (openerp-server-5.0.7.tar.gz) = bb60ec96f1409ccf2a435791d2910d3c -SHA256 (openerp-server-5.0.7.tar.gz) = 8f8137a530b25617baa4f53a263cc758aa30c23e2b5d25ed68c860b97fe3d134 -SIZE (openerp-server-5.0.7.tar.gz) = 13360554 +MD5 (openerp-server-5.0.9.tar.gz) = 6d0d9abd8fc472948fd4af81fc840543 +SHA256 (openerp-server-5.0.9.tar.gz) = 357d53b4c8420de29c0be1a427376ea7397717ebd4606a554aa8b94051aec58f +SIZE (openerp-server-5.0.9.tar.gz) = 13483093 |