mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Remove abandoned repocopy. Now that we have switched to svn, abandoned
repocopies are just relics. Hat: portgmr Discussed with: wen
This commit is contained in:
parent
3930bf85ba
commit
24b0939900
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=302834
@ -1,99 +0,0 @@
|
||||
# New ports collection makefile for: openerp-server
|
||||
# Date created: 27 February 2009
|
||||
# Whom: Wen Heping <wenheping@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= openerp-server
|
||||
PORTVERSION= 6.0.3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= finance python
|
||||
MASTER_SITES= http://www.openerp.com/download/stable/source/
|
||||
|
||||
MAINTAINER= laurent@ospowa.com
|
||||
COMMENT= Open source application ERP & CRM in Python using Postgresql
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
|
||||
${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
|
||||
${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
|
||||
${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \
|
||||
${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \
|
||||
${PYTHON_PKGNAMEPREFIX}chart>0:${PORTSDIR}/graphics/py-chart \
|
||||
${PYTHON_PKGNAMEPREFIX}pydot>0:${PORTSDIR}/graphics/py-pydot \
|
||||
${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \
|
||||
${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
|
||||
${PYTHON_PKGNAMEPREFIX}xml>0:${PORTSDIR}/textproc/py-xml \
|
||||
${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
|
||||
${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako \
|
||||
${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil \
|
||||
${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab2
|
||||
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
|
||||
${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
|
||||
${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
|
||||
${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \
|
||||
${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \
|
||||
${PYTHON_PKGNAMEPREFIX}chart>0:${PORTSDIR}/graphics/py-chart \
|
||||
${PYTHON_PKGNAMEPREFIX}pydot>0:${PORTSDIR}/graphics/py-pydot \
|
||||
${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \
|
||||
${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
|
||||
${PYTHON_PKGNAMEPREFIX}xml>0:${PORTSDIR}/textproc/py-xml \
|
||||
${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
|
||||
${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako \
|
||||
${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil \
|
||||
${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab2
|
||||
|
||||
USE_RC_SUBR= openerpd
|
||||
SUB_FILES= openerp-server.conf pkg-message
|
||||
SUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
|
||||
|
||||
USE_PYTHON= 2.5+
|
||||
USE_PYDISTUTILS= yes
|
||||
PYDISTUTILS_EGGINFODIR= ${PYTHON_SITELIBDIR}/openerp_server-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg-info
|
||||
PYDISTUTILS_EGGINFO= PKG-INFO
|
||||
|
||||
USERS= openerpd
|
||||
GROUPS= openerpd
|
||||
|
||||
MAN1= openerp-server.1
|
||||
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}
|
||||
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
|
||||
@${FIND} -s -d ${DOCSDIR} -type f | ${SED} 's#${PREFIX}/##g' >> ${TMPPLIST}
|
||||
@${FIND} -s -d ${DOCSDIR} -type d | ${SED} 's#${PREFIX}/#@dirrm #g' >> ${TMPPLIST}
|
||||
.endif
|
||||
|
||||
${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.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} \
|
||||
-type f | ${SED} 's#${PREFIX}/##g' >> ${TMPPLIST}
|
||||
@${FIND} -s -d ${PYTHON_SITELIBDIR}/${PORTNAME} \
|
||||
-type d | ${SED} 's#${PREFIX}/#@dirrm #g' >> ${TMPPLIST}
|
||||
@${FIND} -s -d ${PYDISTUTILS_EGGINFODIR} \
|
||||
-type f -print |grep -v PKG-INFO| ${SED} 's#${PREFIX}/##g' >> ${TMPPLIST}
|
||||
@${FIND} -s -d ${PYDISTUTILS_EGGINFODIR} \
|
||||
-type d | ${SED} 's#${PREFIX}/#@dirrm #g' >> ${TMPPLIST}
|
||||
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (openerp-server-6.0.3.tar.gz) = 763296aef9967848506daa23dca017b2f341d12936d1db9df1f2ba1412b218a9
|
||||
SIZE (openerp-server-6.0.3.tar.gz) = 28477345
|
@ -1,55 +0,0 @@
|
||||
# Example configuration file for OpenERP-server
|
||||
#
|
||||
# This is an example configuration file, just copy it
|
||||
# to openerp-server.conf and edit it to suit your needs.
|
||||
|
||||
[options]
|
||||
# Basic daemon configuration options ##################
|
||||
root_path = %%PYTHON_SITELIBDIR%%/openerp-server/
|
||||
addons_path = %%PYTHON_SITELIBDIR%%/openerp-server/addons
|
||||
# netinterface =
|
||||
# interface =
|
||||
port = 8069
|
||||
netport = 8070
|
||||
debug_mode = False
|
||||
stop_after_init = False
|
||||
soap = False
|
||||
xmlrpc = True
|
||||
netrpc = True
|
||||
secure = False
|
||||
cache_timeout = 100000
|
||||
pidfile = /var/run/openerp-server/openerp-server.pid
|
||||
reportgz = False
|
||||
admin_passwd = admin
|
||||
login_message = False
|
||||
price_accuracy = 2
|
||||
csv_internal_sep = ,
|
||||
translate_modules = ['all']
|
||||
|
||||
# Logging options #####################################
|
||||
syslog = False
|
||||
log_level = info
|
||||
logfile = /var/log/openerp-server.log
|
||||
assert_exit_level = warn
|
||||
|
||||
# Database options ####################################
|
||||
db_name = openerp-server
|
||||
db_user = openerp-server
|
||||
db_password = openerp-server
|
||||
db_host = localhost
|
||||
db_maxconn = 64
|
||||
pg_path = /usr/local/bin
|
||||
list_db = True
|
||||
# import_partial =
|
||||
|
||||
# SMTP options ########################################
|
||||
smtp_server = localhost
|
||||
smtp_port = 25
|
||||
smtp_user = False
|
||||
smtp_password = False
|
||||
email_from = False
|
||||
|
||||
# Use demo files? #####################################
|
||||
# without_demo = True
|
||||
# demo = {}
|
||||
|
@ -1,73 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: openerpd
|
||||
# REQUIRE: postgresql LOGIN
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# openerpd_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable mongod.
|
||||
#
|
||||
# Additional configurable variables:
|
||||
# openerpd_config (path): Set to %%PREFIX%%/etc/openerp-server.conf
|
||||
# by default. Additional configuration. You
|
||||
# can also use openerpd_flags for additional
|
||||
# command line arguments.
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="openerpd"
|
||||
rcvar=openerpd_enable
|
||||
|
||||
command=%%PREFIX%%/bin/openerp-server
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${openerpd_enable="NO"}
|
||||
: ${openerpd_config="%%PREFIX%%/etc/openerp-server.conf"}
|
||||
: ${openerpd_user="openerpd"}
|
||||
|
||||
openerpd_pidfile=${openerpd_pidfile:-"/var/run/openerp-server/openerpd.pid"}
|
||||
openerpd_config=${openerpd_config:-"/usr/local/etc/openerpd.conf"}
|
||||
openerpd_flags=${openerpd_flags:-"--config=${openerpd_config}"}
|
||||
|
||||
required_files="$openerpd_config"
|
||||
|
||||
start_precmd="${name}_prestart"
|
||||
stop_cmd="${name}_stop"
|
||||
|
||||
openerpd_prestart()
|
||||
{
|
||||
if [ ! -d `dirname ${openerpd_pidfile}` ]
|
||||
then
|
||||
mkdir -p `dirname ${openerpweb_pidfile}`
|
||||
fi
|
||||
chown ${openerpd_user} `dirname ${openerpd_pidfile}`
|
||||
}
|
||||
|
||||
openerpd_stop()
|
||||
{
|
||||
# ensure the server is stopped
|
||||
if [ -f ${openerpd_pidfile} ]
|
||||
then
|
||||
echo "Stopping ${name}."
|
||||
kill -15 `cat ${openerpd_pidfile}`
|
||||
else
|
||||
openerpd_pid=`pgrep -f "openerp-server.py ${openerpd_flags}"`
|
||||
if [ ${openerpd_pid} ]
|
||||
then
|
||||
echo "Stopping ${name}."
|
||||
kill -15 ${openerpd_pid}
|
||||
else
|
||||
echo "${name} not running? (pidfile not found)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
command_args="-c $openerpd_config >/dev/null 2>&1 &"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
@ -1,29 +0,0 @@
|
||||
--- setup.py 2011-08-21 16:34:59.526991138 +0200
|
||||
+++ setup.diffs 2011-08-21 16:35:49.515560426 +0200
|
||||
@@ -145,16 +145,16 @@
|
||||
# files.append((root, [join(root, name) for name in names]))
|
||||
files.append(('.', [join('bin', 'import_xml.rng'),]))
|
||||
else:
|
||||
- man_directory = join('share', 'man')
|
||||
- files.append((join(man_directory, 'man1'), ['man/openerp-server.1']))
|
||||
- files.append((join(man_directory, 'man5'), ['man/openerp_serverrc.5']))
|
||||
-
|
||||
- doc_directory = join('share', 'doc', 'openerp-server-%s' % version)
|
||||
- files.append((doc_directory, filter(isfile, glob.glob('doc/*'))))
|
||||
- files.append((join(doc_directory, 'migrate', '3.3.0-3.4.0'),
|
||||
- filter(isfile, glob.glob('doc/migrate/3.3.0-3.4.0/*'))))
|
||||
- files.append((join(doc_directory, 'migrate', '3.4.0-4.0.0'),
|
||||
- filter(isfile, glob.glob('doc/migrate/3.4.0-4.0.0/*'))))
|
||||
+# man_directory = join('share', 'man')
|
||||
+# files.append((join(man_directory, 'man1'), ['man/openerp-server.1']))
|
||||
+# files.append((join(man_directory, 'man5'), ['man/openerp_serverrc.5']))
|
||||
+#
|
||||
+# doc_directory = join('share', 'doc', 'openerp-server-%s' % version)
|
||||
+# files.append((doc_directory, filter(isfile, glob.glob('doc/*'))))
|
||||
+# files.append((join(doc_directory, 'migrate', '3.3.0-3.4.0'),
|
||||
+# filter(isfile, glob.glob('doc/migrate/3.3.0-3.4.0/*'))))
|
||||
+# files.append((join(doc_directory, 'migrate', '3.4.0-4.0.0'),
|
||||
+# filter(isfile, glob.glob('doc/migrate/3.4.0-4.0.0/*'))))
|
||||
|
||||
openerp_site_packages = join(get_python_lib(prefix=''), 'openerp-server')
|
||||
|
@ -1,10 +0,0 @@
|
||||
************************************************************************
|
||||
|
||||
|
||||
Now you can run the program with %%PREFIX%%/bin/openerp-server,
|
||||
|
||||
If you want start it when the system boot, please add this line
|
||||
to your /etc/rc.conf:
|
||||
openerpd_enable="YES"
|
||||
|
||||
************************************************************************
|
@ -1,8 +0,0 @@
|
||||
OpenERP is a complete ERP and CRM. The main features are accounting
|
||||
(analytic and financial), stock management, sales and purchases
|
||||
management, tasks automation, marketing campaigns, help desk, POS, etc.
|
||||
Technical features include a distributed server, flexible workflows, an
|
||||
object database, a dynamic GUI, customizable reports, and XML-RPC
|
||||
interfaces.
|
||||
|
||||
WWW: http://www.openerp.com/
|
Loading…
Reference in New Issue
Block a user