diff options
author | wen <wen@FreeBSD.org> | 2010-04-08 17:04:33 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2010-04-08 17:04:33 +0800 |
commit | 32064ac257506b75770b6d0339b1603ac8e3845f (patch) | |
tree | 44747bcd4480222ac5453ba00b37f0e28986e312 | |
parent | 6723e1a10ae255a32ca7054e229f764eb7b58e31 (diff) | |
download | freebsd-ports-graphics-32064ac257506b75770b6d0339b1603ac8e3845f.tar.gz freebsd-ports-graphics-32064ac257506b75770b6d0339b1603ac8e3845f.tar.zst freebsd-ports-graphics-32064ac257506b75770b6d0339b1603ac8e3845f.zip |
- Update to 5.0.9
- Improve Makefile [1]
Submitted by: claudius_herder@ambtec.de [1] (via Email)
-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 d141af6342b..9dfb38a5482 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 cae767e0cce..386cd933088 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 d141af6342b..9dfb38a5482 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 cae767e0cce..386cd933088 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 |