# Contributor: Timo Teras # Maintainer: Timo Teras # when changing _ver we *must* bump _rel _name=dahdi-linux _ver=3.0.0 _rel=0 _flavor=${FLAVOR:-vanilla} _kpkg=linux-$_flavor _kver=4.19.71 _krel=0 _kpkgver="$_kver-r$_krel" _kabi="$_kver-$_krel-$_flavor" pkgname=$_name-$_flavor pkgver=$_kver pkgrel=$(( $_krel + $_rel )) pkgdesc="Digium Asterisk Hardware Device Interface drivers $_ver" url="http://www.asterisk.org" arch="x86 x86_64" license="GPL-2.0" depends="dahdi-linux $_kpkg=$_kpkgver" # we need wget and tar because make install downloads firmware and uses fancy # options for tar and wget. makedepends="$_kpkg-dev=$_kpkgver wget tar perl" subpackages="$pkgname-dev" #provides="${_name}-grsec=${pkgver}-r${pkgrel}" source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_name}-$_ver.tar.gz dahdi-depmod.patch dahdi-bri_dchan.patch dahdi-zaphfc.patch zaphfc-dahdi-flortz.patch zaphfc-dahdi-2.4.0.patch zaphfc-dahdi-2.5.0.patch zaphfc-dahdi-2.6.0.patch zaphfc-dahdi-2.7.0.patch " builddir="$srcdir/$_name-$_ver" # grsec legacy [ "$_flavor" = "hardened" ] && provides="$_name-grsec=$pkgver-r$pkgrel" prepare() { default_prepare # verify the kernel version local _kapkbuild=../../main/linux-$_flavor/APKBUILD if [ -f $_kapkbuild ]; then ( . $_kapkbuild pkgname=$_name-$_flavor [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver" [ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel" return 0 ) fi } build() { cd "$srcdir/$_name-$_ver" make KVERS="${_kabi}" DYNFS="yes" MODULES_EXTRA="zaphfc" } package() { cd "$srcdir/$_name-$_ver" make KVERS="${_kabi}" DYNFS="yes" MODULES_EXTRA="zaphfc" \ DESTDIR="$pkgdir" install-modules rm -rf "$pkgdir"/lib/firmware "$pkgdir"/usr/lib/hotplug/firmware \ "$pkgdir"/usr/include || true } # since we sourced the APKBUILD above we got the dev() function there to # so we override it again. depends_dev="dahdi-linux-dev" dev() { default_dev local dir="$subpkgdir"/usr/src/dahdi-headers-${_kabi} install -D "$srcdir"/$_name-$_ver/drivers/dahdi/Module.symvers \ "$dir"/drivers/dahdi/Module.symvers ln -s /usr/include "$dir"/include } sha512sums="7c281059f4c8faf3733f7790dc184d810a4a2839ceaa79d6190128bea182db38bc293f04a996254950531abea5532cb030d50265cd044e0847f1e8ece7b15395 dahdi-linux-3.0.0.tar.gz aba01eb90d9db1c595ff22078c76aadb20900486b5794d38b7ee61fa30d2fb51be318a4d059246017640447aee03fb09bb5514c818e3caa1cd98e331ec065173 dahdi-depmod.patch fa2fa9e96eefc0f31a1a4a8f8f44e77936f6da0d7b74fe3c3d1f0de085621744ae4367932ac97a10b7f96b7d0954843b0bfe07a251b85434079cc6da29e243ba dahdi-bri_dchan.patch 8ef31c9723237da83954832df5aee1f5daa23f8fefe07a1a191a2c5da2c2308001d68cee83500f7ef43166bfc0d65552b0ca5362789c5c82a7217e09362fd5fe dahdi-zaphfc.patch f18043fd18a05be7e49daa9d8c96c8a8c45936b14e82e30523e4d88b1620a73147f765d24d2038c4ec0855901e36e8e2b188d596f94437dfb80f6d76ab699d9d zaphfc-dahdi-flortz.patch 8068fcbba81b819bbd14a1a324457d0febd5350d16c6443be035c50f7759010376bd92d3c7ea69b47309e02603e587387b643f64663652e162853515371a6da5 zaphfc-dahdi-2.4.0.patch 95811d56f5567bbab1e6fac89fdc7a4d78252a54a416e884903ae2709f8922f5cd02c492de0bad5c35fdfd52250ec231ed11457e36ba33f8747c3226491882de zaphfc-dahdi-2.5.0.patch 7533c640817f71789c922bb9a5a3b6132b5b47958770929b1c9a50a1e2e6de914e278f466a85ef99759e291e5907c56d60926c74075f4e731a9910a46c1be3ea zaphfc-dahdi-2.6.0.patch daca74da31c655265164a854987d45ca5ee3af1defbe2d49a9f1a70a48a43dc2bc3ceba724781ae29e3a9078b827f641d2e29809fb25101986f2f69c767d1382 zaphfc-dahdi-2.7.0.patch"