Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

lavandero

By: a guest on Oct 11th, 2010  |  syntax: Diff  |  size: 2.29 KB  |  hits: 206  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -ru rt3090.old/PKGBUILD rt3090/PKGBUILD
  2. --- rt3090.old/PKGBUILD 2010-09-18 05:05:19.000000000 -0430
  3. +++ rt3090/PKGBUILD     2010-10-11 04:05:42.320000004 -0430
  4. @@ -3,23 +3,31 @@
  5.  # Based on rt2860 package from Marius Dransfeld <marius.dransfeld@gmail.com>
  6.  pkgname=rt3090
  7.  pkgver=2.3.1.7
  8. -pkgrel=1
  9. +pkgrel=2
  10.  pkgdesc="Drivers for rt3090 chipset wireless cards"
  11. -arch=('i686' 'x86_64')
  12. +arch=("i686" "x86_64")
  13.  url="http://www.ralinktech.com/"
  14.  license="GPL"
  15. -depends=('kernel26-headers')
  16. +depends=("kernel26>=2.6.35" "kernel26<2.6.36")
  17. +makedepends=("kernel26-headers")
  18.  conflicts=('rt2860')
  19.  install='rt3090.install'
  20.  source=('DPO_RT3090_LinuxSTA_V2.3.1.7_20100618_WiFiBTCombo_RFKill.tgz')
  21.  md5sums=('affa84f4a18ab04a03ca2d9c22c5b94a')
  22.  
  23.  build() {
  24. -    cd $srcdir/DPO_RT3090_LinuxSTA_V2.3.1.7_20100618_WiFiBTCombo_RFKill
  25. -    sed "s#\(/tftpboot\)#$pkgdir\1#" -i Makefile
  26. -    make || return 1
  27. -    install -D -m644 RT2860STA.dat $pkgdir/etc/Wireless/RT2860STA/RT2860STA.dat
  28. -    cd $srcdir/DPO_RT3090_LinuxSTA_V2.3.1.7_20100618_WiFiBTCombo_RFKill/os/linux/
  29. -    install -D -m 755 rt3090sta.ko $pkgdir/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt3090sta.ko
  30. +    cd DPO_RT3090_LinuxSTA_V2.3.1.7_20100618_WiFiBTCombo_RFKill
  31. +    sed "s,/tftpboot,$pkgdir&," -i Makefile
  32. +    make
  33.  }
  34.  
  35. +package() {
  36. +    cd DPO_RT3090_LinuxSTA_V2.3.1.7_20100618_WiFiBTCombo_RFKill
  37. +
  38. +    install -Dm644 RT2860STA.dat \
  39. +        $pkgdir/etc/Wireless/RT2860STA/RT2860STA.dat
  40. +    install -Dm644 os/linux/rt3090sta.ko \
  41. +        $pkgdir/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt3090sta.ko
  42. +
  43. +    rm -rf $pkgdir/tftpboot
  44. +}
  45. diff -ru rt3090.old/rt3090.install rt3090/rt3090.install
  46. --- rt3090.old/rt3090.install   1970-01-01 05:13:08.000000000 -0400
  47. +++ rt3090/rt3090.install       2010-10-11 04:04:25.723333337 -0430
  48. @@ -1,19 +1,11 @@
  49. - # arg 1:  the new package version
  50. - post_install() {
  51. -   depmod -a
  52. - }
  53. -  
  54. - # arg 1:  the new package version
  55. - # arg 2:  the old package version
  56. - post_upgrade() {
  57. -   post_install $1
  58. - }
  59. -    
  60. - # arg 1:  the old package version
  61. - post_remove() {
  62. -   depmod -a
  63. - }
  64. -      
  65. - op=$1
  66. - shift
  67. - $op $*
  68. +post_install() {
  69. +    depmod -a
  70. +}
  71. +
  72. +post_upgrade() {
  73. +    post_install
  74. +}
  75. +
  76. +post_remove() {
  77. +    post_install
  78. +}
  79. Only in rt3090: src