support for TP_link-TL-WDN5200

This commit is contained in:
Adrian Fedoreanu 2015-04-28 12:10:32 +01:00
parent fff40e88f3
commit 1c9e79b909
2 changed files with 10 additions and 16 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Adrian Fedoreanu <adrian.fedoreanu@gmail.com>
pkgname=dkms-mt7610
pkgver=v3.0.0.2
pkgrel=1
pkgver=v3.0.0.3
pkgrel=2
pkgdesc="Driver for Ralink/MediaTek MT7610 chipset wireless adaptors"
arch=('any')
url="http://www.ralinktech.com"
@ -11,25 +11,18 @@ conflicts=()
install=${pkgname}.install
options=(!strip)
_pkgname="mt7610"
source=("https://github.com/phedoreanu/mt7610u_wifi_sta_v3002_dpo_20130916/releases/download/v3.0.0.2/mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2"
"https://mt7601-openwrt.googlecode.com/hg/patches/002-rt2870-mt7601Usta-kuid_t-kgid_t.patch"
"https://github.com/phedoreanu/mt7610u_wifi_sta_v3002_dpo_20130916/releases/download/v3.0.0.2/0001-compiling-error-macro-__DATE__-might-prevent-reprodu.patch"
source=("https://github.com/phedoreanu/mt7610u_wifi_sta_v3002_dpo_20130916/archive/v3.0.0.3.tar.gz"
"dkms.conf")
md5sums=('2b552aff1bbd4effe94185e222eb761e'
'a12442972c9518aca6b063426d060de6'
'16e64bc827336490cca3086589a0f287'
md5sums=('893f1d25554fae13092ef1d98ec020f2'
'd470c24251bb61a06f467ec5de7b4340')
prepare() {
rm -rf ${srcdir}/$_pkgname-$pkgver
# Change src dir name
mv ${srcdir}/mt7610u_wifi_sta_v3002_dpo_20130916 ${srcdir}/$_pkgname-$pkgver
mv ${srcdir}/mt7610u_wifi_sta_v3002_dpo_20130916-3.0.0.3 ${srcdir}/$_pkgname-$pkgver
cd "${srcdir}/${_pkgname}-${pkgver}/"
patch -Np1 -i ${srcdir}/0001-compiling-error-macro-__DATE__-might-prevent-reprodu.patch
patch -Np1 -i ${srcdir}/002-rt2870-mt7601Usta-kuid_t-kgid_t.patch
}
package() {

View file

@ -1,5 +1,5 @@
pre_install(){
rm -rf /etc/Wireless/RT2860STA
rm -rf /etc/Wireless/RT2870STA
}
post_install(){
@ -15,9 +15,10 @@ post_install(){
# This file is read form a hardcoded location.
# Can we put this in a standard location?
PARAMSDIR="/etc/Wireless/RT2860STA"
PARAMSDIR="/etc/Wireless/RT2870STA"
mkdir -p $PARAMSDIR
cp $SRC_DIR/conf/RT2860STA.dat $PARAMSDIR
cp $SRC_DIR/RT2870STA.dat $PARAMSDIR
cp $SRC_DIR/RT2870STACard.dat $PARAMSDIR
depmod -a $(uname -r)
@ -44,7 +45,7 @@ pre_remove (){
dkms remove -m mt7610 -v $version --all
fi
rm -rf /etc/Wireless/RT2860STA
rm -rf /etc/Wireless/RT2870STA
#rmdir --ignore-fail-on-non-empty /etc/Wireless
}