61 lines
2.8 KiB
Plaintext
61 lines
2.8 KiB
Plaintext
# Description: Digium Asterisk Hardware Device Interface: kernel modules and firmware
|
|
# URL: http://www.voip-info.org/wiki/view/DAHDI
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
# Depends on:
|
|
|
|
name=dahdi
|
|
version=2.10.0
|
|
release=1
|
|
source=(
|
|
http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-$version.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-032-1.05.01.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-064-1.05.01.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-256-1.05.01.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te133-6f0017.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te134-6f0017.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te820-1.76.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-vpmoct032-1.12.0.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te133-780019.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te134-780017.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-a8b-1d0019.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-a8a-1d0017.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-a4b-b0019.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-a4a-a0017.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te435-e0019.tar.gz
|
|
http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-te436-10017.tar.gz
|
|
dahdi-linux-2.6.34.patch
|
|
)
|
|
|
|
build () {
|
|
cd $name-linux-$version
|
|
|
|
# fix compilation in linux 2.6.34
|
|
patch -p1 -i $SRC/dahdi-linux-2.6.34.patch
|
|
|
|
# prevent downloading sources for second time
|
|
# why, oh why did the developer do this?
|
|
for s in ${source[@]}; do
|
|
f=$(basename $s)
|
|
[ -n "`echo $f |grep ^dahdi-fw`" ] && ln -s $PKGMK_SOURCE_DIR/$f drivers/dahdi/firmware/$f
|
|
done
|
|
mv ../*.bin drivers/dahdi/firmware
|
|
|
|
# prevent depmod
|
|
sed -i -e '/depmod/d' Makefile
|
|
|
|
make
|
|
make DESTDIR=$PKG HOTPLUG_FIRMWARE=yes DYNFS=yes UDEVRULES=yes install
|
|
|
|
# firmware is installed in both /lib/firmware and /usr/lib/hotplug/firmware
|
|
# get rid of the second one
|
|
rm -rf $PKG/usr/lib
|
|
|
|
# remove some crap
|
|
rm -rf $PKG/lib/firmware/.dahdi* $PKG/lib/modules/*/modules.*
|
|
|
|
}
|