svn commit: r304445 - in head/finance/trytond: . files
Wen Heping
wen at FreeBSD.org
Tue Sep 18 12:52:26 UTC 2012
Author: wen
Date: Tue Sep 18 12:52:25 2012
New Revision: 304445
URL: http://svn.freebsd.org/changeset/ports/304445
Log:
- Improve rc scripts
Submitted by: bsam@ (via email)
Added:
head/finance/trytond/files/patch-etc_trytond.conf (contents, props changed)
Modified:
head/finance/trytond/Makefile
Modified: head/finance/trytond/Makefile
==============================================================================
--- head/finance/trytond/Makefile Tue Sep 18 11:46:42 2012 (r304444)
+++ head/finance/trytond/Makefile Tue Sep 18 12:52:25 2012 (r304445)
@@ -7,7 +7,7 @@
PORTNAME= trytond
PORTVERSION= 2.4.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= finance python
MASTER_SITES= http://downloads2.tryton.org/${PORTVERSION:R}/
@@ -39,9 +39,16 @@ SUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SIT
PYEASYINSTALL_EGG=${PYEASYINSTALL_EGG} \
PYTHON=${PYTHON_CMD}
+PIDDIR?= /var/run
+LOGDIR?= /var/log
+
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PIDDIR%%|${PIDDIR}|g' -e 's|%%LOGDIR%%|${LOGDIR}|g' \
+ ${WRKSRC}/etc/${PORTNAME}.conf
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MWEBDAV}
Added: head/finance/trytond/files/patch-etc_trytond.conf
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/finance/trytond/files/patch-etc_trytond.conf Tue Sep 18 12:52:25 2012 (r304445)
@@ -0,0 +1,13 @@
+--- etc/trytond.conf.orig 2012-09-18 12:54:38.000000000 +0400
++++ etc/trytond.conf 2012-09-18 12:56:50.000000000 +0400
+@@ -45,8 +45,8 @@ jsonrpc = localhost:8000
+ #admin_passwd = admin
+
+ # Configure the path of the files for the pid and the logs
+-#pidfile = False
+-#logfile = False
++pidfile = %%PIDDIR%%/trytond/trytond.pid
++logfile = %%LOGDIR%%/trytond/trytond.log
+
+ #privatekey = server.pem
+ #certificate = server.pem
More information about the svn-ports-all
mailing list