From 8d9c9cc1cd9aa1b18b1cbf8c0d7e8a8b6fbe9738 Mon Sep 17 00:00:00 2001 From: n-connect Date: Wed, 20 May 2020 08:42:22 +0200 Subject: [PATCH] FreeBSD updates (#2) * FreeBSD update 1. run the build with gmake build on FreeBSD 2. Using env instead of direct interpreter call in head of python script - more flexible use of python scripts (there's no default symlink like python2 or python3 in FreeBSD) 3. removing full path before of 'curl' to be able to run it by the script for dependency downloads * FreeBSD Update Change script header using env instead of direct Bash shell call (full path of 'env' is '/usr/bin/env') * Update README.md * Fixed update to work on FreeBSD too After applying the meta-package it is more widely usable --- README.md | 4 ++++ scripts/get-version.sh | 2 +- scripts/get_continent_map.py | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f05a59e..2ca0ebf 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ dependencies are fetched automatically while building. $ make build +or on FreeBSD + + $ gmake build + Afterwards the binary is created as `bin/signaling`. diff --git a/scripts/get-version.sh b/scripts/get-version.sh index 409941d..39b009b 100755 --- a/scripts/get-version.sh +++ b/scripts/get-version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e ROOT="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" diff --git a/scripts/get_continent_map.py b/scripts/get_continent_map.py index 9a1d4c5..aa33b70 100755 --- a/scripts/get_continent_map.py +++ b/scripts/get_continent_map.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # Standalone signaling server for the Nextcloud Spreed app. # Copyright (C) 2019 struktur AG @@ -51,7 +51,7 @@ else: def generate_map(filename): data = subprocess.check_output([ - '/usr/bin/curl', + 'curl', '-L', URL, ])