diff options
Diffstat (limited to 'main/dahdi-linux-lts/APKBUILD')
-rw-r--r-- | main/dahdi-linux-lts/APKBUILD | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/main/dahdi-linux-lts/APKBUILD b/main/dahdi-linux-lts/APKBUILD deleted file mode 100644 index 983db7d7fb7..00000000000 --- a/main/dahdi-linux-lts/APKBUILD +++ /dev/null @@ -1,80 +0,0 @@ -# Contributor: Timo Teras <timo.teras@iki.fi> -# Contributor: wener <wenermail@gmail.com> -# Maintainer: wener <wenermail@gmail.com> - -# when changing _ver we *must* bump _rel -_name=dahdi-linux -_ver=3.2.0 -_rel=1 -# when changing _kver/_krel make sure _rel=0 -_flavor=${FLAVOR:-lts} -_kpkg=linux-$_flavor -_kver=5.15.82 -_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" -url="https://www.asterisk.org/" -arch="x86_64" -license="GPL-2.0-or-later" -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" -source="https://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_name}-$_ver.tar.gz - dahdi-depmod.patch - dahdi-bri_dchan.patch - " - -builddir="$srcdir/$_name-$_ver" - -prepare() { - default_prepare - # verify the kernel version - local _kapkbuild="$startdir"/../../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" -} - -package() { - cd "$srcdir/$_name-$_ver" - make KVERS="$_kabi" DYNFS="yes" \ - 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=" -cb4b06d5a83aae7ce54049137d989fa6275367debc77a1df64cc36ba1bda08a058ea92f01bb873bcd83c3c7d58ff4c5da42c67bbbe8a02b8f4f0e12348c4a072 dahdi-linux-3.2.0.tar.gz -aba01eb90d9db1c595ff22078c76aadb20900486b5794d38b7ee61fa30d2fb51be318a4d059246017640447aee03fb09bb5514c818e3caa1cd98e331ec065173 dahdi-depmod.patch -fa2fa9e96eefc0f31a1a4a8f8f44e77936f6da0d7b74fe3c3d1f0de085621744ae4367932ac97a10b7f96b7d0954843b0bfe07a251b85434079cc6da29e243ba dahdi-bri_dchan.patch -" |