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
This commit is contained in:
n-connect 2020-05-20 08:42:22 +02:00 committed by GitHub
parent bffa2eb01a
commit 8d9c9cc1cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -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`.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
ROOT="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"

View file

@ -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,
])