summaryrefslogtreecommitdiff
path: root/scripts/makedeb-docker-helper
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2025-04-18 13:33:55 +0200
committernetworkException <git@nwex.de>2025-04-18 13:36:24 +0200
commit78b9b451b2da03a3d3261247bbbdde2f8195919d (patch)
tree1a5d695dfd3e1aee4405930d5b028a3963651bef /scripts/makedeb-docker-helper
Initial version of Travel::Status::MOTIS
This patch contains the initial implementation of Travel::Status::MOTIS, an interface to MOTIS routing services for departures, trips and stop search based on Travel::Status::DE::DBRIS. While MOTIS' focus is on intermodal routing, this module has been written for use in https://finalrewind.org/projects/travelynx, as such it focuses on departures at stops and trips. As MOTIS is open source and can be self hosted, there are multiple services (sourced from the transport-apis repository located as a submodule in `ext/`), available: Currently RNV for local transit in Mannheim, Germany and surrounding cities and transitous for worldwide crowdsourced tranit feeds. In addition to scheduled stops and trips this module supports realtime delay predictions, tracks, polylines, cancellations, headsigns and route colors whenever available.
Diffstat (limited to 'scripts/makedeb-docker-helper')
-rwxr-xr-xscripts/makedeb-docker-helper34
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/makedeb-docker-helper b/scripts/makedeb-docker-helper
new file mode 100755
index 0000000..44b48b4
--- /dev/null
+++ b/scripts/makedeb-docker-helper
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+set -e
+
+export DEBIAN_FRONTEND=noninteractive
+export APT_LISTCHANGES_FRONTEND=none
+
+apt-get update
+apt-get -y install \
+ apt-file dh-make-perl libmodule-build-perl \
+ libclass-accessor-perl libdatetime-perl libdatetime-format-strptime-perl \
+ liblwp-protocol-https-perl libjson-perl libjson-xs-perl \
+ liblist-moreutils-perl \
+ libwww-perl \
+ libtest-compile-perl libtest-pod-perl \
+ libtest-simple-perl
+
+apt-file update
+apt-cache dumpavail | dpkg --merge-avail
+
+mkdir -p /src/app
+cp -a /orig/Build.PL /orig/Changelog /orig/README.md /src/app
+cp -a /orig/bin /orig/lib /src/app
+cd /src/app
+
+sed -i 's/sign *=> *1/sign => 0/' Build.PL
+perl Build.PL
+perl Build
+perl Build manifest
+perl Build dist
+mv Travel-Status-MOTIS-*.tar.gz ../app.tar.gz
+dh-make-perl --build --version "${VERSION}"
+chown ${USER}:${GROUP} ../*.deb
+mv -v ../*.deb /out