Compare commits
No commits in common. "master" and "revert-29-master" have entirely different histories.
master
...
revert-29-
274 changed files with 8650 additions and 15996 deletions
16
.github/issue_template
vendored
16
.github/issue_template
vendored
|
@ -1,16 +0,0 @@
|
|||
Please make sure that the issue subject starts with `<package-name>: `
|
||||
|
||||
Also make sure that the package is maintained in this repository and not in base which should be submitted at https://bugs.openwrt.org or in the LuCI repository which should be submitted at https://github.com/openwrt/luci/issues.
|
||||
|
||||
Issues related to releases below 18.06 and forks are not supported or maintained and will be closed.
|
||||
|
||||
# Issue template (remove lines from top till here)
|
||||
|
||||
Maintainer: @\<github-user> (find it by checking history of the package Makefile)
|
||||
Environment: (put here arch, model, OpenWrt version)
|
||||
|
||||
Description:
|
||||
|
||||
```
|
||||
Format code blocks by wrapping them with pairs of ```
|
||||
```
|
5
.github/pull_request_template
vendored
5
.github/pull_request_template
vendored
|
@ -1,5 +0,0 @@
|
|||
Maintainer: me / @\<github-user> (find it by checking history of the package Makefile)
|
||||
Compile tested: (put here arch, model, OpenWrt version)
|
||||
Run tested: (put here arch, model, OpenWrt version, tests done)
|
||||
|
||||
Description:
|
6
.github/workflows/Dockerfile
vendored
6
.github/workflows/Dockerfile
vendored
|
@ -1,6 +0,0 @@
|
|||
ARG ARCH=x86-64
|
||||
FROM openwrt/rootfs:$ARCH
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -1,91 +0,0 @@
|
|||
name: Check autorelease deprecation
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, converted_to_draft, ready_for_review, edited]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Check autorelease deprecation
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Determine branch name
|
||||
run: |
|
||||
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
|
||||
echo "Building for $BRANCH"
|
||||
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
|
||||
|
||||
- name: Determine changed packages
|
||||
run: |
|
||||
RET=0
|
||||
|
||||
# only detect packages with changes
|
||||
PKG_ROOTS=$(find . -name Makefile | \
|
||||
grep -v ".*/src/Makefile" | \
|
||||
sed -e 's@./\(.*\)/Makefile@\1/@')
|
||||
CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH...)
|
||||
|
||||
for ROOT in $PKG_ROOTS; do
|
||||
for CHANGE in $CHANGES; do
|
||||
if [[ "$CHANGE" == "$ROOT"* ]]; then
|
||||
if grep -q '$(AUTORELEASE)' "$ROOT/Makefile"; then
|
||||
CONTAINS_AUTORELEASE+="$ROOT"
|
||||
fi
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
if [ -n "$CONTAINS_AUTORELEASE" ]; then
|
||||
RET=1
|
||||
cat > "$GITHUB_WORKSPACE/pr_comment.md" << EOF
|
||||
Please do no longer set *PKG_RELEASE* to *AUTORELEASE* as the
|
||||
feature is deprecated. Please use an integer instead. Below is a
|
||||
list of affected packages including correct *PKG_RELEASE*:
|
||||
|
||||
EOF
|
||||
fi
|
||||
|
||||
for ROOT in $CONTAINS_AUTORELEASE; do
|
||||
echo -n " - ${ROOT}Makefile: PKG_RELEASE:=" >> "$GITHUB_WORKSPACE/pr_comment.md"
|
||||
last_bump="$(git log --pretty=format:'%h %s' "$ROOT" |
|
||||
grep --max-count=1 -e ': [uU]pdate to ' -e ': [bB]ump to ' |
|
||||
cut -f 1 -d ' ')"
|
||||
|
||||
if [ -n "$last_bump" ]; then
|
||||
echo -n $(($(git rev-list --count "$last_bump..HEAD" "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md"
|
||||
else
|
||||
echo -n $(($(git rev-list --count HEAD "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md"
|
||||
fi
|
||||
echo >> "$GITHUB_WORKSPACE/pr_comment.md"
|
||||
done
|
||||
|
||||
exit $RET
|
||||
|
||||
- name: Find Comment
|
||||
uses: peter-evans/find-comment@v2
|
||||
if: ${{ failure() }}
|
||||
id: fc
|
||||
with:
|
||||
issue-number: ${{ github.event.pull_request.number }}
|
||||
comment-author: 'github-actions[bot]'
|
||||
|
||||
- name: Create or update comment
|
||||
uses: peter-evans/create-or-update-comment@v2
|
||||
if: ${{ failure() }}
|
||||
with:
|
||||
comment-id: ${{ steps.fc.outputs.comment-id }}
|
||||
issue-number: ${{ github.event.pull_request.number }}
|
||||
body-file: 'pr_comment.md'
|
||||
edit-mode: replace
|
26
.github/workflows/ci_helpers.sh
vendored
26
.github/workflows/ci_helpers.sh
vendored
|
@ -1,26 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
color_out() {
|
||||
printf "\e[0;$1m$PKG_NAME: %s\e[0;0m\n" "$2"
|
||||
}
|
||||
|
||||
success() {
|
||||
color_out 32 "$1"
|
||||
}
|
||||
|
||||
info() {
|
||||
color_out 36 "$1"
|
||||
}
|
||||
|
||||
err() {
|
||||
color_out 31 "$1"
|
||||
}
|
||||
|
||||
warn() {
|
||||
color_out 33 "$1"
|
||||
}
|
||||
|
||||
err_die() {
|
||||
err "$1"
|
||||
exit 1
|
||||
}
|
43
.github/workflows/entrypoint.sh
vendored
43
.github/workflows/entrypoint.sh
vendored
|
@ -1,43 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# not enabling `errtrace` and `pipefail` since those are bash specific
|
||||
set -o errexit # failing commands causes script to fail
|
||||
set -o nounset # undefined variables causes script to fail
|
||||
|
||||
mkdir -p /var/lock/
|
||||
|
||||
opkg update
|
||||
|
||||
[ -n "${CI_HELPER:=''}" ] || CI_HELPER="/ci/.github/workflows/ci_helpers.sh"
|
||||
|
||||
for PKG in /ci/*.ipk; do
|
||||
tar -xzOf "$PKG" ./control.tar.gz | tar xzf - ./control
|
||||
# package name including variant
|
||||
PKG_NAME=$(sed -ne 's#^Package: \(.*\)$#\1#p' ./control)
|
||||
# package version without release
|
||||
PKG_VERSION=$(sed -ne 's#^Version: \(.*\)-[0-9]*$#\1#p' ./control)
|
||||
# package source contianing test.sh script
|
||||
PKG_SOURCE=$(sed -ne 's#^Source: .*/\(.*\)$#\1#p' ./control)
|
||||
|
||||
echo "Testing package $PKG_NAME in version $PKG_VERSION from $PKG_SOURCE"
|
||||
|
||||
opkg install "$PKG"
|
||||
|
||||
export PKG_NAME PKG_VERSION CI_HELPER
|
||||
|
||||
TEST_SCRIPT=$(find /ci/ -name "$PKG_SOURCE" -type d)/test.sh
|
||||
|
||||
if [ -f "$TEST_SCRIPT" ]; then
|
||||
echo "Use package specific test.sh"
|
||||
if sh "$TEST_SCRIPT" "$PKG_NAME" "$PKG_VERSION"; then
|
||||
echo "Test successful"
|
||||
else
|
||||
echo "Test failed"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "No test.sh script available"
|
||||
fi
|
||||
|
||||
opkg remove "$PKG_NAME" --force-removal-of-dependent-packages --force-remove
|
||||
done
|
63
.github/workflows/formal.yml
vendored
63
.github/workflows/formal.yml
vendored
|
@ -1,63 +0,0 @@
|
|||
name: Test Formalities
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Test Formalities
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Determine branch name
|
||||
run: |
|
||||
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
|
||||
echo "Building for $BRANCH"
|
||||
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
|
||||
|
||||
- name: Test formalities
|
||||
run: |
|
||||
source .github/workflows/ci_helpers.sh
|
||||
|
||||
RET=0
|
||||
for commit in $(git rev-list HEAD ^origin/$BRANCH); do
|
||||
info "=== Checking commit '$commit'"
|
||||
if git show --format='%P' -s $commit | grep -qF ' '; then
|
||||
err "Pull request should not include merge commits"
|
||||
RET=1
|
||||
fi
|
||||
|
||||
author="$(git show -s --format=%aN $commit)"
|
||||
if echo $author | grep -q '\S\+\s\+\S\+'; then
|
||||
success "Author name ($author) seems ok"
|
||||
else
|
||||
err "Author name ($author) need to be your real name 'firstname lastname'"
|
||||
RET=1
|
||||
fi
|
||||
|
||||
subject="$(git show -s --format=%s $commit)"
|
||||
if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert '; then
|
||||
success "Commit subject line seems ok ($subject)"
|
||||
else
|
||||
err "Commit subject line MUST start with '<package name>: ' ($subject)"
|
||||
RET=1
|
||||
fi
|
||||
|
||||
body="$(git show -s --format=%b $commit)"
|
||||
sob="$(git show -s --format='Signed-off-by: %aN <%aE>' $commit)"
|
||||
if echo "$body" | grep -qF "$sob"; then
|
||||
success "Signed-off-by match author"
|
||||
else
|
||||
err "Signed-off-by is missing or doesn't match author (should be '$sob')"
|
||||
RET=1
|
||||
fi
|
||||
done
|
||||
|
||||
exit $RET
|
164
.github/workflows/multi-arch-test-build.yml
vendored
164
.github/workflows/multi-arch-test-build.yml
vendored
|
@ -1,164 +0,0 @@
|
|||
name: Test Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Test ${{ matrix.arch }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- arch: arm_cortex-a9_vfpv3-d16
|
||||
target: mvebu-cortexa9
|
||||
runtime_test: false
|
||||
|
||||
- arch: mips_24kc
|
||||
target: ath79-generic
|
||||
runtime_test: false
|
||||
|
||||
- arch: mipsel_24kc
|
||||
target: mt7621
|
||||
runtime_test: false
|
||||
|
||||
- arch: powerpc_464fp
|
||||
target: apm821xx-nand
|
||||
runtime_test: false
|
||||
|
||||
- arch: powerpc_8548
|
||||
target: mpc85xx-p1010
|
||||
runtime_test: false
|
||||
|
||||
- arch: aarch64_cortex-a53
|
||||
target: mvebu-cortexa53
|
||||
runtime_test: true
|
||||
|
||||
- arch: arm_cortex-a15_neon-vfpv4
|
||||
target: armvirt-32
|
||||
runtime_test: true
|
||||
|
||||
- arch: i386_pentium-mmx
|
||||
target: x86-geode
|
||||
runtime_test: true
|
||||
|
||||
- arch: x86_64
|
||||
target: x86-64
|
||||
runtime_test: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Determine branch name
|
||||
run: |
|
||||
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
|
||||
echo "Building for $BRANCH"
|
||||
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
|
||||
|
||||
- name: Determine changed packages
|
||||
run: |
|
||||
# only detect packages with changes
|
||||
PKG_ROOTS=$(find . -name Makefile | \
|
||||
grep -v ".*/src/Makefile" | \
|
||||
sed -e 's@./\(.*\)/Makefile@\1/@')
|
||||
CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH...)
|
||||
|
||||
for ROOT in $PKG_ROOTS; do
|
||||
for CHANGE in $CHANGES; do
|
||||
if [[ "$CHANGE" == "$ROOT"* ]]; then
|
||||
PACKAGES+=$(echo "$ROOT" | sed -e 's@.*/\(.*\)/@\1 @')
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
# fallback to test packages if nothing explicitly changes this is
|
||||
# should run if other mechanics in packages.git changed
|
||||
PACKAGES="${PACKAGES:-vim attendedsysupgrade-common bmon}"
|
||||
|
||||
echo "Building $PACKAGES"
|
||||
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
|
||||
|
||||
- name: Build
|
||||
uses: openwrt/gh-action-sdk@v5
|
||||
env:
|
||||
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
|
||||
FEEDNAME: packages_ci
|
||||
|
||||
- name: Move created packages to project dir
|
||||
run: cp bin/packages/${{ matrix.arch }}/packages_ci/*.ipk . || true
|
||||
|
||||
- name: Collect metadata
|
||||
run: |
|
||||
MERGE_ID=$(git rev-parse --short HEAD)
|
||||
echo "MERGE_ID=$MERGE_ID" >> $GITHUB_ENV
|
||||
echo "BASE_ID=$(git rev-parse --short HEAD^1)" >> $GITHUB_ENV
|
||||
echo "HEAD_ID=$(git rev-parse --short HEAD^2)" >> $GITHUB_ENV
|
||||
PRNUMBER=${GITHUB_REF_NAME%/merge}
|
||||
echo "PRNUMBER=$PRNUMBER" >> $GITHUB_ENV
|
||||
echo "ARCHIVE_NAME=${{matrix.arch}}-PR$PRNUMBER-$MERGE_ID" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate metadata
|
||||
run: |
|
||||
cat << _EOF_ > PKG-INFO
|
||||
Metadata-Version: 2.1
|
||||
Name: ${{env.ARCHIVE_NAME}}
|
||||
Version: $BRANCH
|
||||
Author: $GITHUB_ACTOR
|
||||
Home-page: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pull/$PRNUMBER
|
||||
Download-URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
|
||||
Summary: $PACKAGES
|
||||
Platform: ${{ matrix.arch }}
|
||||
|
||||
Packages for OpenWrt $BRANCH running on ${{matrix.arch}}, built from PR $PRNUMBER
|
||||
at commit $HEAD_ID, against $BRANCH at commit $BASE_ID, with merge SHA $MERGE_ID.
|
||||
|
||||
Modified packages:
|
||||
_EOF_
|
||||
for p in $PACKAGES
|
||||
do
|
||||
echo " "$p >> PKG-INFO
|
||||
done
|
||||
echo >> PKG-INFO
|
||||
echo Full file listing: >> PKG-INFO
|
||||
ls -al *.ipk >> PKG-INFO || true
|
||||
cat PKG-INFO
|
||||
|
||||
- name: Store packages
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{env.ARCHIVE_NAME}}-packages
|
||||
path: |
|
||||
*.ipk
|
||||
PKG-INFO
|
||||
|
||||
- name: Store logs
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{env.ARCHIVE_NAME}}-logs
|
||||
path: |
|
||||
logs/
|
||||
PKG-INFO
|
||||
|
||||
- name: Remove logs
|
||||
run: sudo rm -rf logs/ || true
|
||||
|
||||
- name: Register QEMU
|
||||
if: ${{ matrix.runtime_test }}
|
||||
run: |
|
||||
sudo docker run --rm --privileged aptman/qus -s -- -p
|
||||
|
||||
- name: Build Docker container
|
||||
if: ${{ matrix.runtime_test }}
|
||||
run: |
|
||||
docker build -t test-container --build-arg ARCH .github/workflows/
|
||||
env:
|
||||
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
|
||||
|
||||
- name: Test via Docker container
|
||||
if: ${{ matrix.runtime_test }}
|
||||
run: |
|
||||
docker run --rm -v $GITHUB_WORKSPACE:/ci test-container
|
|
@ -8,7 +8,6 @@
|
|||
# alphabetical order when updating the list.
|
||||
|
||||
Daniel Golle <daniel@makrotopia.org>
|
||||
Jiri Slachta <jiri@slachta.eu>
|
||||
Jiri Slachta <slachta@cesnet.cz>
|
||||
Luka Perkov <luka@openwrt.org>
|
||||
Mazi Lo <openwrt.mazilo@recursor.net>
|
||||
Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2006-2018 OpenWrt.org
|
||||
# Copyright (C) 2006-2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
@ -8,23 +8,21 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=bcg729
|
||||
PKG_VERSION:=1.1.1
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL_FILE:=$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_URL_FILE)
|
||||
PKG_SOURCE_URL:=https://github.com/BelledonneCommunications/$(PKG_NAME)/archive
|
||||
PKG_HASH:=68599a850535d1b182932b3f86558ac8a76d4b899a548183b062956c5fdc916d
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/
|
||||
PKG_MD5SUM:=5d0c160129c0850c43dd66c78efe429b
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
CMAKE_INSTALL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_LICENSE_FILES:=LICENSE.txt
|
||||
PKG_LICENSE:=GPL-2.0+
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Alex Samorukov <samm@os2.kiev.ua>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/bcg729
|
||||
SUBMENU:=Telephony
|
||||
|
@ -32,6 +30,7 @@ define Package/bcg729
|
|||
CATEGORY:=Libraries
|
||||
TITLE:=Software G729A encoder and decoder library written in C
|
||||
URL:=http://www.linphone.org/technical-corner/bcg729.html
|
||||
DEPENDS:=@BUILD_PATENTED
|
||||
endef
|
||||
|
||||
define Package/bcg729/description
|
||||
|
@ -41,25 +40,18 @@ define Package/bcg729/description
|
|||
source code in any kind.
|
||||
endef
|
||||
|
||||
# Otherwise OpenWrt's CPPFLAGS are ignored
|
||||
TARGET_CFLAGS += $(TARGET_CPPFLAGS)
|
||||
|
||||
CMAKE_OPTIONS += \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
||||
-DENABLE_SHARED=YES \
|
||||
-DENABLE_STATIC=NO \
|
||||
-DENABLE_TESTS=NO
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-shared \
|
||||
--enable-static
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/bcg729
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/bcg729/*.h \
|
||||
$(1)/usr/include/bcg729
|
||||
$(INSTALL_DIR) $(1)/usr/lib/{cmake/Bcg729,pkgconfig}
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.so* $(1)/usr/lib
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib$(PKG_NAME).pc \
|
||||
$(1)/usr/lib/pkgconfig
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/Bcg729/cmake/*.cmake \
|
||||
$(1)/usr/lib/cmake/Bcg729
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) -R $(PKG_INSTALL_DIR)/usr/include/bcg729 $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.{a,so*} $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbcg729.pc $(1)/usr/lib/pkgconfig/
|
||||
endef
|
||||
|
||||
define Package/bcg729/install
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2014 - 2018 OpenWrt.org
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
@ -9,21 +9,18 @@ include $(TOPDIR)/rules.mk
|
|||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=dahdi-linux
|
||||
PKG_VERSION:=2.10.0.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/asterisk/dahdi-linux.git
|
||||
PKG_SOURCE_DATE=2023-09-21
|
||||
PKG_SOURCE_VERSION:=1bb9088f2baff8c4e3fec536044cc48072cf9905
|
||||
PKG_MIRROR_HASH:=b32eb405d64c981f64922840f616cf362636ccc93506986c0b92bd4dcca5ab30
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/
|
||||
PKG_MD5SUM:=a23e91cc474f241616a5a038ae2b1e72
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Vittorio Gambaletta <openwrt@vittgam.net>
|
||||
|
||||
# With below variable set, $(PKG_SYMVERS_DIR)/dahdi-linux.symvers gets
|
||||
# generated from drivers/dahdi/Module.symvers.
|
||||
PKG_EXTMOD_SUBDIRS:=drivers/dahdi
|
||||
DAHDI_MODULES_EXTRA:=
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -46,7 +43,7 @@ define KernelPackage/dahdi-echocan-oslec
|
|||
DEPENDS:=kmod-dahdi +kmod-echo
|
||||
URL:=http://www.asterisk.org/
|
||||
FILES:=$(PKG_BUILD_DIR)/drivers/dahdi/dahdi_echocan_oslec.$(LINUX_KMOD_SUFFIX)
|
||||
AUTOLOAD:=$(call AutoProbe,dahdi_echocan_oslec)
|
||||
AUTOLOAD:=$(call AutoProbe,echo dahdi_echocan_oslec)
|
||||
endef
|
||||
|
||||
define KernelPackage/dahdi-echocan-oslec/description
|
||||
|
@ -84,6 +81,8 @@ endef
|
|||
define Build/Configure
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Build/Prepare
|
||||
$(Build/Prepare/Default)
|
||||
mkdir -p $(PKG_BUILD_DIR)/drivers/staging/echo/
|
||||
|
@ -91,9 +90,19 @@ define Build/Prepare
|
|||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
||||
$(KERNEL_MAKE_FLAGS) \
|
||||
KSRC="$(LINUX_DIR)"
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
ARCH="$(LINUX_KARCH)" \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
KERNELVERSION="$(KERNEL)" \
|
||||
KERNEL_VERSION="$(LINUX_VERSION)" \
|
||||
KERNELDIR="$(LINUX_DIR)" \
|
||||
KSRC:="$(LINUX_DIR)" \
|
||||
KVERS:="$(LINUX_VERSION)" \
|
||||
TOPDIR:="$(TOPDIR)" \
|
||||
INCLUDE_DIR:="$(INCLUDE_DIR)" \
|
||||
PWD:="$(PKG_BUILD_DIR)" \
|
||||
MODULES_EXTRA:="$(DAHDI_MODULES_EXTRA)"
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/oct612x/oct612x-user.c
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/oct612x/oct612x-user.c
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/oct612x/oct612x-user.c
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
+#include <linux/slab.h>
|
||||
|
||||
#include <dahdi/kernel.h>
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/wcaxx-base.c
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/wcaxx-base.c
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/wcaxx-base.c
|
||||
@@ -3823,7 +3823,11 @@ static void wcaxx_back_out_gracefully(st
|
||||
unsigned long flags;
|
||||
|
||||
clear_bit(INITIALIZED, &wc->bit_flags);
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0))
|
||||
smp_mb__after_clear_bit();
|
||||
+#else
|
||||
+ smp_mb__after_atomic();
|
||||
+#endif
|
||||
|
||||
/* Make sure we're not on the card list anymore. */
|
||||
mutex_lock(&card_list_lock);
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/wcte12xp/base.c
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/wcte12xp/base.c
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/wcte12xp/base.c
|
||||
@@ -2110,7 +2110,11 @@ static int t1xxp_set_linemode(struct dah
|
||||
* them. */
|
||||
clear_bit(INITIALIZED, &wc->bit_flags);
|
||||
synchronize_irq(wc->vb.pdev->irq);
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0))
|
||||
smp_mb__after_clear_bit();
|
||||
+#else
|
||||
+ smp_mb__after_atomic();
|
||||
+#endif
|
||||
del_timer_sync(&wc->timer);
|
||||
flush_workqueue(wc->wq);
|
||||
|
||||
@@ -3076,7 +3080,11 @@ static void __devexit te12xp_remove_one(
|
||||
remove_sysfs_files(wc);
|
||||
|
||||
clear_bit(INITIALIZED, &wc->bit_flags);
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0))
|
||||
smp_mb__after_clear_bit();
|
||||
+#else
|
||||
+ smp_mb__after_atomic();
|
||||
+#endif
|
||||
|
||||
del_timer_sync(&wc->timer);
|
||||
flush_workqueue(wc->wq);
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/wcte13xp-base.c
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/wcte13xp-base.c
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/wcte13xp-base.c
|
||||
@@ -1849,7 +1849,12 @@ static int t13x_set_linemode(struct dahd
|
||||
clear_bit(INITIALIZED, &wc->bit_flags);
|
||||
disable_irq(wc->xb.pdev->irq);
|
||||
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0))
|
||||
smp_mb__after_clear_bit();
|
||||
+#else
|
||||
+ smp_mb__after_atomic();
|
||||
+#endif
|
||||
+
|
||||
del_timer_sync(&wc->timer);
|
||||
flush_workqueue(wc->wq);
|
||||
|
||||
@@ -2725,7 +2730,11 @@ static void __devexit te13xp_remove_one(
|
||||
return;
|
||||
|
||||
clear_bit(INITIALIZED, &wc->bit_flags);
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0))
|
||||
smp_mb__after_clear_bit();
|
||||
+#else
|
||||
+ smp_mb__after_atomic();
|
||||
+#endif
|
||||
|
||||
/* Quiesce DMA engine interrupts */
|
||||
wcxb_stop(&wc->xb);
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/wcte43x-base.c
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/wcte43x-base.c
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/wcte43x-base.c
|
||||
@@ -3581,7 +3581,11 @@ static void __devexit t43x_remove_one(st
|
||||
return;
|
||||
|
||||
wc->not_ready = 1;
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0))
|
||||
smp_mb__after_clear_bit();
|
||||
+#else
|
||||
+ smp_mb__after_atomic();
|
||||
+#endif
|
||||
|
||||
/* Stop everything */
|
||||
wcxb_stop(&wc->xb);
|
|
@ -1,6 +1,8 @@
|
|||
--- a/drivers/dahdi/Kbuild
|
||||
+++ b/drivers/dahdi/Kbuild
|
||||
@@ -64,9 +64,8 @@ obj-m += $(DAHDI_MODULES_EXTRA)
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/Kbuild
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/Kbuild
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/Kbuild
|
||||
@@ -61,9 +61,8 @@ obj-m += $(DAHDI_MODULES_EXTRA)
|
||||
# If you want to build OSLEC, include the code in the standard location:
|
||||
# drivers/staging/echo . The DAHDI OSLEC echo canceller will be built as
|
||||
# well:
|
||||
|
@ -10,4 +12,4 @@
|
|||
-obj-m += ../staging/echo/echo.o
|
||||
endif
|
||||
|
||||
CFLAGS_MODULE += -I$(DAHDI_INCLUDE) -I$(src) -Wno-format-truncation
|
||||
CFLAGS_MODULE += -I$(DAHDI_INCLUDE) -I$(src)
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
From 4d86a8f3f690ee9bb9429e17cc03856c6c2dc760 Mon Sep 17 00:00:00 2001
|
||||
From: Shaun Ruffell <sruffell@digium.com>
|
||||
Date: Mon, 22 Dec 2014 11:21:28 -0600
|
||||
Subject: [PATCH] dahdi: struct file.f_dentry macro was removed in kernel 3.19
|
||||
|
||||
This is necessary to build against kernel version 3.19 since commit
|
||||
(78d28e651f97866d608d9b41 "kill f_dentry macro") [1]
|
||||
|
||||
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=78d28e651
|
||||
|
||||
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
|
||||
Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
|
||||
---
|
||||
drivers/dahdi/dahdi-base.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
|
||||
index 0892734..f2caad0 100644
|
||||
--- a/drivers/dahdi/dahdi-base.c
|
||||
+++ b/drivers/dahdi/dahdi-base.c
|
||||
@@ -98,7 +98,11 @@
|
||||
#define chan_to_netdev(h) ((h)->hdlcnetdev->netdev)
|
||||
|
||||
/* macro-oni for determining a unit (channel) number */
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
|
||||
#define UNIT(file) MINOR(file->f_dentry->d_inode->i_rdev)
|
||||
+#else
|
||||
+#define UNIT(file) MINOR(file->f_path.dentry->d_inode->i_rdev)
|
||||
+#endif
|
||||
|
||||
EXPORT_SYMBOL(dahdi_transcode_fops);
|
||||
EXPORT_SYMBOL(dahdi_init_tone_state);
|
||||
--
|
||||
2.3.4
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
From 1cc0ad510acd404e63923ed3062b9302d53580da Mon Sep 17 00:00:00 2001
|
||||
From: Shaun Ruffell <sruffell@digium.com>
|
||||
Date: Mon, 2 Mar 2015 09:00:13 -0600
|
||||
Subject: [PATCH] dahdi: Fix "void value not ignored..." error when compiling
|
||||
against kernel 4.0.
|
||||
|
||||
With commit (d1f1052c52 "device: Change dev_<level> logging functions to return
|
||||
void") [1] in kernel version 4.0, DAHDI would fail to compile with the following
|
||||
error:
|
||||
|
||||
.../drivers/dahdi/dahdi-base.c:7150:2: error: void value not ignored as it ought to be
|
||||
dahdi_dev_dbg(ASSIGN, span_device(span),
|
||||
^
|
||||
|
||||
Now ignore the dev_printk return value.
|
||||
|
||||
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d1f1052c5204524
|
||||
|
||||
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
|
||||
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
|
||||
---
|
||||
include/dahdi/kernel.h | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
|
||||
index 365801d..54c415e 100644
|
||||
--- a/include/dahdi/kernel.h
|
||||
+++ b/include/dahdi/kernel.h
|
||||
@@ -1665,9 +1665,11 @@ struct mutex {
|
||||
chan_printk(DEBUG, "-" #bits, chan, \
|
||||
"%s: " fmt, __func__, ## __VA_ARGS__)))
|
||||
#define dahdi_dev_dbg(bits, dev, fmt, ...) \
|
||||
- ((void)((debug & (DAHDI_DBG_ ## bits)) && \
|
||||
+ do { if (debug & (DAHDI_DBG_ ## bits)) { \
|
||||
dev_printk(KERN_DEBUG, dev, \
|
||||
- "DBG-%s(%s): " fmt, #bits, __func__, ## __VA_ARGS__)))
|
||||
+ "DBG-%s(%s): " fmt, #bits, __func__, ## __VA_ARGS__); \
|
||||
+ } } while (0)
|
||||
+
|
||||
#endif /* DAHDI_PRINK_MACROS_USE_debug */
|
||||
|
||||
#endif /* _DAHDI_KERNEL_H */
|
||||
--
|
||||
2.3.4
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
From 1559db9d1ae03780788788c07334ca54cdd1253a Mon Sep 17 00:00:00 2001
|
||||
From: Shaun Ruffell <sruffell@digium.com>
|
||||
Date: Mon, 2 Mar 2015 09:00:14 -0600
|
||||
Subject: [PATCH] dahdi: strnicmp() -> strncasecmp()
|
||||
|
||||
With commit (af3cd13501 "lib/string.c: remove strnicmp()") [1] dahdi can no
|
||||
longer call strnicmp directly. strncasecmp was added into lib/string.c in kernel
|
||||
version 2.6.22 so we'll map calls to strncasecmp to strnicmp for any kernel
|
||||
before that.
|
||||
|
||||
This is necessary to compile against kernels >= 4.0.
|
||||
|
||||
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=af3cd13501
|
||||
|
||||
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
|
||||
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
|
||||
---
|
||||
drivers/dahdi/xpp/card_pri.c | 6 +++---
|
||||
include/dahdi/kernel.h | 2 ++
|
||||
2 files changed, 5 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/drivers/dahdi/xpp/card_pri.c b/drivers/dahdi/xpp/card_pri.c
|
||||
index 29b457b..edc8bd2 100644
|
||||
--- a/drivers/dahdi/xpp/card_pri.c
|
||||
+++ b/drivers/dahdi/xpp/card_pri.c
|
||||
@@ -2399,11 +2399,11 @@ static DEVICE_ATTR_WRITER(pri_protocol_store, dev, buf, count)
|
||||
buf, i);
|
||||
return -EINVAL;
|
||||
}
|
||||
- if (strnicmp(buf, "E1", 2) == 0)
|
||||
+ if (strncasecmp(buf, "E1", 2) == 0)
|
||||
new_protocol = PRI_PROTO_E1;
|
||||
- else if (strnicmp(buf, "T1", 2) == 0)
|
||||
+ else if (strncasecmp(buf, "T1", 2) == 0)
|
||||
new_protocol = PRI_PROTO_T1;
|
||||
- else if (strnicmp(buf, "J1", 2) == 0)
|
||||
+ else if (strncasecmp(buf, "J1", 2) == 0)
|
||||
new_protocol = PRI_PROTO_J1;
|
||||
else {
|
||||
XPD_NOTICE(xpd,
|
||||
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
|
||||
index 54c415e..90d48a3 100644
|
||||
--- a/include/dahdi/kernel.h
|
||||
+++ b/include/dahdi/kernel.h
|
||||
@@ -1502,6 +1502,8 @@ void dahdi_pci_disable_link_state(struct pci_dev *pdev, int state);
|
||||
#define list_first_entry(ptr, type, member) \
|
||||
list_entry((ptr)->next, type, member)
|
||||
|
||||
+#define strncasecmp strnicmp
|
||||
+
|
||||
#ifndef __packed
|
||||
#define __packed __attribute__((packed))
|
||||
#endif
|
||||
--
|
||||
2.3.4
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
--- a/drivers/dahdi/Kbuild
|
||||
+++ b/drivers/dahdi/Kbuild
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/Kbuild
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/Kbuild
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/Kbuild
|
||||
@@ -1,5 +1,5 @@
|
||||
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI) += dahdi.o
|
||||
-#obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY) += dahdi_dummy.o
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -80,12 +80,12 @@ include/dahdi/version.h: FORCE
|
||||
fi
|
||||
@rm -f $@.tmp
|
||||
|
||||
-prereq: include/dahdi/version.h firmware-loaders
|
||||
+prereq: include/dahdi/version.h
|
||||
|
||||
stackcheck: $(CHECKSTACK) modules
|
||||
objdump -d drivers/dahdi/*.ko drivers/dahdi/*/*.ko | $(CHECKSTACK)
|
||||
|
||||
-install: all install-modules install-include install-firmware install-xpp-firm
|
||||
+install: all install-modules install-include
|
||||
@echo "###################################################"
|
||||
@echo "###"
|
||||
@echo "### DAHDI installed successfully."
|
|
@ -1,18 +1,22 @@
|
|||
--- a/drivers/dahdi/Kbuild
|
||||
+++ b/drivers/dahdi/Kbuild
|
||||
@@ -12,6 +12,7 @@ obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT
|
||||
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP) += wctc4xxp/
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/Kbuild
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/Kbuild
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/Kbuild
|
||||
@@ -13,6 +13,7 @@ obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT
|
||||
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM24XXP) += wctdm24xxp/
|
||||
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE12XP) += wcte12xp/
|
||||
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE13XP) += wcte13xp.o
|
||||
+obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_HFCS) += hfcs/
|
||||
|
||||
ifndef HOTPLUG_FIRMWARE
|
||||
ifneq (,$(filter y m,$(CONFIG_FW_LOADER)))
|
||||
--- a/drivers/dahdi/Kconfig
|
||||
+++ b/drivers/dahdi/Kconfig
|
||||
@@ -235,4 +235,14 @@ config DAHDI_DYNAMIC_LOC
|
||||
If unsure, say Y.
|
||||
wcte13xp-objs := wcte13xp-base.o wcxb_spi.o wcxb.o wcxb_flash.o
|
||||
CFLAGS_wcte13xp-base.o += -I$(src)/oct612x -I$(src)/oct612x/include -I$(src)/oct612x/octdeviceapi -I$(src)/oct612x/octdeviceapi/oct6100api
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/Kconfig
|
||||
===================================================================
|
||||
--- dahdi-linux-2.10.0.1.orig/drivers/dahdi/Kconfig
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/Kconfig
|
||||
@@ -291,4 +291,14 @@ config DAHDI_WCTE11XP
|
||||
|
||||
If unsure, say Y.
|
||||
|
||||
+config DAHDI_HFCS
|
||||
+ tristate "Support for various HFC-S PCI BRI adapters"
|
||||
|
@ -25,8 +29,10 @@
|
|||
+ If unsure, say Y.
|
||||
+
|
||||
source "drivers/dahdi/xpp/Kconfig"
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/base.c
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/drivers/dahdi/hfcs/base.c
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/base.c
|
||||
@@ -0,0 +1,1742 @@
|
||||
+/*
|
||||
+ * dahdi_hfcs.c - Dahdi driver for HFC-S PCI A based ISDN BRI cards
|
||||
|
@ -1716,7 +1722,7 @@
|
|||
+ hfc_proc_dahdi_hfcs_dir = proc_mkdir(hfc_DRIVER_NAME, proc_root_driver);
|
||||
+#endif
|
||||
+
|
||||
+ ret = pci_register_driver(&hfc_driver);
|
||||
+ ret = dahdi_pci_module(&hfc_driver);
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
|
@ -1770,8 +1776,10 @@
|
|||
+#ifdef DEBUG
|
||||
+MODULE_PARM_DESC(debug_level, "Debug verbosity level");
|
||||
+#endif
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/dahdi_hfcs.h
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/drivers/dahdi/hfcs/dahdi_hfcs.h
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/dahdi_hfcs.h
|
||||
@@ -0,0 +1,419 @@
|
||||
+/*
|
||||
+ * dahdi_hfcs.h - Dahdi driver for HFC-S PCI A based ISDN BRI cards
|
||||
|
@ -2192,8 +2200,10 @@
|
|||
+}
|
||||
+
|
||||
+#endif
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/fifo.c
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/drivers/dahdi/hfcs/fifo.c
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/fifo.c
|
||||
@@ -0,0 +1,380 @@
|
||||
+/*
|
||||
+ * fifo.c - HFC FIFO management routines
|
||||
|
@ -2575,8 +2585,10 @@
|
|||
+ }
|
||||
+}
|
||||
+
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/fifo.h
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/drivers/dahdi/hfcs/fifo.h
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/fifo.h
|
||||
@@ -0,0 +1,139 @@
|
||||
+/*
|
||||
+ * fifo.h - Dahdi driver for HFC-S PCI A based ISDN BRI cards
|
||||
|
@ -2717,8 +2729,10 @@
|
|||
+void hfc_clear_fifo_tx(struct hfc_chan_simplex *chan);
|
||||
+
|
||||
+#endif
|
||||
Index: dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/Kbuild
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ b/drivers/dahdi/hfcs/Kbuild
|
||||
+++ dahdi-linux-2.10.0.1/drivers/dahdi/hfcs/Kbuild
|
||||
@@ -0,0 +1,10 @@
|
||||
+obj-m += dahdi_hfcs.o
|
||||
+
|
||||
|
|
|
@ -1,77 +0,0 @@
|
|||
--- a/drivers/dahdi/datamods/syncppp.c
|
||||
+++ b/drivers/dahdi/datamods/syncppp.c
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <linux/config.h>
|
||||
#include <linux/module.h>
|
||||
+#include <linux/version.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/init.h>
|
||||
@@ -56,7 +57,11 @@
|
||||
#include <net/syncppp.h>
|
||||
|
||||
#include <asm/byteorder.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
|
||||
#include <asm/uaccess.h>
|
||||
+#else
|
||||
+#include <linux/uaccess.h>
|
||||
+#endif
|
||||
|
||||
#define MAXALIVECNT 6 /* max. alive packets */
|
||||
|
||||
--- a/drivers/dahdi/wcb4xxp/base.c
|
||||
+++ b/drivers/dahdi/wcb4xxp/base.c
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <linux/init.h>
|
||||
|
||||
+#include <linux/version.h>
|
||||
#include <linux/kernel.h> /* printk() */
|
||||
#include <linux/errno.h> /* error codes */
|
||||
#include <linux/module.h>
|
||||
@@ -35,7 +36,11 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/device.h> /* dev_err() */
|
||||
#include <linux/interrupt.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
|
||||
#include <asm/uaccess.h> /* copy_*_user */
|
||||
+#else
|
||||
+#include <linux/uaccess.h>
|
||||
+#endif
|
||||
#include <linux/workqueue.h> /* work_struct */
|
||||
#include <linux/timer.h> /* timer_struct */
|
||||
#include <linux/moduleparam.h>
|
||||
--- a/drivers/dahdi/xpp/mmapdrv.c
|
||||
+++ b/drivers/dahdi/xpp/mmapdrv.c
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <linux/version.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/delay.h>
|
||||
@@ -10,7 +11,11 @@
|
||||
#include <asm/blackfin.h>
|
||||
#include <asm/dma.h>
|
||||
#include <asm/cacheflush.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
|
||||
#include <asm/uaccess.h>
|
||||
+#else
|
||||
+#include <linux/uaccess.h>
|
||||
+#endif
|
||||
#include <dahdi/kernel.h>
|
||||
#include "mmapbus.h"
|
||||
#include "xbus-core.h"
|
||||
--- a/drivers/dahdi/xpp/xpp_usb.c
|
||||
+++ b/drivers/dahdi/xpp/xpp_usb.c
|
||||
@@ -27,7 +27,11 @@
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/delay.h> /* for udelay */
|
||||
#include <linux/seq_file.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
|
||||
#include <asm/uaccess.h>
|
||||
+#else
|
||||
+#include <linux/uaccess.h>
|
||||
+#endif
|
||||
#include <asm/atomic.h>
|
||||
#include <asm/timex.h>
|
||||
#include <linux/proc_fs.h>
|
|
@ -1,138 +0,0 @@
|
|||
--- a/drivers/dahdi/xpp/xbus-core.c
|
||||
+++ b/drivers/dahdi/xpp/xbus-core.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <linux/errno.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/mutex.h>
|
||||
+#include <linux/math64.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/slab.h>
|
||||
@@ -1768,11 +1769,13 @@ out:
|
||||
|
||||
static void xbus_fill_proc_queue(struct seq_file *sfile, struct xframe_queue *q)
|
||||
{
|
||||
+ s32 rem;
|
||||
+ s64 lag_sec = div_s64_rem(q->worst_lag_usec, 1000, &rem);
|
||||
seq_printf(sfile,
|
||||
- "%-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%lld ms\n",
|
||||
+ "%-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%ld ms\n",
|
||||
q->name, q->steady_state_count, q->count, q->max_count,
|
||||
- q->worst_count, q->overflows, q->worst_lag_usec / 1000,
|
||||
- q->worst_lag_usec % 1000);
|
||||
+ q->worst_count, q->overflows, lag_sec,
|
||||
+ rem);
|
||||
xframe_queue_clearstats(q);
|
||||
}
|
||||
|
||||
--- a/drivers/dahdi/xpp/xbus-pcm.c
|
||||
+++ b/drivers/dahdi/xpp/xbus-pcm.c
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <linux/version.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
+#include <linux/math64.h>
|
||||
#include "xbus-pcm.h"
|
||||
#include "xbus-core.h"
|
||||
#include "xpp_dahdi.h"
|
||||
@@ -129,7 +130,7 @@ static int xpp_ticker_step(struct xpp_ti
|
||||
usec = ktime_us_delta(ticker->last_sample,
|
||||
ticker->first_sample);
|
||||
ticker->first_sample = ticker->last_sample;
|
||||
- ticker->tick_period = usec / ticker->cycle;
|
||||
+ ticker->tick_period = div_s64(usec, ticker->cycle);
|
||||
cycled = 1;
|
||||
}
|
||||
ticker->count++;
|
||||
@@ -497,7 +498,7 @@ static void send_drift(xbus_t *xbus, int
|
||||
XBUS_DBG(SYNC, xbus,
|
||||
"%sDRIFT adjust %s (%d) (last update %lld seconds ago)\n",
|
||||
(disable_pll_sync) ? "Fake " : "", msg, drift,
|
||||
- msec_delta / MSEC_PER_SEC);
|
||||
+ div_s64(msec_delta, MSEC_PER_SEC));
|
||||
if (!disable_pll_sync)
|
||||
CALL_PROTO(GLOBAL, SYNC_SOURCE, xbus, NULL, SYNC_MODE_PLL,
|
||||
drift);
|
||||
--- a/drivers/dahdi/xpp/xbus-sysfs.c
|
||||
+++ b/drivers/dahdi/xpp/xbus-sysfs.c
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/errno.h>
|
||||
+#include <linux/math64.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#ifdef PROTOCOL_DEBUG
|
||||
#include <linux/ctype.h>
|
||||
@@ -249,11 +250,9 @@ static DEVICE_ATTR_READER(driftinfo_show
|
||||
/*
|
||||
* Calculate lost ticks time
|
||||
*/
|
||||
- seconds = ktime_ms_delta(now, di->last_lost_tick) / 1000;
|
||||
- minutes = seconds / 60;
|
||||
- seconds = seconds % 60;
|
||||
- hours = minutes / 60;
|
||||
- minutes = minutes % 60;
|
||||
+ seconds = div_s64(ktime_ms_delta(now, di->last_lost_tick), 1000);
|
||||
+ minutes = div_s64_rem(seconds, 60, &seconds);
|
||||
+ hours = div_s64_rem(minutes, 60, &minutes);
|
||||
len += snprintf(buf + len, PAGE_SIZE - len,
|
||||
"%-15s: %8d (was %d:%02d:%02d ago)\n", "lost_ticks",
|
||||
di->lost_ticks, hours, minutes, seconds);
|
||||
--- a/drivers/dahdi/xpp/xframe_queue.c
|
||||
+++ b/drivers/dahdi/xpp/xframe_queue.c
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <linux/math64.h>
|
||||
#include "xframe_queue.h"
|
||||
#include "xbus-core.h"
|
||||
#include "dahdi_debug.h"
|
||||
@@ -40,10 +41,11 @@ static void __xframe_dump_queue(struct x
|
||||
THIS_MODULE->name, q->name);
|
||||
list_for_each_entry_reverse(xframe, &q->head, frame_list) {
|
||||
xpacket_t *pack = (xpacket_t *)&xframe->packets[0];
|
||||
- s64 usec = ktime_us_delta(now, xframe->kt_queued);
|
||||
+ s32 rem;
|
||||
+ s64 sec = div_s64_rem(ktime_us_delta(now, xframe->kt_queued), 1000, &rem);
|
||||
|
||||
- snprintf(prefix, ARRAY_SIZE(prefix), " %3d> %5lld.%03lld msec",
|
||||
- i++, usec / 1000, usec % 1000);
|
||||
+ snprintf(prefix, ARRAY_SIZE(prefix), " %3d> %5lld.%03ld msec",
|
||||
+ i++, sec, rem);
|
||||
dump_packet(prefix, pack, 1);
|
||||
}
|
||||
}
|
||||
@@ -60,11 +62,13 @@ static bool __xframe_enqueue(struct xfra
|
||||
if (q->count >= q->max_count) {
|
||||
q->overflows++;
|
||||
if ((overflow_cnt++ % 1000) < 5) {
|
||||
- NOTICE("Overflow of %-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%lld ms\n",
|
||||
+ s32 rem;
|
||||
+ s64 lag_sec = div_s64_rem(q->worst_lag_usec, 1000, &rem);
|
||||
+ NOTICE("Overflow of %-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%ld ms\n",
|
||||
q->name, q->steady_state_count, q->count,
|
||||
q->max_count, q->worst_count, q->overflows,
|
||||
- q->worst_lag_usec / 1000,
|
||||
- q->worst_lag_usec % 1000);
|
||||
+ lag_sec,
|
||||
+ rem);
|
||||
__xframe_dump_queue(q);
|
||||
}
|
||||
ret = 0;
|
||||
--- a/drivers/dahdi/xpp/xpp_usb.c
|
||||
+++ b/drivers/dahdi/xpp/xpp_usb.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/delay.h> /* for udelay */
|
||||
#include <linux/seq_file.h>
|
||||
+#include <linux/math64.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
|
||||
#include <asm/uaccess.h>
|
||||
#else
|
||||
@@ -891,7 +892,7 @@ static void xpp_send_callback(struct urb
|
||||
usec = 0; /* System clock jumped */
|
||||
if (usec > xusb->max_tx_delay)
|
||||
xusb->max_tx_delay = usec;
|
||||
- i = usec / USEC_BUCKET;
|
||||
+ i = div_s64(usec, USEC_BUCKET);
|
||||
if (i >= NUM_BUCKETS)
|
||||
i = NUM_BUCKETS - 1;
|
||||
xusb->usb_tx_delay[i]++;
|
|
@ -1,131 +0,0 @@
|
|||
From f9bc391e1cd830c830b3b4fb5fd46a59b41de373 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Marangi <ansuelsmth@gmail.com>
|
||||
Date: Fri, 12 May 2023 20:18:13 +0200
|
||||
Subject: [PATCH 1/6] dahdi: use fallthrough where needed
|
||||
|
||||
Use fallthrough instead of comment to fix compilation warning.
|
||||
|
||||
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||
---
|
||||
drivers/dahdi/dahdi-base.c | 14 +++++++-------
|
||||
drivers/dahdi/wcaxx-base.c | 2 ++
|
||||
drivers/dahdi/wctdm24xxp/base.c | 2 ++
|
||||
drivers/dahdi/xpp/card_global.c | 2 +-
|
||||
4 files changed, 12 insertions(+), 8 deletions(-)
|
||||
|
||||
--- a/drivers/dahdi/dahdi-base.c
|
||||
+++ b/drivers/dahdi/dahdi-base.c
|
||||
@@ -7930,7 +7930,7 @@ static inline void __dahdi_process_getau
|
||||
memset(getlin, 0, DAHDI_CHUNKSIZE * sizeof(short));
|
||||
txb[0] = DAHDI_LIN2X(0, ms);
|
||||
memset(txb + 1, txb[0], DAHDI_CHUNKSIZE - 1);
|
||||
- /* fallthrough */
|
||||
+ fallthrough;
|
||||
case DAHDI_CONF_CONF: /* Normal conference mode */
|
||||
if (is_pseudo_chan(ms)) /* if pseudo-channel */
|
||||
{
|
||||
@@ -7954,7 +7954,7 @@ static inline void __dahdi_process_getau
|
||||
memset(txb + 1, txb[0], DAHDI_CHUNKSIZE - 1);
|
||||
break;
|
||||
}
|
||||
- /* fall through */
|
||||
+ fallthrough;
|
||||
case DAHDI_CONF_CONFMON: /* Conference monitor mode */
|
||||
if (ms->confmode & DAHDI_CONF_LISTENER) {
|
||||
/* Subtract out last sample written to conf */
|
||||
@@ -8493,7 +8493,7 @@ static void __dahdi_hooksig_pvt(struct d
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
- /* fallthrough */
|
||||
+ fallthrough;
|
||||
case DAHDI_SIG_FXSGS: /* FXS Groundstart */
|
||||
if (rxsig == DAHDI_RXSIG_ONHOOK) {
|
||||
chan->ringdebtimer = RING_DEBOUNCE_TIME;
|
||||
@@ -8512,7 +8512,7 @@ static void __dahdi_hooksig_pvt(struct d
|
||||
chan->gotgs = 1;
|
||||
}
|
||||
}
|
||||
- /* fallthrough */
|
||||
+ fallthrough;
|
||||
case DAHDI_SIG_FXOLS: /* FXO Loopstart */
|
||||
case DAHDI_SIG_FXOKS: /* FXO Kewlstart */
|
||||
switch(rxsig) {
|
||||
@@ -8612,7 +8612,7 @@ void dahdi_rbsbits(struct dahdi_chan *ch
|
||||
__dahdi_hooksig_pvt(chan, DAHDI_RXSIG_START);
|
||||
break;
|
||||
}
|
||||
- /* Fall through */
|
||||
+ fallthrough;
|
||||
case DAHDI_SIG_EM_E1:
|
||||
case DAHDI_SIG_FXOLS: /* FXO Loopstart */
|
||||
case DAHDI_SIG_FXOKS: /* FXO Kewlstart */
|
||||
@@ -8630,7 +8630,7 @@ void dahdi_rbsbits(struct dahdi_chan *ch
|
||||
break;
|
||||
case DAHDI_SIG_FXSKS: /* FXS Kewlstart */
|
||||
case DAHDI_SIG_FXSGS: /* FXS Groundstart */
|
||||
- /* Fall through */
|
||||
+ fallthrough;
|
||||
case DAHDI_SIG_FXSLS:
|
||||
if (!(cursig & DAHDI_BBIT)) {
|
||||
/* Check for ringing first */
|
||||
@@ -9059,7 +9059,7 @@ static inline void __dahdi_process_putau
|
||||
memcpy(ss->putlin, putlin, DAHDI_CHUNKSIZE * sizeof(short));
|
||||
break;
|
||||
}
|
||||
- /* fall through */
|
||||
+ fallthrough;
|
||||
case DAHDI_CONF_CONFANN: /* Conference with announce */
|
||||
if (ms->confmode & DAHDI_CONF_TALKER) {
|
||||
/* Store temp value */
|
||||
--- a/drivers/dahdi/wcaxx-base.c
|
||||
+++ b/drivers/dahdi/wcaxx-base.c
|
||||
@@ -1456,7 +1456,7 @@ wcaxx_check_battery_lost(struct wcaxx *w
|
||||
break;
|
||||
case BATTERY_UNKNOWN:
|
||||
mod_hooksig(wc, mod, DAHDI_RXSIG_ONHOOK);
|
||||
- /* fallthrough */
|
||||
+ fallthrough;
|
||||
case BATTERY_PRESENT:
|
||||
fxo->battery_state = BATTERY_DEBOUNCING_LOST;
|
||||
fxo->battdebounce_timer = wc->framecount + battdebounce;
|
||||
@@ -1567,7 +1567,7 @@ wcaxx_check_battery_present(struct wcaxx
|
||||
break;
|
||||
case BATTERY_UNKNOWN:
|
||||
mod_hooksig(wc, mod, DAHDI_RXSIG_OFFHOOK);
|
||||
- /* fallthrough */
|
||||
+ fallthrough;
|
||||
case BATTERY_LOST:
|
||||
fxo->battery_state = BATTERY_DEBOUNCING_PRESENT;
|
||||
fxo->battdebounce_timer = wc->framecount + battdebounce;
|
||||
--- a/drivers/dahdi/wctdm24xxp/base.c
|
||||
+++ b/drivers/dahdi/wctdm24xxp/base.c
|
||||
@@ -1964,7 +1964,7 @@ wctdm_check_battery_lost(struct wctdm *w
|
||||
break;
|
||||
case BATTERY_UNKNOWN:
|
||||
mod_hooksig(wc, mod, DAHDI_RXSIG_ONHOOK);
|
||||
- /* fallthrough */
|
||||
+ fallthrough;
|
||||
case BATTERY_PRESENT:
|
||||
fxo->battery_state = BATTERY_DEBOUNCING_LOST;
|
||||
fxo->battdebounce_timer = wc->framecount + battdebounce;
|
||||
@@ -2074,7 +2074,7 @@ wctdm_check_battery_present(struct wctdm
|
||||
break;
|
||||
case BATTERY_UNKNOWN:
|
||||
mod_hooksig(wc, mod, DAHDI_RXSIG_OFFHOOK);
|
||||
- /* fallthrough */
|
||||
+ fallthrough;
|
||||
case BATTERY_LOST:
|
||||
fxo->battery_state = BATTERY_DEBOUNCING_PRESENT;
|
||||
fxo->battdebounce_timer = wc->framecount + battdebounce;
|
||||
--- a/drivers/dahdi/xpp/card_global.c
|
||||
+++ b/drivers/dahdi/xpp/card_global.c
|
||||
@@ -148,7 +148,7 @@ static int execute_chip_command(xpd_t *x
|
||||
XPD_NOTICE(xpd,
|
||||
"'I' is deprecated in register commands. "
|
||||
"Use 'S' instead.\n");
|
||||
- /* fall through */
|
||||
+ fallthrough;
|
||||
case 'S':
|
||||
do_subreg = 1;
|
||||
num_args += 2; /* register + subreg */
|
|
@ -1,60 +0,0 @@
|
|||
From eea6daaa4cae1ddcd8e32c8b9e4273ba3244838c Mon Sep 17 00:00:00 2001
|
||||
From: Christian Marangi <ansuelsmth@gmail.com>
|
||||
Date: Fri, 12 May 2023 20:19:04 +0200
|
||||
Subject: [PATCH 2/6] dahdi: fix always true compilation warning
|
||||
|
||||
Fix always true compilation warning on statically allocated array. Check
|
||||
content of the array instead.
|
||||
|
||||
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||
---
|
||||
drivers/dahdi/dahdi-base.c | 6 +++---
|
||||
drivers/dahdi/dahdi_dynamic_ethmf.c | 2 +-
|
||||
drivers/dahdi/xpp/xbus-core.c | 2 +-
|
||||
3 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
--- a/drivers/dahdi/dahdi-base.c
|
||||
+++ b/drivers/dahdi/dahdi-base.c
|
||||
@@ -928,9 +928,9 @@ static int dahdi_seq_show(struct seq_fil
|
||||
if (!s)
|
||||
return -ENODEV;
|
||||
|
||||
- if (s->name)
|
||||
+ if (*(s->name))
|
||||
seq_printf(sfile, "Span %d: %s ", s->spanno, s->name);
|
||||
- if (s->desc)
|
||||
+ if (*(s->desc))
|
||||
seq_printf(sfile, "\"%s\"", s->desc);
|
||||
else
|
||||
seq_printf(sfile, "\"\"");
|
||||
@@ -969,7 +969,7 @@ static int dahdi_seq_show(struct seq_fil
|
||||
for (x = 0; x < s->channels; x++) {
|
||||
struct dahdi_chan *chan = s->chans[x];
|
||||
|
||||
- if (chan->name)
|
||||
+ if (*(chan->name))
|
||||
seq_printf(sfile, "\t%4d %s ", chan->channo,
|
||||
chan->name);
|
||||
|
||||
--- a/drivers/dahdi/dahdi_dynamic_ethmf.c
|
||||
+++ b/drivers/dahdi/dahdi_dynamic_ethmf.c
|
||||
@@ -535,7 +535,7 @@ static void ztdethmf_destroy(struct dahd
|
||||
kfree(z->msgbuf);
|
||||
kfree(z);
|
||||
} else {
|
||||
- if (z && z->span && z->span->name) {
|
||||
+ if (z && z->span && *(z->span->name)) {
|
||||
printk(KERN_ERR "Cannot find interface for %s\n",
|
||||
z->span->name);
|
||||
}
|
||||
--- a/drivers/dahdi/xpp/xbus-core.c
|
||||
+++ b/drivers/dahdi/xpp/xbus-core.c
|
||||
@@ -120,7 +120,7 @@ int xbus_check_unique(xbus_t *xbus)
|
||||
{
|
||||
if (!xbus)
|
||||
return -ENOENT;
|
||||
- if (xbus->label && *(xbus->label)) {
|
||||
+ if (*(xbus->label)) {
|
||||
xbus_t *xbus_old;
|
||||
|
||||
XBUS_DBG(DEVICES, xbus, "Checking LABEL='%s'\n", xbus->label);
|
|
@ -1,28 +0,0 @@
|
|||
From d0699f781e96df6c1fd10551c92fa27695b297da Mon Sep 17 00:00:00 2001
|
||||
From: Christian Marangi <ansuelsmth@gmail.com>
|
||||
Date: Fri, 12 May 2023 20:19:45 +0200
|
||||
Subject: [PATCH 3/6] dahdi-sysfs-chan: fix bug if clause does not guard
|
||||
|
||||
Fix bug if clause does not guard by a typo by missing the if clause and
|
||||
not correctly removing the device.
|
||||
|
||||
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||
---
|
||||
drivers/dahdi/dahdi-sysfs-chan.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/drivers/dahdi/dahdi-sysfs-chan.c
|
||||
+++ b/drivers/dahdi/dahdi-sysfs-chan.c
|
||||
@@ -381,10 +381,11 @@ static void fixed_devfiles_remove(void)
|
||||
return;
|
||||
for (i = 0; i < ARRAY_SIZE(fixed_minors); i++) {
|
||||
void *d = fixed_minors[i].dev;
|
||||
- if (d && !IS_ERR(d))
|
||||
+ if (d && !IS_ERR(d)) {
|
||||
dahdi_dbg(DEVICES, "Removing fixed device file %s\n",
|
||||
fixed_minors[i].name);
|
||||
DEL_DAHDI_DEV(fixed_minors[i].minor);
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
From 88cfe20bcd0be443fc7613fd287147d1c54b5f7f Mon Sep 17 00:00:00 2001
|
||||
From: Christian Marangi <ansuelsmth@gmail.com>
|
||||
Date: Fri, 12 May 2023 20:21:39 +0200
|
||||
Subject: [PATCH 5/6] dahdi: skip checking on releasing
|
||||
|
||||
Skip checking on releasing since xb is statically allocated and always
|
||||
present.
|
||||
|
||||
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||
---
|
||||
drivers/dahdi/wcte13xp-base.c | 3 +--
|
||||
drivers/dahdi/wcte43x-base.c | 3 +--
|
||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/drivers/dahdi/wcte13xp-base.c
|
||||
+++ b/drivers/dahdi/wcte13xp-base.c
|
||||
@@ -2707,8 +2707,7 @@ static int __devinit te13xp_init_one(str
|
||||
return 0;
|
||||
|
||||
fail_exit:
|
||||
- if (&wc->xb)
|
||||
- wcxb_release(&wc->xb);
|
||||
+ wcxb_release(&wc->xb);
|
||||
|
||||
free_wc(wc);
|
||||
return res;
|
||||
--- a/drivers/dahdi/wcte43x-base.c
|
||||
+++ b/drivers/dahdi/wcte43x-base.c
|
||||
@@ -3521,8 +3521,7 @@ static int __devinit t43x_init_one(struc
|
||||
return 0;
|
||||
|
||||
fail_exit:
|
||||
- if (&wc->xb)
|
||||
- wcxb_release(&wc->xb);
|
||||
+ wcxb_release(&wc->xb);
|
||||
|
||||
if (debug)
|
||||
dev_info(&wc->xb.pdev->dev, "***At fail_exit in init_one***\n");
|
|
@ -1,44 +0,0 @@
|
|||
From 14a9e676d635b1c2be1bab4114cc76c1793892d0 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Marangi <ansuelsmth@gmail.com>
|
||||
Date: Fri, 12 May 2023 20:22:31 +0200
|
||||
Subject: [PATCH 6/6] dahdi: xpp: fix wrong printf to %d
|
||||
|
||||
Fix wrong printf that should be %d with int variables.
|
||||
|
||||
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||
---
|
||||
drivers/dahdi/xpp/xbus-core.c | 2 +-
|
||||
drivers/dahdi/xpp/xframe_queue.c | 4 ++--
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/drivers/dahdi/xpp/xbus-core.c
|
||||
+++ b/drivers/dahdi/xpp/xbus-core.c
|
||||
@@ -1772,7 +1772,7 @@ static void xbus_fill_proc_queue(struct
|
||||
s32 rem;
|
||||
s64 lag_sec = div_s64_rem(q->worst_lag_usec, 1000, &rem);
|
||||
seq_printf(sfile,
|
||||
- "%-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%ld ms\n",
|
||||
+ "%-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%d ms\n",
|
||||
q->name, q->steady_state_count, q->count, q->max_count,
|
||||
q->worst_count, q->overflows, lag_sec,
|
||||
rem);
|
||||
--- a/drivers/dahdi/xpp/xframe_queue.c
|
||||
+++ b/drivers/dahdi/xpp/xframe_queue.c
|
||||
@@ -44,7 +44,7 @@ static void __xframe_dump_queue(struct x
|
||||
s32 rem;
|
||||
s64 sec = div_s64_rem(ktime_us_delta(now, xframe->kt_queued), 1000, &rem);
|
||||
|
||||
- snprintf(prefix, ARRAY_SIZE(prefix), " %3d> %5lld.%03ld msec",
|
||||
+ snprintf(prefix, ARRAY_SIZE(prefix), " %3d> %5lld.%03d msec",
|
||||
i++, sec, rem);
|
||||
dump_packet(prefix, pack, 1);
|
||||
}
|
||||
@@ -64,7 +64,7 @@ static bool __xframe_enqueue(struct xfra
|
||||
if ((overflow_cnt++ % 1000) < 5) {
|
||||
s32 rem;
|
||||
s64 lag_sec = div_s64_rem(q->worst_lag_usec, 1000, &rem);
|
||||
- NOTICE("Overflow of %-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%ld ms\n",
|
||||
+ NOTICE("Overflow of %-15s: counts %3d, %3d, %3d worst %3d, overflows %3d worst_lag %02lld.%d ms\n",
|
||||
q->name, q->steady_state_count, q->count,
|
||||
q->max_count, q->worst_count, q->overflows,
|
||||
lag_sec,
|
|
@ -8,23 +8,17 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dahdi-tools
|
||||
PKG_VERSION:=3.1.0
|
||||
PKG_RELEASE:=3
|
||||
PKG_VERSION:=2.10.0.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
|
||||
PKG_HASH:=ea852ebd274ee1cc90ff5e4ac84261b0b787b1a74e8b76ad659bc9ec4f77e67e
|
||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/
|
||||
PKG_MD5SUM:=224c5b86195249d5ce462ca316332087
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Vittorio Gambaletta <openwrt@vittgam.net>
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/dahdi-cfg/Default
|
||||
|
@ -36,7 +30,7 @@ endef
|
|||
|
||||
define Package/dahdi-cfg
|
||||
$(call Package/dahdi-cfg/Default)
|
||||
DEPENDS+=+libpthread +dahdi-tools-libtonezone
|
||||
DEPENDS+=+libpthread
|
||||
TITLE:=DAHDI tools dahdi_cfg, dahdi_scan and fxotune
|
||||
endef
|
||||
|
||||
|
@ -52,44 +46,50 @@ define Package/dahdi-tools-libtonezone
|
|||
TITLE:=DAHDI tonezone library
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-silent-rules \
|
||||
--with-perllib="" \
|
||||
--without-libusb \
|
||||
--without-libusbx \
|
||||
--without-newt \
|
||||
--without-pcap \
|
||||
--without-ppp \
|
||||
--without-selinux \
|
||||
--without-usb
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
EXTRA_CFLAGS:= $(TARGET_CPPFLAGS)
|
||||
|
||||
# https://issues.asterisk.org/jira/browse/DAHTOOL-85
|
||||
TARGET_CFLAGS+=-fcommon
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
HOSTCC="$(HOSTCC)" \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
CFLAGS="$(TARGET_CFLAGS) -I. -DBUILDING_TONEZONE -I$(STAGING_DIR)/usr/include" \
|
||||
KSRC="$(LINUX_DIR)" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
|
||||
DAHDI_INCLUDE="$(STAGING_DIR)/usr/include" \
|
||||
CONFIGURE_SILENT="--silent" \
|
||||
dahdi_cfg dahdi_monitor dahdi_scan dahdi_speed dahdi_test fxotune libs
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.{a,so*} \
|
||||
$(1)/usr/lib/
|
||||
$(CP) $(PKG_BUILD_DIR)/libtonezone.so $(1)/usr/lib/
|
||||
$(CP) $(PKG_BUILD_DIR)/libtonezone.a $(1)/usr/lib/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/include/dahdi
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/dahdi/tonezone.h \
|
||||
$(1)/usr/include/dahdi/
|
||||
$(CP) $(PKG_BUILD_DIR)/tonezone.h $(1)/usr/include/dahdi/
|
||||
endef
|
||||
|
||||
define Package/dahdi-cfg/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{dahdi_cfg,dahdi_scan,fxotune} \
|
||||
$(1)/usr/sbin/
|
||||
$(CP) $(PKG_BUILD_DIR)/dahdi_cfg $(1)/usr/sbin/
|
||||
$(CP) $(PKG_BUILD_DIR)/dahdi_scan $(1)/usr/sbin/
|
||||
$(CP) $(PKG_BUILD_DIR)/fxotune $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
define Package/dahdi-monitor/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{dahdi_monitor,dahdi_speed,dahdi_test} \
|
||||
$(1)/usr/sbin/
|
||||
$(CP) $(PKG_BUILD_DIR)/dahdi_monitor $(1)/usr/sbin/
|
||||
$(CP) $(PKG_BUILD_DIR)/dahdi_speed $(1)/usr/sbin/
|
||||
$(CP) $(PKG_BUILD_DIR)/dahdi_test $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
define Package/dahdi-tools-libtonezone/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so* $(1)/usr/lib/
|
||||
$(CP) $(PKG_BUILD_DIR)/libtonezone.so $(1)/usr/lib/
|
||||
cd $(1)/usr/lib/; ln -s libtonezone.so libtonezone.so.2.0
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,dahdi-cfg))
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- a/xpp/echo_loader.c
|
||||
+++ b/xpp/echo_loader.c
|
||||
@@ -564,7 +564,7 @@ UINT32 Oct6100UserDriverReadBurstApi(tPO
|
||||
return cOCT6100_ERR_OK;
|
||||
}
|
||||
|
||||
-inline int get_ver(struct astribank *astribank)
|
||||
+static inline int get_ver(struct astribank *astribank)
|
||||
{
|
||||
return spi_send(astribank, 0, 0, 1, 1);
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
--- a/xpp/hexfile.h
|
||||
+++ b/xpp/hexfile.h
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
+#include <sys/cdefs.h>
|
||||
#include <sys/param.h>
|
||||
#include <syslog.h>
|
||||
#define PACKED __attribute__((packed))
|
|
@ -1,12 +0,0 @@
|
|||
menu "Configuration"
|
||||
depends on PACKAGE_freetdm
|
||||
|
||||
config FREETDM_WITH_DEBUG
|
||||
bool "Compile with debug information"
|
||||
default n
|
||||
help
|
||||
Enable extra debug codepaths, like asserts and extra output. If you
|
||||
want to get meaningful backtraces see
|
||||
https://wiki.openwrt.org/doc/devel/debugging for starting points.
|
||||
|
||||
endmenu
|
|
@ -1,154 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2021 Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=freetdm
|
||||
PKG_RELEASE:=2
|
||||
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/freeswitch/freetdm.git
|
||||
PKG_SOURCE_DATE:=2021-08-30
|
||||
PKG_SOURCE_VERSION:=8918ee1c3637cad0f9d41a402d26d3aa076fc202
|
||||
PKG_MIRROR_HASH:=c910ff0fb62c8a174f6e0bbd749783da1ecd71634d4dcde48b118909f4981943
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:= \
|
||||
BSD-2-Clause \
|
||||
BSD-3-Clause \
|
||||
BSD-4-Clause \
|
||||
GPL-2.0+ \
|
||||
MIT/X11 (BSD like) \
|
||||
MPL-1.1
|
||||
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_BUILD_DEPENDS:=freeswitch
|
||||
|
||||
FS_EXAMPLES_DIR:=/usr/share/freeswitch/examples
|
||||
FS_LIB_DIR:=/usr/lib
|
||||
FS_MOD_DIR:=$(FS_LIB_DIR)/freeswitch/mod
|
||||
FS_PKGCONFIG_DIR:=$(FS_LIB_DIR)/pkgconfig
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_FREETDM_WITH_DEBUG \
|
||||
CONFIG_LIBC \
|
||||
CONFIG_PACKAGE_libfreetdm-ftmod-libpri \
|
||||
CONFIG_PACKAGE_libfreetdm-ftmod-pritap \
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libfreetdm/install/ftmod
|
||||
$(INSTALL_DIR) $(1)$(FS_MOD_DIR)
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_MOD_DIR)/ftmod_$(2).so \
|
||||
$(1)$(FS_MOD_DIR)
|
||||
endef
|
||||
|
||||
define Package/freetdm/config
|
||||
source "$(SOURCE)/Config.in"
|
||||
endef
|
||||
|
||||
define Package/libfreetdm/Default
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
SUBMENU:=Telephony
|
||||
URL:=https://www.freeswitch.org
|
||||
endef
|
||||
|
||||
define Package/libfreetdm
|
||||
$(call Package/libfreetdm/Default)
|
||||
DEPENDS:=
|
||||
TITLE:=TDM signaling and media API
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/libfreetdm/description
|
||||
Provides a unified interface to hardware TDM cards and SS7 stacks.
|
||||
endef
|
||||
|
||||
define Package/libfreetdm/install
|
||||
$(INSTALL_DIR) $(1)$(FS_LIB_DIR)
|
||||
$(CP) $(PKG_INSTALL_DIR)$(FS_LIB_DIR)/libfreetdm.so.* \
|
||||
$(1)$(FS_LIB_DIR)
|
||||
endef
|
||||
|
||||
define Package/freeswitch-mod-freetdm
|
||||
$(call Package/libfreetdm/Default)
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Telephony
|
||||
DEPENDS:=freeswitch +libfreetdm
|
||||
TITLE:=FreeTDM endpoint module
|
||||
endef
|
||||
|
||||
define Package/freeswitch-mod-freetdm/description
|
||||
This module is the glue between FreeSWITCH and FreeTDM.
|
||||
endef
|
||||
|
||||
define Package/freeswitch-mod-freetdm/install
|
||||
$(INSTALL_DIR) $(1)$(FS_MOD_DIR)
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)$(FS_MOD_DIR)/mod_freetdm.so \
|
||||
$(1)$(FS_MOD_DIR)
|
||||
ifeq ($(CONFIG_FS_WITH_MODCONF),y)
|
||||
$(INSTALL_DIR) \
|
||||
$(1)$(FS_EXAMPLES_DIR)/mod_freetdm/freeswitch/autoload_configs
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/*.conf \
|
||||
$(1)$(FS_EXAMPLES_DIR)/mod_freetdm
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/freetdm.conf.xml \
|
||||
$(1)$(FS_EXAMPLES_DIR)/mod_freetdm/freeswitch/autoload_configs
|
||||
endif
|
||||
endef
|
||||
|
||||
define Package/libfreetdm/FTModule
|
||||
define Package/libfreetdm-ftmod-$(subst _,-,$(1))
|
||||
$(call Package/libfreetdm/Default)
|
||||
DEPENDS:=libfreetdm \
|
||||
$(patsubst +%,+PACKAGE_libfreetdm-ftmod-$(subst _,-,$(1)):%,$(4))
|
||||
TITLE:=$(2) FreeTDM module
|
||||
endef
|
||||
define Package/libfreetdm-ftmod-$(subst _,-,$(1))/description
|
||||
$(subst \n,$(newline),$(3))
|
||||
endef
|
||||
define Package/libfreetdm-ftmod-$(subst _,-,$(1))/install
|
||||
$(call Package/libfreetdm/install/ftmod,$$(1),$(1))
|
||||
endef
|
||||
$$(eval $$(call BuildPackage,libfreetdm-ftmod-$(subst _,-,$(1))))
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--srcdir=$(PKG_BUILD_DIR) \
|
||||
--disable-dependency-tracking \
|
||||
--disable-static \
|
||||
--with-modinstdir=$(FS_MOD_DIR) \
|
||||
$(call autoconf_bool,CONFIG_FREETDM_WITH_DEBUG,debug) \
|
||||
$(if $(CONFIG_PACKAGE_libfreetdm-ftmod-libpri),--with-libpri="$(STAGING_DIR)/usr",--without-libpri) \
|
||||
$(if $(CONFIG_PACKAGE_libfreetdm-ftmod-pritap),--with-pritap,--without-pritap)
|
||||
|
||||
$(eval $(call BuildPackage,libfreetdm))
|
||||
$(eval $(call BuildPackage,freeswitch-mod-freetdm))
|
||||
|
||||
################################
|
||||
# FreeTDM modules
|
||||
# Params:
|
||||
# 1 - Package subname
|
||||
# 2 - Package title
|
||||
# 3 - Module description
|
||||
# 4 - Module dependencies
|
||||
################################
|
||||
|
||||
$(eval $(call Package/libfreetdm/FTModule,analog,Analog,Offers generic FXO/FXS support for any type of card supported by FreeTDM.,))
|
||||
$(eval $(call Package/libfreetdm/FTModule,analog_em,Analog EM,Offers generic E&M signaling for any type of card supported by FreeTDM.,))
|
||||
$(eval $(call Package/libfreetdm/FTModule,libpri,LibPRI,Offers support for PRI lines using the open source libpri stack for any\ntype of card supported by FreeTDM. Supports both PRI and BRI signalling.,+libpri @!aarch64))
|
||||
$(eval $(call Package/libfreetdm/FTModule,pritap,PRI tapping,This module is used to tap PRI lines.,+libfreetdm-ftmod-libpri))
|
||||
$(eval $(call Package/libfreetdm/FTModule,skel,Skeleton,ftmod_skel is an example module.,))
|
||||
$(eval $(call Package/libfreetdm/FTModule,zt,DAHDI I/O,This module supports the DAHDI interface. The DAHDI interface is used by\nseveral hardware vendors.,))
|
|
@ -1,11 +0,0 @@
|
|||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -88,7 +88,7 @@ AC_ARG_ENABLE([enable_64],
|
||||
|
||||
case "${ax_cv_c_compiler_vendor}" in
|
||||
gnu)
|
||||
- COMP_VENDOR_CFLAGS="-ffast-math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -O0"
|
||||
+ COMP_VENDOR_CFLAGS="-ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
|
||||
;;
|
||||
sun)
|
||||
COMP_VENDOR_CFLAGS="-xc99=all -mt -xCC -xvpara"
|
|
@ -1,8 +0,0 @@
|
|||
--- a/mod_freetdm/Makefile.in
|
||||
+++ b/mod_freetdm/Makefile.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-FT_CFLAGS=@CFLAGS@ @COMP_VENDOR_CFLAGS@ @DEFS@
|
||||
+FT_CFLAGS=@COMP_VENDOR_CFLAGS@ @DEFS@
|
||||
|
||||
BASE=../../..
|
||||
FT_DIR=..
|
|
@ -1,10 +0,0 @@
|
|||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -284,6 +284,7 @@ dox doxygen:
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(DESTDIR)$(prefix)
|
||||
$(mkinstalldirs) $(DESTDIR)@confdir@
|
||||
+ $(mkinstalldirs) $(DESTDIR)@fsconfdir@/autoload_configs
|
||||
@[ -f "$(DESTDIR)@confdir@/freetdm.conf" ] || ( cp conf/*.conf $(DESTDIR)@confdir@)
|
||||
@[ -f "$(DESTDIR)@fsconfdir@/autoload_configs/freetdm.conf.xml" ] || ( cp -f conf/freetdm.conf.xml $(DESTDIR)@fsconfdir@/autoload_configs)
|
||||
@echo FreeTDM Installed
|
|
@ -1,96 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2018 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gsmlib
|
||||
PKG_VERSION:=1.10-20140304
|
||||
PKG_RELEASE:=5
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=https://github.com/vbouchaud/gsmlib.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=cd5442de07cfe052316ede58640ef81b20627276
|
||||
PKG_MIRROR_HASH:=bc24d7ddcb5f4b5f9160351d9f38cf6f35f3feef969f675f883b32d04c8c80fa
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
# Need Makefile.in.in from gettext-full/host and po.m4 from gettext-full
|
||||
PKG_BUILD_DEPENDS:=gettext-full/host gettext-full
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=LGPL-2.1+
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)/Default
|
||||
SUBMENU:=Telephony
|
||||
URL:=https://github.com/vbouchaud/gsmlib
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
$(call Package/$(PKG_NAME)/Default)
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=GSM mobile phone access lib
|
||||
DEPENDS:=+libstdcpp
|
||||
endef
|
||||
|
||||
define Package/gsm-utils
|
||||
$(call Package/$(PKG_NAME)/Default)
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=GSM mobile phone access apps
|
||||
DEPENDS:=+$(PKG_NAME)
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
A library to access GSM mobile phones via GSM modems.
|
||||
endef
|
||||
|
||||
define Package/gsm-utils/description
|
||||
Some simple command line programs to access GSM mobile phones via GSM modems.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += --disable-nls
|
||||
|
||||
TARGET_CXXFLAGS += -std=c++11
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h \
|
||||
$(1)/usr/include/$(PKG_NAME)
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsmme.so* $(1)/usr/lib
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
$(INSTALL_DATA) \
|
||||
$(STAGING_DIR_HOSTPKG)/share/gettext/po/Makefile.in.in \
|
||||
$(PKG_BUILD_DIR)/po
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsmme.so* $(1)/usr/lib
|
||||
endef
|
||||
|
||||
define Package/gsm-utils/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
$(eval $(call BuildPackage,gsm-utils))
|
|
@ -1,57 +0,0 @@
|
|||
Description: Update autotools-related stuff.
|
||||
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -15,6 +15,7 @@ AC_INIT(gsmlib/gsm_error.h)
|
||||
|
||||
dnl Other
|
||||
AC_CONFIG_AUX_DIR(scripts)
|
||||
+AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_PROG_INSTALL
|
||||
|
||||
dnl check for libintl
|
||||
@@ -34,6 +35,8 @@ if test "$CXXFLAGS" = ""; then
|
||||
CXXFLAGS="-O2"
|
||||
fi
|
||||
|
||||
+AC_USE_SYSTEM_EXTENSIONS
|
||||
+
|
||||
dnl comment out this line to get extensive debugging output and asserts
|
||||
dnl CXXFLAGS="-DNDEBUG $CXXFLAGS"
|
||||
|
||||
@@ -108,7 +111,7 @@ AC_SUBST(GSM_VERSION)
|
||||
dnl national language support (NLS)
|
||||
LINGUAS="de"
|
||||
ALL_LINGUAS=$LINGUAS
|
||||
-AM_GNU_GETTEXT
|
||||
+AM_GNU_GETTEXT([external])
|
||||
dnl AM_GLIB_GNU_GETTEXT
|
||||
|
||||
dnl set locale dir (FIXME there must be a better way)
|
||||
--- /dev/null
|
||||
+++ b/po/Makevars
|
||||
@@ -0,0 +1,5 @@
|
||||
+DOMAIN = $(PACKAGE)
|
||||
+
|
||||
+subdir = po
|
||||
+top_builddir = ..
|
||||
+
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -11,14 +11,12 @@
|
||||
# * Created: 21.5.1999
|
||||
# *************************************************************************
|
||||
|
||||
+ACLOCAL_AMFLAGS = -I m4
|
||||
+
|
||||
SUBDIRS_ = po gsmlib apps tests doc scripts win32 ext
|
||||
|
||||
EXTRA_DIST = gsmlib.spec
|
||||
|
||||
-if COMPILE_INTL
|
||||
-SUBDIRS = intl $(SUBDIRS_) # po - make automake happy
|
||||
-else
|
||||
SUBDIRS = $(SUBDIRS_) # po intl - make automake happy
|
||||
-endif
|
||||
|
||||
all:
|
|
@ -1,21 +0,0 @@
|
|||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -60,7 +60,7 @@ AC_PROG_CPP
|
||||
AC_PROG_CXX
|
||||
|
||||
dnl check for gcc 2.95.x
|
||||
-AC_TRY_RUN([
|
||||
+AC_RUN_IFELSE([
|
||||
#include <unistd.h>
|
||||
main()
|
||||
{
|
||||
@@ -72,7 +72,8 @@ main()
|
||||
}
|
||||
],,
|
||||
[echo "need at least gcc 2.95 to compile correctly"
|
||||
-exit 1])
|
||||
+exit 1],
|
||||
+[echo "checking if at least gcc 2.95 is available... cross-compiling (assuming yes)"])
|
||||
|
||||
dnl check for alloca
|
||||
AC_FUNC_ALLOCA
|
|
@ -1,11 +0,0 @@
|
|||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
-SUBDIRS_ = po gsmlib apps tests doc scripts win32 ext
|
||||
+SUBDIRS_ = po gsmlib apps tests doc scripts win32
|
||||
|
||||
EXTRA_DIST = gsmlib.spec
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2014 - 2017 OpenWrt.org
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=iksemel
|
||||
PKG_VERSION:=1.4
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/iksemel
|
||||
PKG_HASH:=458c1b8fb3349076a6cecf26c29db1d561315d84e16bfcfba419f327f502e244
|
||||
PKG_SOURCE_URL:=http://iksemel.googlecode.com/files/
|
||||
PKG_MD5SUM:=532e77181694f87ad5eb59435d11c1ca
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
|
@ -21,7 +21,7 @@ PKG_INSTALL:=1
|
|||
|
||||
PKG_LICENSE:=LGPL-2.1
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -30,8 +30,8 @@ define Package/libiksemel
|
|||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Iksemel Jabber Library
|
||||
URL:=https://github.com/meduketto/iksemel
|
||||
DEPENDS:=+libgnutls
|
||||
URL:=http://code.google.com/p/iksemel/
|
||||
DEPENDS:= +libgnutls +libtasn1 +libgcrypt +libgpg-error
|
||||
endef
|
||||
|
||||
define Package/libiksemel/description
|
||||
|
@ -41,6 +41,21 @@ in ANSI C except the network code (which is POSIX compatible), thus
|
|||
highly portable.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
TARGET_LDFLAGS += \
|
||||
-Wl,-rpath-link,$(STAGING_DIR)/usr/lib \
|
||||
-lgnutls -lgcrypt -lgpg-error
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
--enable-shared \
|
||||
--enable-static \
|
||||
--with-libgnutls-prefix="$(STAGING_DIR)/usr" \
|
||||
, \
|
||||
LIBS="$(TARGET_LDFLAGS)" \
|
||||
)
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/iksemel.h $(1)/usr/include/
|
||||
|
|
163
libs/iksemel/patches/001-missing-macros.patch
Normal file
163
libs/iksemel/patches/001-missing-macros.patch
Normal file
|
@ -0,0 +1,163 @@
|
|||
--- /dev/null
|
||||
+++ b/gnutls.m4
|
||||
@@ -0,0 +1,160 @@
|
||||
+dnl Autoconf macros for libgnutls
|
||||
+dnl $id$
|
||||
+
|
||||
+# Modified for LIBGNUTLS -- nmav
|
||||
+# Configure paths for LIBGCRYPT
|
||||
+# Shamelessly stolen from the one of XDELTA by Owen Taylor
|
||||
+# Werner Koch 99-12-09
|
||||
+
|
||||
+dnl AM_PATH_LIBGNUTLS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
|
||||
+dnl Test for libgnutls, and define LIBGNUTLS_CFLAGS and LIBGNUTLS_LIBS
|
||||
+dnl
|
||||
+AC_DEFUN([AM_PATH_LIBGNUTLS],
|
||||
+[dnl
|
||||
+dnl Get the cflags and libraries from the libgnutls-config script
|
||||
+dnl
|
||||
+AC_ARG_WITH(libgnutls-prefix,
|
||||
+ [ --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)],
|
||||
+ libgnutls_config_prefix="$withval", libgnutls_config_prefix="")
|
||||
+
|
||||
+ if test x$libgnutls_config_prefix != x ; then
|
||||
+ if test x${LIBGNUTLS_CONFIG+set} != xset ; then
|
||||
+ LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
|
||||
+ fi
|
||||
+ fi
|
||||
+
|
||||
+ AC_PATH_PROG(LIBGNUTLS_CONFIG, libgnutls-config, no)
|
||||
+ min_libgnutls_version=ifelse([$1], ,0.1.0,$1)
|
||||
+ AC_MSG_CHECKING(for libgnutls - version >= $min_libgnutls_version)
|
||||
+ no_libgnutls=""
|
||||
+ if test "$LIBGNUTLS_CONFIG" = "no" ; then
|
||||
+ no_libgnutls=yes
|
||||
+ else
|
||||
+ LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
|
||||
+ LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
|
||||
+ libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
|
||||
+
|
||||
+
|
||||
+ ac_save_CFLAGS="$CFLAGS"
|
||||
+ ac_save_LIBS="$LIBS"
|
||||
+ CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
|
||||
+ LIBS="$LIBS $LIBGNUTLS_LIBS"
|
||||
+dnl
|
||||
+dnl Now check if the installed libgnutls is sufficiently new. Also sanity
|
||||
+dnl checks the results of libgnutls-config to some extent
|
||||
+dnl
|
||||
+ rm -f conf.libgnutlstest
|
||||
+ AC_TRY_RUN([
|
||||
+#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
+#include <gnutls/gnutls.h>
|
||||
+
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+ system ("touch conf.libgnutlstest");
|
||||
+
|
||||
+ if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
|
||||
+ {
|
||||
+ printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
|
||||
+ "$libgnutls_config_version", gnutls_check_version(NULL) );
|
||||
+ printf("*** was found! If libgnutls-config was correct, then it is best\n");
|
||||
+ printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
|
||||
+ printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
||||
+ printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
||||
+ printf("*** required on your system.\n");
|
||||
+ printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
|
||||
+ printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
|
||||
+ printf("*** before re-running configure\n");
|
||||
+ }
|
||||
+ else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
|
||||
+ {
|
||||
+ printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
|
||||
+ printf("*** library (version %s)\n", gnutls_check_version(NULL) );
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ if ( gnutls_check_version( "$min_libgnutls_version" ) )
|
||||
+ {
|
||||
+ return 0;
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
|
||||
+ gnutls_check_version(NULL) );
|
||||
+ printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
|
||||
+ "$min_libgnutls_version" );
|
||||
+ printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
|
||||
+ printf("*** \n");
|
||||
+ printf("*** If you have already installed a sufficiently new version, this error\n");
|
||||
+ printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
|
||||
+ printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
||||
+ printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
|
||||
+ printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
|
||||
+ printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
||||
+ printf("*** so that the correct libraries are found at run-time))\n");
|
||||
+ }
|
||||
+ }
|
||||
+ return 1;
|
||||
+}
|
||||
+],, no_libgnutls=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
||||
+ CFLAGS="$ac_save_CFLAGS"
|
||||
+ LIBS="$ac_save_LIBS"
|
||||
+ fi
|
||||
+
|
||||
+ if test "x$no_libgnutls" = x ; then
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ ifelse([$2], , :, [$2])
|
||||
+ else
|
||||
+ if test -f conf.libgnutlstest ; then
|
||||
+ :
|
||||
+ else
|
||||
+ AC_MSG_RESULT(no)
|
||||
+ fi
|
||||
+ if test "$LIBGNUTLS_CONFIG" = "no" ; then
|
||||
+ echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
|
||||
+ echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
|
||||
+ echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
|
||||
+ echo "*** full path to libgnutls-config."
|
||||
+ else
|
||||
+ if test -f conf.libgnutlstest ; then
|
||||
+ :
|
||||
+ else
|
||||
+ echo "*** Could not run libgnutls test program, checking why..."
|
||||
+ CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
|
||||
+ LIBS="$LIBS $LIBGNUTLS_LIBS"
|
||||
+ AC_TRY_LINK([
|
||||
+#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
+#include <gnutls/gnutls.h>
|
||||
+], [ return !!gnutls_check_version(NULL); ],
|
||||
+ [ echo "*** The test program compiled, but did not run. This usually means"
|
||||
+ echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
|
||||
+ echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
|
||||
+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
||||
+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
||||
+ echo "*** is required on your system"
|
||||
+ echo "***"
|
||||
+ echo "*** If you have an old version installed, it is best to remove it, although"
|
||||
+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
|
||||
+ echo "***" ],
|
||||
+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
|
||||
+ echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
|
||||
+ echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
|
||||
+ echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG" ])
|
||||
+ CFLAGS="$ac_save_CFLAGS"
|
||||
+ LIBS="$ac_save_LIBS"
|
||||
+ fi
|
||||
+ fi
|
||||
+ LIBGNUTLS_CFLAGS=""
|
||||
+ LIBGNUTLS_LIBS=""
|
||||
+ ifelse([$3], , :, [$3])
|
||||
+ fi
|
||||
+ rm -f conf.libgnutlstest
|
||||
+ AC_SUBST(LIBGNUTLS_CFLAGS)
|
||||
+ AC_SUBST(LIBGNUTLS_LIBS)
|
||||
+])
|
||||
+
|
||||
+dnl *-*wedit:notab*-* Please keep this as the last line.
|
|
@ -1,28 +0,0 @@
|
|||
Last-Update: 2013-07-29
|
||||
Forwarded: not-needed
|
||||
Origin: upstream, commit:4652af9cf119145af3a90c632f8a6db215946784
|
||||
Bug-Iksemel: https://code.google.com/p/iksemel/issues/detail?id=20
|
||||
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
|
||||
Description: use pkgconfig for checking gnutls
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -44,9 +44,17 @@
|
||||
AC_SEARCH_LIBS(recv,socket)
|
||||
AC_CHECK_FUNCS(getopt_long)
|
||||
AC_CHECK_FUNCS(getaddrinfo)
|
||||
|
||||
-AM_PATH_LIBGNUTLS(,AC_DEFINE(HAVE_GNUTLS,,"Use libgnutls"))
|
||||
+dnl Check GNU TLS
|
||||
+PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.0.0, have_gnutls=yes, have_gnutls=no)
|
||||
+if test "x$have_gnutls" = "xyes"; then
|
||||
+ LIBGNUTLS_CFLAGS="$GNUTLS_CFLAGS"
|
||||
+ LIBGNUTLS_LIBS="$GNUTLS_LIBS"
|
||||
+ AC_SUBST(LIBGNUTLS_CFLAGS)
|
||||
+ AC_SUBST(LIBGNUTLS_LIBS)
|
||||
+ AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])
|
||||
+fi
|
||||
|
||||
dnl Check -Wall flag of GCC
|
||||
if test "x$GCC" = "xyes"; then
|
||||
if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
|
|
@ -1,38 +0,0 @@
|
|||
Last-Update: 2015-10-28
|
||||
Bug-Upstream: https://github.com/meduketto/iksemel/issues/48
|
||||
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803204
|
||||
From: Marc Dequènes (duck) <duck@duckcorp.org>
|
||||
Description: fix security problem (and compatibility problem with servers rejecting low grade ciphers).
|
||||
|
||||
--- a/src/stream.c
|
||||
+++ b/src/stream.c
|
||||
@@ -62,13 +62,9 @@
|
||||
|
||||
static int
|
||||
handshake (struct stream_data *data)
|
||||
{
|
||||
- const int protocol_priority[] = { GNUTLS_TLS1, GNUTLS_SSL3, 0 };
|
||||
- const int kx_priority[] = { GNUTLS_KX_RSA, 0 };
|
||||
- const int cipher_priority[] = { GNUTLS_CIPHER_3DES_CBC, GNUTLS_CIPHER_ARCFOUR, 0};
|
||||
- const int comp_priority[] = { GNUTLS_COMP_ZLIB, GNUTLS_COMP_NULL, 0 };
|
||||
- const int mac_priority[] = { GNUTLS_MAC_SHA, GNUTLS_MAC_MD5, 0 };
|
||||
+ const char *priority_string = "SECURE256:+SECURE192:-VERS-TLS-ALL:+VERS-TLS1.2";
|
||||
int ret;
|
||||
|
||||
if (gnutls_global_init () != 0)
|
||||
return IKS_NOMEM;
|
||||
@@ -79,13 +75,9 @@
|
||||
if (gnutls_init (&data->sess, GNUTLS_CLIENT) != 0) {
|
||||
gnutls_certificate_free_credentials (data->cred);
|
||||
return IKS_NOMEM;
|
||||
}
|
||||
- gnutls_protocol_set_priority (data->sess, protocol_priority);
|
||||
- gnutls_cipher_set_priority(data->sess, cipher_priority);
|
||||
- gnutls_compression_set_priority(data->sess, comp_priority);
|
||||
- gnutls_kx_set_priority(data->sess, kx_priority);
|
||||
- gnutls_mac_set_priority(data->sess, mac_priority);
|
||||
+ gnutls_priority_set_direct(data->sess, priority_string, NULL);
|
||||
gnutls_credentials_set (data->sess, GNUTLS_CRD_CERTIFICATE, data->cred);
|
||||
|
||||
gnutls_transport_set_push_function (data->sess, (gnutls_push_func) tls_push);
|
||||
gnutls_transport_set_pull_function (data->sess, (gnutls_pull_func) tls_pull);
|
|
@ -1,68 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2018 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libctb
|
||||
PKG_VERSION:=0.16
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://iftools.com/download/ctb/$(PKG_VERSION)
|
||||
PKG_HASH:=1cb0026a66cfbf8e26988f76cb861f1fbfd04f272f9b9adaf0d463d01282fc08
|
||||
|
||||
MAKE_PATH:=build
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=LGPL
|
||||
PKG_LICENSE_FILES:=build/COPYING
|
||||
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Communications toolbox - ctb
|
||||
URL:=https://iftools.com/opensource/ctb.en.php
|
||||
DEPENDS:=+libstdcpp
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
Multiplatform library for different interfaces.
|
||||
endef
|
||||
|
||||
MAKE_FLAGS += \
|
||||
DEBUG=0 \
|
||||
GPIB=0 \
|
||||
prefix=/usr
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/ctb-$(PKG_VERSION)/linux
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/ctb-$(PKG_VERSION)/*.h \
|
||||
$(PKG_BUILD_DIR)/include/ctb-$(PKG_VERSION)/kbhit.h \
|
||||
$(1)/usr/include/ctb-$(PKG_VERSION)
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/ctb-$(PKG_VERSION)/linux/*.h \
|
||||
$(1)/usr/include/ctb-$(PKG_VERSION)/linux
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)-$(PKG_VERSION).so \
|
||||
$(1)/usr/lib
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)-$(PKG_VERSION).so \
|
||||
$(1)/usr/lib
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
|
@ -1,66 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2019 Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libks
|
||||
|
||||
PKG_VERSION:=2.0.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=libks-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/signalwire/libks/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=af94f9fcdb2022b8f09187309ac2d372a5a4cc639af77cd4375f2d5c88b4fd63
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:= \
|
||||
BSD-1-Clause \
|
||||
BSD-3-Clause \
|
||||
ISC \
|
||||
MIT \
|
||||
PUBLICDOMAIN \
|
||||
twofish
|
||||
PKG_LICENSE_FILES:=copyright
|
||||
|
||||
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/libks
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Foundational support for SignalWire C products
|
||||
URL:=https://github.com/signalwire/libks
|
||||
ABI_VERSION:=2
|
||||
DEPENDS:=+libatomic +libopenssl +libuuid
|
||||
endef
|
||||
|
||||
# Otherwise OpenWrt's CPPFLAGS are ignored
|
||||
TARGET_CFLAGS += $(TARGET_CPPFLAGS)
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/libks2/libks/cmake
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libks2/libks/*.h \
|
||||
$(1)/usr/include/libks2/libks
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libks2/libks/cmake/* \
|
||||
$(1)/usr/include/libks2/libks/cmake
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libks2.so* $(1)/usr/lib
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libks2.pc \
|
||||
$(1)/usr/lib/pkgconfig
|
||||
endef
|
||||
|
||||
define Package/libks/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libks2.so.$(ABI_VERSION)* $(1)/usr/lib
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libks))
|
|
@ -1,15 +0,0 @@
|
|||
--- a/cmake/FindLibM.cmake
|
||||
+++ b/cmake/FindLibM.cmake
|
||||
@@ -8,11 +8,7 @@
|
||||
# A user may set ``LIBM_ROOT`` to a math library installation root to tell this
|
||||
# module where to look.
|
||||
|
||||
-find_path(LIBM_INCLUDE_DIRS
|
||||
- NAMES math.h
|
||||
- PATHS /usr/include /usr/local/include /usr/local/bic/include
|
||||
- NO_DEFAULT_PATH
|
||||
-)
|
||||
+find_path(LIBM_INCLUDE_DIRS math.h)
|
||||
find_library(LIBM_LIBRARIES m)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(LibM DEFAULT_MSG LIBM_LIBRARIES LIBM_INCLUDE_DIRS)
|
|
@ -1,11 +0,0 @@
|
|||
--- a/src/include/libks/ks_platform.h
|
||||
+++ b/src/include/libks/ks_platform.h
|
||||
@@ -93,7 +93,7 @@ KS_BEGIN_EXTERN_C
|
||||
#include <sys/time.h>
|
||||
#include <sys/select.h>
|
||||
#include <netinet/tcp.h>
|
||||
-#include <sys/signal.h>
|
||||
+#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <strings.h>
|
||||
#include <stdint.h>
|
|
@ -1,24 +0,0 @@
|
|||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -11,6 +11,10 @@ option(WITH_LIBBACKTRACE "Enables linkin
|
||||
# Must include cotire before anything else for auto pch setup
|
||||
#include(cmake/cotire.cmake)
|
||||
|
||||
+# Declare our project, libks2
|
||||
+project(LibKS2 VERSION 2.0.2 LANGUAGES C CXX)
|
||||
+message("LibKS2 Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
||||
+
|
||||
# Load our common utility api and setup the platfomrm and build
|
||||
include(cmake/ksutil.cmake)
|
||||
ksutil_setup_platform()
|
||||
@@ -39,10 +43,6 @@ if (KS_PLAT_WIN OR WITH_KS_TEST)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
-# Declare our project, libks2
|
||||
-project(LibKS2 VERSION 2.0.2 LANGUAGES C CXX)
|
||||
-message("LibKS2 Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
||||
-
|
||||
# Set package version
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
||||
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
|
|
@ -1,10 +0,0 @@
|
|||
--- a/cmake/ksutil.cmake
|
||||
+++ b/cmake/ksutil.cmake
|
||||
@@ -135,7 +135,6 @@ macro(ksutil_setup_platform)
|
||||
set(KS_PLAT_LIN 1 CACHE INTERNAL "Platform definition" FORCE)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
|
||||
|
||||
- add_compile_options("$<$<CONFIG:Release>:-O2>")
|
||||
add_compile_options("$<$<CONFIG:Release>:-g>")
|
||||
|
||||
add_compile_options("$<$<CONFIG:Debug>:-O0>")
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2014 - 2018 OpenWrt.org
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
@ -8,12 +8,12 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libosip2
|
||||
PKG_VERSION:=5.3.0
|
||||
PKG_VERSION:=4.1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@GNU/osip
|
||||
PKG_HASH:=f4725916c22cf514969efb15c3c207233d64739383f7d42956038b78f6cae8c8
|
||||
PKG_MD5SUM:=756423628683c07f817432f046a26516
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
|
@ -30,7 +30,6 @@ define Package/libosip2
|
|||
CATEGORY:=Libraries
|
||||
TITLE:=GNU oSIP library
|
||||
URL:=http://www.gnu.org/software/osip/
|
||||
ABI_VERSION:=15
|
||||
DEPENDS:=+librt
|
||||
endef
|
||||
|
||||
|
@ -38,22 +37,22 @@ define Package/libosip2/description
|
|||
GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
|
||||
endef
|
||||
|
||||
# toolchain __arc__ define conflicts with libosip2 source
|
||||
TARGET_CFLAGS += $(if $(CONFIG_arc),-U__arc__)
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-shared \
|
||||
--enable-static \
|
||||
--disable-silent-rules \
|
||||
--disable-debug \
|
||||
--disable-trace \
|
||||
--disable-mpatrol \
|
||||
--disable-gprof \
|
||||
--disable-mt \
|
||||
--enable-pthread \
|
||||
--enable-semaphore \
|
||||
--disable-sysv \
|
||||
--disable-gperf \
|
||||
--disable-test \
|
||||
--disable-minisize
|
||||
--disable-minisize
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
|
@ -68,7 +67,7 @@ endef
|
|||
|
||||
define Package/libosip2/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.$(ABI_VERSION)* $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libosip2))
|
||||
|
|
8
libs/libosip2/patches/001-automake-compat.patch
Normal file
8
libs/libosip2/patches/001-automake-compat.patch
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -1,3 +1,5 @@
|
||||
+ACLOCAL_AMFLAGS = -I scripts
|
||||
+
|
||||
EXTRA_DIST = README BUGS FEATURES HISTORY autogen.sh libosip2.pc.in
|
||||
|
||||
SUBDIRS = include src scripts help platform
|
|
@ -1,58 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2015 - 2018 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libpri
|
||||
PKG_VERSION:=1.6.0
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/libpri/releases
|
||||
PKG_HASH:=7225ea7ec334a115f9dc08e71f55589c38cb4e00b13964cd2f08cc4e6123e3f6
|
||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libpri
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=libpri Primary Rate ISDN implementation
|
||||
URL:=http://www.asterisk.org/
|
||||
DEPENDS:=+dahdi-tools-libtonezone
|
||||
endef
|
||||
|
||||
define Package/libpri/description
|
||||
libpri is a C implementation of the Primary Rate ISDN specification. It was
|
||||
based on the Bellcore specification SR-NWT-002343 for National ISDN. As of
|
||||
May 12, 2001, it has been tested work with NI-2, Nortel DMS-100, and
|
||||
Lucent 5E Custom protocols on switches from Nortel and Lucent.
|
||||
endef
|
||||
|
||||
MAKE_FLAGS += \
|
||||
OSARCH=Linux \
|
||||
LDCONFIG=ldconfig
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.a $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libpri/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libpri))
|
|
@ -1,22 +0,0 @@
|
|||
--- a/pritest.c
|
||||
+++ b/pritest.c
|
||||
@@ -41,7 +41,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
-#include <sys/signal.h>
|
||||
+#include <signal.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/resource.h>
|
||||
--- a/testprilib.c
|
||||
+++ b/testprilib.c
|
||||
@@ -41,7 +41,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
-#include <sys/signal.h>
|
||||
+#include <signal.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/resource.h>
|
|
@ -1,11 +0,0 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -68,7 +68,7 @@ DYNAMIC_OBJS= \
|
||||
$(STATIC_OBJS)
|
||||
CFLAGS ?= -g
|
||||
CFLAGS += $(CPPFLAGS)
|
||||
-CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
|
||||
+CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
CFLAGS += -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
|
||||
INSTALL_PREFIX=$(DESTDIR)
|
||||
INSTALL_BASE=/usr
|
|
@ -1,39 +0,0 @@
|
|||
Upstream issue: https://issues.asterisk.org/jira/browse/PRI-188
|
||||
|
||||
From ec1d6589c6e4eb6550cb92d5e0f214f7b31e8d5f Mon Sep 17 00:00:00 2001
|
||||
From: "Sergey V. Lobanov" <sergey@lobanov.in>
|
||||
Date: Sun, 30 Jan 2022 13:25:17 +0300
|
||||
Subject: [PATCH] Add an ability to build libpri on MacOS for Linux target
|
||||
|
||||
This patch allows to rededine ar and ranlib tool using AR and
|
||||
RANLIB make flags.
|
||||
|
||||
Fixes: PRI-188
|
||||
|
||||
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
|
||||
---
|
||||
Makefile | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -27,6 +27,8 @@
|
||||
CC=gcc
|
||||
GREP=grep
|
||||
AWK=awk
|
||||
+AR=ar
|
||||
+RANLIB=ranlib
|
||||
|
||||
OSARCH=$(shell uname -s)
|
||||
PROC?=$(shell uname -m)
|
||||
@@ -193,8 +195,8 @@ MAKE_DEPS= -MD -MT $@ -MF .$(subst /,_,$
|
||||
$(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $<
|
||||
|
||||
$(STATIC_LIBRARY): $(STATIC_OBJS)
|
||||
- ar rcs $(STATIC_LIBRARY) $(STATIC_OBJS)
|
||||
- ranlib $(STATIC_LIBRARY)
|
||||
+ $(AR) rcs $(STATIC_LIBRARY) $(STATIC_OBJS)
|
||||
+ $(RANLIB) $(STATIC_LIBRARY)
|
||||
|
||||
$(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
|
||||
$(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
|
|
@ -1,6 +1,6 @@
|
|||
#
|
||||
# Copyright (C) 2017 OpenWrt.org
|
||||
# Copyright (C) 2017 Jiri Slachta <jiri@slachta.eu>
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
# Copyright (C) 2011 Victor Seva <linuxmaniac@torreviejawireless.org>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
@ -8,55 +8,56 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libsrtp
|
||||
PKG_VERSION:=2.4.2
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=1.4.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=libsrtp-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/cisco/libsrtp/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=3b1bcb14ebda572b04b9bdf07574a449c84cb924905414e4d94e62837d22b628
|
||||
PKG_SOURCE:=srtp-$(PKG_VERSION).tgz
|
||||
PKG_SOURCE_URL:=@SF/srtp
|
||||
PKG_MD5SUM:=9b449edb011c934ca97009e7e0566d22
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/srtp
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
CONFIGURE_ARGS+=--enable-openssl
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
CONFIGURE_ARGS += --disable-stdout --enable-syslog
|
||||
|
||||
define Package/libsrtp2
|
||||
define Package/libsrtp
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Secure RTP (SRTP) library, v$(PKG_VERSION)
|
||||
URL:=https://github.com/cisco/libsrtp
|
||||
DEPENDS:=+libopenssl
|
||||
ABI_VERSION:=1
|
||||
TITLE:=Secure Real-time Transport Protocol (SRTP) library
|
||||
URL:=http://sourceforge.net/projects/srtp
|
||||
endef
|
||||
|
||||
define Package/libsrtp2/description
|
||||
define Package/libsrtp/description
|
||||
Open-source implementation of the Secure Real-time Transport
|
||||
Protocol (SRTP) originally authored by Cisco Systems, Inc.
|
||||
It is available under a BSD-style license.
|
||||
endef
|
||||
|
||||
define Build/Install
|
||||
$(call Build/Install/Default,all shared_library install)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) uninstall
|
||||
$(call Build/Install/Default)
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/srtp2 $(1)/usr/include/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/srtp $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp2.{a,so*} $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsrtp2.pc $(1)/usr/lib/pkgconfig/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.{a,so*} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libsrtp2/install
|
||||
|
||||
define Package/libsrtp/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/libsrtp2.so.$(ABI_VERSION)* \
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.so.* \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libsrtp2))
|
||||
$(eval $(call BuildPackage,libsrtp))
|
||||
|
|
59
libs/libsrtp/patches/1003_fix_mips_namespace_collision.patch
Normal file
59
libs/libsrtp/patches/1003_fix_mips_namespace_collision.patch
Normal file
|
@ -0,0 +1,59 @@
|
|||
Description: Fix MIPS namespace collision
|
||||
Author: Thiemo Seufer <ths@networkno.de>
|
||||
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=24;bug=439976
|
||||
Bug-Debian: http://bugs.debian.org/439976
|
||||
Last-Update: 2010-02-28
|
||||
--- a/test/srtp_driver.c
|
||||
+++ b/test/srtp_driver.c
|
||||
@@ -314,7 +314,7 @@ main (int argc, char *argv[]) {
|
||||
if (do_codec_timing) {
|
||||
srtp_policy_t policy;
|
||||
int ignore;
|
||||
- double mips = mips_estimate(1000000000, &ignore);
|
||||
+ double mips_est = mips_estimate(1000000000, &ignore);
|
||||
|
||||
crypto_policy_set_rtp_default(&policy.rtp);
|
||||
crypto_policy_set_rtcp_default(&policy.rtcp);
|
||||
@@ -323,33 +323,33 @@ main (int argc, char *argv[]) {
|
||||
policy.key = test_key;
|
||||
policy.next = NULL;
|
||||
|
||||
- printf("mips estimate: %e\n", mips);
|
||||
+ printf("mips estimate: %e\n", mips_est);
|
||||
|
||||
printf("testing srtp processing time for voice codecs:\n");
|
||||
printf("codec\t\tlength (octets)\t\tsrtp instructions/second\n");
|
||||
printf("G.711\t\t%d\t\t\t%e\n", 80,
|
||||
- (double) mips * (80 * 8) /
|
||||
+ (double) mips_est * (80 * 8) /
|
||||
srtp_bits_per_second(80, &policy) / .01 );
|
||||
printf("G.711\t\t%d\t\t\t%e\n", 160,
|
||||
- (double) mips * (160 * 8) /
|
||||
+ (double) mips_est * (160 * 8) /
|
||||
srtp_bits_per_second(160, &policy) / .02);
|
||||
printf("G.726-32\t%d\t\t\t%e\n", 40,
|
||||
- (double) mips * (40 * 8) /
|
||||
+ (double) mips_est * (40 * 8) /
|
||||
srtp_bits_per_second(40, &policy) / .01 );
|
||||
printf("G.726-32\t%d\t\t\t%e\n", 80,
|
||||
- (double) mips * (80 * 8) /
|
||||
+ (double) mips_est * (80 * 8) /
|
||||
srtp_bits_per_second(80, &policy) / .02);
|
||||
printf("G.729\t\t%d\t\t\t%e\n", 10,
|
||||
- (double) mips * (10 * 8) /
|
||||
+ (double) mips_est * (10 * 8) /
|
||||
srtp_bits_per_second(10, &policy) / .01 );
|
||||
printf("G.729\t\t%d\t\t\t%e\n", 20,
|
||||
- (double) mips * (20 * 8) /
|
||||
+ (double) mips_est * (20 * 8) /
|
||||
srtp_bits_per_second(20, &policy) / .02 );
|
||||
printf("Wideband\t%d\t\t\t%e\n", 320,
|
||||
- (double) mips * (320 * 8) /
|
||||
+ (double) mips_est * (320 * 8) /
|
||||
srtp_bits_per_second(320, &policy) / .01 );
|
||||
printf("Wideband\t%d\t\t\t%e\n", 640,
|
||||
- (double) mips * (640 * 8) /
|
||||
+ (double) mips_est * (640 * 8) /
|
||||
srtp_bits_per_second(640, &policy) / .02 );
|
||||
}
|
||||
|
33
libs/libsrtp/patches/1005_fix_data_alignment.patch
Normal file
33
libs/libsrtp/patches/1005_fix_data_alignment.patch
Normal file
|
@ -0,0 +1,33 @@
|
|||
Description: Fix data alignment
|
||||
Author: "Martin Guy" <martinwguy@yahoo.it>
|
||||
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;bug=470505
|
||||
Bug: http://sourceforge.net/tracker/index.php?func=detail&aid=1912057&group_id=38894&atid=423799
|
||||
Bug-Debian: http://bugs.debian.org/470505
|
||||
Last-Update: 2011-05-30
|
||||
--- a/test/srtp_driver.c
|
||||
+++ b/test/srtp_driver.c
|
||||
@@ -1129,7 +1129,6 @@ mips_estimate(int num_trials, int *ignor
|
||||
* These packets were made with the default SRTP policy.
|
||||
*/
|
||||
|
||||
-
|
||||
err_status_t
|
||||
srtp_validate() {
|
||||
unsigned char test_key[30] = {
|
||||
@@ -1144,14 +1143,14 @@ srtp_validate() {
|
||||
0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
|
||||
0xab, 0xab, 0xab, 0xab
|
||||
};
|
||||
- uint8_t srtp_plaintext[38] = {
|
||||
+ uint8_t srtp_plaintext[38] __attribute__((aligned(4))) = {
|
||||
0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad,
|
||||
0xca, 0xfe, 0xba, 0xbe, 0xab, 0xab, 0xab, 0xab,
|
||||
0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
|
||||
0xab, 0xab, 0xab, 0xab, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
- uint8_t srtp_ciphertext[38] = {
|
||||
+ uint8_t srtp_ciphertext[38] __attribute__((aligned(4))) = {
|
||||
0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad,
|
||||
0xca, 0xfe, 0xba, 0xbe, 0x4e, 0x55, 0xdc, 0x4c,
|
||||
0xe7, 0x99, 0x78, 0xd8, 0x8c, 0xa4, 0xd2, 0x15,
|
94
libs/libsrtp/patches/1007_update_Doxyfile.patch
Normal file
94
libs/libsrtp/patches/1007_update_Doxyfile.patch
Normal file
|
@ -0,0 +1,94 @@
|
|||
Description: Update Doxyfile and header template
|
||||
Author: Jonas Smedegaard <dr@jones.dk>
|
||||
Last-Update: 2010-02-28
|
||||
--- a/doc/Makefile.in
|
||||
+++ b/doc/Makefile.in
|
||||
@@ -25,6 +25,7 @@ libsrtpdoc:
|
||||
echo "*** Sorry, can't build doc outside source dir"; exit 1; \
|
||||
fi
|
||||
sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex
|
||||
+ doxygen -u
|
||||
doxygen
|
||||
sed 's/\subsection/\section/' latex/index.tex > latex/index.tmp
|
||||
mv latex/index.tmp latex/index.tex
|
||||
@@ -38,7 +39,7 @@ cryptodoc: clean
|
||||
cp latex/refman.pdf crypto.pdf
|
||||
|
||||
clean:
|
||||
- rm -rf latex/ header.tex
|
||||
+ rm -rf latex/ header.tex Doxyfile.bak
|
||||
for a in * ; do \
|
||||
if [ -f "$$a~" ] ; then rm -f $$a~; fi; \
|
||||
done;
|
||||
--- a/doc/header.template
|
||||
+++ b/doc/header.template
|
||||
@@ -6,28 +6,40 @@
|
||||
%
|
||||
\documentclass[letterpaper]{book}
|
||||
\usepackage{makeidx}
|
||||
-\usepackage{fancyhdr}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{multicol}
|
||||
\usepackage{float}
|
||||
+\usepackage{listings}
|
||||
+\usepackage{color}
|
||||
+\usepackage{ifthen}
|
||||
+\usepackage[table]{xcolor}
|
||||
\usepackage{textcomp}
|
||||
\usepackage{alltt}
|
||||
-\usepackage{times}
|
||||
-\usepackage{graphicx}
|
||||
-\ifx\pdfoutput\undefined
|
||||
-\usepackage[ps2pdf,
|
||||
+\usepackage{ifpdf}
|
||||
+\ifpdf
|
||||
+\usepackage[pdftex,
|
||||
pagebackref=true,
|
||||
colorlinks=true,
|
||||
- linkcolor=blue
|
||||
+ linkcolor=blue,
|
||||
+ unicode
|
||||
]{hyperref}
|
||||
\else
|
||||
-\usepackage[pdftex,
|
||||
+\usepackage[ps2pdf,
|
||||
pagebackref=true,
|
||||
colorlinks=true,
|
||||
- linkcolor=blue
|
||||
+ linkcolor=blue,
|
||||
+ unicode
|
||||
]{hyperref}
|
||||
+\usepackage{pspicture}
|
||||
\fi
|
||||
+\usepackage[utf8]{inputenc}
|
||||
+\usepackage{mathptmx}
|
||||
+\usepackage[scaled=.90]{helvet}
|
||||
+\usepackage{courier}
|
||||
+\usepackage{sectsty}
|
||||
+\usepackage[titles]{tocloft}
|
||||
\usepackage{doxygen}
|
||||
+\lstset{language=C++,inputencoding=utf8,basicstyle=\footnotesize,breaklines=true,breakatwhitespace=true,tabsize=3,numbers=left }
|
||||
\makeindex
|
||||
\setcounter{tocdepth}{1}
|
||||
\renewcommand{\footrulewidth}{0.4pt}
|
||||
@@ -59,7 +71,9 @@
|
||||
\selectfont
|
||||
|
||||
|
||||
+\renewcommand{\familydefault}{\sfdefault}
|
||||
\begin{document}
|
||||
+\hypersetup{pageanchor=false}
|
||||
\begin{titlepage}
|
||||
\vspace*{4cm}
|
||||
%\begin{center}
|
||||
@@ -107,9 +121,6 @@ This reference material in this documena
|
||||
\clearemptydoublepage
|
||||
\pagenumbering{roman}
|
||||
\tableofcontents
|
||||
-%\clearemptydoublepage
|
||||
-
|
||||
\clearemptydoublepage
|
||||
\pagenumbering{arabic}
|
||||
-
|
||||
-
|
||||
+\hypersetup{pageanchor=true}
|
55
libs/libsrtp/patches/1008_shared-lib.patch
Normal file
55
libs/libsrtp/patches/1008_shared-lib.patch
Normal file
|
@ -0,0 +1,55 @@
|
|||
Description: Hack build routines to compile shared library
|
||||
Author: loki_val and solar
|
||||
Origin: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libsrtp/files/libsrtp-1.4.4-shared.patch
|
||||
Last-Update: 2010-03-19
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
.PHONY: all test build_table_apps
|
||||
|
||||
-all: test
|
||||
+all: libsrtp.so test
|
||||
|
||||
runtest: build_table_apps test
|
||||
@echo "running libsrtp test applications..."
|
||||
@@ -67,7 +67,7 @@ libdir = @libdir@
|
||||
# implicit rules for object files and test apps
|
||||
|
||||
%.o: %.c
|
||||
- $(COMPILE) -c $< -o $@
|
||||
+ $(COMPILE) -fPIC -c $< -o $@
|
||||
|
||||
%$(EXE): %.c
|
||||
$(COMPILE) $(LDFLAGS) $< -o $@ $(SRTPLIB) $(LIBS)
|
||||
@@ -105,6 +105,9 @@ libsrtp.a: $(srtpobj) $(cryptobj) $(gdoi
|
||||
ar cr libsrtp.a $^
|
||||
$(RANLIB) libsrtp.a
|
||||
|
||||
+libsrtp.so: $(srtpobj) $(cryptobj) $(gdoi)
|
||||
+ $(CC) $(LDFLAGS) -shared -Wl,-soname,libsrtp.so.0 -o libsrtp.so.0.0 $^
|
||||
+
|
||||
# libcryptomath.a contains general-purpose routines that are used to
|
||||
# generate tables and verify cryptoalgorithm implementations - this
|
||||
# library is not meant to be included in production code
|
||||
@@ -197,6 +200,11 @@ install:
|
||||
cp include/*.h $(DESTDIR)$(includedir)/srtp
|
||||
cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp
|
||||
if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi
|
||||
+ if [ -f libsrtp.so.0.0 ]; then \
|
||||
+ cp libsrtp.so.0.0 $(DESTDIR)$(libdir)/; \
|
||||
+ ln -s libsrtp.so.0.0 $(DESTDIR)$(libdir)/libsrtp.so.0; \
|
||||
+ ln -s libsrtp.so.0.0 $(DESTDIR)$(libdir)/libsrtp.so; \
|
||||
+ fi
|
||||
|
||||
uninstall:
|
||||
rm -rf $(DESTDIR)$(includedir)/srtp
|
||||
@@ -204,7 +212,7 @@ uninstall:
|
||||
|
||||
clean:
|
||||
rm -rf $(cryptobj) $(srtpobj) $(cryptomath) TAGS \
|
||||
- libcryptomath.a libsrtp.a core *.core test/core
|
||||
+ libcryptomath.a libsrtp.a libsrtp.so.0.0 core *.core test/core
|
||||
for a in * */* */*/*; do \
|
||||
if [ -f "$$a~" ] ; then rm -f $$a~; fi; \
|
||||
done;
|
80
libs/ortp/Makefile
Normal file
80
libs/ortp/Makefile
Normal file
|
@ -0,0 +1,80 @@
|
|||
#
|
||||
# Copyright (C) 2010-2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ortp
|
||||
PKG_VERSION:=0.23.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SAVANNAH/linphone/ortp/sources
|
||||
PKG_MD5SUM:=fb833cc7a66ec1a0c1b75016130e7e6d
|
||||
|
||||
PKG_LICENSE:=LGPL-2.1
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libortp
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Real-time Transport Protocol (RTP) library
|
||||
URL:=http://www.linphone.org/technical-corner/ortp/overview
|
||||
DEPENDS:= +libpthread +librt
|
||||
endef
|
||||
|
||||
ifneq ($(CONFIG_avr32),)
|
||||
TARGET_CFLAGS += -fsigned-char
|
||||
endif
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-shared \
|
||||
--enable-static \
|
||||
--disable-debug \
|
||||
--enable-ipv6 \
|
||||
--enable-perf \
|
||||
--disable-ssl-hmac \
|
||||
--disable-tests \
|
||||
--without-srtp \
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
ac_cv_header_srtp_srtp_h=no \
|
||||
ac_cv_lib_srtp_srtp_init=no \
|
||||
ac_cv_path_DOXYGEN= \
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
( cd $(PKG_INSTALL_DIR); $(CP) \
|
||||
./usr/include/ortp \
|
||||
$(1)/usr/include/ \
|
||||
)
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
( cd $(PKG_INSTALL_DIR); $(CP) \
|
||||
./usr/lib/libortp.{a,so*} \
|
||||
$(1)/usr/lib/ \
|
||||
)
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
( cd $(PKG_INSTALL_DIR); $(CP) \
|
||||
./usr/lib/pkgconfig/ortp.pc \
|
||||
$(1)/usr/lib/pkgconfig/ \
|
||||
)
|
||||
endef
|
||||
|
||||
define Package/libortp/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
( cd $(PKG_INSTALL_DIR); $(CP) \
|
||||
./usr/lib/libortp.so.* \
|
||||
$(1)/usr/lib/ \
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libortp))
|
|
@ -1,7 +1,6 @@
|
|||
#
|
||||
# Copyright (C) 2006-2018 OpenWrt.org
|
||||
# Copyright (C) 2016 Cesnet, z.s.p.o.
|
||||
# Copyright (C) 2017 - 2018 Jiri Slachta <jiri@slachta.eu>
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
# Copyright (C) 2015 Cesnet, z.s.p.o.
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
@ -10,38 +9,34 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pjproject
|
||||
PKG_VERSION:=2.13.1
|
||||
PKG_RELEASE:=2
|
||||
PKG_CPE_ID:=cpe:/a:pjsip:pjsip
|
||||
PKG_VERSION:=2.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
# download "vX.Y.tar.gz" as "pjproject-vX.Y.tar.gz"
|
||||
PKG_SOURCE_URL_FILE:=$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_URL_FILE)
|
||||
PKG_SOURCE_URL:=https://github.com/pjsip/$(PKG_NAME)/archive/refs/tags
|
||||
PKG_HASH:=32a5ab5bfbb9752cb6a46627e4c410e61939c8dbbd833ac858473cfbd9fb9d7d
|
||||
PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)/
|
||||
PKG_MD5SUM:=8440e43242c439ae5ec30b5b85005fce
|
||||
PKG_INSTALL:=1
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_CONFIG_DEPENDS:=CONFIG_SOFT_FLOAT
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/pjproject/Default
|
||||
SECTION:=lib
|
||||
CATEGORY:=Libraries
|
||||
SUBMENU:=Telephony
|
||||
URL:=https://www.pjsip.org
|
||||
DEPENDS:=+libstdcpp +libopenssl +libuuid +libpthread
|
||||
URL:=http://www.pjproject.org/
|
||||
DEPENDS:=+libuuid +libstdcpp +libpthread
|
||||
endef
|
||||
|
||||
define Package/pjproject/install/lib
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define PJSIPpackage
|
||||
|
@ -58,70 +53,65 @@ $(call Package/pjproject/install/lib,$$(1),$2)
|
|||
$$(eval $$(call BuildPackage,$(1)))
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
$(if $(CONFIG_SOFT_FLOAT),--disable-floating-point) \
|
||||
--disable-android-mediacodec \
|
||||
--disable-bcg729 \
|
||||
--disable-darwin-ssl \
|
||||
--disable-ext-sound \
|
||||
--disable-ffmpeg \
|
||||
--disable-g711-codec \
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-shared \
|
||||
--disable-floating-point \
|
||||
--enable-g711-codec \
|
||||
--disable-l16-codec \
|
||||
--disable-g722-codec \
|
||||
--disable-g7221-codec \
|
||||
--disable-gsm-codec \
|
||||
--disable-ilbc-codec \
|
||||
--disable-ilbc-coder \
|
||||
--disable-ipp \
|
||||
--disable-l16-codec \
|
||||
--disable-libsrtp \
|
||||
--disable-libwebrtc \
|
||||
--disable-libyuv \
|
||||
--disable-opencore-amr \
|
||||
--disable-openh264 \
|
||||
--disable-opus \
|
||||
--disable-resample \
|
||||
--disable-sdl \
|
||||
--disable-silk \
|
||||
--disable-ssl \
|
||||
--disable-oss \
|
||||
--disable-sound \
|
||||
--disable-speex-aec \
|
||||
--disable-speex-codec \
|
||||
--disable-upnp \
|
||||
--disable-v4l2 \
|
||||
--disable-video \
|
||||
--enable-shared \
|
||||
--with-ssl="$(STAGING_DIR)/usr" \
|
||||
--with-external-srtp="$(STAGING_DIR)/usr" \
|
||||
--without-external-gsm \
|
||||
--without-external-pa \
|
||||
--without-external-webrtc
|
||||
--disable-small-filter \
|
||||
--disable-large-filter \
|
||||
--disable-speex-aec \
|
||||
--disable-g711-codec \
|
||||
--disable-l16-codec \
|
||||
--disable-gsm-codec \
|
||||
--disable-g722-codec \
|
||||
--disable-g7221-codec \
|
||||
--disable-speex-codec \
|
||||
--disable-ilbc-codec \
|
||||
--disable-resample-dll \
|
||||
--disable-sdl \
|
||||
--disable-ffmpeg \
|
||||
--disable-v4l2
|
||||
|
||||
TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
|
||||
TARGET_LDFLAGS+=-lc $(LIBGCC) -lm
|
||||
TARGET_CFLAGS+=$(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) EXCLUDE_APP=1 dep
|
||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) EXCLUDE_APP=1
|
||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
PJPROJECT_LIBS:= \
|
||||
libpj libpjlib-util libpjmedia libpjnath libpjsip-simple \
|
||||
libpjsip-ua libpjsip libpjsua libpjsua2
|
||||
PJPROJECT_LIBS = \
|
||||
libpj libpjlib-util libpjmedia-audiodev libpjmedia-codec \
|
||||
libpjmedia-videodev libpjmedia libpjnath libpjsip-simple \
|
||||
libpjsip-ua libpjsip libpjsua libpjsua2 libresample
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/{include,lib}
|
||||
|
||||
$(CP) -R $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
|
||||
|
||||
$(foreach m,$(PJPROJECT_LIBS),$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(m)* $(1)/usr/lib;)
|
||||
$(CP) -R $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
||||
|
||||
$(foreach m,$(PJPROJECT_LIBS),$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(m)* $(1)/usr/lib/;)
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc \
|
||||
$(1)/usr/lib/pkgconfig
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc $(1)/usr/lib/pkgconfig/
|
||||
endef
|
||||
|
||||
$(eval $(call PJSIPpackage,libpj,libpj,+librt))
|
||||
$(eval $(call PJSIPpackage,libpjlib-util,libpjlib-util,+libpj +librt))
|
||||
$(eval $(call PJSIPpackage,libpjmedia,libpjmedia*,+libpj +libpjlib-util +libpjnath +librt))
|
||||
$(eval $(call PJSIPpackage,libpjmedia,libpjmedia*,+libpj +libpjlib-util +libpjnath +libresample +librt +libspeex +libsrtp))
|
||||
$(eval $(call PJSIPpackage,libpjnath,libpjnath,+libpj +libpjlib-util +librt))
|
||||
$(eval $(call PJSIPpackage,libpjsip-simple,libpjsip-simple,+libpj +libpjlib-util +libpjsip +librt))
|
||||
$(eval $(call PJSIPpackage,libpjsip-ua,libpjsip-ua,+libpj +libpjlib-util +libpjmedia +libpjsip-simple +libpjsip +librt))
|
||||
$(eval $(call PJSIPpackage,libpjsip,libpjsip,+libpj +libpjlib-util +librt))
|
||||
$(eval $(call PJSIPpackage,libpjsua,libpjsua,+libpj +libpjlib-util +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsip +librt))
|
||||
$(eval $(call PJSIPpackage,libpjsua2,libpjsua2,+libpj +libpjlib-util +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsip +librt +libpjsua))
|
||||
$(eval $(call PJSIPpackage,libpjsip-simple,libpjsip-simple,+libpj +libpjlib-util +libpjsip +libresample +librt +libspeex +libsrtp))
|
||||
$(eval $(call PJSIPpackage,libpjsip-ua,libpjsip-ua,+libpj +libpjlib-util +libpjmedia +libpjsip-simple +libpjsip +libresample +librt +libspeex +libsrtp))
|
||||
$(eval $(call PJSIPpackage,libpjsip,libpjsip,+libpj +libpjlib-util +libresample +librt +libspeex +libsrtp))
|
||||
$(eval $(call PJSIPpackage,libpjsua,libpjsua,+libpj +libpjlib-util +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsip +libresample +librt +libspeex +libsrtp))
|
||||
$(eval $(call PJSIPpackage,libpjsua2,libpjsua2,+libpj +libpjlib-util +libpjmedia +libpjnath +libpjsip-simple +libpjsip-ua +libpjsip +libresample +librt +libspeex +libsrtp +libpjsua))
|
||||
$(eval $(call PJSIPpackage,libresample,libresample,))
|
||||
|
|
|
@ -1,94 +0,0 @@
|
|||
--- /dev/null
|
||||
+++ b/pjlib/include/pj/config_site.h
|
||||
@@ -0,0 +1,91 @@
|
||||
+/*
|
||||
+ * Asterisk config_site.h
|
||||
+ */
|
||||
+
|
||||
+#include <sys/select.h>
|
||||
+
|
||||
+/*
|
||||
+ * Defining PJMEDIA_HAS_SRTP to 0 does NOT disable Asterisk's ability to use srtp.
|
||||
+ * It only disables the pjmedia srtp transport which Asterisk doesn't use.
|
||||
+ * The reason for the disable is that while Asterisk works fine with older libsrtp
|
||||
+ * versions, newer versions of pjproject won't compile with them.
|
||||
+ */
|
||||
+#define PJMEDIA_HAS_SRTP 0
|
||||
+
|
||||
+#define PJ_HAS_IPV6 1
|
||||
+#define NDEBUG 1
|
||||
+
|
||||
+#define PJ_MAX_HOSTNAME (256)
|
||||
+#define PJSIP_MAX_URL_SIZE (512)
|
||||
+#ifdef PJ_HAS_LINUX_EPOLL
|
||||
+#define PJ_IOQUEUE_MAX_HANDLES (5000)
|
||||
+#else
|
||||
+#define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)
|
||||
+#endif
|
||||
+#define PJ_IOQUEUE_HAS_SAFE_UNREG 1
|
||||
+#define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16)
|
||||
+
|
||||
+#define PJ_SCANNER_USE_BITWISE 0
|
||||
+#define PJ_OS_HAS_CHECK_STACK 0
|
||||
+
|
||||
+#ifndef PJ_LOG_MAX_LEVEL
|
||||
+#define PJ_LOG_MAX_LEVEL 6
|
||||
+#endif
|
||||
+
|
||||
+#define PJ_ENABLE_EXTRA_CHECK 1
|
||||
+#define PJSIP_MAX_TSX_COUNT ((64*1024)-1)
|
||||
+#define PJSIP_MAX_DIALOG_COUNT ((64*1024)-1)
|
||||
+#define PJSIP_UDP_SO_SNDBUF_SIZE (512*1024)
|
||||
+#define PJSIP_UDP_SO_RCVBUF_SIZE (512*1024)
|
||||
+#define PJ_DEBUG 0
|
||||
+#define PJSIP_SAFE_MODULE 0
|
||||
+#define PJ_HAS_STRICMP_ALNUM 0
|
||||
+
|
||||
+/*
|
||||
+ * Do not ever enable PJ_HASH_USE_OWN_TOLOWER because the algorithm is
|
||||
+ * inconsistently used when calculating the hash value and doesn't
|
||||
+ * convert the same characters as pj_tolower()/tolower(). Thus you
|
||||
+ * can get different hash values if the string hashed has certain
|
||||
+ * characters in it. (ASCII '@', '[', '\\', ']', '^', and '_')
|
||||
+ */
|
||||
+#undef PJ_HASH_USE_OWN_TOLOWER
|
||||
+
|
||||
+/*
|
||||
+ It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined.
|
||||
+ Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.
|
||||
+*/
|
||||
+#undef PJSIP_UNESCAPE_IN_PLACE
|
||||
+#define PJSIP_MAX_PKT_LEN 65535
|
||||
+
|
||||
+#undef PJ_TODO
|
||||
+#define PJ_TODO(x)
|
||||
+
|
||||
+/* Defaults too low for WebRTC */
|
||||
+#define PJ_ICE_MAX_CAND 64
|
||||
+#define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * PJ_ICE_MAX_CAND)
|
||||
+
|
||||
+/* Increase limits to allow more formats */
|
||||
+#define PJMEDIA_MAX_SDP_FMT 64
|
||||
+#define PJMEDIA_MAX_SDP_BANDW 4
|
||||
+#define PJMEDIA_MAX_SDP_ATTR (PJMEDIA_MAX_SDP_FMT*3 + 4)
|
||||
+#define PJMEDIA_MAX_SDP_MEDIA 16
|
||||
+
|
||||
+/*
|
||||
+ * Turn off the periodic sending of CRLNCRLN. Default is on (90 seconds),
|
||||
+ * which conflicts with the global section's keep_alive_interval option in
|
||||
+ * pjsip.conf.
|
||||
+ */
|
||||
+#define PJSIP_TCP_KEEP_ALIVE_INTERVAL 0
|
||||
+#define PJSIP_TLS_KEEP_ALIVE_INTERVAL 0
|
||||
+
|
||||
+#define PJSIP_TSX_UAS_CONTINUE_ON_TP_ERROR 0
|
||||
+#define PJ_SSL_SOCK_OSSL_USE_THREAD_CB 0
|
||||
+#define PJSIP_AUTH_ALLOW_MULTIPLE_AUTH_HEADER 1
|
||||
+
|
||||
+/*
|
||||
+ * The default is 32 with 8 being used by pjproject itself.
|
||||
+ * Since this value is used in invites, dialogs, transports
|
||||
+ * and subscriptions as well as the global pjproject endpoint,
|
||||
+ * we don't want to increase it too much.
|
||||
+ */
|
||||
+#define PJSIP_MAX_MODULE 38
|
|
@ -1,24 +0,0 @@
|
|||
--- a/libpjproject.pc.in
|
||||
+++ b/libpjproject.pc.in
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
prefix=@PREFIX@
|
||||
exec_prefix=${prefix}
|
||||
-libdir=@LIBDIR@
|
||||
-includedir=@INCLUDEDIR@
|
||||
+libdir=${exec_prefix}/lib
|
||||
+includedir=${prefix}/include
|
||||
|
||||
Name: libpjproject
|
||||
Description: Multimedia communication library
|
||||
--- a/build.mak.in
|
||||
+++ b/build.mak.in
|
||||
@@ -352,6 +352,6 @@ export PJ_LIBXX_FILES := $(APP_LIBXX_FIL
|
||||
export PJ_INSTALL_DIR := @prefix@
|
||||
export PJ_INSTALL_INC_DIR := @includedir@
|
||||
export PJ_INSTALL_LIB_DIR := @libdir@
|
||||
-export PJ_INSTALL_CFLAGS := -I$(PJ_INSTALL_INC_DIR) -DPJ_AUTOCONF=1 @ac_cflags@
|
||||
+export PJ_INSTALL_CFLAGS := -DPJ_AUTOCONF=1 @ac_cflags@
|
||||
export PJ_INSTALL_LDFLAGS_PRIVATE := $(APP_THIRD_PARTY_LIBS) $(APP_THIRD_PARTY_EXT) @LIBS@
|
||||
-export PJ_INSTALL_LDFLAGS := -L$(PJ_INSTALL_LIB_DIR) $(filter-out $(PJ_INSTALL_LDFLAGS_PRIVATE),$(APP_LDXXLIBS))
|
||||
+export PJ_INSTALL_LDFLAGS := $(filter-out $(PJ_INSTALL_LDFLAGS_PRIVATE),$(APP_LDXXLIBS))
|
|
@ -1,27 +0,0 @@
|
|||
From ac685b30c17be461b2bf5b46a772ed9742b8e985 Mon Sep 17 00:00:00 2001
|
||||
From: Riza Sulistyo <trengginas@users.noreply.github.com>
|
||||
Date: Thu, 9 Feb 2023 13:19:23 +0700
|
||||
Subject: [PATCH] Make sure that NOTIFY tdata is set before sending it.
|
||||
|
||||
---
|
||||
pjsip/src/pjsip-simple/evsub.c | 9 ++++++---
|
||||
1 file changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/pjsip/src/pjsip-simple/evsub.c
|
||||
+++ b/pjsip/src/pjsip-simple/evsub.c
|
||||
@@ -2224,9 +2224,12 @@ static void on_tsx_state_uas( pjsip_evsu
|
||||
/* Send the pending NOTIFY sent by app from inside
|
||||
* on_rx_refresh() callback.
|
||||
*/
|
||||
- pj_assert(sub->pending_notify);
|
||||
- status = pjsip_evsub_send_request(sub, sub->pending_notify);
|
||||
- sub->pending_notify = NULL;
|
||||
+ //pj_assert(sub->pending_notify);
|
||||
+ /* Make sure that pending_notify is set. */
|
||||
+ if (sub->pending_notify) {
|
||||
+ status = pjsip_evsub_send_request(sub, sub->pending_notify);
|
||||
+ sub->pending_notify = NULL;
|
||||
+ }
|
||||
|
||||
} else if (pjsip_method_cmp(&tsx->method, &pjsip_notify_method)==0) {
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
--- a/pjsip/src/pjsip/sip_transport.c
|
||||
+++ b/pjsip/src/pjsip/sip_transport.c
|
||||
@@ -2088,15 +2088,17 @@ PJ_DEF(pj_ssize_t) pjsip_tpmgr_receive_p
|
||||
* which were sent to keep NAT bindings.
|
||||
*/
|
||||
if (tmp.slen) {
|
||||
- PJ_LOG(1, (THIS_FILE,
|
||||
- "Error processing %d bytes packet from %s %s:%d %.*s:\n"
|
||||
- "%.*s\n"
|
||||
- "-- end of packet.",
|
||||
+ PJ_LOG(2, (THIS_FILE,
|
||||
+ "Dropping %d bytes packet from %s %s:%d %.*s\n",
|
||||
msg_fragment_size,
|
||||
rdata->tp_info.transport->type_name,
|
||||
- rdata->pkt_info.src_name,
|
||||
+ rdata->pkt_info.src_name,
|
||||
rdata->pkt_info.src_port,
|
||||
- (int)tmp.slen, tmp.ptr,
|
||||
+ (int)tmp.slen, tmp.ptr));
|
||||
+ PJ_LOG(4, (THIS_FILE,
|
||||
+ "Dropped packet:"
|
||||
+ "%.*s\n"
|
||||
+ "-- end of packet.",
|
||||
(int)msg_fragment_size,
|
||||
rdata->msg_info.msg_buf));
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
--- a/build/rules.mak
|
||||
+++ b/build/rules.mak
|
||||
@@ -13,7 +13,7 @@ SHLIB = $($(APP)_SHLIB)
|
||||
SONAME = $($(APP)_SONAME)
|
||||
|
||||
ifeq ($(SHLIB_SUFFIX),so)
|
||||
-SHLIB_OPT := -shared -Wl,-soname,$(SHLIB)
|
||||
+SHLIB_OPT := -shared
|
||||
else ifeq ($(SHLIB_SUFFIX),dylib)
|
||||
SHLIB_OPT := -dynamiclib -undefined dynamic_lookup -flat_namespace
|
||||
else ifeq ($(SHLIB_SUFFIX),dll)
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2010-2017 OpenWrt.org
|
||||
#
|
||||
# Copyright (C) 2010-2014 OpenWrt.org
|
||||
# Copyright (C) 2010 Alfred E. Heggestad
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
|
@ -9,19 +9,16 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=re
|
||||
PKG_VERSION:=2.0.1
|
||||
PKG_VERSION:=0.4.11
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/baresip/re/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=43aa439b96aff75fe5768b9f9d49dea97042e42e7647df47b345465763e2f7ed
|
||||
PKG_SOURCE_URL:=http://www.creytiv.com/pub
|
||||
PKG_MD5SUM:=1668e450c0e78e8dad6bc47a4e2b6e42
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=docs/COPYING
|
||||
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -29,52 +26,44 @@ define Package/libre
|
|||
SUBMENU:=Telephony
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
DEPENDS:=+libopenssl +zlib
|
||||
DEPENDS:=+libopenssl +libpthread
|
||||
TITLE:=Generic library for real-time communications with async IO support
|
||||
URL:=https://github.com/baresip/re
|
||||
ABI_VERSION:=1
|
||||
URL:=http://www.creytiv.com/
|
||||
endef
|
||||
|
||||
# re.mk is used for this and all related packages (rem, restund and baresip).
|
||||
# It relies on SYSROOT and SYSROOT_ALT being set. SYSROOT is used for finding
|
||||
# toolchain headers (like pthread.h). SYSROOT_ALT is used for finding headers
|
||||
# from other packages, like openssl etc.
|
||||
#
|
||||
# CFLAGS are picked up from the environment, as well as CPPFLAGS (and LD etc.).
|
||||
# But LDFLAGS aren't picked up, so they need to be handed over via
|
||||
# EXTRA_LFLAGS.
|
||||
#
|
||||
# LD is changed to TARGET_CC to fix build failures on x86 32bit. Without this
|
||||
# there's no linking to ssp, which results in undefined references.
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
# used by 001-extend-ninit-nclose-check.patch
|
||||
TARGET_CFLAGS+=-DOPENWRT
|
||||
|
||||
ifneq ($(CONFIG_USE_GLIBC)$(CONFIG_USE_MUSL),)
|
||||
TARGET_CFLAGS+=-D_GNU_SOURCE
|
||||
ifneq ($(CONFIG_USE_EGLIBC),)
|
||||
TARGET_CFLAGS += -D_GNU_SOURCE
|
||||
endif
|
||||
|
||||
MAKE_FLAGS+= \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
EXTRA_LFLAGS="$(TARGET_LDFLAGS)" \
|
||||
LD="$(TARGET_CC)" \
|
||||
OS=linux \
|
||||
RELEASE=1 \
|
||||
SYSROOT="$(shell $(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s|/include/pthread.h||p')" \
|
||||
SYSROOT_ALT="$(STAGING_DIR)/usr"
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
HAVE_LIBRESOLV= \
|
||||
CC="$(TARGET_CC)" \
|
||||
EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \
|
||||
EXTRA_LFLAGS="-lm" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
SYSROOT="$$$$($(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p')" \
|
||||
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
||||
RELEASE=1 \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
OS=linux \
|
||||
all install
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/share/re
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/re/re.mk $(1)/usr/share/re
|
||||
$(CP) $(PKG_BUILD_DIR)/mk/re.mk $(1)/usr/share/re/
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/re $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/re $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.{a,so*} $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.{a,so} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libre/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.so.$(ABI_VERSION)* $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libre))
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
--- a/src/dns/res.c
|
||||
+++ b/src/dns/res.c
|
||||
@@ -26,7 +26,7 @@ int get_resolv_dns(char *domain, size_t
|
||||
uint32_t i;
|
||||
int ret, err;
|
||||
|
||||
-#ifdef OPENBSD
|
||||
+#if defined(OPENBSD) || defined(OPENWRT)
|
||||
ret = res_init();
|
||||
state = _res;
|
||||
#else
|
||||
@@ -76,7 +76,7 @@ int get_resolv_dns(char *domain, size_t
|
||||
*n = i;
|
||||
|
||||
out:
|
||||
-#ifdef OPENBSD
|
||||
+#if defined(OPENBSD) || defined(OPENWRT)
|
||||
#else
|
||||
res_nclose(&state);
|
||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||
--- a/include/re_types.h
|
||||
+++ b/include/re_types.h
|
||||
@@ -47,7 +47,7 @@ typedef unsigned long long int uint64
|
||||
#endif /* __BIT_TYPES_DEFINED__ */
|
||||
|
||||
#endif /* __int8_t_defined */
|
||||
-#ifndef __ssize_t_defined
|
||||
+#if !defined(__ssize_t_defined) && !defined(__DEFINED_ssize_t)
|
||||
typedef long ssize_t;
|
||||
#define __ssize_t_defined
|
||||
#endif
|
|
@ -1,10 +0,0 @@
|
|||
--- a/mk/re.mk
|
||||
+++ b/mk/re.mk
|
||||
@@ -47,7 +47,6 @@
|
||||
|
||||
ifneq ($(RELEASE),)
|
||||
CFLAGS += -DRELEASE
|
||||
-OPT_SPEED=1
|
||||
endif
|
||||
|
||||
ifneq ($(TRACE_ERR),)
|
|
@ -1,14 +0,0 @@
|
|||
--- a/mk/re.mk
|
||||
+++ b/mk/re.mk
|
||||
@@ -412,11 +412,6 @@ endif
|
||||
|
||||
CFLAGS += -DARCH=\"$(ARCH)\"
|
||||
|
||||
-ifeq ($(ARCH),mipsel)
|
||||
-CFLAGS += -march=mips32
|
||||
-endif
|
||||
-
|
||||
-
|
||||
##############################################################################
|
||||
#
|
||||
# External libraries section
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2010-2017 OpenWrt.org
|
||||
#
|
||||
# Copyright (C) 2010-2014 OpenWrt.org
|
||||
# Copyright (C) 2010 Alfred E. Heggestad
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
|
@ -9,19 +9,16 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rem
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_VERSION:=0.4.6
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/baresip/rem/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=bcc91bb521fae183357fb422b00a3981477a22e99d3afe165c4ec50a6bbed9da
|
||||
PKG_SOURCE_URL:=http://www.creytiv.com/pub
|
||||
PKG_MD5SUM:=888c3000aa002790cc7129fa72d39a58
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=docs/COPYING
|
||||
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -29,33 +26,42 @@ define Package/librem
|
|||
SUBMENU:=Telephony
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
DEPENDS:=+libre
|
||||
DEPENDS:=+libre +libpthread
|
||||
TITLE:=Audio and video processing media library
|
||||
URL:=https://github.com/baresip/rem
|
||||
URL:=http://www.creytiv.com/
|
||||
endef
|
||||
|
||||
MAKE_FLAGS+= \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
EXTRA_LFLAGS="$(TARGET_LDFLAGS)" \
|
||||
LD="$(TARGET_CC)" \
|
||||
LIBRE_MK="$(STAGING_DIR)/usr/share/re/re.mk" \
|
||||
LIBRE_INC="$(STAGING_DIR)/usr/include/re" \
|
||||
LIBRE_SO="$(STAGING_DIR)/usr/lib" \
|
||||
OS=linux \
|
||||
RELEASE=1 \
|
||||
SYSROOT="$(shell $(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s|/include/pthread.h||p')" \
|
||||
SYSROOT_ALT="$(STAGING_DIR)/usr"
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
LIBRE_MK=$(STAGING_DIR)/usr/share/re/re.mk \
|
||||
LIBRE_INC=$(STAGING_DIR)/usr/include/re \
|
||||
LIBRE_SO=$(STAGING_DIR)/usr/lib \
|
||||
CC="$(TARGET_CC)" \
|
||||
EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \
|
||||
EXTRA_LFLAGS="-lm" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
SYSROOT="$$$$($(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p')" \
|
||||
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
||||
RELEASE=1 \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
OS=linux \
|
||||
all install
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/rem $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/rem $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.{a,so} $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.{a,so} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/librem/install
|
||||
rm -f $(BUILD_DIR)/$(PKG_NAME)
|
||||
ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.so $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,librem))
|
||||
|
|
|
@ -1,69 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2019 Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=signalwire-client-c
|
||||
|
||||
PKG_VERSION:=2.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=signalwire-c-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/signalwire/signalwire-c/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=7916ad76b2c2c75ff616d19bf044894771b3f8602b80a6f74d8ba26206faef79
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/signalwire-c-$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=copyright
|
||||
|
||||
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/signalwire-client-c
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=SignalWire C client library
|
||||
URL:=https://github.com/signalwire/signalwire-c
|
||||
ABI_VERSION:=2
|
||||
DEPENDS:=+libatomic +libks +libopenssl
|
||||
endef
|
||||
|
||||
# Otherwise OpenWrt's CPPFLAGS are ignored
|
||||
TARGET_CFLAGS += $(TARGET_CPPFLAGS)
|
||||
|
||||
define Package/signalwire-client-c/install/headers
|
||||
$(INSTALL_DIR) $(1)/usr/include/signalwire-client-c2/signalwire-client-c/$(2)
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/signalwire-client-c2/signalwire-client-c/$(2)/*.h \
|
||||
$(1)/usr/include/signalwire-client-c2/signalwire-client-c/$(2)
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(foreach s,./ JSON blade signalwire transport,$(call Package/signalwire-client-c/install/headers,$(1),$(s));)
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig \
|
||||
$(1)/usr/include/signalwire-client-c2/signalwire-client-c/cmake
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/signalwire-client-c2/signalwire-client-c/cmake/* \
|
||||
$(1)/usr/include/signalwire-client-c2/signalwire-client-c/cmake
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsignalwire_client2.so* $(1)/usr/lib
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/signalwire_client2.pc \
|
||||
$(1)/usr/lib/pkgconfig
|
||||
endef
|
||||
|
||||
define Package/signalwire-client-c/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsignalwire_client2.so.$(ABI_VERSION)* \
|
||||
$(1)/usr/lib
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,signalwire-client-c))
|
|
@ -1,90 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=sofia-sip
|
||||
|
||||
PKG_VERSION:=1.13.17
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/freeswitch/$(PKG_NAME)/tar.gz/v${PKG_VERSION}?
|
||||
PKG_HASH:=daca3d961b6aa2974ad5d3be69ed011726c3e4d511b2a0d4cb6d878821a2de7a
|
||||
|
||||
# sofia-sip adds a version to include path
|
||||
# need to update this when the version changes
|
||||
VERSION_EQUIVALENT:=1.13
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=LGPL-2.1+
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/nls.mk
|
||||
|
||||
define Package/sofia-sip/Default
|
||||
SUBMENU:=Telephony
|
||||
URL:=http://sofia-sip.sourceforge.net/index.html
|
||||
endef
|
||||
|
||||
define Package/sofia-sip
|
||||
$(call Package/sofia-sip/Default)
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Sofia-SIP open-source SIP User-Agent library
|
||||
ABI_VERSION:=0
|
||||
DEPENDS:= \
|
||||
+libopenssl \
|
||||
+zlib
|
||||
endef
|
||||
|
||||
define Package/sofia-sip/description
|
||||
Sofia-SIP is an open-source SIP User-Agent library, compliant with the
|
||||
IETF RFC3261 specification (see the feature table). It can be used as a
|
||||
building block for SIP client software for uses such as VoIP, IM, and
|
||||
many other real-time and person-to-person communication services. The
|
||||
primary target platform for Sofia-SIP is GNU/Linux. Sofia-SIP is based
|
||||
on a SIP stack developed at the Nokia Research Center. Sofia-SIP is
|
||||
licensed under the LGPL.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--disable-stun \
|
||||
--without-doxygen \
|
||||
--without-glib
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-{sip,resolv} \
|
||||
$(1)/usr/share/sofia-sip
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-sip/*.h{,.in} \
|
||||
$(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-sip
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-resolv/*.h \
|
||||
$(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-resolv
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsofia-sip-ua.{a,so*} $(1)/usr/lib
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sofia-sip-ua.pc \
|
||||
$(1)/usr/lib/pkgconfig
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/sofia-sip/{msg_parser,tag_dll}.awk \
|
||||
$(1)/usr/share/sofia-sip
|
||||
endef
|
||||
|
||||
define Package/sofia-sip/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsofia-sip-ua.so.$(ABI_VERSION)* \
|
||||
$(1)/usr/lib
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,sofia-sip))
|
|
@ -1,11 +0,0 @@
|
|||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -247,7 +247,7 @@ SAC_OPENSSL
|
||||
SAC_TPORT
|
||||
|
||||
dnl Check is used for testing
|
||||
-PKG_CHECK_MODULES(CHECK, check >= 0.9.4, have_check="yes", have_check="no")
|
||||
+PKG_CHECK_MODULES(CHECK, we_do_not_want_check >= 0.9.4, have_check="yes", have_check="no")
|
||||
AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
|
||||
if test x"$have_check" = "xyes"; then
|
||||
AC_DEFINE([HAVE_CHECK], 1, [Define to 1 if check library is available])
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2014 - 2018 OpenWrt.org
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=spandsp
|
||||
PKG_VERSION:=0.0.6
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://www.soft-switch.org/downloads/spandsp
|
||||
PKG_HASH:=cc053ac67e8ac4bb992f258fd94f275a7872df959f6a87763965feabfdcc9465
|
||||
PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/
|
||||
PKG_MD5SUM:=897d839516a6d4edb20397d4757a7ca3
|
||||
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
@ -21,7 +21,7 @@ PKG_FIXUP:=autoreconf
|
|||
|
||||
PKG_LICENSE:=LGPL-2.1 GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -33,21 +33,23 @@ define Package/libspandsp
|
|||
DEPENDS:=+libtiff
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* $(1)/usr/lib/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp.h $(1)/usr/include/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp.h $(1)/usr/include/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/include/spandsp
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp/*.h $(1)/usr/include/spandsp/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/*.h $(1)/usr/include/spandsp/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/include/spandsp/private
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp/private/*.h $(1)/usr/include/spandsp/private/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/private/*.h $(1)/usr/include/spandsp/private/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spandsp.pc $(1)/usr/lib/pkgconfig/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spandsp.pc $(1)/usr/lib/pkgconfig/
|
||||
endef
|
||||
|
||||
define Package/libspandsp/install
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -435,10 +435,7 @@ if test "$enable_fixed_point" = "yes" ; then
|
||||
AC_DEFINE([SPANDSP_USE_FIXED_POINT], [1], [Enable fixed point processing, where possible, instead of floating point])
|
||||
SPANDSP_USE_FIXED_POINT="#define SPANDSP_USE_FIXED_POINT 1"
|
||||
else
|
||||
- AX_FIXED_POINT_MACHINE([$host],
|
||||
- [AC_DEFINE([SPANDSP_USE_FIXED_POINT], [1], [Enable fixed point processing, where possible, instead of floating point])
|
||||
- SPANDSP_USE_FIXED_POINT="#define SPANDSP_USE_FIXED_POINT 1"],
|
||||
- [SPANDSP_USE_FIXED_POINT="#undef SPANDSP_USE_FIXED_POINT"])
|
||||
+ SPANDSP_USE_FIXED_POINT="#undef SPANDSP_USE_FIXED_POINT"]
|
||||
fi
|
||||
AX_MISALIGNED_ACCESS_FAILS([$host],
|
||||
[AC_DEFINE([SPANDSP_MISALIGNED_ACCESS_FAILS], [1], [Do not expect a misaligned memory access to work correctly])
|
|
@ -1,74 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=spandsp3
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/freeswitch/spandsp.git
|
||||
PKG_SOURCE_DATE=2023-06-16
|
||||
PKG_SOURCE_VERSION:=0d2e6ac65e0e8f53d652665a743015a88bf048d4
|
||||
PKG_RELEASE:=1
|
||||
PKG_MIRROR_HASH:=2d25c0f73f15aab37af7f09cf84f379b3fafb7c4d4e867ed1643dd3b3f594920
|
||||
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:= \
|
||||
Jiri Slachta <jiri@slachta.eu> \
|
||||
Sebastian Kemper <sebastian_ml@gmx.net>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libspandsp3
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=spandsp3 library
|
||||
DEPENDS:=+libjpeg-turbo +libtiff
|
||||
URL:=https://github.com/freeswitch/spandsp
|
||||
ABI_VERSION:=3
|
||||
endef
|
||||
|
||||
# Use fixed point math when soft float support is enabled for target devices.
|
||||
ifeq ($(CONFIG_SOFT_FLOAT),y)
|
||||
CONFIGURE_ARGS+= \
|
||||
--enable-fixed-point
|
||||
endif
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) \
|
||||
$(1)/usr/lib/spandsp3/{include/spandsp/private,lib}
|
||||
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* \
|
||||
$(1)/usr/lib/spandsp3/lib
|
||||
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp.h \
|
||||
$(1)/usr/lib/spandsp3/include
|
||||
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp/*.h \
|
||||
$(1)/usr/lib/spandsp3/include/spandsp
|
||||
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/spandsp/private/*.h \
|
||||
$(1)/usr/lib/spandsp3/include/spandsp/private
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spandsp.pc \
|
||||
$(1)/usr/lib/pkgconfig/spandsp3.pc
|
||||
endef
|
||||
|
||||
define Package/libspandsp3/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp.so.$(ABI_VERSION)* \
|
||||
$(1)/usr/lib
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libspandsp3))
|
|
@ -1,18 +0,0 @@
|
|||
--- a/spandsp.pc.in
|
||||
+++ b/spandsp.pc.in
|
||||
@@ -1,12 +1,12 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
-libdir=@libdir@
|
||||
-includedir=@includedir@
|
||||
+libdir=${exec_prefix}/lib/spandsp3/lib
|
||||
+includedir=${prefix}/lib/spandsp3/include
|
||||
|
||||
Name: spandsp
|
||||
Description: A DSP library for telephony.
|
||||
Requires:
|
||||
Version: @VERSION@
|
||||
-Libs: -L${libdir} -lspandsp
|
||||
+Libs: -L${libdir} -l:libspandsp.so.3
|
||||
Libs.private: -ltiff -lm
|
||||
Cflags: -I${includedir}
|
|
@ -1,20 +0,0 @@
|
|||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -231,6 +231,9 @@ then
|
||||
AC_CHECK_HEADERS([X11/X.h])
|
||||
fi
|
||||
|
||||
+# Note: the libxml2 checks below introduce host include paths into the
|
||||
+# build, so we turn them off.
|
||||
+if test -n "$enable_tests" ; then # OpenWrt doesn't build the tests
|
||||
# Determine XML2 include path
|
||||
AC_MSG_CHECKING(for libxml/xmlmemory.h)
|
||||
|
||||
@@ -259,6 +262,7 @@ fi
|
||||
AC_CHECK_HEADERS([libxml/xmlmemory.h])
|
||||
AC_CHECK_HEADERS([libxml/parser.h])
|
||||
AC_CHECK_HEADERS([libxml/xinclude.h])
|
||||
+fi # OpenWrt doesn't build the tests
|
||||
|
||||
AC_LANG([C++])
|
||||
AC_CHECK_HEADERS([FL/Fl.H])
|
375
net/asterisk-1.8.x/Makefile
Normal file
375
net/asterisk-1.8.x/Makefile
Normal file
|
@ -0,0 +1,375 @@
|
|||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
# Copyright (C) 2015 Cesnet, z.s.p.o.
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=asterisk18
|
||||
PKG_VERSION:=1.8.32.2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
||||
PKG_MD5SUM:=424dbe7024b75cfe78a3aea70780d84d
|
||||
|
||||
PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING LICENSE
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/asterisk18/install/module
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*$(2).so* $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18/install/conffile
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/asterisk/*$(2)* $(1)/etc/asterisk/
|
||||
endef
|
||||
|
||||
define Package/asterisk18/install/lib
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/asterisk18/install/sbin
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(2) $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
define Package/asterisk18/install/sounds
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/$(2) $(1)/usr/lib/asterisk/sounds/
|
||||
endef
|
||||
|
||||
define BuildAsterisk18Module
|
||||
define Package/asterisk18-$(1)
|
||||
$$(call Package/asterisk18/Default)
|
||||
TITLE:=$(2) support
|
||||
DEPENDS:= asterisk18 $(patsubst +%,+PACKAGE_asterisk18-$(1):%,$(4))
|
||||
endef
|
||||
|
||||
define Package/asterisk18-$(1)/conffiles
|
||||
$(5)
|
||||
endef
|
||||
|
||||
define Package/asterisk18-$(1)/description
|
||||
This package provides support for '$(3)' in Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-$(1)/install
|
||||
$(foreach c,$(6),$(call Package/asterisk18/install/conffile,$$(1),$(c));)
|
||||
$(foreach m,$(7),$(call Package/asterisk18/install/module,$$(1),$(m));)
|
||||
$(foreach s,$(8),$(call Package/asterisk18/install/sounds,$$(1),$(s));)
|
||||
$(foreach b,$(9),$(call Package/asterisk18/install/sbin,$$(1),$(b));)
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,asterisk18-$(1)))
|
||||
endef
|
||||
|
||||
define Package/asterisk18/Default
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
URL:=http://www.asterisk.org/
|
||||
endef
|
||||
|
||||
define Package/asterisk18/Default/description
|
||||
Asterisk is a complete PBX in software. It provides all of the features
|
||||
you would expect from a PBX and more. Asterisk does voice over IP in three
|
||||
protocols, and can interoperate with almost all standards-based telephony
|
||||
equipment using relatively inexpensive hardware.
|
||||
endef
|
||||
|
||||
define Package/asterisk18
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Complete open source PBX, v1.8.x
|
||||
MENU:=1
|
||||
DEPENDS:=+libopenssl +libncurses +libpopt +libpthread +zlib @!TARGET_avr32
|
||||
endef
|
||||
|
||||
define Package/asterisk18/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
endef
|
||||
|
||||
define Package/asterisk18/conffiles
|
||||
/etc/asterisk/cel.conf
|
||||
/etc/asterisk/asterisk.conf
|
||||
/etc/asterisk/modules.conf
|
||||
/etc/asterisk/extensions.conf
|
||||
/etc/asterisk/sip.conf
|
||||
/etc/asterisk/sip_notify.conf
|
||||
/etc/asterisk/features.conf
|
||||
/etc/asterisk/indications.conf
|
||||
/etc/asterisk/logger.conf
|
||||
/etc/asterisk/manager.conf
|
||||
/etc/asterisk/rtp.conf
|
||||
/etc/init.d/asterisk
|
||||
endef
|
||||
|
||||
AST_CFG_FILES:=\
|
||||
asterisk.conf cel.conf ccss.conf extensions.conf features.conf indications.conf logger.conf manager.conf \
|
||||
modules.conf sip.conf sip_notify.conf rtp.conf users.conf
|
||||
AST_EMB_MODULES:=\
|
||||
app_dial app_echo app_macro app_playback codec_ulaw codec_gsm format_gsm format_pcm format_wav format_wav_gsm \
|
||||
func_strings func_timeout func_callerid func_logic chan_sip pbx_config res_rtp_asterisk res_rtp_multicast
|
||||
|
||||
define Package/asterisk18/install
|
||||
$(call Package/asterisk18/install/sbin,$(1),asterisk)
|
||||
$(foreach m,$(AST_CFG_FILES),$(call Package/asterisk18/install/conffile,$(1),$(m));)
|
||||
$(foreach m,$(AST_EMB_MODULES),$(call Package/asterisk18/install/module,$(1),$(m));)
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
|
||||
endef
|
||||
|
||||
define Package/asterisk18-sounds
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=Sounds support
|
||||
DEPENDS:=asterisk18
|
||||
endef
|
||||
|
||||
define Package/asterisk18-sounds/description
|
||||
This package provides sound-files for Asterisk-1.8.x.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-sounds/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/* $(1)/usr/lib/asterisk/sounds/
|
||||
rm -f $(1)/usr/lib/asterisk/sounds/vm-*
|
||||
rm -f $(1)/usr/lib/asterisk/sounds/conf-*
|
||||
endef
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-chan-gtalk),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-iksemel="$(STAGING_DIR)/usr"
|
||||
SITE_VARS+= \
|
||||
ac_cv_lib_iksemel_iks_start_sasl=yes
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-iksemel
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-curl),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-libcurl="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-libcurl
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-mysql),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-mysqlclient
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-mysqlclient
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-pbx-lua),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-lua="$(STAGING_DIR)/usr"
|
||||
TARGET_LDFLAGS+=-ldl -lcrypt
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-lua
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-pgsql),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-postgres="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-postgres
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-fax-spandsp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-spandsp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-spandsp
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-res-srtp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-srtp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-srtp
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
|
||||
EXTRA_LDFLAGS+= $(TARGET_LDFLAGS)
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-curses \
|
||||
--with-gsm=internal \
|
||||
--without-bluetooth \
|
||||
--without-cap \
|
||||
--without-dahdi \
|
||||
--without-gtk2 \
|
||||
--without-isdnnet \
|
||||
--without-misdn \
|
||||
--without-nbs \
|
||||
--with-ncurses="$(STAGING_DIR)/usr" \
|
||||
--without-netsnmp \
|
||||
--without-newt \
|
||||
--without-ogg \
|
||||
--without-osptk \
|
||||
--with-popt="$(STAGING_DIR)/usr" \
|
||||
--without-pri \
|
||||
--without-radius \
|
||||
--without-sdl \
|
||||
--without-suppserv \
|
||||
--without-tds \
|
||||
--without-termcap \
|
||||
--without-tinfo \
|
||||
--without-vorbis \
|
||||
--without-vpb \
|
||||
--with-z="$(STAGING_DIR)/usr" \
|
||||
--with-sounds-cache="$(DL_DIR)" \
|
||||
--disable-xmldoc
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
ifneq ($(CONFIG_TARGET_lantiq),)
|
||||
ifneq ($(CONFIG_TARGET_lantiq_xrx200),y)
|
||||
$(CP) ./src-lantiq/* $(PKG_BUILD_DIR)/
|
||||
endif
|
||||
endif
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default,,$(SITE_VARS))
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
include/asterisk/version.h \
|
||||
include/asterisk/buildopts.h defaults.h \
|
||||
makeopts.embed_rules
|
||||
ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY" \
|
||||
ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
ASTVARLIBDIR="/usr/lib/asterisk" \
|
||||
ASTDATADIR="/usr/lib/asterisk" \
|
||||
ASTKEYDIR="/usr/lib/asterisk" \
|
||||
ASTDBDIR="/usr/lib/asterisk" \
|
||||
NOISY_BUILD="1" \
|
||||
DEBUG="" \
|
||||
OPTIMIZE="" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all install samples
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/asterisk-1.8/include/asterisk/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk-1.8/include/asterisk/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/asterisk-1.8/include/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,asterisk18))
|
||||
$(eval $(call BuildPackage,asterisk18-sounds))
|
||||
|
||||
################################
|
||||
# AST modules
|
||||
# Params:
|
||||
# 1 - Package subname
|
||||
# 2 - Package title
|
||||
# 3 - Module description
|
||||
# 4 - Module dependencies
|
||||
# 5 - Full path to multiple conffiles
|
||||
# 6 - conf files
|
||||
# 7 - module files
|
||||
# 8 - sound files
|
||||
# 9 - binary files
|
||||
################################
|
||||
|
||||
$(eval $(call BuildAsterisk18Module,app-alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID,,,,app_alarmreceiver,))
|
||||
$(eval $(call BuildAsterisk18Module,app-authenticate,Authenticate commands,Execute arbitrary authenticate commands,,,,app_authenticate,))
|
||||
$(eval $(call BuildAsterisk18Module,app-directed_pickup,Directed call pickup,support for directed call pickup,,,,app_directed_pickup,))
|
||||
$(eval $(call BuildAsterisk18Module,app-disa,Direct Inward System Access,Direct Inward System Access,,,,app_disa,))
|
||||
$(eval $(call BuildAsterisk18Module,app-exec,Exec application,support for application execution,,,,app_exec,))
|
||||
$(eval $(call BuildAsterisk18Module,app-chanisavail,Channel availability check,support for checking if a channel is available,,,,app_chanisavail,))
|
||||
$(eval $(call BuildAsterisk18Module,app-chanspy,Channel listen in,support for listening in on any channel,,,,app_chanspy,))
|
||||
$(eval $(call BuildAsterisk18Module,app-minivm,Minimal voicemail system,a voicemail system in small building blocks working together based on the Comedian Mail voicemail,,/etc/asterisk/extensions_minivm.conf /etc/asterisk/minivm.conf,extensions_minivm.conf minivm.conf,app_minivm,))
|
||||
$(eval $(call BuildAsterisk18Module,app-mixmonitor,Record a call and mix the audio,record a call and mix the audio during the recording,,,,app_mixmonitor,))
|
||||
$(eval $(call BuildAsterisk18Module,app-originate,Originate a call,originating an outbound call and connecting it to a specified extension or application,,,,app_originate,))
|
||||
$(eval $(call BuildAsterisk18Module,app-playtones,Playtones application,play a tone list,,,,app_playtones,))
|
||||
$(eval $(call BuildAsterisk18Module,app-read,Variable read,a trivial application to read a variable,,,,app_read,))
|
||||
$(eval $(call BuildAsterisk18Module,app-readexten,Extension to variable,a trivial application to read an extension into a variable,,,,app_readexten,))
|
||||
$(eval $(call BuildAsterisk18Module,app-record,Record sound file,to record a sound file,,,,app_record,))
|
||||
$(eval $(call BuildAsterisk18Module,app-sayunixtime,Say Unix time,an application to say Unix time,,,,app_sayunixtime,))
|
||||
$(eval $(call BuildAsterisk18Module,app-senddtmf,Send DTMF digits,Sends arbitrary DTMF digits,,,,app_senddtmf,))
|
||||
$(eval $(call BuildAsterisk18Module,app-setcallerid,Set callerid,Support for setting callerid,,,,app_setcallerid,))
|
||||
$(eval $(call BuildAsterisk18Module,app-sms,SMS,SMS support (ETSI ES 201 912 protocol 1),+libpopt +libstdcpp,,,app_sms,,smsq))
|
||||
$(eval $(call BuildAsterisk18Module,app-stack,Stack applications, stack applications Gosub Return etc., +asterisk18-res-agi,,,app_stack,))
|
||||
$(eval $(call BuildAsterisk18Module,app-system,System exec,support for executing system commands,,,,app_system,))
|
||||
$(eval $(call BuildAsterisk18Module,app-talkdetect,File playback with audio detect,for file playback with audio detect,,,,app_talkdetect,))
|
||||
$(eval $(call BuildAsterisk18Module,app-verbose,Verbose logging,Verbose logging application,,,,app_verbose,))
|
||||
$(eval $(call BuildAsterisk18Module,app-waituntil,Sleep,support sleeping until the given epoch,,,,app_waituntil,))
|
||||
$(eval $(call BuildAsterisk18Module,app-while,While loop,a while loop implementation,,,,app_while,))
|
||||
$(eval $(call BuildAsterisk18Module,cdr-csv,Provides CDR CSV,Call Detail Record with CSV support,,,,cdr_csv,))
|
||||
$(eval $(call BuildAsterisk18Module,cdr,Provides CDR,Call Detail Record,,/etc/asterisk/cdr.conf /etc/asterisk/cdr_custom.conf /etc/asterisk/cdr_manager.conf /etc/asterisk/cdr_syslog.conf,cdr cdr_custom cdr_manager cdr_syslog,app_cdr app_forkcdr cdr_custom cdr_manager cdr_syslog func_cdr,))
|
||||
$(eval $(call BuildAsterisk18Module,codec-a-mu,Alaw to ulaw translation,translation between alaw and ulaw codecs,,,,codec_a_mu,))
|
||||
$(eval $(call BuildAsterisk18Module,codec-alaw,Signed linear to alaw translation,translation between signed linear and alaw codecs,,,,codec_alaw,))
|
||||
$(eval $(call BuildAsterisk18Module,codec-g722,G.722,a high bit rate 48/56/64Kbps ITU standard codec,,,,codec_g722,))
|
||||
$(eval $(call BuildAsterisk18Module,codec-g726,Signed linear to G.726 translation,translation between signed linear and ITU G.726-32kbps codecs,,,,codec_g726,))
|
||||
$(eval $(call BuildAsterisk18Module,curl,CURL,CURL support,+libcurl,,,func_curl res_curl,))
|
||||
$(eval $(call BuildAsterisk18Module,format-g726,G.726,support for headerless G.726 16/24/32/40kbps data format,,,,format_g726,))
|
||||
$(eval $(call BuildAsterisk18Module,format-g729,G.729,support for raw headerless G729 data,,,,format_g729,))
|
||||
$(eval $(call BuildAsterisk18Module,format-sln,Raw slinear format,support for raw slinear format,,,,format_sln,))
|
||||
$(eval $(call BuildAsterisk18Module,format-sln16,Raw slinear 16 format,support for raw slinear 16 format,,,,format_sln16,))
|
||||
$(eval $(call BuildAsterisk18Module,func-base64,base64 support,support of base64 function,,,,func_base64,))
|
||||
$(eval $(call BuildAsterisk18Module,func-blacklist,Blacklist on callerid,looking up the callerid number and see if it is blacklisted,,,,func_blacklist,))
|
||||
$(eval $(call BuildAsterisk18Module,func-cut,CUT function,CUT function,,,,func_cut,))
|
||||
$(eval $(call BuildAsterisk18Module,func-db,Database interaction,functions for interaction with the database,,,,func_db app_db,))
|
||||
$(eval $(call BuildAsterisk18Module,func-devstate,Blinky lights control,functions for manually controlled blinky lights,,,,func_devstate,))
|
||||
$(eval $(call BuildAsterisk18Module,func-enum,ENUM,ENUM,,/etc/asterisk/enum.conf,enum.conf,func_enum,))
|
||||
$(eval $(call BuildAsterisk18Module,func-env,Environment functions,Environment dialplan functions,,,,func_env,))
|
||||
$(eval $(call BuildAsterisk18Module,func-extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control,,,,func_extstate,))
|
||||
$(eval $(call BuildAsterisk18Module,func-global,Global variable,global variable dialplan functions,,,,func_global,))
|
||||
$(eval $(call BuildAsterisk18Module,func-groupcount,Group count,for counting number of channels in the specified group,,,,func_groupcount,))
|
||||
$(eval $(call BuildAsterisk18Module,func-channel,Channel info,Channel info dialplan function,,,,func_channel,))
|
||||
$(eval $(call BuildAsterisk18Module,func-math,Math functions,Math functions,,,,func_math,))
|
||||
$(eval $(call BuildAsterisk18Module,func-module,Simple module check function,Simple module check function,,,,func_module,))
|
||||
$(eval $(call BuildAsterisk18Module,func-shell,Shell,support for shell execution,,,,func_shell,))
|
||||
$(eval $(call BuildAsterisk18Module,func-uri,URI encoding and decoding,Encodes and decodes URI-safe strings,,,,func_uri,))
|
||||
$(eval $(call BuildAsterisk18Module,func-vmcount,vmcount dialplan,a vmcount dialplan function,,,,func_vmcount,))
|
||||
$(eval $(call BuildAsterisk18Module,chan-agent,Agents proxy channel,An implementation of agents proxy channel,,,,chan_agent,))
|
||||
$(eval $(call BuildAsterisk18Module,chan-gtalk,GTalk,An implementation of chan_gtalk and res_jabber for GTalk support,+libiksemel,/etc/asterisk/gtalk.conf /etc/asterisk/jabber.conf,gtalk.conf jabber.conf,chan_gtalk res_jabber,))
|
||||
$(eval $(call BuildAsterisk18Module,chan-iax2,IAX2 channel,An implementation of IAX2 channel,+asterisk18-res-timing-timerfd,/etc/asterisk/iax.conf /etc/asterisk/iaxprov.conf,iax.conf iaxprov.conf,chan_iax2,))
|
||||
$(eval $(call BuildAsterisk18Module,chan-lantiq,Lantiq TAPI channel,An implementation of Lantiq TAPI channel,@TARGET_lantiq @!TARGET_lantiq_xrx200 +kmod-ltq-vmmc,/etc/asterisk/lantiq.conf,lantiq.conf,chan_lantiq,))
|
||||
$(eval $(call BuildAsterisk18Module,chan-local,Local proxy channel,An implementation of local proxy channel,,,,chan_local,))
|
||||
$(eval $(call BuildAsterisk18Module,chan-mgcp,MGCP channel,the channel chan_mgcp,,/etc/asterisk/mgcp.conf,mgcp.conf,chan_mgcp,))
|
||||
$(eval $(call BuildAsterisk18Module,chan-ooh323,ooH323 channel,the channel chan_ooh323,,/etc/asterisk/ooh323.conf,ooh323.conf,chan_ooh323,))
|
||||
$(eval $(call BuildAsterisk18Module,chan-skinny,Skinny channel,the channel chan_skinny,,/etc/asterisk/skinny.conf,skinny.conf,chan_skinny,))
|
||||
$(eval $(call BuildAsterisk18Module,mysql,MySQL,MySQL support,+libmysqlclient,/etc/asterisk/res_config_mysql.conf,res_config_mysql.conf,res_config_mysql,))
|
||||
$(eval $(call BuildAsterisk18Module,odbc,ODBC,ODBC support,+libpthread +libc +unixodbc,/etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/cdr_odbc.conf /etc/asterisk/cel_odbc.conf /etc/asterisk/func_odbc.conf /etc/asterisk/res_odbc.conf,cdr_adaptive_odbc cdr_odbc cel_odbc func_odbc res_odbc,cdr_adaptive_odbc cdr_odbc cel_odbc func_odbc res_config_odbc res_odbc,))
|
||||
$(eval $(call BuildAsterisk18Module,pbx-ael,Asterisk Extension Logic,support for symbolic Asterisk Extension Logic,,,extensions.ael,pbx_ael,))
|
||||
$(eval $(call BuildAsterisk18Module,pbx-dundi,Dundi,provides Dundi Lookup service for Asterisk,,/etc/asterisk/dundi.conf,dundi.conf,pbx_dundi,))
|
||||
$(eval $(call BuildAsterisk18Module,pbx-lua,Lua,provides Lua resources for Asterisk,+libpthread +libc +liblua,/etc/asterisk/extensions.lua,extensions.lua,pbx_lua,))
|
||||
$(eval $(call BuildAsterisk18Module,pbx-spool,Call Spool,Outgoing call spool support,,,,pbx_spool,))
|
||||
$(eval $(call BuildAsterisk18Module,pgsql,PostgreSQL,PostgreSQL support,+libpq,/etc/asterisk/cel_pgsql.conf /etc/asterisk/cdr_pgsql.conf /etc/asterisk/res_pgsql.conf,cel_pgsql.conf cdr_pgsql.conf res_pgsql.conf,cel_pgsql cdr_pgsql res_config_pgsql,))
|
||||
$(eval $(call BuildAsterisk18Module,res-ael-share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules,,,,res_ael_share,))
|
||||
$(eval $(call BuildAsterisk18Module,res-agi,Asterisk Gateway Interface,support for the Asterisk Gateway Interface extension,,,,res_agi,))
|
||||
$(eval $(call BuildAsterisk18Module,res-clioriginate,Calls via CLI,Originate calls via the CLI,,,,res_clioriginate,))
|
||||
$(eval $(call BuildAsterisk18Module,res-crypto,Provides Crypto,Cryptographic Signature capability,,,,res_crypto,))
|
||||
$(eval $(call BuildAsterisk18Module,res-fax-spandsp,Spandsp T.38 and G.711,Spandsp T.38 and G.711 FAX Resource,+asterisk18-res-fax +libspandsp +libtiff,,,res_fax_spandsp,))
|
||||
$(eval $(call BuildAsterisk18Module,res-fax,FAX modules,Generic FAX resource for FAX technology resource modules,+asterisk18-res-timing-pthread,/etc/asterisk/res_fax.conf /etc/asterisk/udptl.conf,udptl.conf res_fax.conf,res_fax,))
|
||||
$(eval $(call BuildAsterisk18Module,res-monitor,Provides Monitor,Cryptographic Signature capability,,,,res_monitor,))
|
||||
$(eval $(call BuildAsterisk18Module,res-musiconhold,MOH,Music On Hold support,,/etc/asterisk/musiconhold.conf,musiconhold.conf,res_musiconhold,))
|
||||
$(eval $(call BuildAsterisk18Module,res-phoneprov,Phone Provisioning,Phone provisioning application for the asterisk internal http server,,/etc/asterisk/phoneprov.conf,phoneprov.conf,res_phoneprov,))
|
||||
$(eval $(call BuildAsterisk18Module,res-pktccops,Provide PacketCable COPS,simple client/server model for supporting policy control over QoS signaling protocols,,/etc/asterisk/res_pktccops.conf,res_pktccops.conf,res_pktccops,))
|
||||
$(eval $(call BuildAsterisk18Module,res-smdi,Provide SMDI,Simple Message Desk Interface capability,,/etc/asterisk/smdi.conf,smdi.conf,res_smdi,))
|
||||
$(eval $(call BuildAsterisk18Module,res-srtp,SRTP,Secure RTP,+libsrtp,,,res_srtp,))
|
||||
$(eval $(call BuildAsterisk18Module,res-timing-pthread,pthread Timing Interface,,,,,res_timing_pthread,))
|
||||
$(eval $(call BuildAsterisk18Module,res-timing-timerfd,Timerfd Timing Interface,,,,,res_timing_timerfd,))
|
||||
$(eval $(call BuildAsterisk18Module,voicemail,Voicemail,voicemail related modules,,/etc/asterisk/voicemail.conf,voicemail.conf,*voicemail res_adsi res_smdi,vm-*))
|
||||
|
4
net/asterisk-1.8.x/files/asterisk.default
Normal file
4
net/asterisk-1.8.x/files/asterisk.default
Normal file
|
@ -0,0 +1,4 @@
|
|||
## startup options for /etc/init.d/asterisk
|
||||
|
||||
ENABLE_ASTERISK="yes"
|
||||
OPTIONS=""
|
32
net/asterisk-1.8.x/files/asterisk.init
Normal file
32
net/asterisk-1.8.x/files/asterisk.init
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
|
||||
START=99
|
||||
APP=asterisk
|
||||
OPTIONS=
|
||||
DEST=
|
||||
BIN_FILE=$DEST/usr/sbin/$APP
|
||||
PID_FILE=$DEST/var/run/$APP/$APP.pid
|
||||
|
||||
start() {
|
||||
[ -d $DEST/var/run/asterisk ] || mkdir -p $DEST/var/run/asterisk
|
||||
[ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk
|
||||
[ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk
|
||||
[ -d $DEST/var/lib ] || mkdir -p $DEST/var/lib
|
||||
[ -h $DEST/var/lib/asterisk ] || ln -s /usr/lib/asterisk /var/lib/asterisk
|
||||
[ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys
|
||||
[ -d $DEST/var/log/asterisk/cdr-csv/ ] || mkdir -p $DEST/var/log/asterisk/cdr-csv
|
||||
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_start $BIN_FILE $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_stop $BIN_FILE
|
||||
}
|
||||
|
||||
reload() {
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_reload $BIN_FILE
|
||||
}
|
11
net/asterisk-1.8.x/patches/100-build_tools-iconv.patch
Normal file
11
net/asterisk-1.8.x/patches/100-build_tools-iconv.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/build_tools/menuselect-deps.in
|
||||
+++ b/build_tools/menuselect-deps.in
|
||||
@@ -16,7 +16,7 @@ GTK2=@PBX_GTK2@
|
||||
H323=@PBX_H323@
|
||||
HOARD=@PBX_HOARD@
|
||||
ICAL=@PBX_ICAL@
|
||||
-ICONV=@PBX_ICONV@
|
||||
+ICONV=0
|
||||
IKSEMEL=@PBX_IKSEMEL@
|
||||
IMAP_TK=@PBX_IMAP_TK@
|
||||
IODBC=@PBX_IODBC@
|
77
net/asterisk-1.8.x/patches/200-addons-defaultenable.patch
Normal file
77
net/asterisk-1.8.x/patches/200-addons-defaultenable.patch
Normal file
|
@ -0,0 +1,77 @@
|
|||
--- a/addons/app_mysql.c
|
||||
+++ b/addons/app_mysql.c
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>mysqlclient</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>deprecated</support_level>
|
||||
<replacement>func_odbc</replacement>
|
||||
***/
|
||||
--- a/addons/app_saycountpl.c
|
||||
+++ b/addons/app_saycountpl.c
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>deprecated</support_level>
|
||||
<replacement>say.conf</replacement>
|
||||
***/
|
||||
--- a/addons/cdr_mysql.c
|
||||
+++ b/addons/cdr_mysql.c
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>mysqlclient</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>deprecated</support_level>
|
||||
<replacement>cdr_adaptive_odbc</replacement>
|
||||
***/
|
||||
--- a/addons/chan_mobile.c
|
||||
+++ b/addons/chan_mobile.c
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>bluetooth</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/addons/chan_ooh323.c
|
||||
+++ b/addons/chan_ooh323.c
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/addons/res_config_mysql.c
|
||||
+++ b/addons/res_config_mysql.c
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>mysqlclient</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/res/res_pktccops.c
|
||||
+++ b/res/res_pktccops.c
|
||||
@@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
11
net/asterisk-1.8.x/patches/201-utils-defaultenable.patch
Normal file
11
net/asterisk-1.8.x/patches/201-utils-defaultenable.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/utils/utils.xml
|
||||
+++ b/utils/utils.xml
|
||||
@@ -33,7 +33,7 @@
|
||||
<support_level>extended</support_level>
|
||||
</member>
|
||||
<member name="smsq">
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<depend>popt</depend>
|
||||
<support_level>extended</support_level>
|
||||
</member>
|
11
net/asterisk-1.8.x/patches/500-nres.patch
Normal file
11
net/asterisk-1.8.x/patches/500-nres.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -16902,8 +16902,6 @@ if ac_fn_c_try_link "$LINENO"; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
-$as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
|
||||
-
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
|
||||
$as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
|
||||
if ${ac_cv_search_res_9_ndestroy+:} false; then :
|
1679
net/asterisk-1.8.x/src-lantiq/channels/chan_lantiq.c
Normal file
1679
net/asterisk-1.8.x/src-lantiq/channels/chan_lantiq.c
Normal file
File diff suppressed because it is too large
Load diff
138
net/asterisk-1.8.x/src-lantiq/configs/lantiq.conf.sample
Normal file
138
net/asterisk-1.8.x/src-lantiq/configs/lantiq.conf.sample
Normal file
|
@ -0,0 +1,138 @@
|
|||
;
|
||||
; TAPI Telephony Interface
|
||||
;
|
||||
; Configuration file
|
||||
|
||||
[interfaces]
|
||||
;
|
||||
; Number of FXS ports (default: 2)
|
||||
channels = 2
|
||||
;
|
||||
; Set tapi firmware file path
|
||||
;firmwarefilename = /lib/firmware/danube_firmware.bin
|
||||
;
|
||||
; Set tapi bbd file path
|
||||
;bbdfilename = /lib/firmware/danube_bbd_fxs.bin
|
||||
;
|
||||
; Set vmmc device path
|
||||
;basepath = /dev/vmmc
|
||||
;
|
||||
[general]
|
||||
;
|
||||
; Gain setting for the receive and transmit path.
|
||||
; The value is given in dB within the range (-24dB to +12dB), in 1 dB steps.
|
||||
;
|
||||
;rxgain = 1
|
||||
;txgain = 1
|
||||
;
|
||||
;
|
||||
;
|
||||
; Line echo cancller valid types:
|
||||
;
|
||||
; off LEC and echo suppressor turned off.
|
||||
; nlec LEC using fixed window; no echo suppressor.
|
||||
; wlec LEC using fixed and moving window; no echo suppressor.
|
||||
; nees LEC using fixed window and echo suppressor.
|
||||
; nfees LEC using fixed and moving window and echo suppressor.
|
||||
; es Echo suppressor
|
||||
;
|
||||
;echocancel = off
|
||||
;
|
||||
; If nlec or wlec is selected than size of the fixed window in narrowband (8 kHz) sampling mode
|
||||
; can be defined with:
|
||||
; A value of 0 defaults to: 16 ms if type is nlec or 8 ms if type is wlec:
|
||||
;
|
||||
;echocancelfixedwindowsize = 0
|
||||
;
|
||||
; If wlec is selected than size of the moving window in narrowband (8 kHz) sampling mode
|
||||
; can be defined with:
|
||||
; A value of 0 defaults to 8 ms.
|
||||
;
|
||||
;echocancelnfemovingwindowsize = 0
|
||||
;
|
||||
; If wlec is selected than size of the moving window in wideband (16 kHz) sampling mode
|
||||
; can be defined with:
|
||||
; A value of 0 defaults to 8 ms.
|
||||
;
|
||||
;echocancelwidefixedwindowsize = 0
|
||||
;
|
||||
; Activate or deactivate line echo cancller NLP (Non Linear Processor) if the LEC is active,
|
||||
; valid is on or off:
|
||||
;
|
||||
;echocancelnlp = off
|
||||
;
|
||||
;
|
||||
;
|
||||
; Jitter buffer valid types:
|
||||
;
|
||||
; fixed Fixed jitter buffer.
|
||||
; adaptive Adaptive jitter buffer.
|
||||
;
|
||||
;jitterbuffertype = fixed
|
||||
;
|
||||
; Jitter buffer packet adaptation valid types:
|
||||
;
|
||||
; voice Jitter buffer optimized for voice.
|
||||
; data Jitter buffer optimized for data.
|
||||
; datanorep Jitter buffer optimized for data but without doing packet repetition.
|
||||
;
|
||||
;jitterbufferpackettype = voice
|
||||
;
|
||||
; Following jitter buffer values can only be used with jitter buffer adaptive type:
|
||||
; Turns on or off jitter buffer adaptation:
|
||||
;
|
||||
;jitterbufferadaptation = off
|
||||
;
|
||||
; Scaling factor multiplied by 16; in adaptive jitter buffer mode, the target average playout delay is
|
||||
; equal to the estimated jitter multiplied by the scaling factor. The default value for the scaling factor
|
||||
; is about 1.4 (scaling=22), meaning that the target average playout delay is equal to the estimated
|
||||
; jitter. If less packets should be dropped because of jitter, the scaling factor has to be increased. An
|
||||
; increase in the scaling factor will eventually lead to an increased playout delay.
|
||||
; The supported range is 1 to 16 (16 up to 256).
|
||||
;
|
||||
;jitterbufferscalling = 1
|
||||
;
|
||||
; Initial size of the jitter buffer in time stamps of 125 us:
|
||||
;
|
||||
;jitterbufferinitialsize = 125
|
||||
;
|
||||
; Minimum size of the jitter buffer in time stamps of 125 us
|
||||
;
|
||||
;jitterbufferminsize = 125
|
||||
;
|
||||
; Maximum size of the jitter buffer in time stamps of 125 us
|
||||
;
|
||||
;jitterbuffermaxsize = 125
|
||||
;
|
||||
;
|
||||
;
|
||||
; Caller id valid standards:
|
||||
;
|
||||
; telecordia Bellcore/Telcordia GR-30-CORE; use Bell202 FSK coding of CID information. (default)
|
||||
; etsifsk ETSI 300-659-1/2/3 V1.3.1; use V.23 FSK coding to transmit CID information.
|
||||
; etsidtmf ETSI 300-659-1/2/3 V1.3.1; use DTMF transmission of CID information.
|
||||
; sin SIN 227 Issue 3.4; use V.23 FSK coding of CID information.
|
||||
; ntt NTT standard: TELEPHONE SERVICE INTERFACES, edition 5; use a modified V.23 FSK coding of
|
||||
; CID information.
|
||||
; kpndtmf KPN; use DTMF transmission of CID information.
|
||||
; kpndtmffsk KPN; use DTMF and FSK transmission of CID information.
|
||||
;
|
||||
;calleridtype = telecordia
|
||||
;
|
||||
;
|
||||
;
|
||||
; Voice activity detection:
|
||||
;
|
||||
; on Voice activity detection on; in this case also comfort noise and spectral
|
||||
; information (nicer noise) is switched on.
|
||||
; g711 Voice activity detection on with comfort noise generation,
|
||||
; but without spectral information.
|
||||
; cng Voice activity detection on with comfort noise generation, but without silence compression
|
||||
; sc Voice activity detection on with silence compression,
|
||||
; but without comfort noise generation.
|
||||
;
|
||||
;voiceactivitydetection = on
|
||||
;
|
||||
;
|
||||
;
|
||||
;
|
78
net/asterisk-11.x-chan-dongle/Makefile
Normal file
78
net/asterisk-11.x-chan-dongle/Makefile
Normal file
|
@ -0,0 +1,78 @@
|
|||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=asterisk11-chan-dongle
|
||||
PKG_VERSION:=1.1r35
|
||||
PKG_REV:=28a46567a88cebdc365db6f294e682246fd2dd7b
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE_SUBDIR:=asterisk11-chan-dongle-$(PKG_VERSION)
|
||||
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/jstasiak/asterisk-chan-dongle.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=$(PKG_REV)
|
||||
|
||||
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYRIGHT.txt LICENSE.txt
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/asterisk11-chan-dongle
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
URL:=https://code.google.com/p/asterisk-chan-dongle/
|
||||
DEPENDS:= asterisk11 +libiconv-full +kmod-usb-acm +kmod-usb-serial +kmod-usb-serial-option +libusb-1.0 +usb-modeswitch
|
||||
TITLE:=Huawei UMTS 3G dongle support
|
||||
endef
|
||||
|
||||
define Package/asterisk11-chan-dongle/description
|
||||
Asterisk channel driver for Huawei UMTS 3G dongle.
|
||||
endef
|
||||
|
||||
MAKE_ARGS:= \
|
||||
CC="$(TARGET_CC)" \
|
||||
LD="$(TARGET_CC)" \
|
||||
CFLAGS="$(TARGET_CFLAGS) -DASTERISK_VERSION_NUM=110000 -DLOW_MEMORY -D_XOPEN_SOURCE=600 $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libiconv-full/include -I$(STAGING_DIR)/usr/include/asterisk-11/include -DHAVE_CONFIG_H -I. -fPIC" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)/usr/lib/asterisk/modules"
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
ac_cv_type_size_t=yes \
|
||||
ac_cv_type_ssize_t=yes
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
--with-asterisk=$(STAGING_DIR)/usr/include/asterisk-11/include \
|
||||
$(MAKE_ARGS) \
|
||||
)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
mkdir -p $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_ARGS) all install
|
||||
endef
|
||||
|
||||
define Package/asterisk11-chan-dongle/conffiles
|
||||
/etc/asterisk/dongle.conf
|
||||
endef
|
||||
|
||||
define Package/asterisk11-chan-dongle/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/dongle.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_dongle.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,asterisk11-chan-dongle))
|
|
@ -0,0 +1,64 @@
|
|||
--- a/app.c
|
||||
+++ b/app.c
|
||||
@@ -114,7 +114,44 @@
|
||||
return !status;
|
||||
}
|
||||
|
||||
+static int app_send_ussd_exec (attribute_unused struct ast_channel* channel, const char* data)
|
||||
+{
|
||||
+ char* parse;
|
||||
+ const char* msg;
|
||||
+ int status;
|
||||
+ void * msgid;
|
||||
|
||||
+ AST_DECLARE_APP_ARGS (args,
|
||||
+ AST_APP_ARG (device);
|
||||
+ AST_APP_ARG (ussd);
|
||||
+ );
|
||||
+
|
||||
+ if (ast_strlen_zero (data))
|
||||
+ {
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ parse = ast_strdupa (data);
|
||||
+
|
||||
+ AST_STANDARD_APP_ARGS (args, parse);
|
||||
+
|
||||
+ if (ast_strlen_zero (args.device))
|
||||
+ {
|
||||
+ ast_log (LOG_ERROR, "NULL device for ussd -- USSD will not be sent\n");
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ if (ast_strlen_zero (args.ussd))
|
||||
+ {
|
||||
+ ast_log (LOG_ERROR, "NULL ussd command -- USSD will not be sent\n");
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ msg = send_ussd(args.device, args.ussd, &status, &msgid);
|
||||
+ if(!status)
|
||||
+ ast_log (LOG_ERROR, "[%s] %s with id %p\n", args.device, msg, msgid);
|
||||
+ return !status;
|
||||
+}
|
||||
|
||||
static const struct dongle_application
|
||||
{
|
||||
@@ -144,7 +181,15 @@
|
||||
" Message - text of the message\n"
|
||||
" Validity - Validity period in minutes\n"
|
||||
" Report - Boolean flag for report request\n"
|
||||
- }
|
||||
+ },
|
||||
+ {
|
||||
+ "DongleSendUSSD",
|
||||
+ app_send_ussd_exec,
|
||||
+ "DongleSendUSSD(Device,USSD)",
|
||||
+ "DongleSendUSSD(Device,USSD)\n"
|
||||
+ " Device - Id of device from dongle.conf\n"
|
||||
+ " USSD - ussd command\n"
|
||||
+ }
|
||||
};
|
||||
|
||||
#if ASTERISK_VERSION_NUM >= 10800
|
427
net/asterisk-11.x/Makefile
Normal file
427
net/asterisk-11.x/Makefile
Normal file
|
@ -0,0 +1,427 @@
|
|||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
# Copyright (C) 2015 Cesnet, z.s.p.o.
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=asterisk11
|
||||
PKG_VERSION:=11.16.0
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
||||
PKG_MD5SUM:=de06d4ac0d1ba531c4c18805a9d5a18d
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING LICENSE
|
||||
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
|
||||
PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/asterisk11/install/module
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*$(2).so* $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/install/conffile
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/asterisk/*$(2)* $(1)/etc/asterisk/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/install/lib
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/install/sbin
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(2) $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
define Package/asterisk11/install/sounds
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/$(2) $(1)/usr/lib/asterisk/sounds/
|
||||
endef
|
||||
|
||||
define BuildAsterisk11Module
|
||||
define Package/asterisk11-$(1)
|
||||
$$(call Package/asterisk11/Default)
|
||||
TITLE:=$(2) support
|
||||
DEPENDS:= asterisk11 $(patsubst +%,+PACKAGE_asterisk11-$(1):%,$(4))
|
||||
endef
|
||||
|
||||
define Package/asterisk11-$(1)/conffiles
|
||||
$(5)
|
||||
endef
|
||||
|
||||
define Package/asterisk11-$(1)/description
|
||||
This package provides support for '$(3)' in Asterisk11.
|
||||
endef
|
||||
|
||||
define Package/asterisk11-$(1)/install
|
||||
$(foreach c,$(6),$(call Package/asterisk11/install/conffile,$$(1),$(c));)
|
||||
$(foreach m,$(7),$(call Package/asterisk11/install/module,$$(1),$(m));)
|
||||
$(foreach s,$(8),$(call Package/asterisk11/install/sounds,$$(1),$(s));)
|
||||
$(foreach b,$(9),$(call Package/asterisk11/install/sbin,$$(1),$(b));)
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,asterisk11-$(1)))
|
||||
endef
|
||||
|
||||
define Package/asterisk11/Default
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
URL:=http://www.asterisk.org/
|
||||
MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
|
||||
endef
|
||||
|
||||
define Package/asterisk11/Default/description
|
||||
Asterisk is a complete PBX in software. It provides all of the features
|
||||
you would expect from a PBX and more. Asterisk does voice over IP in three
|
||||
protocols, and can interoperate with almost all standards-based telephony
|
||||
equipment using relatively inexpensive hardware.
|
||||
endef
|
||||
|
||||
define Package/asterisk11
|
||||
$(call Package/asterisk11/Default)
|
||||
TITLE:=Complete open source PBX, v11.x
|
||||
MENU:=1
|
||||
DEPENDS:=+libopenssl +libncurses +libpopt +libpthread +libsqlite3 +librt +libuuid +zlib @!TARGET_avr32
|
||||
endef
|
||||
|
||||
define Package/asterisk11/description
|
||||
$(call Package/asterisk11/Default/description)
|
||||
endef
|
||||
|
||||
define Package/asterisk11/conffiles
|
||||
/etc/asterisk/asterisk.conf
|
||||
/etc/asterisk/acl.conf
|
||||
/etc/asterisk/ccss.conf
|
||||
/etc/asterisk/modules.conf
|
||||
/etc/asterisk/extconfig.conf
|
||||
/etc/asterisk/extensions.conf
|
||||
/etc/asterisk/features.conf
|
||||
/etc/asterisk/indications.conf
|
||||
/etc/asterisk/logger.conf
|
||||
/etc/asterisk/manager.conf
|
||||
/etc/asterisk/modules.conf
|
||||
/etc/asterisk/res_config_sqlite3.conf
|
||||
/etc/asterisk/rtp.conf
|
||||
/etc/asterisk/sip.conf
|
||||
/etc/asterisk/sip_notify.conf
|
||||
/etc/asterisk/udptl.conf
|
||||
/etc/asterisk/users.conf
|
||||
/etc/init.d/asterisk
|
||||
endef
|
||||
|
||||
AST_CFG_FILES:= \
|
||||
asterisk.conf acl.conf ccss.conf extconfig.conf \
|
||||
extensions.conf features.conf indications.conf \
|
||||
logger.conf manager.conf modules.conf res_config_sqlite3.conf \
|
||||
rtp.conf sip_notify.conf sip.conf udptl.conf users.conf
|
||||
AST_EMB_MODULES:=\
|
||||
app_dial app_echo app_macro app_playback codec_ulaw format_pcm func_callerid \
|
||||
func_logic func_strings func_timeout chan_sip chan_local pbx_config \
|
||||
res_crypto res_http_websocket res_rtp_asterisk res_rtp_multicast
|
||||
|
||||
define Package/asterisk11/install
|
||||
$(call Package/asterisk11/install/lib,$(1),libasteriskssl)
|
||||
$(call Package/asterisk11/install/sbin,$(1),asterisk)
|
||||
$(call Package/asterisk11/install/sbin,$(1),safe_asterisk)
|
||||
$(call Package/asterisk11/install/sbin,$(1),astgenkey)
|
||||
$(foreach m,$(AST_CFG_FILES),$(call Package/asterisk11/install/conffile,$(1),$(m));)
|
||||
$(foreach m,$(AST_EMB_MODULES),$(call Package/asterisk11/install/module,$(1),$(m));)
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
|
||||
endef
|
||||
|
||||
define Package/asterisk11-sounds
|
||||
$(call Package/asterisk11/Default)
|
||||
TITLE:=Sounds support
|
||||
DEPENDS:=asterisk11
|
||||
endef
|
||||
|
||||
define Package/asterisk11-sounds/description
|
||||
This package provides sounds for Asterisk11.
|
||||
endef
|
||||
|
||||
define Package/asterisk11-sounds/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/en/* $(1)/usr/lib/asterisk/sounds/
|
||||
rm -f $(1)/usr/lib/asterisk/sounds/vm-*
|
||||
rm -f $(1)/usr/lib/asterisk/sounds/conf-*
|
||||
endef
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-chan-dahdi),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-dahdi="$(STAGING_DIR)/usr" \
|
||||
--with-tonezone="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-dahdi \
|
||||
--without-tonezone
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-curl),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-libcurl="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-libcurl
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-mysql),)
|
||||
CONFIGURE_VARS+= \
|
||||
ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT=$(STAGING_DIR)/usr/bin/mysql_config
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-mysqlclient
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-mysqlclient
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-pbx-lua),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-lua="$(STAGING_DIR)/usr"
|
||||
TARGET_LDFLAGS+=-ldl -lcrypt
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-lua
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-pgsql),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-postgres="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-postgres
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-fax-spandsp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-spandsp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-spandsp
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-srtp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-srtp="$(STAGING_DIR)/usr"
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-srtp
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-xmpp),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-iksemel="$(STAGING_DIR)/usr"
|
||||
SITE_VARS+= \
|
||||
ac_cv_lib_iksemel_iks_start_sasl=yes
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--without-iksemel
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
|
||||
EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
||||
CONFIGURE_ARGS+= \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--without-bluetooth \
|
||||
--without-cap \
|
||||
--without-curses \
|
||||
--with-gsm=internal \
|
||||
--without-gtk2 \
|
||||
--with-ilbc=internal \
|
||||
--without-isdnnet \
|
||||
--without-libxml2 \
|
||||
--without-misdn \
|
||||
--without-nbs \
|
||||
--with-ncurses="$(STAGING_DIR)/usr" \
|
||||
--without-netsnmp \
|
||||
--without-newt \
|
||||
--without-ogg \
|
||||
--without-osptk \
|
||||
--with-popt="$(STAGING_DIR)/usr" \
|
||||
--without-pri \
|
||||
--without-pwlib \
|
||||
--without-radius \
|
||||
--without-sdl \
|
||||
--without-sqlite \
|
||||
--with-sqlite3="$(STAGING_DIR)/usr" \
|
||||
--without-suppserv \
|
||||
--without-tds \
|
||||
--without-termcap \
|
||||
--without-tinfo \
|
||||
--with-uuid="$(STAGING_DIR)/usr" \
|
||||
--without-vorbis \
|
||||
--without-vpb \
|
||||
--with-z="$(STAGING_DIR)/usr" \
|
||||
--with-sounds-cache="$(DL_DIR)" \
|
||||
--disable-xmldoc
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
echo "export CFLAGS += $(FPIC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS)"\
|
||||
" $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)"\
|
||||
> $(PKG_BUILD_DIR)/res/pjproject/user.mak;
|
||||
echo "export LDLAGS += $(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)"\
|
||||
" -lc $(LIBGCC_S) -lm"\
|
||||
>> $(PKG_BUILD_DIR)/res/pjproject/user.mak;
|
||||
echo "export CXXFLAGS += $(FPIC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS)"\
|
||||
" $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)"\
|
||||
>> $(PKG_BUILD_DIR)/res/pjproject/user.mak;
|
||||
$(call Build/Configure/Default,,$(SITE_VARS))
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
include/asterisk/version.h \
|
||||
include/asterisk/buildopts.h defaults.h \
|
||||
makeopts.embed_rules
|
||||
ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY"
|
||||
ASTLDFLAGS="$(EXTRA_LDFLAGS)"
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||
ASTVARLIBDIR="/usr/lib/asterisk" \
|
||||
ASTDATADIR="/usr/lib/asterisk" \
|
||||
ASTKEYDIR="/usr/lib/asterisk" \
|
||||
ASTDBDIR="/usr/lib/asterisk" \
|
||||
NOISY_BUILD="yes" \
|
||||
DEBUG="" \
|
||||
OPTIMIZE="" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all install samples
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/asterisk-11/include/asterisk/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk-11/include/asterisk/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/asterisk-11/include/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,asterisk11))
|
||||
$(eval $(call BuildPackage,asterisk11-sounds))
|
||||
|
||||
################################
|
||||
# AST modules
|
||||
# Params:
|
||||
# 1 - Package subname
|
||||
# 2 - Package title
|
||||
# 3 - Module description
|
||||
# 4 - Module dependencies
|
||||
# 5 - Full path to multiple conffiles
|
||||
# 6 - conf files
|
||||
# 7 - module files
|
||||
# 8 - sound files
|
||||
# 9 - binary files
|
||||
################################
|
||||
|
||||
$(eval $(call BuildAsterisk11Module,app-alarmreceiver,Alarm receiver,Central Station Alarm receiver for Ademco Contact ID,,,,app_alarmreceiver,))
|
||||
$(eval $(call BuildAsterisk11Module,app-authenticate,Authenticate commands,Execute arbitrary authenticate commands,,,,app_authenticate,))
|
||||
$(eval $(call BuildAsterisk11Module,app-confbridge,ConfBridge,Software bridge for multi-party audio conferencing,,/etc/asterisk/confbridge.conf,confbridge.conf,app_confbridge bridge_builtin_features bridge_multiplexed bridge_simple bridge_softmix chan_bridge,))
|
||||
$(eval $(call BuildAsterisk11Module,app-dahdiras,Execute an ISDN RAS,support for executing an ISDN RAS using DAHDI,+asterisk11-chan-dahdi,,,app_dahdiras,))
|
||||
$(eval $(call BuildAsterisk11Module,app-directed_pickup,Directed call pickup,support for directed call pickup,,,,app_directed_pickup,))
|
||||
$(eval $(call BuildAsterisk11Module,app-disa,Direct Inward System Access,Direct Inward System Access,,,,app_disa,))
|
||||
$(eval $(call BuildAsterisk11Module,app-exec,Exec application,support for application execution,,,,app_exec,))
|
||||
$(eval $(call BuildAsterisk11Module,app-chanisavail,Channel availability check,support for checking if a channel is available,,,,app_chanisavail,))
|
||||
$(eval $(call BuildAsterisk11Module,app-chanspy,Channel listen in,support for listening in on any channel,,,,app_chanspy,))
|
||||
$(eval $(call BuildAsterisk11Module,app-minivm,Minimal voicemail system,a voicemail system in small building blocks working together based on the Comedian Mail voicemail,,/etc/asterisk/extensions_minivm.conf /etc/asterisk/minivm.conf,extensions_minivm.conf minivm.conf,app_minivm,))
|
||||
$(eval $(call BuildAsterisk11Module,app-mixmonitor,Record a call and mix the audio,record a call and mix the audio during the recording,,,,app_mixmonitor,))
|
||||
$(eval $(call BuildAsterisk11Module,app-originate,Originate a call,originating an outbound call and connecting it to a specified extension or application,,,,app_originate,))
|
||||
$(eval $(call BuildAsterisk11Module,app-playtones,Playtones application,play a tone list,,,,app_playtones,))
|
||||
$(eval $(call BuildAsterisk11Module,app-read,Variable read,a trivial application to read a variable,,,,app_read,))
|
||||
$(eval $(call BuildAsterisk11Module,app-readexten,Extension to variable,a trivial application to read an extension into a variable,,,,app_readexten,))
|
||||
$(eval $(call BuildAsterisk11Module,app-record,Record sound file,to record a sound file,,,,app_record,))
|
||||
$(eval $(call BuildAsterisk11Module,app-sayunixtime,Say Unix time,an application to say Unix time,,,,app_sayunixtime,))
|
||||
$(eval $(call BuildAsterisk11Module,app-senddtmf,Send DTMF digits,Sends arbitrary DTMF digits,,,,app_senddtmf,))
|
||||
$(eval $(call BuildAsterisk11Module,app-sms,SMS,SMS support (ETSI ES 201 912 protocol 1),+libpopt +libstdcpp,,,app_sms,,smsq))
|
||||
$(eval $(call BuildAsterisk11Module,app-stack,Stack applications,Stack applications Gosub Return etc.,+asterisk11-res-agi,,,app_stack,))
|
||||
$(eval $(call BuildAsterisk11Module,app-system,System exec,support for executing system commands,,,,app_system,))
|
||||
$(eval $(call BuildAsterisk11Module,app-talkdetect,File playback with audio detect,for file playback with audio detect,,,,app_talkdetect,))
|
||||
$(eval $(call BuildAsterisk11Module,app-verbose,Verbose logging,Verbose logging application,,,,app_verbose,))
|
||||
$(eval $(call BuildAsterisk11Module,app-waituntil,Sleep,support sleeping until the given epoch,,,,app_waituntil,))
|
||||
$(eval $(call BuildAsterisk11Module,app-while,While loop,a while loop implementation,,,,app_while,))
|
||||
$(eval $(call BuildAsterisk11Module,cdr-csv,Provides CDR CSV,Call Detail Record with CSV support,,,,cdr_csv,))
|
||||
$(eval $(call BuildAsterisk11Module,cdr-sqlite3,Provides CDR SQLITE3,Call Detail Record with SQLITE3 support,libsqlite3,,,cdr_sqlite3_custom,))
|
||||
$(eval $(call BuildAsterisk11Module,cdr,Provides CDR,Call Detail Record,,/etc/asterisk/cdr.conf /etc/asterisk/cdr_custom.conf /etc/asterisk/cdr_manager.conf /etc/asterisk/cdr_syslog.conf,cdr cdr_custom cdr_manager cdr_syslog,app_cdr app_forkcdr cdr_custom cdr_manager cdr_syslog func_cdr,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-a-mu,Alaw to ulaw translation,translation between alaw and ulaw codecs,,,,codec_a_mu,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-adpcm,ADPCM text,ADPCM text ,,,,codec_adpcm,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-alaw,Signed linear to alaw translation,translation between signed linear and alaw codecs,,,,codec_alaw,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-dahdi,DAHDI codec,DAHDI native transcoding support,+asterisk11-chan-dahdi,,,codec_dahdi,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-g722,G.722,a high bit rate 48/56/64Kbps ITU standard codec,,,,codec_g722,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-g726,Signed linear to G.726 translation,translation between signed linear and ITU G.726-32kbps codecs,,,,codec_g726,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-gsm,linear to GSM translation,translate between signed linear and GSM,,,,codec_gsm,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-ilbc,linear to ILBC translation,translate between signed linear and ILBC,,,,codec_ilbc,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-lpc10,Linear to LPC10 translation,translate between signed linear and LPC10,,,,codec_lpc10,))
|
||||
$(eval $(call BuildAsterisk11Module,codec-resample,resample sLinear audio,resample sLinear audio,,,,codec_resample,))
|
||||
$(eval $(call BuildAsterisk11Module,curl,CURL,CURL support,+libcurl,,,func_curl res_curl,))
|
||||
$(eval $(call BuildAsterisk11Module,format-g726,G.726,support for headerless G.726 16/24/32/40kbps data format,,,,format_g726,))
|
||||
$(eval $(call BuildAsterisk11Module,format-g729,G.729,support for raw headerless G729 data,,,,format_g729,))
|
||||
$(eval $(call BuildAsterisk11Module,format-gsm,GSM format,support for GSM format,,,,format_gsm,))
|
||||
$(eval $(call BuildAsterisk11Module,format-h263,H263 format,support for H264 format,,,,format_h263,))
|
||||
$(eval $(call BuildAsterisk11Module,format-h264,H264 format,support for H264 format,,,,format_h264,))
|
||||
$(eval $(call BuildAsterisk11Module,format-ilbc,ILBC format,support for ILBC format,,,,format_ilbc,))
|
||||
$(eval $(call BuildAsterisk11Module,format-sln,Raw slinear format,support for raw slinear format,,,,format_sln,))
|
||||
$(eval $(call BuildAsterisk11Module,format-vox,VOX format,support for ADPCM vox format,,,,format_vox,))
|
||||
$(eval $(call BuildAsterisk11Module,format-wav-gsm,WAV format (Proprietary GSM),support for proprietary Microsoft WAV format (Proprietary GSM),,,,format_wav_gsm,))
|
||||
$(eval $(call BuildAsterisk11Module,format-wav,WAV format (8000hz Signed Linear),support for proprietary Microsoft WAV format (8000hz Signed Linear),,,,format_wav,))
|
||||
$(eval $(call BuildAsterisk11Module,func-base64,base64 support,support of base64 function,,,,func_base64,))
|
||||
$(eval $(call BuildAsterisk11Module,func-blacklist,Blacklist on callerid,looking up the callerid number and see if it is blacklisted,,,,func_blacklist,))
|
||||
$(eval $(call BuildAsterisk11Module,func-cut,CUT function,CUT function,,,,func_cut,))
|
||||
$(eval $(call BuildAsterisk11Module,func-db,Database interaction,functions for interaction with the database,,,,func_db app_db,))
|
||||
$(eval $(call BuildAsterisk11Module,func-devstate,Blinky lights control,functions for manually controlled blinky lights,,,,func_devstate,))
|
||||
$(eval $(call BuildAsterisk11Module,func-enum,ENUM,ENUM,,/etc/asterisk/enum.conf,enum.conf,func_enum,))
|
||||
$(eval $(call BuildAsterisk11Module,func-env,Environment functions,Environment dialplan functions,,,,func_env,))
|
||||
$(eval $(call BuildAsterisk11Module,func-extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control,,,,func_extstate,))
|
||||
$(eval $(call BuildAsterisk11Module,func-global,Global variable,global variable dialplan functions,,,,func_global,))
|
||||
$(eval $(call BuildAsterisk11Module,func-groupcount,Group count,for counting number of channels in the specified group,,,,func_groupcount,))
|
||||
$(eval $(call BuildAsterisk11Module,func-channel,Channel info,Channel info dialplan function,,,,func_channel,))
|
||||
$(eval $(call BuildAsterisk11Module,func-math,Math functions,Math functions,,,,func_math,))
|
||||
$(eval $(call BuildAsterisk11Module,func-module,Simple module check function,Simple module check function,,,,func_module,))
|
||||
$(eval $(call BuildAsterisk11Module,func-shell,Shell,support for shell execution,,,,func_shell,))
|
||||
$(eval $(call BuildAsterisk11Module,func-uri,URI encoding and decoding,Encodes and decodes URI-safe strings,,,,func_uri,))
|
||||
$(eval $(call BuildAsterisk11Module,func-vmcount,vmcount dialplan,a vmcount dialplan function,,,,func_vmcount,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-agent,Agents proxy channel,an implementation of agents proxy channel,,,,chan_agent,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-dahdi,DAHDI channel,DAHDI channel support,+dahdi-tools-libtonezone +kmod-dahdi,/etc/asterisk/chan_dahdi.conf,chan_dahdi.conf,chan_dahdi,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-iax2,IAX2 channel,IAX support,+asterisk11-res-timing-timerfd,/etc/asterisk/iax.conf /etc/asterisk/iaxprov.conf,iax.conf iaxprov.conf,chan_iax2,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-mgcp,MGCP channel,the channel chan_mgcp,,/etc/asterisk/mgcp.conf,mgcp.conf,chan_mgcp,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-motif,Jingle channel,Motif Jingle Channel Driver,+asterisk11-res-xmpp,/etc/asterisk/motif.conf /etc/asterisk/jingle.conf,motif.conf jingle.conf,chan_motif,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-ooh323,ooH323 channel,the channel chan_ooh323,,/etc/asterisk/ooh323.conf,ooh323.conf,chan_ooh323,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-skinny,Skinny channel,the channel chan_skinny,,/etc/asterisk/skinny.conf,skinny.conf,chan_skinny,))
|
||||
$(eval $(call BuildAsterisk11Module,chan-unistim,Unistim channel,channel driver for the UNISTIM (Unified Networks IP Stimulus) protocol,,/etc/asterisk/unistim.conf,unistim.conf,chan_unistim,))
|
||||
$(eval $(call BuildAsterisk11Module,mysql,MySQL,MySQL support,+libmysqlclient,/etc/asterisk/res_config_mysql.conf,res_config_mysql.conf,res_config_mysql,))
|
||||
$(eval $(call BuildAsterisk11Module,odbc,ODBC,ODBC support,+libpthread +libc +unixodbc,/etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/cdr_odbc.conf /etc/asterisk/cel_odbc.conf /etc/asterisk/func_odbc.conf /etc/asterisk/res_odbc.conf,cdr_adaptive_odbc cdr_odbc cel_odbc func_odbc res_odbc,cdr_adaptive_odbc cdr_odbc cel_odbc func_odbc res_config_odbc res_odbc,))
|
||||
$(eval $(call BuildAsterisk11Module,pbx-ael,Asterisk Extension Logic,support for symbolic Asterisk Extension Logic,,,extensions.ael,pbx_ael,))
|
||||
$(eval $(call BuildAsterisk11Module,pbx-dundi,Dundi,provides Dundi Lookup service for Asterisk,,/etc/asterisk/dundi.conf,dundi.conf,pbx_dundi,))
|
||||
$(eval $(call BuildAsterisk11Module,pbx-lua,Lua,provides Lua resources for Asterisk,+libpthread +libc +liblua,/etc/asterisk/extensions.lua,extensions.lua,pbx_lua,))
|
||||
$(eval $(call BuildAsterisk11Module,pbx-spool,Call Spool,outgoing call spool support,,,,pbx_spool,))
|
||||
$(eval $(call BuildAsterisk11Module,pgsql,PostgreSQL,PostgreSQL support,+libpq,/etc/asterisk/cel_pgsql.conf /etc/asterisk/cdr_pgsql.conf /etc/asterisk/res_pgsql.conf,cel_pgsql.conf cdr_pgsql.conf res_pgsql.conf,cel_pgsql cdr_pgsql res_config_pgsql,))
|
||||
$(eval $(call BuildAsterisk11Module,res-ael-share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules,,,,res_ael_share,))
|
||||
$(eval $(call BuildAsterisk11Module,res-agi,Asterisk Gateway Interface,Support for the Asterisk Gateway Interface extension,,,,res_agi,))
|
||||
$(eval $(call BuildAsterisk11Module,res-clioriginate,Calls via CLI,Originate calls via the CLI,,,,res_clioriginate,))
|
||||
$(eval $(call BuildAsterisk11Module,res-fax-spandsp,Spandsp T.38 and G.711,Spandsp T.38 and G.711 FAX Resource,+asterisk11-res-fax +libspandsp +libtiff,,,res_fax_spandsp,))
|
||||
$(eval $(call BuildAsterisk11Module,res-fax,FAX modules,Generic FAX resource for FAX technology resource modules,+asterisk11-res-timing-pthread,/etc/asterisk/res_fax.conf /etc/asterisk/udptl.conf,udptl.conf res_fax.conf,res_fax,))
|
||||
$(eval $(call BuildAsterisk11Module,res-monitor,Provide Monitor,Cryptographic Signature capability,,,,res_monitor,))
|
||||
$(eval $(call BuildAsterisk11Module,res-musiconhold,MOH,Music On Hold support,,/etc/asterisk/musiconhold.conf,musiconhold.conf,res_musiconhold,))
|
||||
$(eval $(call BuildAsterisk11Module,res-phoneprov,Phone Provisioning,Phone provisioning application for the asterisk internal http server,,/etc/asterisk/phoneprov.conf,phoneprov.conf,res_phoneprov,))
|
||||
$(eval $(call BuildAsterisk11Module,res-pktccops,Provide PacketCable COPS,simple client/server model for supporting policy control over QoS signaling protocols,,/etc/asterisk/res_pktccops.conf,res_pktccops.conf,res_pktccops,))
|
||||
$(eval $(call BuildAsterisk11Module,res-smdi,Provide SMDI,Simple Message Desk Interface capability,,/etc/asterisk/smdi.conf,smdi.conf,res_smdi,))
|
||||
$(eval $(call BuildAsterisk11Module,res-srtp,SRTP,Secure RTP,+libsrtp,,,res_srtp,))
|
||||
$(eval $(call BuildAsterisk11Module,res-timing-dahdi,DAHDI Timing Interface,,+asterisk11-chan-dahdi,,,res_timing_dahdi,))
|
||||
$(eval $(call BuildAsterisk11Module,res-timing-pthread,pthread Timing Interface,,,,,res_timing_pthread,))
|
||||
$(eval $(call BuildAsterisk11Module,res-timing-timerfd,Timerfd Timing Interface,,,,,res_timing_timerfd,))
|
||||
$(eval $(call BuildAsterisk11Module,res-xmpp,XMPP client and component module,reference module for interfacting Asterisk directly as a client or component with XMPP server,+libiksemel +libopenssl,/etc/asterisk/xmpp.conf,xmpp.conf,res_xmpp,))
|
||||
$(eval $(call BuildAsterisk11Module,voicemail,Voicemail,voicemail related modules,,/etc/asterisk/voicemail.conf,voicemail.conf,*voicemail res_adsi res_smdi,vm-*))
|
||||
|
32
net/asterisk-11.x/files/asterisk.init
Normal file
32
net/asterisk-11.x/files/asterisk.init
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
|
||||
START=99
|
||||
APP=asterisk
|
||||
OPTIONS=
|
||||
DEST=
|
||||
BIN_FILE=$DEST/usr/sbin/$APP
|
||||
PID_FILE=$DEST/var/run/$APP/$APP.pid
|
||||
|
||||
start() {
|
||||
[ -d $DEST/var/run/asterisk ] || mkdir -p $DEST/var/run/asterisk
|
||||
[ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk
|
||||
[ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk
|
||||
[ -d $DEST/var/lib ] || mkdir -p $DEST/var/lib
|
||||
[ -h $DEST/var/lib/asterisk ] || ln -s /usr/lib/asterisk /var/lib/asterisk
|
||||
[ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys
|
||||
[ -d $DEST/var/log/asterisk/cdr-csv ] || mkdir -p $DEST/var/log/asterisk/cdr-csv
|
||||
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_start $BIN_FILE $OPTIONS
|
||||
}
|
||||
|
||||
stop() {
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_stop $BIN_FILE
|
||||
}
|
||||
|
||||
reload() {
|
||||
SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
|
||||
service_reload $BIN_FILE
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
--- a/res/Makefile
|
||||
+++ b/res/Makefile
|
||||
@@ -75,7 +75,7 @@ dist-clean::
|
||||
rm -f pjproject/build.mak
|
||||
|
||||
pjproject/build.mak: pjproject/aconfigure
|
||||
- (cd pjproject && CFLAGS="-fPIC" ./configure --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec)
|
||||
+ (cd pjproject && CFLAGS="-fPIC" ./configure --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec --disable-opencore-amrnb --disable-video --disable-sdl --disable-ffmpeg --disable-v4l2)
|
||||
|
||||
ifneq ($(findstring $(MAKECMDGOALS),all),)
|
||||
-include pjproject/build.mak
|
|
@ -0,0 +1,10 @@
|
|||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -16464,7 +16464,6 @@ if ac_fn_c_try_link "$LINENO"; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
-$as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
|
||||
$as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
|
|
@ -0,0 +1,44 @@
|
|||
--- a/addons/chan_mobile.c
|
||||
+++ b/addons/chan_mobile.c
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>bluetooth</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/addons/res_config_mysql.c
|
||||
+++ b/addons/res_config_mysql.c
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/*** MODULEINFO
|
||||
<depend>mysqlclient</depend>
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/res/res_pktccops.c
|
||||
+++ b/res/res_pktccops.c
|
||||
@@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
||||
--- a/addons/chan_ooh323.c
|
||||
+++ b/addons/chan_ooh323.c
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
/*** MODULEINFO
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<support_level>extended</support_level>
|
||||
***/
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- a/utils/utils.xml
|
||||
+++ b/utils/utils.xml
|
||||
@@ -41,7 +41,7 @@
|
||||
<support_level>extended</support_level>
|
||||
</member>
|
||||
<member name="smsq">
|
||||
- <defaultenabled>no</defaultenabled>
|
||||
+ <defaultenabled>yes</defaultenabled>
|
||||
<depend>popt</depend>
|
||||
<support_level>extended</support_level>
|
||||
</member>
|
12
net/asterisk-11.x/patches/030-srtp-fix-key-lifetime.patch
Normal file
12
net/asterisk-11.x/patches/030-srtp-fix-key-lifetime.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- a/channels/sip/sdp_crypto.c
|
||||
+++ b/channels/sip/sdp_crypto.c
|
||||
@@ -252,8 +252,7 @@
|
||||
lifetime = strsep(&info, "|");
|
||||
|
||||
if (lifetime) {
|
||||
+ ast_log(LOG_NOTICE, "Crypto life time unsupported: %s. Ignoring.\n", attr);
|
||||
- ast_log(LOG_NOTICE, "Crypto life time unsupported: %s\n", attr);
|
||||
- continue;
|
||||
}
|
||||
|
||||
found = 1;
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue