Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2018 19:56:37 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r461738 - in head: . www www/osrm-backend www/osrm-backend/files
Message-ID:  <201802131956.w1DJubue068086@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Tue Feb 13 19:56:37 2018
New Revision: 461738
URL: https://svnweb.freebsd.org/changeset/ports/461738

Log:
  New port: www/osrm-backend
  
  This is a port of osrm-backend of the open-streetmap project.
  
  WWW: http://project-osrm.org/
  
  PR:		215524
  Submitted by:	Andreas Andersson <a.andersson.thn@gmail.com>
  Reviewed by:	koobs, ultima, tz

Added:
  head/www/osrm-backend/
  head/www/osrm-backend/Makefile   (contents, props changed)
  head/www/osrm-backend/distinfo   (contents, props changed)
  head/www/osrm-backend/files/
  head/www/osrm-backend/files/osrm.in   (contents, props changed)
  head/www/osrm-backend/pkg-descr   (contents, props changed)
  head/www/osrm-backend/pkg-plist   (contents, props changed)
Modified:
  head/GIDs
  head/UIDs
  head/www/Makefile

Modified: head/GIDs
==============================================================================
--- head/GIDs	Tue Feb 13 19:39:51 2018	(r461737)
+++ head/GIDs	Tue Feb 13 19:56:37 2018	(r461738)
@@ -168,7 +168,7 @@ rtpproxy:*:222:
 postgrey:*:225:
 sqlgrey:*:226:
 _hfm:*:227:
-# free: 228
+osrm:*:228:
 kismet:*:229:
 # free: 230
 # free: 231

Modified: head/UIDs
==============================================================================
--- head/UIDs	Tue Feb 13 19:39:51 2018	(r461737)
+++ head/UIDs	Tue Feb 13 19:56:37 2018	(r461738)
@@ -173,7 +173,7 @@ rtpproxy:*:222:222::0:0:& user:/nonexistent:/sbin/nolo
 postgrey:*:225:225::0:0:Postgrey Owner:/nonexistent:/usr/sbin/nologin
 sqlgrey:*:226:226::0:0:SQLgrey Owner:/nonexistent:/usr/sbin/nologin
 _hfm:*:227:227::0:0:hfm daemon:/nonexistent:/usr/sbin/nologin
-# free: 228
+osrm:*:228:228::0:0:osrm:/nonexistent:/usr/sbin/nologin
 # free: 229
 # free: 230
 # free: 231

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Tue Feb 13 19:39:51 2018	(r461737)
+++ head/www/Makefile	Tue Feb 13 19:56:37 2018	(r461738)
@@ -591,6 +591,7 @@
     SUBDIR += opera-linuxplugins
     SUBDIR += orangehrm
     SUBDIR += oscommerce
+    SUBDIR += osrm-backend
     SUBDIR += otrs
     SUBDIR += otter-browser
     SUBDIR += owncloud

Added: head/www/osrm-backend/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/osrm-backend/Makefile	Tue Feb 13 19:56:37 2018	(r461738)
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+PORTNAME=		osrm-backend
+DISTVERSIONPREFIX=	v
+DISTVERSION=		5.15.2
+CATEGORIES=		www
+
+MAINTAINER=		a.andersson.thn@gmail.com
+COMMENT=		Open Source Routing Machine (Backend)
+
+LICENSE=		BSD2CLAUSE
+LICENSE_FILE=		${WRKSRC}/LICENSE.TXT
+
+BUILD_DEPENDS=		${LOCALBASE}/lib/libstxxl.a:devel/stxxl
+LIB_DEPENDS=		libtbb.so:devel/tbb \
+			libtbbmalloc.so:devel/tbb \
+			libluabind.so:devel/luabind \
+			libboost_program_options.so:devel/boost-libs \
+			libboost_date_time.so:devel/boost-libs \
+			libboost_chrono.so:devel/boost-libs \
+			libboost_filesystem.so:devel/boost-libs \
+			libboost_iostreams.so:devel/boost-libs \
+			libboost_thread.so:devel/boost-libs \
+			libboost_system.so:devel/boost-libs \
+			libboost_regex.so:devel/boost-libs \
+			libexpat.so:textproc/expat2
+
+USES=			cmake:outsource lua:52 compiler:c++14-lang
+
+USE_LDCONFIG=		yes
+OPTIONS_DEFINE=		DEBUG
+
+USE_RC_SUBR=		osrm
+USERS=			osrm
+GROUPS=			osrm
+
+USE_GITHUB=		yes
+GH_ACCOUNT=		Project-OSRM
+
+LUA_VER=		5.2
+
+pre-install:
+	${MKDIR}	${STAGEDIR}/var/db/osrm-backend
+.include <bsd.port.mk>

Added: head/www/osrm-backend/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/osrm-backend/distinfo	Tue Feb 13 19:56:37 2018	(r461738)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1518251752
+SHA256 (Project-OSRM-osrm-backend-v5.15.2_GH0.tar.gz) = ab966e9b38b4a64d3b43a83ae0b2b9ce4fddc040a230a0f4ed48e2d46ddaf229
+SIZE (Project-OSRM-osrm-backend-v5.15.2_GH0.tar.gz) = 5018331

Added: head/www/osrm-backend/files/osrm.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/osrm-backend/files/osrm.in	Tue Feb 13 19:56:37 2018	(r461738)
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+# $FreeBSD$
+
+# PROVIDE: osrm
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+#
+#
+# osrm_enable (bool):		Set to NO by default.
+#				Set it to YES to enable osrm-backend.
+# osrm_flags (flags):		Empty by default
+#				Adjust it to your needs.
+# osrm_file (path):		The path to the osrm-file you intend
+#				to use with osrm.
+# osrm_shared_memory (bool):	Set to NO by default.
+#				When enabled it will ignore osrm_file
+#				and assume osrm-datastore has set up
+#				the data in shared memory.
+#				osrm will fail to start if this is
+#				enbled and osrm-datastore hasnt set
+#                               up the shared memory.
+
+. /etc/rc.subr
+
+name="osrm"
+rcvar=${name}_enable
+load_rc_config $name
+
+: ${osrm_enable:="NO"}
+: ${osrm_user:="osrm"}
+: ${osrm_group:="osrm"}
+: ${osrm_flags:=""}
+: ${osrm_shared_memory:="NO"}
+: ${osrm_file:=""}
+
+
+
+
+pidfile="/var/run/osrm.pid"
+procname="/usr/local/bin/osrm-routed"
+command=/usr/sbin/daemon
+start_precmd="osrm_precmd"
+
+osrm_precmd()
+{
+    if checkyesno osrm_shared_memory; then
+        command_args="-f -c -p ${pidfile} ${procname} --shared-memory=yes ${osrm_flags}"
+    else
+	    
+        if [ -f "$osrm_file" ]; then
+            chown ${osrm_user}:${osrm_group} ${osrm_file}
+            command_args="-f -c -p ${pidfile} ${procname} ${osrm_flags} ${osrm_file}"
+        else
+	    err 1 "Osrm file not found or osrm_file variable empty."    
+        fi
+    fi
+    install -o $osrm_user -m 644 /dev/null ${pidfile}
+}
+
+
+run_rc_command "$1"

Added: head/www/osrm-backend/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/osrm-backend/pkg-descr	Tue Feb 13 19:56:37 2018	(r461738)
@@ -0,0 +1,3 @@
+This is a port of osrm-backend of the open-streetmap project.
+
+WWW: http://project-osrm.org/

Added: head/www/osrm-backend/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/osrm-backend/pkg-plist	Tue Feb 13 19:56:37 2018	(r461738)
@@ -0,0 +1,95 @@
+bin/osrm-components
+bin/osrm-contract
+bin/osrm-customize
+bin/osrm-datastore
+bin/osrm-extract
+bin/osrm-partition
+bin/osrm-routed
+include/mapbox/optional.hpp
+include/mapbox/recursive_wrapper.hpp
+include/mapbox/variant.hpp
+include/mapbox/variant_io.hpp
+include/mapbox/variant_visitor.hpp
+include/osrm/approach.hpp
+include/osrm/bearing.hpp
+include/osrm/contractor.hpp
+include/osrm/contractor/contractor.hpp
+include/osrm/contractor/contractor_config.hpp
+include/osrm/contractor_config.hpp
+include/osrm/coordinate.hpp
+include/osrm/engine/api/base_parameters.hpp
+include/osrm/engine/api/match_parameters.hpp
+include/osrm/engine/api/nearest_parameters.hpp
+include/osrm/engine/api/route_parameters.hpp
+include/osrm/engine/api/table_parameters.hpp
+include/osrm/engine/api/tile_parameters.hpp
+include/osrm/engine/api/trip_parameters.hpp
+include/osrm/engine/approach.hpp
+include/osrm/engine/bearing.hpp
+include/osrm/engine/engine_config.hpp
+include/osrm/engine/hint.hpp
+include/osrm/engine/phantom_node.hpp
+include/osrm/engine/status.hpp
+include/osrm/engine_config.hpp
+include/osrm/error_codes.hpp
+include/osrm/exception.hpp
+include/osrm/extractor.hpp
+include/osrm/extractor/extractor.hpp
+include/osrm/extractor/extractor_config.hpp
+include/osrm/extractor/io_config.hpp
+include/osrm/extractor/travel_mode.hpp
+include/osrm/extractor_config.hpp
+include/osrm/json_container.hpp
+include/osrm/match_parameters.hpp
+include/osrm/nearest_parameters.hpp
+include/osrm/osrm.hpp
+include/osrm/osrm_fwd.hpp
+include/osrm/partition/partition_config.hpp
+include/osrm/partition/partitioner.hpp
+include/osrm/route_parameters.hpp
+include/osrm/status.hpp
+include/osrm/storage/io_config.hpp
+include/osrm/storage/storage.hpp
+include/osrm/storage/storage_config.hpp
+include/osrm/storage_config.hpp
+include/osrm/table_parameters.hpp
+include/osrm/tile_parameters.hpp
+include/osrm/trip_parameters.hpp
+include/osrm/util/alias.hpp
+include/osrm/util/bearing.hpp
+include/osrm/util/coordinate.hpp
+include/osrm/util/exception.hpp
+include/osrm/util/json_container.hpp
+include/osrm/util/typedefs.hpp
+%%LUA_LIBDIR%%/%%LUA_LIBDIR%%osrm.a
+%%LUA_LIBDIR%%/%%LUA_LIBDIR%%osrm_contract.a
+%%LUA_LIBDIR%%/%%LUA_LIBDIR%%osrm_customize.a
+%%LUA_LIBDIR%%/%%LUA_LIBDIR%%osrm_extract.a
+%%LUA_LIBDIR%%/%%LUA_LIBDIR%%osrm_partition.a
+%%LUA_LIBDIR%%/%%LUA_LIBDIR%%osrm_store.a
+%%LUA_LIBDIR%%/%%LUA_LIBDIR%%osrm_update.a
+%%LUA_LIBDIR%%data/pkgconfig/%%LUA_LIBDIR%%osrm.pc
+share/osrm/profiles/bicycle.lua
+share/osrm/profiles/car.lua
+share/osrm/profiles/debug_example.lua
+share/osrm/profiles/examples/postgis.lua
+share/osrm/profiles/foot.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/access.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/destination.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/guidance.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/maxspeed.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/measure.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/pprint.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/profile_debugger.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/relations.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/sequence.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/set.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/tags.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/utils.lua
+share/osrm/profiles/%%LUA_LIBDIR%%/way_handlers.lua
+share/osrm/profiles/rasterbot.lua
+share/osrm/profiles/rasterbotinterp.lua
+share/osrm/profiles/test.lua
+share/osrm/profiles/testbot.lua
+share/osrm/profiles/turnbot.lua
+@dir /var/db/osrm-backend



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802131956.w1DJubue068086>