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

(-)GIDs (+1 lines)
Lines 238-242 Link Here
238
razorback:*:957:
238
razorback:*:957:
239
gnunet:*:958:
239
gnunet:*:958:
240
c_icap:*:959:
240
c_icap:*:959:
241
trytond:*:960:
241
nogroup:*:65533:
242
nogroup:*:65533:
242
nobody:*:65534:
243
nobody:*:65534:
(-)UIDs (+1 lines)
Lines 242-245 Link Here
242
razorback:*:957:957::0:0:Razorback user:/var/run/razorback:/usr/sbin/nologin
242
razorback:*:957:957::0:0:Razorback user:/var/run/razorback:/usr/sbin/nologin
243
gnunet:*:958:958::0:0:GNUnet daemon:/var/lib/gnunet:/usr/sbin/nologin
243
gnunet:*:958:958::0:0:GNUnet daemon:/var/lib/gnunet:/usr/sbin/nologin
244
c_icap:*:959:959::0:0:c-icap daemon:/var/empty:/usr/sbin/nologin
244
c_icap:*:959:959::0:0:c-icap daemon:/var/empty:/usr/sbin/nologin
245
trytond:*:960:960::0:0:Tryton Daemon:/var/lib/trytond:/usr/sbin/nologin
245
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
246
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
(-)finance/trytond/files/trytond.in (-2 / +2 lines)
Lines 25-30 Link Here
25
trytond_logdir="${trytond_logdir:-"$(dirname `grep logfile %%PREFIX%%/etc/trytond.conf | awk -F "=" ' { print $2 } ' `)"}"
25
trytond_logdir="${trytond_logdir:-"$(dirname `grep logfile %%PREFIX%%/etc/trytond.conf | awk -F "=" ' { print $2 } ' `)"}"
26
26
27
command=%%PREFIX%%/bin/trytond
27
command=%%PREFIX%%/bin/trytond
28
command_interpreter=%%PYTHON%%
28
command_args="--config=${trytond_config} >/dev/null 2>&1 &"
29
command_args="--config=${trytond_config} >/dev/null 2>&1 &"
29
30
30
pidfile="${trytond_pidfile:-"$(grep pidfile %%PREFIX%%/etc/trytond.conf | awk -F "=" ' { print $2 } ' |sed 's/[ ]//g' )"}"
31
pidfile="${trytond_pidfile:-"$(grep pidfile %%PREFIX%%/etc/trytond.conf | awk -F "=" ' { print $2 } ' |sed 's/[ ]//g' )"}"
Lines 34-41 Link Here
34
35
35
trytond_prestart ()
36
trytond_prestart ()
36
{
37
{
37
	install -d -o ${trytond_user} $(dirname "${trytond_pidfile}")
38
	install -d -o ${trytond_user} -g ${trytond_user} $(dirname "${pidfile}") "${trytond_logdir}"
38
	install -d -o ${trytond_user} ${trytond_logdir}
39
}
39
}
40
40
41
run_rc_command "$1"
41
run_rc_command "$1"
(-)finance/trytond/pkg-plist (+3 lines)
Lines 494-499 Link Here
494
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/wizard/wizard.py
494
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/wizard/wizard.py
495
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/wizard/wizard.pyc
495
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/wizard/wizard.pyc
496
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/wizard/wizard.pyo
496
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/wizard/wizard.pyo
497
@unexec if cmp -s %D/etc/trytond.conf.sample %D/etc/trytond.conf; then rm -f %D/etc/trytond.conf; fi
498
etc/trytond.conf.sample
499
@exec if [ ! -f %D/etc/trytond.conf ] ; then cp -p %D/%F %B/trytond.conf; fi
497
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/wizard
500
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/wizard
498
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/webdav/locale
501
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/webdav/locale
499
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/webdav
502
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/trytond/webdav
(-)finance/trytond/Makefile (-4 / +13 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	trytond
8
PORTNAME=	trytond
9
PORTVERSION=	2.4.1
9
PORTVERSION=	2.4.1
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	finance python
11
CATEGORIES=	finance python
12
MASTER_SITES=	http://downloads2.tryton.org/${PORTVERSION:R}/
12
MASTER_SITES=	http://downloads2.tryton.org/${PORTVERSION:R}/
13
13
Lines 24-38 Link Here
24
		${PYTHON_PKGNAMEPREFIX}polib>=0.7.0:${PORTSDIR}/devel/py-polib
24
		${PYTHON_PKGNAMEPREFIX}polib>=0.7.0:${PORTSDIR}/devel/py-polib
25
RUN_DEPENDS:=	${BUILD_DEPENDS}
25
RUN_DEPENDS:=	${BUILD_DEPENDS}
26
26
27
OPTIONS_DEFINE=	WEBDAV OPENSSL PYDOT PYTZ
27
USERS=		trytond
28
GROUPS=		trytond
29
30
OPTIONS_DEFINE=	WEBDAV PYOPENSSL PYDOT PYTZ
28
WEBDAV_DESC=	Add support for pywebdav
31
WEBDAV_DESC=	Add support for pywebdav
29
OPENSSL_DESC=	Add support for pyOpenSSL
32
PYOPENSSL_DESC=	Add support for pyOpenSSL
30
PYDOT_DESC=	Add support for pydot
33
PYDOT_DESC=	Add support for pydot
31
PYTZ_DESC=	Add support for pytz
34
PYTZ_DESC=	Add support for pytz
32
35
36
USE_RC_SUBR=	${PORTNAME}
33
SUB_FILES=	pkg-message
37
SUB_FILES=	pkg-message
34
SUB_LIST=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
38
SUB_LIST=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
35
		PYEASYINSTALL_EGG=${PYEASYINSTALL_EGG}
39
		PYEASYINSTALL_EGG=${PYEASYINSTALL_EGG} \
40
		PYTHON=${PYTHON_CMD}
36
41
37
USE_PYTHON=	yes
42
USE_PYTHON=	yes
38
USE_PYDISTUTILS=easy_install
43
USE_PYDISTUTILS=easy_install
Lines 56-61 Link Here
56
.endif
61
.endif
57
62
58
post-install:
63
post-install:
64
		${CP} -p ${WRKSRC}/etc/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
65
		@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
66
			${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf ; \
67
		fi
59
		@${CAT} ${PKGMESSAGE}
68
		@${CAT} ${PKGMESSAGE}
60
69
61
.include <bsd.port.mk>
70
.include <bsd.port.mk>

Return to bug 171716