View | Details | Raw Unified | Return to bug 160310
Collapse All | Expand All

(-)Makefile (-6 / +25 lines)
Lines 1-12 Link Here
1
# New ports collection makefile for:	openerp-server
1
# New ports collection makefile for:	openerp-server
2
# Date created:		27 February 2009
2
# Date created:		29 August 2011
3
# Whom:			Wen Heping<wenheping@gmail.com>
3
# Whom:			Laurent Berthelet<laurent@ospowa.com>
4
#
4
#
5
# $FreeBSD: ports/finance/openerp-server/Makefile,v 1.20 2011/08/22 07:05:27 wen Exp $
5
# $FreeBSD: ports/finance/openerp-server/Makefile,v 1.19 2011/02/25 00:12:12 miwi Exp $
6
#
6
#
7
7
8
PORTNAME=	openerp-server
8
PORTNAME=	openerp-server
9
PORTVERSION=	5.0.15
9
PORTVERSION=	6.0.3
10
PORTREVISION=	1
10
PORTREVISION=	1
11
PORTEPOCH=	1
11
PORTEPOCH=	1
12
CATEGORIES=	finance python
12
CATEGORIES=	finance python
Lines 25-32 Link Here
25
		${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \
25
		${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \
26
		${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
26
		${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
27
		${PYTHON_PKGNAMEPREFIX}xml>0:${PORTSDIR}/textproc/py-xml \
27
		${PYTHON_PKGNAMEPREFIX}xml>0:${PORTSDIR}/textproc/py-xml \
28
		${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
29
		${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako \
30
		${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab2
31
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
32
		${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
33
		${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
34
		${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \
35
		${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \
36
		${PYTHON_PKGNAMEPREFIX}chart>0:${PORTSDIR}/graphics/py-chart \
37
		${PYTHON_PKGNAMEPREFIX}pydot>0:${PORTSDIR}/graphics/py-pydot \
38
		${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \
39
		${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
40
		${PYTHON_PKGNAMEPREFIX}xml>0:${PORTSDIR}/textproc/py-xml \
41
		${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
42
		${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako \
43
		${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil \
28
		${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab2
44
		${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab2
29
RUN_DEPENDS=	${BUILD_DEPENDS}
30
45
31
USE_RC_SUBR=	openerpd
46
USE_RC_SUBR=	openerpd
32
SUB_FILES=	openerp-server.conf pkg-message
47
SUB_FILES=	openerp-server.conf pkg-message
Lines 34-40 Link Here
34
49
35
USE_PYTHON=			2.5+
50
USE_PYTHON=			2.5+
36
USE_PYDISTUTILS=		yes
51
USE_PYDISTUTILS=		yes
37
PYDISTUTILS_EGGINFO=		openerp_server-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg-info
52
PYDISTUTILS_EGGINFODIR=		${PYTHON_SITELIBDIR}/openerp_server-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg-info
53
PYDISTUTILS_EGGINFO=		PKG-INFO
54
55
USERS=		openerpd
56
GROUPS=		openerpd
38
57
39
MAN1=		openerp-server.1
58
MAN1=		openerp-server.1
40
MAN5=		openerp_serverrc.5
59
MAN5=		openerp_serverrc.5
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (openerp-server-5.0.15.tar.gz) = 021dd27f352e1c92c0912d8b50f05cfcee39052551a2c6d90ee1677f4e361504
1
SHA256 (openerp-server-6.0.3.tar.gz) = 763296aef9967848506daa23dca017b2f341d12936d1db9df1f2ba1412b218a9
2
SIZE (openerp-server-5.0.15.tar.gz) = 10529558
2
SIZE (openerp-server-6.0.3.tar.gz) = 28477345
(-)files/openerpd.in (+39 lines)
Lines 26-34 Link Here
26
26
27
: ${openerpd_enable="NO"}
27
: ${openerpd_enable="NO"}
28
: ${openerpd_config="%%PREFIX%%/etc/openerp-server.conf"}
28
: ${openerpd_config="%%PREFIX%%/etc/openerp-server.conf"}
29
: ${openerpd_user="openerpd"}
30
31
openerpd_pidfile=${openerpd_pidfile:-"/var/run/openerp-server/openerpd.pid"}
32
openerpd_config=${openerpd_config:-"/usr/local/etc/openerpd.conf"}
33
openerpd_flags=${openerpd_flags:-"--config=${openerpd_config}"}
29
34
30
required_files="$openerpd_config"
35
required_files="$openerpd_config"
31
36
37
start_precmd="${name}_prestart"
38
stop_cmd="${name}_stop"
39
40
openerpd_prestart()
41
{
42
    if [ ! -d `dirname ${openerpd_pidfile}` ]
43
    then
44
        mkdir -p `dirname ${openerpweb_pidfile}`
45
    fi
46
    chown ${openerpd_user} `dirname ${openerpd_pidfile}`
47
}
48
49
openerpd_stop()
50
{
51
    # ensure the server is stopped
52
    if [ -f ${openerpd_pidfile} ]
53
    then
54
        echo "Stopping ${name}."
55
        kill -15 `cat ${openerpd_pidfile}`
56
    else
57
        openerpd_pid=`pgrep -f "openerp-server.py ${openerpd_flags}"`
58
        if [ ${openerpd_pid} ]
59
        then
60
            echo "Stopping ${name}."
61
             kill -15 ${openerpd_pid}
62
        else
63
            echo "${name} not running? (pidfile not found)"
64
        fi
65
    fi
66
}
67
68
69
32
command_args="-c $openerpd_config >/dev/null 2>&1 &"
70
command_args="-c $openerpd_config >/dev/null 2>&1 &"
33
71
72
load_rc_config $name
34
run_rc_command "$1"
73
run_rc_command "$1"
(-)files/patch-setup.py (-21 / +25 lines)
Lines 1-25 Link Here
1
--- setup.py.orig	2009-02-09 20:32:57.000000000 +0800
1
--- setup.py	2011-08-21 16:34:59.526991138 +0200
2
+++ setup.py	2009-02-09 20:33:48.000000000 +0800
2
+++ setup.diffs	2011-08-21 16:35:49.515560426 +0200
3
@@ -92,14 +92,14 @@
3
@@ -145,16 +145,16 @@
4
                             opj('bin', 'server.pkey'), 
4
         #    files.append((root, [join(root, name) for name in names]))
5
                             opj('bin', 'server.cert')]))
5
         files.append(('.', [join('bin', 'import_xml.rng'),]))
6
     else:
6
     else:
7
-        man_directory = opj('share', 'man')
7
-        man_directory = join('share', 'man')
8
-        files.append((opj(man_directory, 'man1'), ['man/openerp-server.1']))
8
-        files.append((join(man_directory, 'man1'), ['man/openerp-server.1']))
9
-        files.append((opj(man_directory, 'man5'), ['man/openerp_serverrc.5']))
9
-        files.append((join(man_directory, 'man5'), ['man/openerp_serverrc.5']))
10
-
10
-
11
-        doc_directory = opj('share', 'doc', 'openerp-server-%s' % version)
11
-        doc_directory = join('share', 'doc', 'openerp-server-%s' % version)
12
-        files.append((doc_directory, [f for f in glob.glob('doc/*') if os.path.isfile(f)]))
12
-        files.append((doc_directory, filter(isfile, glob.glob('doc/*'))))
13
-        files.append((opj(doc_directory, 'migrate', '3.3.0-3.4.0'), [f for f in glob.glob('doc/migrate/3.3.0-3.4.0/*') if os.path.isfile(f)]))
13
-        files.append((join(doc_directory, 'migrate', '3.3.0-3.4.0'),
14
-        files.append((opj(doc_directory, 'migrate', '3.4.0-4.0.0'), [f for f in glob.glob('doc/migrate/3.4.0-4.0.0/*') if os.path.isfile(f)]))
14
-                      filter(isfile, glob.glob('doc/migrate/3.3.0-3.4.0/*'))))
15
+#        man_directory = opj('share', 'man')
15
-        files.append((join(doc_directory, 'migrate', '3.4.0-4.0.0'),
16
+#        files.append((opj(man_directory, 'man1'), ['man/openerp-server.1']))
16
-                      filter(isfile, glob.glob('doc/migrate/3.4.0-4.0.0/*'))))
17
+#        files.append((opj(man_directory, 'man5'), ['man/openerp_serverrc.5']))
17
+#        man_directory = join('share', 'man')
18
+
18
+#        files.append((join(man_directory, 'man1'), ['man/openerp-server.1']))
19
+#        doc_directory = opj('share', 'doc', 'openerp-server-%s' % version)
19
+#        files.append((join(man_directory, 'man5'), ['man/openerp_serverrc.5']))
20
+#        files.append((doc_directory, [f for f in glob.glob('doc/*') if os.path.isfile(f)]))
20
+#
21
+#        files.append((opj(doc_directory, 'migrate', '3.3.0-3.4.0'), [f for f in glob.glob('doc/migrate/3.3.0-3.4.0/*') if os.path.isfile(f)]))
21
+#        doc_directory = join('share', 'doc', 'openerp-server-%s' % version)
22
+#        files.append((opj(doc_directory, 'migrate', '3.4.0-4.0.0'), [f for f in glob.glob('doc/migrate/3.4.0-4.0.0/*') if os.path.isfile(f)]))
22
+#        files.append((doc_directory, filter(isfile, glob.glob('doc/*'))))
23
+#        files.append((join(doc_directory, 'migrate', '3.3.0-3.4.0'),
24
+#                      filter(isfile, glob.glob('doc/migrate/3.3.0-3.4.0/*'))))
25
+#        files.append((join(doc_directory, 'migrate', '3.4.0-4.0.0'),
26
+#                      filter(isfile, glob.glob('doc/migrate/3.4.0-4.0.0/*'))))
23
 
27
 
24
         openerp_site_packages = opj('lib', 'python%s' % py_short_version, 'site-packages', 'openerp-server')
28
         openerp_site_packages = join(get_python_lib(prefix=''), 'openerp-server')

Return to bug 160310