From owner-svn-ports-head@FreeBSD.ORG Tue Sep 18 12:52:25 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D80DD1065670; Tue, 18 Sep 2012 12:52:25 +0000 (UTC) (envelope-from wen@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C34E98FC21; Tue, 18 Sep 2012 12:52:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8ICqPPe094137; Tue, 18 Sep 2012 12:52:25 GMT (envelope-from wen@svn.freebsd.org) Received: (from wen@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8ICqPL9094133; Tue, 18 Sep 2012 12:52:25 GMT (envelope-from wen@svn.freebsd.org) Message-Id: <201209181252.q8ICqPL9094133@svn.freebsd.org> From: Wen Heping Date: Tue, 18 Sep 2012 12:52:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304445 - in head/finance/trytond: . files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 12:52:26 -0000 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 .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