diff options
| author | networkException <git@nwex.de> | 2025-04-18 13:33:55 +0200 |
|---|---|---|
| committer | networkException <git@nwex.de> | 2025-04-18 13:36:24 +0200 |
| commit | 78b9b451b2da03a3d3261247bbbdde2f8195919d (patch) | |
| tree | 1a5d695dfd3e1aee4405930d5b028a3963651bef /scripts | |
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')
| -rwxr-xr-x | scripts/makedeb-docker | 11 | ||||
| -rwxr-xr-x | scripts/makedeb-docker-helper | 34 |
2 files changed, 45 insertions, 0 deletions
diff --git a/scripts/makedeb-docker b/scripts/makedeb-docker new file mode 100755 index 0000000..6c06971 --- /dev/null +++ b/scripts/makedeb-docker @@ -0,0 +1,11 @@ +#!/bin/sh + +mkdir -p out + +docker run --rm -v "${PWD}:/orig:ro" -v "${PWD}/scripts:/scripts:ro" \ + -v "${PWD}/out:/out" -e USER=$(id -u) -e GROUP=$(id -g) \ + -e "DEBEMAIL=${DEBEMAIL}" -e "DEBFULLNAME=${DEBFULLNAME}" \ + -e "LOGNAME=${LOGNAME}" -e "VERSION=$(git describe --dirty)-1" \ + debian:buster /scripts/makedeb-docker-helper + +echo "Debian package has been written to $(pwd)/out" 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 |
