From 4ae4aff300ade9203f61fea9a2a8f6cf6388d736 Mon Sep 17 00:00:00 2001 From: Saul Pablo Labajo Izquierdo Date: Fri, 17 Mar 2023 21:57:23 +0100 Subject: [PATCH] kurento module --- .devcontainer/Dockerfile | 29 ++++++++++++++++++++++++++ .devcontainer/devcontainer.json | 32 ++++++++++++++++++++++++++++ .devcontainer/repo_cfg | 2 ++ configure.ac | 6 +++--- debian/changelog | 11 ++++++++++ debian/compat | 1 + debian/control | 37 +++++++++++++++++++++++++++++++++ debian/copyright | 10 +++++++++ debian/docs | 1 + debian/kms-gladstone.install | 1 + debian/rules | 18 ++++++++++++++++ debian/source/format | 1 + 12 files changed, 146 insertions(+), 3 deletions(-) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/repo_cfg create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/kms-gladstone.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..89822e3 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,29 @@ +# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/cpp/.devcontainer/base.Dockerfile + +# [Choice] Debian / Ubuntu version: debian-11, debian-10, debian-9, ubuntu-20.04, ubuntu-18.04 +ARG VARIANT="buster" +FROM mcr.microsoft.com/vscode/devcontainers/cpp:0-${VARIANT} + +# [Optional] Uncomment this section to install additional packages. +# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ +# && apt-get -y install --no-install-recommends +RUN apt update && apt install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + cmake \ + git \ + gnupg \ + gdb + +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83 + +COPY repo_cfg /tmp + +RUN bash -c "source /etc/upstream-release/lsb-release 2>/dev/null || source /etc/lsb-release " +RUN tee "/etc/apt/sources.list.d/kurento.list" >/dev/null < /tmp/repo_cfg \ + && rm /tmp/repo_cfg && apt update + +RUN apt install -y --no-install-recommends \ + kurento-media-server-dev + +RUN apt install -y devscripts git-buildpackage equivs \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c2bc000 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/cpp +{ + "name": "C++", + "build": { + "dockerfile": "Dockerfile", + // Update 'VARIANT' to pick an Debian / Ubuntu OS version: debian-11, debian-10, debian-9, ubuntu-20.04, ubuntu-18.04 + "args": { "VARIANT": "ubuntu-18.04" } + }, + "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], + + // Set *default* container specific settings.json values on container create. + "settings": {}, + + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "ms-vscode.cpptools", + "twxs.cmake", + "ms-vscode.cmake-tools", + "mhutchie.git-graph", + "austin.code-gnu-global" + ], + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "gcc -v", + + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" +} \ No newline at end of file diff --git a/.devcontainer/repo_cfg b/.devcontainer/repo_cfg new file mode 100644 index 0000000..ed022d4 --- /dev/null +++ b/.devcontainer/repo_cfg @@ -0,0 +1,2 @@ +# Kurento Media Server - Nightly packages +deb [arch=amd64] http://ubuntu.openvidu.io/6.18.0 bionic kms6 diff --git a/configure.ac b/configure.ac index 28476e1..7047454 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,9 @@ AC_INIT dnl versions of gstreamer and plugins-base -GST_MAJORMINOR=1.0 -GST_REQUIRED=1.0 -GSTPB_REQUIRED=1.0 +GST_MAJORMINOR=1.5 +GST_REQUIRED=1.5 +GSTPB_REQUIRED=1.5 dnl fill in your package name and version here dnl the fourth (nano) number should be 0 for a release, 1 for CVS, diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4a7973c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,11 @@ +kms-gladstone (1.0.0) testing; urgency=medium + + * Release 1.0.0 + + -- Saul Pablo Labajo Izquierdo Tue, 14 Mar 2023 12:30:01 +0200 + +kms-gladstone (0.0.1~rc1) testing; urgency=medium + + * Initial release. + + -- Saul Pablo Labajo Izquierdo Wed, 9 Oct 2019 12:30:01 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..646ed09 --- /dev/null +++ b/debian/control @@ -0,0 +1,37 @@ +Source: kms-gladstone +Maintainer: NaevaTec +Priority: optional +Build-Depends: debhelper (>= 9), + cmake, + pkg-config, + kms-core-dev (>= 6.17.0), + kms-elements-dev (>= 6.17.0), + kms-filters-dev (>= 6.17.0), +Standards-Version: 4.0.0 +Homepage: www.kurento.org +Vcs-Browser: https:// +Vcs-Git: https:// + +Package: kms-gladstone +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends}, + kms-core (>= 6.17.0), + kms-elements (>= 6.17.0), + kms-filters (>= 6.17.0) +Description: Kurento GladStone G729 codec + +Package: kms-gladstone-dev +Architecture: any +Section: libdevel +Depends: kms-gladstone (= ${binary:Version}), + kms-core-dev (>= 6.17.0), + kms-elements-dev (>= 6.17.0), + kms-filters-dev (>= 6.17.0), +Description: Kurento GladStone G729 codec - Development files + +Package: kms-gladstone-dbg +Architecture: any +Section: debug +Depends: kms-gladstone (= ${binary:Version}) +Description: Kurento GladStone G729 codec - Debug symbols diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..395b1d2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: kms-datachannel-adapter +Upstream-Contact: NaevaTec +Source: https:// + +Files: * +Copyright: Copyright 2019 NaevaTec (www.naevatec.com) +License: Apache-2.0 + On Debian systems, the full text of the Apache License, Version 2.0 + can be found in the file '/usr/share/common-licenses/Apache-2.0'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..42061c0 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md \ No newline at end of file diff --git a/debian/kms-gladstone.install b/debian/kms-gladstone.install new file mode 100644 index 0000000..7bdaeac --- /dev/null +++ b/debian/kms-gladstone.install @@ -0,0 +1 @@ +src/.libs/*.so /usr/lib/x86_64-linux-gnu/gstreamer-1.5/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..db3c7f3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +# export DH_VERBOSE=1 + +%: + dh $@ --parallel + +override_dh_auto_configure: + rm -rf debian/build + mkdir debian/build + ./autogen.sh --noconfigure + ./configure --enable-refcode-download --prefix=$(pwd)/debian/build + +override_dh_auto_build: + make + make install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)