summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD27
-rw-r--r--tn40xx.install16
3 files changed, 32 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 417bd5ea5ee..1ecbfff12db 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,24 @@
pkgbase = tn40xx
pkgdesc = Tehuti Networks tn40xx network driver.
- pkgver = 0.3.6.12.1
+ pkgver = 0.3.6.12.2
pkgrel = 1
url = http://www.tehutinetworks.net/
install = tn40xx.install
arch = x86_64
license = custom
- makedepends = linux-lts-headers
- depends = linux-lts
+ makedepends = linux-lts-headers>=4.1
+ makedepends = linux-lts-headers<4.2
+ depends = linux-lts>=4.1
+ depends = linux-lts<4.2
options = !libtool
options = !strip
options = !makeflags
options = !buildflags
options = staticlibs
- source = http://www.tehutinetworks.net/images/UL240756/tn40xx-0.3.6.12.1.tgz
+ source = http://www.tehutinetworks.net/images/UL240756/tn40xx-0.3.6.12.2.tgz
source = tn40xx.install
- sha512sums = 9d8391a6189f57541ace4ffee3097178a5110587dc86763647b20b8b0376f96da1fa02a3679578e5ce8fe56c56fe6e0bbb9f4fb4c6ef9d7854b11a3713f7830c
- sha512sums = 911a59684dd0f7fa9913546a90f6144947251f2afe9fd17f6f0b9acb08c93a8dde0df70b2d1cd58de4d60eaffc7b608a978f7f2ffd4f69a22a31319818e806c0
+ sha512sums = a9e1eb3bb0b4a2f538dc79add45e764750d30f6b271865eeda2552a7623eead84dd48cb56179bbb9982922d696fec4e00f85787cdde4c47ad863dd0f3f34fe17
+ sha512sums = 543821ecf339b5c911d6c1a1469fed032acac75fc81e2950c89606eb80841e6469db8afd2cab54d93eedc81920c22f593335c24eacf2633a2d65d1cebef0a241
pkgname = tn40xx
diff --git a/PKGBUILD b/PKGBUILD
index dc79462a44a..9e5ba3e09c9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
# $Id$
# Maintainer: Ido Rosen <ido@kernel.org>
+# Contributor: Florian Knodt <arch@adlerweb.info>
#
# NOTE: To request changes to this package, please submit a pull request
# to the GitHub repository at https://github.com/ido/packages-archlinux
@@ -8,35 +9,45 @@
pkgname='tn40xx'
pkgdesc="Tehuti Networks tn40xx network driver."
-pkgver='0.3.6.12.1'
+pkgver='0.3.6.12.2'
pkgrel=1
+_extramodules=extramodules-4.1-lts
arch=('x86_64')
url='http://www.tehutinetworks.net/'
license=('custom')
-depends=('linux-lts')
-makedepends=('linux-lts-headers')
+depends=('linux-lts>=4.1' 'linux-lts<4.2')
+makedepends=('linux-lts-headers>=4.1' 'linux-lts-headers<4.2')
options=('!libtool' '!strip' '!makeflags' '!buildflags' 'staticlibs')
source=("http://www.tehutinetworks.net/images/UL240756/${pkgname}-${pkgver}.tgz"
"tn40xx.install")
-sha512sums=('9d8391a6189f57541ace4ffee3097178a5110587dc86763647b20b8b0376f96da1fa02a3679578e5ce8fe56c56fe6e0bbb9f4fb4c6ef9d7854b11a3713f7830c'
- '911a59684dd0f7fa9913546a90f6144947251f2afe9fd17f6f0b9acb08c93a8dde0df70b2d1cd58de4d60eaffc7b608a978f7f2ffd4f69a22a31319818e806c0')
+sha512sums=('a9e1eb3bb0b4a2f538dc79add45e764750d30f6b271865eeda2552a7623eead84dd48cb56179bbb9982922d696fec4e00f85787cdde4c47ad863dd0f3f34fe17'
+ 'f68feb8edea01bd10e263bd3ed04d7a6ace7e52ad2acd2ce0dd2635cdaa0ea35637601c42a3bd2f42e0df2cfaf353aa2839af6ace5dafe80dba2445909c969ea')
install=tn40xx.install
build() {
cd "${srcdir}/${pkgname}-${pkgver}/"
- make
+ _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ make KVERSION="${_kernver}"
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/"
+ #Upstream doesn't supply LICENSE file
#install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
#install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
+
install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
install -m644 Readme release_notes \
"${pkgdir}/usr/share/doc/${pkgname}"
- install -dm755 "${pkgdir}/lib/modules/$(uname -r)/drivers/net/"
- install -m755 ${pkgname}.ko "${pkgdir}/lib/modules/$(uname -r)/drivers/net/"
+
+ install -dm755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d}
+ install -m755 ${pkgname}.ko "${pkgdir}/usr/lib/modules/${_extramodules}/"
+
+ gzip "${pkgdir}"/usr/lib/modules/${_extramodules}/${pkgname%-*}.ko
+ echo ${pkgname%-*} > "${pkgdir}"/usr/lib/modules-load.d/${pkgname}.conf
+
install -dm755 "${pkgdir}/etc/pm/config.d/"
echo "SUSPEND_MODULES=${pkgname}" > "${pkgdir}/etc/pm/config.d/${pkgname}"
}
+
diff --git a/tn40xx.install b/tn40xx.install
index 3980bc2ea25..9ba194a7643 100644
--- a/tn40xx.install
+++ b/tn40xx.install
@@ -1,20 +1,14 @@
post_install() {
- for k in $(cd /lib/modules && /bin/ls); do
- [ -d "/lib/modules/$k/kernel/" ] && depmod -a "$k"
- done
+ _extramodules=extramodules-4.1-lts
+ depmod $(cat /usr/lib/modules/${_extramodules}/version)
}
post_upgrade() {
- for k in $(cd /lib/modules && /bin/ls); do
- [ -d "/lib/modules/$k/kernel/" ] && depmod -a "$k"
- done
+ post_install
}
-## arg 1: the old package version
post_remove() {
- for k in $(cd /lib/modules && /bin/ls | grep '^[0-9]'); do
- [ -d "/lib/modules/$k/kernel/" ] && depmod -a "$k"
- done
-
+ post_install
}
+