package/dahdi-tools: new package

Also provides libraries, so install in staging as well.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Arnout: add hashes for license files]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Yann E. MORIN 2017-09-09 23:39:27 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent d959966b41
commit 164df08b75
6 changed files with 117 additions and 0 deletions

View File

@ -384,6 +384,7 @@ endmenu
source "package/cryptsetup/Config.in"
source "package/cwiid/Config.in"
source "package/dahdi-linux/Config.in"
source "package/dahdi-tools/Config.in"
source "package/dbus/Config.in"
source "package/dbus-cpp/Config.in"
source "package/dbus-glib/Config.in"

View File

@ -0,0 +1,16 @@
Do not build the documentation.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
diff -durN dahdi-tools-2.11.0.orig/Makefile.am dahdi-tools-2.11.0/Makefile.am
--- dahdi-tools-2.11.0.orig/Makefile.am 2015-12-22 21:19:12.000000000 +0100
+++ dahdi-tools-2.11.0/Makefile.am 2016-01-04 23:23:34.201304133 +0100
@@ -17,7 +17,7 @@
#-Wformat=2
endif
-SUBDIRS = xpp doc hotplug
+SUBDIRS = xpp hotplug
if PPPD
SUBDIRS += ppp

View File

@ -0,0 +1,37 @@
xpp: do not try to install the manpages for the perl tools
The man pages are generated neither at build time nor at install time,
so the install step fails.
Just disable them.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
diff -durN dahdi-tools-2.11.0.orig/xpp/Makefile.am dahdi-tools-2.11.0/xpp/Makefile.am
--- dahdi-tools-2.11.0.orig/xpp/Makefile.am 2015-12-22 21:19:12.000000000 +0100
+++ dahdi-tools-2.11.0/xpp/Makefile.am 2016-01-04 23:56:31.851820973 +0100
@@ -3,7 +3,6 @@
SUBDIRS =
-man_MANS =
# FIXME: try to improve code, so we can use $(PEDANTIC)
@@ -59,7 +58,6 @@
udevrules_DATA = xpp.rules
dist_sbin_SCRIPTS = $(perl_scripts)
-man_MANS += $(perl_mans)
CLEANFILES = $(perl_checks) $(perl_mans)
if PBX_USB
@@ -147,8 +145,6 @@
astribank_allow.8 \
astribank_is_starting.8
-man_MANS += $(man_pages)
-
endif
EXTRA_DIST = \

View File

@ -0,0 +1,23 @@
config BR2_PACKAGE_DAHDI_TOOLS
bool "dahdi-tools"
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_LINUX_KERNEL # dahdi-linux
depends on BR2_USE_MMU # perl
select BR2_PACKAGE_DAHDI_LINUX
select BR2_PACKAGE_PERL
help
DAHDI (Digium/Asterisk Hardware Device Interface) is the open
source device interface technology used to control Digium and
other legacy telephony interface cards.
DAHDI Tools is a package of utilities for managing and
monitoring DAHDI devices.
http://www.asterisk.org/downloads/dahdi
# Two comments, otherwise it may not fit in menuconfig for narrow terminals
comment "dahdi-tools needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LINUX_KERNEL
comment "dahdi-tools needs a Linux kernel to be built"
depends on !BR2_LINUX_KERNEL

View File

@ -0,0 +1,8 @@
# sha1 from http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
# sha256 locally computed
sha1 5da944e6d59a977f814230253f3ddf2847e7f31b dahdi-tools-2.11.1.tar.gz
sha256 53ffeb333f3e44b0c88e5b17475cdbf87d3f652eb81a6422de76250c061e2909 dahdi-tools-2.11.1.tar.gz
# License files, locally computed
sha256 fa5fc1d1eec39532ea517518eeefd7b6e3c14341a55e5880a0e2a49eee47a5b7 LICENSE
sha256 ec60b993835e2c6b79e6d9226345f4e614e686eb57dc13b6420c15a33a8996e5 LICENSE.LGPL

View File

@ -0,0 +1,32 @@
################################################################################
#
# dahdi-tools
#
################################################################################
DAHDI_TOOLS_VERSION = 2.11.1
DAHDI_TOOLS_SITE = http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
DAHDI_TOOLS_LICENSE = GPLv2, LGPLv2.1
DAHDI_TOOLS_LICENSE_FILES = LICENSE LICENSE.LGPL
DAHDI_TOOLS_DEPENDENCIES = dahdi-linux perl
DAHDI_TOOLS_INSTALL_STAGING = YES
DAHDI_TOOLS_AUTORECONF = YES
# Buildroot globally exports PERL with the value it has on the host, so we need
# to override it with the location where it will be on the target.
DAHDI_TOOLS_CONF_ENV = PERL=/usr/bin/perl
DAHDI_TOOLS_CONF_OPTS = \
--without-newt \
--without-usb \
--without-pcap \
--without-libusbx \
--without-libusb \
--without-selinux \
--without-ppp \
--with-perllib=/usr/lib/perl5/$(PERL_VERSION)
$(eval $(autotools-package))