diff options
-rw-r--r-- | finance/openerp-server/Makefile | 17 | ||||
-rw-r--r-- | finance/openerp-server/distinfo | 6 | ||||
-rw-r--r-- | finance/openerp/Makefile | 17 | ||||
-rw-r--r-- | finance/openerp/distinfo | 6 |
4 files changed, 32 insertions, 14 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 diff --git a/finance/openerp/Makefile b/finance/openerp/Makefile index d141af6342b7..9dfb38a5482a 100644 --- a/finance/openerp/Makefile +++ b/finance/openerp/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/distinfo b/finance/openerp/distinfo index cae767e0cce1..386cd9330881 100644 --- a/finance/openerp/distinfo +++ b/finance/openerp/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 |