View | Details | Raw Unified | Return to bug 227219 | Differences between
and this patch

Collapse All | Expand All

(-)databases/arangodb32/Makefile (+10 lines)
Lines 4-9 Link Here
4
PORTNAME=	arangodb
4
PORTNAME=	arangodb
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
DISTVERSION=	3.2.10
6
DISTVERSION=	3.2.10
7
PORTREVISION=	1
7
CATEGORIES=	databases net
8
CATEGORIES=	databases net
8
PKGNAMESUFFIX=	32
9
PKGNAMESUFFIX=	32
9
10
Lines 27-32 USERS= arangodb Link Here
27
GROUPS=		arangodb
28
GROUPS=		arangodb
28
USE_RC_SUBR=	arangod
29
USE_RC_SUBR=	arangod
29
30
31
.include <bsd.port.options.mk>
32
33
.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1101515 || \
34
	${OSVERSION} >= 1200000 && ${OSVERSION} < 1200057
35
SUB_LIST+=	LEGACY_LIMITS="" MODERN_LIMITS="@comment "
36
.else
37
SUB_LIST+=	LEGACY_LIMITS="@comment " MODERN_LIMITS=""
38
.endif
39
30
post-install:
40
post-install:
31
.for section in 1 8
41
.for section in 1 8
32
	${MV} ${STAGEDIR}${PREFIX}/share/man/man${section}/* ${STAGEDIR}${PREFIX}/man/man${section}/
42
	${MV} ${STAGEDIR}${PREFIX}/share/man/man${section}/* ${STAGEDIR}${PREFIX}/man/man${section}/
(-)databases/arangodb32/files/arangod.in (-10 / +11 lines)
Lines 9-21 Link Here
9
#
9
#
10
# arangod_enable (bool): Set to "NO" by default.
10
# arangod_enable (bool): Set to "NO" by default.
11
#                        Set it to "YES" to enable arangod.
11
#                        Set it to "YES" to enable arangod.
12
# arangod_limits (bool): Set to "NO" by default.
12
%%LEGACY_LIMITS%%# arangod_limits (bool): Set to "NO" by default.
13
#                        Set it to yes to run `limits -e -U arangodb`
13
%%LEGACY_LIMITS%%#                        Set it to yes to run `limits -e -U arangodb`
14
#                        just before arangod starts.
14
%%LEGACY_LIMITS%%#                        just before arangod starts.
15
# arangod_dbpath (str):  Default to "/var/db/arangodb"
15
# arangod_dbpath (str):  Default to "/var/db/arangodb"
16
#                        Base database directory.
16
#                        Base database directory.
17
# arangod_logpath (str): Default to "/var/log/arangodb"
17
# arangod_logpath (str): Default to "/var/log/arangodb"
18
#                        Base logging directory 
18
#                        Base logging directory
19
# arangod_apppath (str): Default to "/var/db/arangodb-apps"
19
# arangod_apppath (str): Default to "/var/db/arangodb-apps"
20
#                        Base apps directory
20
#                        Base apps directory
21
# arangod_flags (str):   Custom additional arguments to be passed to arangod.
21
# arangod_flags (str):   Custom additional arguments to be passed to arangod.
Lines 32-38 rcvar=arangod_enable Link Here
32
load_rc_config $name
32
load_rc_config $name
33
33
34
: ${arangod_enable="NO"}
34
: ${arangod_enable="NO"}
35
: ${arangod_limits="NO"}
35
%%LEGACY_LIMITS%%: ${arangod_limits="NO"}
36
: ${arangod_dbpath="/var/db/arangodb"}
36
: ${arangod_dbpath="/var/db/arangodb"}
37
: ${arangod_logpath="/var/log/arangodb"}
37
: ${arangod_logpath="/var/log/arangodb"}
38
: ${arangod_apppath="/var/db/arangodb-apps"}
38
: ${arangod_apppath="/var/db/arangodb-apps"}
Lines 75-85 arangod_prestart() Link Here
75
        if [ ! -d ${arangod_apppath} ]; then
75
        if [ ! -d ${arangod_apppath} ]; then
76
                arangod_create_apppath || return 1
76
                arangod_create_apppath || return 1
77
        fi
77
        fi
78
        if checkyesno arangod_limits; then
78
%%LEGACY_LIMITS%%        if checkyesno arangod_limits; then
79
                eval `/usr/bin/limits -e -U ${arangod_user}` 2>/dev/null
79
%%LEGACY_LIMITS%%                eval `/usr/bin/limits -e -U ${arangod_user}` 2>/dev/null
80
        else
80
%%LEGACY_LIMITS%%        else
81
                return 0
81
%%LEGACY_LIMITS%%                return 0
82
        fi
82
%%LEGACY_LIMITS%%        fi
83
%%MODERN_LIMITS%%        return 0
83
}
84
}
84
85
85
run_rc_command "$1"
86
run_rc_command "$1"

Return to bug 227219