dahdi-tools: Organize recipe

Fix indentations and style issues.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
This commit is contained in:
Fabio Berton 2015-10-15 14:56:07 -03:00
parent a1debd963c
commit 23399a4592
1 changed files with 25 additions and 20 deletions

View File

@ -1,36 +1,41 @@
DESCRITOPN = "Utilities for the DAHDI Asterisk Linux kernel drivers"
DEPENDS = "dahdi-linux libnewt libpcap"
RDEPENDS_${PN} += "perl perl-module-strict perl-module-file-basename perl-module-config \
perl-module-warnings perl-module-getopt perl-module-getopt-std \
perl-module-file perl-module-file-glob perl-module-xsloader \
perl-module-dynaloader perl-module-carp perl-module-errno"
HOMEPAGE = "http://www.asterisk.org"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "\
file://LICENSE;md5=ea5bed2f60d357618ca161ad539f7c0a \
file://LICENSE.LGPL;md5=fb504b67c50331fc78734fed90fb0e09 \
"
SRC_URI = "http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-${PV}.tar.gz \
file://perl_install.patch "
DEPENDS = "dahdi-linux libnewt libpcap"
INC_PR="r19"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea5bed2f60d357618ca161ad539f7c0a \
file://LICENSE.LGPL;md5=fb504b67c50331fc78734fed90fb0e09"
FILES_${PN} += "${datadir}/dahdi"
SRC_URI = "\
http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-${PV}.tar.gz \
file://perl_install.patch \
"
inherit autotools_stage pkgconfig perlnative cpan-base
export DAHDI_PERLLIBDIR="${PERLLIBDIRS}/${@get_perl_version(d)}"
do_configure() {
oe_runconf
oe_runconf
}
do_compile() {
base_do_compile
oe_runmake dahdi_pcap
base_do_compile
oe_runmake dahdi_pcap
}
export DAHDI_PERLLIBDIR="${PERLLIBDIRS}/${@get_perl_version(d)}"
do_install() {
autotools_do_install
install -m 755 ${S}/dahdi_pcap ${D}${sbindir}/
autotools_do_install
install -m 755 ${S}/dahdi_pcap ${D}${sbindir}/
}
FILES_${PN} += "${datadir}/dahdi"
RDEPENDS_${PN} += "\
perl perl-module-strict perl-module-file-basename perl-module-config \
perl-module-warnings perl-module-getopt perl-module-getopt-std \
perl-module-file perl-module-file-glob perl-module-xsloader \
perl-module-dynaloader perl-module-carp perl-module-errno \
"