From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 7 22:40:08 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B93231065670 for ; Mon, 7 May 2012 22:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 91B308FC14 for ; Mon, 7 May 2012 22:40:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q47Me89T022287 for ; Mon, 7 May 2012 22:40:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q47Me8P9022286; Mon, 7 May 2012 22:40:08 GMT (envelope-from gnats) Resent-Date: Mon, 7 May 2012 22:40:08 GMT Resent-Message-Id: <201205072240.q47Me8P9022286@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Laurent Berthelet Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4ABA21065670 for ; Mon, 7 May 2012 22:36:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 351098FC17 for ; Mon, 7 May 2012 22:36:03 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q47Ma2HF041069 for ; Mon, 7 May 2012 22:36:02 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q47Ma2WH041067; Mon, 7 May 2012 22:36:02 GMT (envelope-from nobody) Message-Id: <201205072236.q47Ma2WH041067@red.freebsd.org> Date: Mon, 7 May 2012 22:36:02 GMT From: Laurent Berthelet To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/167698: New openerp port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2012 22:40:08 -0000 >Number: 167698 >Category: ports >Synopsis: New openerp port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 07 22:40:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Laurent Berthelet >Release: 9.0 stable >Organization: >Environment: >Description: Hi, Openerp upgrade to 6.1.1. I made a new port because the new version is not just an update. It seems that the migration from older version is not easy. This version embed the web server so there will be no need of openerp-web from now. Talking with the openerp team, they asked me if they can put the freebsd logo on their package page, and if ok, which logo can they use. I named it just openerp, but if preferred, we can name it openerp-server-6.1 for example to not confuse anyone Cheers. Laurent >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # openerp # openerp/files # openerp/files/pkg-message.in # openerp/files/openerpd.in # openerp/files/openerp-server.conf.in # openerp/Makefile # openerp/distinfo # openerp/pkg-descr # echo c - openerp mkdir -p openerp > /dev/null 2>&1 echo c - openerp/files mkdir -p openerp/files > /dev/null 2>&1 echo x - openerp/files/pkg-message.in sed 's/^X//' >openerp/files/pkg-message.in << '0882f977d9c5518c23fb0d86baef04dc' X************************************************************************ X X XNow you can run the program with %%PREFIX%%/bin/openerp-server, X XIf you want start it when the system boot, please add this line Xto your /etc/rc.conf: X openerpd_enable="YES" X XDon't forget to configure postgresql. XYou can try something like this : X X[root] # su - X[PGSQL] $ openerp_dbuser=db_user #look in /usr/local/etc/openerp-server.conf X[PGSQL] $ openerp_dbname=db_name #look in /usr/local/etc/openerp-server.conf X[PGSQL] $ createuser $openerp_dbuser X[PGSQL] $ createdb --owner=${openerp_dbuser} --encoding=UTF-8 --locale=en_EN.UTF-8 ${openerp_dbname} "OpenERP initial database" X X************************************************************************ 0882f977d9c5518c23fb0d86baef04dc echo x - openerp/files/openerpd.in sed 's/^X//' >openerp/files/openerpd.in << 'a75192a0ec56aa7a49a5c1a2d024f1bb' X#!/bin/sh X# X# PROVIDE: openerpd X# REQUIRE: postgresql LOGIN X# X# Add the following lines to /etc/rc.conf to enable openerp-server X# X# X# openerpd_enable (bool): Set to "NO" by default, X# Set it to "YES" to enable openerp-server X# X# openerpd_config (str): The path to the openerp-server configuration file X# (defaults to /usr/local/etc/openerp-server.conf) X# X# openerpd_flags (str): Extra arguments to be used when invoking X# the openerp-server daemon. X# X# Patch submitted by (c) Franck Porcher, Ph.D, to fix some issues regarding X# pidfile, log files, and discrepencies with the main configuration file. X X# getval varname file [default_value] [separator_char] X# - Discard comment lines (any text leading with blanks then #) X# - Retain only the last value set X Xname=openerpd Xcommand=/usr/local/bin/openerp-server X X. /etc/rc.subr X Xrcvar=openerpd_enable Xload_rc_config "${name}" X Xopenerpd_enable="${openerpd_enable-"NO"}" Xopenerpd_config="${openerpd_config-"/usr/local/etc/openerp-server.conf"}" Xopenerpd_user="${openerpd_user-"openerpd"}" Xopenerpd_pidfile="${openerpd_pidfile:-"$(grep pidfile /usr/local/etc/openerp-server.conf | awk -F "=" ' { print $2 } ' |sed 's/[ ]//g' )"}" Xopenerpd_logdir="${openerpd_logdir:-"$(dirname `grep logfile /usr/local/etc/openerp-server.conf | awk -F "=" ' { print $2 } ' `)"}" Xopenerpd_flags="${openerpd_flags:-"--config=${openerpd_config}"}" X X# /etc/rc.subr use $pidfile (not ${name}_pidfile) Xpidfile="${openerpd_pidfile}" X Xrequired_files="${openerpd_config}" X Xstart_precmd="${name}_prestart" Xstop_cmd="${name}_stop" Xstatus_cmd="${name}_status" Xgetval_cmd="${name}_getval" X Xopenerpd_prestart() X{ X local d X X d="$(dirname "${openerpd_pidfile}")" X if [ ! -d "${d}" ] X then X mkdir -p "${d}" X fi X chown "${openerpd_user}" "${d}" X X d="$openerpd_logdir" X if [ ! -d "${d}" ] X then X mkdir -p "${d}" X fi X chown "${openerpd_user}" "${d}" X} X Xopenerpd_stop() X{ X # Try its best to stop the service X if [ -f "${openerpd_pidfile}" ] X then X echo "Stopping ${name}." X kill -15 "$(cat "${openerpd_pidfile}")" X else X # echo "Looking for (openerp-server.py ${openerpd_flags})" X openerpd_pid=$(pgrep -f "openerp-server.py ${openerpd_flags}") X if [ -n "${openerpd_pid}" ] X then X echo "Stopping ${name}." X kill -15 "${openerpd_pid}" X else X echo "${name} not running? (pidfile not found)" X fi X fi X} X Xopenerpd_status() X{ X # Try its best to find the service's status X if [ -f "${openerpd_pidfile}" ] X then X openerpd_pid="$(cat "${openerpd_pidfile}")" X fi X X if [ -z "${openerpd_pid}" ] X then X openerpd_pid=$(pgrep -f "openerp-server.py ${openerpd_flags}") X [ -n "${openerpd_pid}" ] && echo "${openerpd_pid}" > "${openerpd_pidfile}" X fi X X if [ -n "${openerpd_pid}" ] X then X echo "${name} running with pid: $openerpd_pid" X else X echo "${name} not running? (pid not found)" X fi X} X X Xcommand_args=" >/dev/null 2>&1 &" X Xload_rc_config $name Xrun_rc_command "$1" a75192a0ec56aa7a49a5c1a2d024f1bb echo x - openerp/files/openerp-server.conf.in sed 's/^X//' >openerp/files/openerp-server.conf.in << '6abf0806cf15753039f63343a7b03439' X# Example configuration file for OpenERP-server X# X# This is an example configuration file, just copy it X# to openerp-server.conf and edit it to suit your needs. X# X# Patch submitted by (c) Franck Porcher, Ph.D, to smooth some default values X X[options] X# Basic daemon configuration options ################## Xroot_path = %%PYTHON_SITELIBDIR%%/openerp-server/ Xaddons_path = %%PYTHON_SITELIBDIR%%/openerp-server/addons X# netinterface = X# interface = Xport = 8069 Xnetport = 8070 Xdebug_mode = False Xstop_after_init = False Xsoap = False Xxmlrpc = True Xnetrpc = True Xsecure = False Xcache_timeout = 100000 Xpidfile = /var/run/openerp/openerp-server.pid Xreportgz = False Xadmin_passwd = admin Xlogin_message = False Xprice_accuracy = 2 Xcsv_internal_sep = , Xtranslate_modules = ['all'] X X# Logging options ##################################### Xsyslog = True Xlog_level = info Xlogfile = /var/log/openerp/openerp-server.log Xassert_exit_level = warn X X# Database options #################################### Xdb_name = openerp Xdb_user = openerp Xdb_password = openerp Xdb_host = localhost Xdb_maxconn = 64 Xpg_path = /usr/local/bin Xlist_db = True X# import_partial = X X# SMTP options ######################################## Xsmtp_server = localhost Xsmtp_port = 25 Xsmtp_user = False Xsmtp_password = False Xemail_from = False X X# Use demo files? ##################################### X# without_demo = True X# demo = {} 6abf0806cf15753039f63343a7b03439 echo x - openerp/Makefile sed 's/^X//' >openerp/Makefile << '68b6cd102693583101fbc15e04bbcfb9' X# X# $FreeBSD$ X# X XPORTNAME= openerp XPORTVERSION= 6.1.1 XPORTEPOCH= 1 XCATEGORIES= finance python XMASTER_SITES= http://nightly.openerp.com/6.1/releases/ XDISTNAME= openerp-6.1-1 X XMAINTAINER= laurent@ospowa.com XCOMMENT= Open source application ERP & CRM in Python using Postgresql X XBUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \ X ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \ X ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \ X ${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \ X ${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \ X ${PYTHON_PKGNAMEPREFIX}chart>0:${PORTSDIR}/graphics/py-chart \ X ${PYTHON_PKGNAMEPREFIX}pydot>0:${PORTSDIR}/graphics/py-pydot \ X ${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \ X ${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \ X ${PYTHON_PKGNAMEPREFIX}xml>0:${PORTSDIR}/textproc/py-xml \ X ${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \ X ${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako \ X ${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil \ X ${PYTHON_PKGNAMEPREFIX}ldap2>0:${PORTSDIR}/net/py-ldap2 \ X ${PYTHON_PKGNAMEPREFIX}vobject>0:${PORTSDIR}/deskutils/py-vobject \ X ${PYTHON_PKGNAMEPREFIX}PyWebDAV>0:${PORTSDIR}/www/py-pywebdav \ X ${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab2 XRUN_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \ X ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \ X ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \ X ${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \ X ${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \ X ${PYTHON_PKGNAMEPREFIX}chart>0:${PORTSDIR}/graphics/py-chart \ X ${PYTHON_PKGNAMEPREFIX}pydot>0:${PORTSDIR}/graphics/py-pydot \ X ${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \ X ${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \ X ${PYTHON_PKGNAMEPREFIX}xml>0:${PORTSDIR}/textproc/py-xml \ X ${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \ X ${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako \ X ${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil \ X ${PYTHON_PKGNAMEPREFIX}ldap2>0:${PORTSDIR}/net/py-ldap2 \ X ${PYTHON_PKGNAMEPREFIX}vobject>0:${PORTSDIR}/deskutils/py-vobject \ X ${PYTHON_PKGNAMEPREFIX}PyWebDAV>0:${PORTSDIR}/www/py-pywebdav \ X ${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab2 X XUSE_RC_SUBR= openerpd XSUB_FILES= openerp-server.conf pkg-message XSUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} X XUSE_PYTHON= 2.7+ XUSE_PYDISTUTILS= yes XPYDISTUTILS_EGGINFODIR= ${PYTHON_SITELIBDIR}/openerp-6.1_1-${PYTHON_VERSION:S/thon//}.egg XPYDISTUTILS_EGGINFO= EGG-INFO/PKG-INFO X XUSERS= openerpd XGROUPS= openerpd X XMAN1= openerp-server.1 XMAN5= openerp_serverrc.5 X XCONFLICTS_INSTALL= openerp-server-* X X.include X Xpost-install: X ${INSTALL_MAN} ${WRKSRC}/install/openerp-server.1 ${PREFIX}/man/man1 X ${INSTALL_MAN} ${WRKSRC}/install/openerp_serverrc.5 ${PREFIX}/man/man5 X X ${INSTALL_DATA} ${WRKDIR}/openerp-server.conf ${PREFIX}/etc/openerp-server.conf.sample X @if [ ! -f ${PREFIX}/etc/openerp-server.conf ]; then \ X ${CP} -p ${PREFIX}/etc/openerp-server.conf.sample ${PREFIX}/etc/openerp-server.conf ; \ X fi X @${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} X @${ECHO} etc/openerp-server.conf.sample >> ${TMPPLIST} X @${ECHO} '@exec if [ ! -f %D/etc/openerp-server.conf ]; then cp -p %D/%F %B/openerp-server.conf; fi' >> ${TMPPLIST} X X @${ECHO} bin/openerp-server >> ${TMPPLIST} X @${FIND} -s -d ${PYDISTUTILS_EGGINFODIR}/${PORTNAME} \ X -type f | ${SED} 's#${PREFIX}/##g' >> ${TMPPLIST} X @${FIND} -s -d ${PYDISTUTILS_EGGINFODIR}/${PORTNAME} \ X -type d | ${SED} 's#${PREFIX}/#@dirrm #g' >> ${TMPPLIST} X X @${CAT} ${PKGMESSAGE} X X.include 68b6cd102693583101fbc15e04bbcfb9 echo x - openerp/distinfo sed 's/^X//' >openerp/distinfo << 'c3c4d47d6c70db83a6d628318f0c3995' XSHA256 (openerp-6.1-1.tar.gz) = a89016d706f1693833590d2ce5cf7768fb3586213661014adad5ed16cdc77cd7 XSIZE (openerp-6.1-1.tar.gz) = 73310629 c3c4d47d6c70db83a6d628318f0c3995 echo x - openerp/pkg-descr sed 's/^X//' >openerp/pkg-descr << '7f1ca8448c728b04b02076907cb9c5d2' XOpenERP is a complete ERP and CRM. The main features are accounting X(analytic and financial), stock management, sales and purchases Xmanagement, tasks automation, marketing campaigns, help desk, POS, etc. XTechnical features include a distributed server, flexible workflows, an Xobject database, a dynamic GUI, customizable reports, and XML-RPC Xinterfaces. X XWWW: http://www.openerp.com/ 7f1ca8448c728b04b02076907cb9c5d2 exit >Release-Note: >Audit-Trail: >Unformatted: