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

Collapse All | Expand All

(-)www/osrm-backend/Makefile (+44 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=		osrm-backend
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=		5.15.2
6
CATEGORIES=		www
7
8
MAINTAINER=		a.andersson.thn@gmail.com
9
COMMENT=		Open Source Routing Machine (Backend)
10
11
LICENSE=		BSD2CLAUSE
12
LICENSE_FILE=		${WRKSRC}/LICENSE.TXT
13
14
BUILD_DEPENDS=		${LOCALBASE}/lib/libstxxl.a:devel/stxxl
15
LIB_DEPENDS=		libtbb.so:devel/tbb \
16
			libtbbmalloc.so:devel/tbb \
17
			libluabind.so:devel/luabind \
18
			libboost_program_options.so:devel/boost-libs \
19
			libboost_date_time.so:devel/boost-libs \
20
			libboost_chrono.so:devel/boost-libs \
21
			libboost_filesystem.so:devel/boost-libs \
22
			libboost_iostreams.so:devel/boost-libs \
23
			libboost_thread.so:devel/boost-libs \
24
			libboost_system.so:devel/boost-libs \
25
			libboost_regex.so:devel/boost-libs \
26
			libexpat.so:textproc/expat2
27
28
USES=			cmake:outsource lua:52 compiler:c++14-lang
29
30
USE_LDCONFIG=		yes
31
OPTIONS_DEFINE=		DEBUG
32
33
USE_RC_SUBR=		osrm
34
USERS=			osrm
35
GROUPS=			osrm
36
37
USE_GITHUB=		yes
38
GH_ACCOUNT=		Project-OSRM
39
40
LUA_VER=		5.2
41
42
pre-install:
43
	${MKDIR}	${STAGEDIR}/var/db/osrm-backend
44
.include <bsd.port.mk>
(-)www/osrm-backend/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1518251752
2
SHA256 (Project-OSRM-osrm-backend-v5.15.2_GH0.tar.gz) = ab966e9b38b4a64d3b43a83ae0b2b9ce4fddc040a230a0f4ed48e2d46ddaf229
3
SIZE (Project-OSRM-osrm-backend-v5.15.2_GH0.tar.gz) = 5018331
(-)www/osrm-backend/files/osrm.in (+60 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# PROVIDE: osrm
4
# REQUIRE: LOGIN cleanvar
5
# KEYWORD: shutdown
6
#
7
#
8
# osrm_enable (bool):		Set to NO by default.
9
#				Set it to YES to enable osrm-backend.
10
# osrm_flags (flags):		Empty by default
11
#				Adjust it to your needs.
12
# osrm_file (path):		The path to the osrm-file you intend
13
#				to use with osrm.
14
# osrm_shared_memory (bool):	Set to NO by default.
15
#				When enabled it will ignore osrm_file
16
#				and assume osrm-datastore has set up
17
#				the data in shared memory.
18
#				osrm will fail to start if this is
19
#				enbled and osrm-datastore hasnt set
20
#                               up the shared memory.
21
22
. /etc/rc.subr
23
24
name="osrm"
25
rcvar=${name}_enable
26
load_rc_config $name
27
28
: ${osrm_enable:="NO"}
29
: ${osrm_user:="osrm"}
30
: ${osrm_group:="osrm"}
31
: ${osrm_flags:=""}
32
: ${osrm_shared_memory:="NO"}
33
: ${osrm_file:=""}
34
35
36
37
38
pidfile="/var/run/osrm.pid"
39
procname="/usr/local/bin/osrm-routed"
40
command=/usr/sbin/daemon
41
start_precmd="osrm_precmd"
42
43
osrm_precmd()
44
{
45
    if checkyesno osrm_shared_memory; then
46
        command_args="-f -c -p ${pidfile} ${procname} --shared-memory=yes ${osrm_flags}"
47
    else
48
	    
49
        if [ -f "$osrm_file" ]; then
50
            chown ${osrm_user}:${osrm_group} ${osrm_file}
51
            command_args="-f -c -p ${pidfile} ${procname} ${osrm_flags} ${osrm_file}"
52
        else
53
	    err 1 "Osrm file not found or osrm_file variable empty."    
54
        fi
55
    fi
56
    install -o $osrm_user -m 644 /dev/null ${pidfile}
57
}
58
59
60
run_rc_command "$1"
(-)www/osrm-backend/pkg-descr (+3 lines)
Line 0 Link Here
1
This is a port of osrm-backend of the open-streetmap project.
2
3
WWW: http://project-osrm.org/
(-)www/osrm-backend/pkg-plist (+1 lines)
Line 0 Link Here
1

Return to bug 215524