From 6e9042f7f4f57e1e21f25cedb99203f865c731dd Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 15 Oct 2012 12:14:46 -0200 Subject: linux-libre-kmod-alx: adding new package --- libre/linux-libre-kmod-alx/PKGBUILD | 30 ++++++++++++++++++++ .../linux-libre-kmod-alx.install | 33 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 libre/linux-libre-kmod-alx/PKGBUILD create mode 100644 libre/linux-libre-kmod-alx/linux-libre-kmod-alx.install (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD new file mode 100644 index 000000000..c2cd8175d --- /dev/null +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -0,0 +1,30 @@ +# Mantainer (Parabola): André Silva + +pkgname=('linux-libre-kmod-alx') +pkgver=20121003 +pkgrel=1 +pkgdesc='Atheros alx ethernet device driver for linux-libre kernel' +arch=('i686' 'x86_64') +url='http://linuxwireless.org/' +license=('GPL2') +makedepends=('linux-libre-headers>=3.6' 'linux-libre-headers<3.7') +install=linux-libre-kmod-alx.install +source=(http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-10-03-pc.tar.bz2) + +md5sums=('7d541af2ae06eeaaadaba5b4fbcbfb13') + + +build() { + # current extramodules version + _extraver=extramodules-3.6-LIBRE + + cd ${srcdir}/compat-wireless-2012-10-03-pc + ./scripts/driver-select alx + make + cd ${srcdir}/compat-wireless-2012-10-03-pc/compat + gzip -9 compat.ko + install -D -m 0644 compat.ko.gz ${pkgdir}/lib/modules/$_extraver/compat.ko.gz + cd ${srcdir}/compat-wireless-2012-10-03-pc/drivers/net/ethernet/atheros/alx + gzip -9 alx.ko + install -D -m 0644 alx.ko.gz ${pkgdir}/lib/modules/$_extraver/alx.ko.gz +} diff --git a/libre/linux-libre-kmod-alx/linux-libre-kmod-alx.install b/libre/linux-libre-kmod-alx/linux-libre-kmod-alx.install new file mode 100644 index 000000000..aad4270cd --- /dev/null +++ b/libre/linux-libre-kmod-alx/linux-libre-kmod-alx.install @@ -0,0 +1,33 @@ +generic() { + echo " > Running depmod now..." + depmod -a +} + +unload() { + lsmod | grep alx > /dev/null + if [ "$?" = "0" ]; then + rmmod alx + fi +} + +post_install() { + generic + echo " > Reloading alx module..." + echo " Please note that you may REBOOT your system to get it works!" + unload + sleep 0.5 + modprobe alx +} + +post_upgrade() { + post_install +} + +post_remove() { + generic + echo " > Unloading memory resident module..." + unload + rmmod compat + echo " Module unloaded!." +} + -- cgit v1.2.3 From 405a11bf28ad6280f3c78f39dc1119c0d6d1c539 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 15 Oct 2012 12:20:10 -0200 Subject: linux-libre-kmod-alx: changing makedepends line, due that is not necessary put a version for it --- libre/linux-libre-kmod-alx/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index c2cd8175d..688203d00 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -7,7 +7,7 @@ pkgdesc='Atheros alx ethernet device driver for linux-libre kernel' arch=('i686' 'x86_64') url='http://linuxwireless.org/' license=('GPL2') -makedepends=('linux-libre-headers>=3.6' 'linux-libre-headers<3.7') +makedepends=('linux-libre-headers') install=linux-libre-kmod-alx.install source=(http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-10-03-pc.tar.bz2) -- cgit v1.2.3 From b9c21148782ce99568388cc7eccb812849d04cb2 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 15 Oct 2012 12:26:33 -0200 Subject: linux-libre-kmod-alx: fixing grammar on Maintainer line description in PKGBUILD file --- libre/linux-libre-kmod-alx/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index 688203d00..01cf114bc 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -1,4 +1,4 @@ -# Mantainer (Parabola): André Silva +# Maintainer: André Silva pkgname=('linux-libre-kmod-alx') pkgver=20121003 -- cgit v1.2.3 From 8b26f6357c2aadb2350e1b1c8299923053bd1573 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 15 Oct 2012 12:41:22 -0200 Subject: linux-libre-kmod-alx: adding request a specific linux-libre version in depends and makedepends line --- libre/linux-libre-kmod-alx/PKGBUILD | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index 01cf114bc..a33a8588c 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -1,5 +1,6 @@ # Maintainer: André Silva +_kernver=3.6.2 pkgname=('linux-libre-kmod-alx') pkgver=20121003 pkgrel=1 @@ -7,7 +8,8 @@ pkgdesc='Atheros alx ethernet device driver for linux-libre kernel' arch=('i686' 'x86_64') url='http://linuxwireless.org/' license=('GPL2') -makedepends=('linux-libre-headers') +depends=("linux-libre=$_kernver") +makedepends=("linux-libre-headers=$_kernver") install=linux-libre-kmod-alx.install source=(http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-10-03-pc.tar.bz2) -- cgit v1.2.3 From 28b004cd226ac5bdef539050db037cb00890bc6e Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 15 Oct 2012 13:56:05 -0200 Subject: linux-libre-kmod-alx: adding sed to replacing to specific linux-libre kernel version when builds --- libre/linux-libre-kmod-alx/PKGBUILD | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index a33a8588c..a38a57e00 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -20,6 +20,9 @@ build() { # current extramodules version _extraver=extramodules-3.6-LIBRE + # replacing to specific linux-libre kernel version + sed -i -e 's/lib\/modules\/\$(shell uname -r)/usr\/lib\/modules\/3.6.2-1-LIBRE/' Makefile + cd ${srcdir}/compat-wireless-2012-10-03-pc ./scripts/driver-select alx make -- cgit v1.2.3 From d9055be61d414f33361397888a7dc7c2e66dcce3 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 15 Oct 2012 14:02:58 -0200 Subject: linux-libre-kmod-alx: fixing some parts on PKGBUILD to build correctly --- libre/linux-libre-kmod-alx/PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index a38a57e00..fc86511e9 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -20,10 +20,11 @@ build() { # current extramodules version _extraver=extramodules-3.6-LIBRE + cd ${srcdir}/compat-wireless-2012-10-03-pc + # replacing to specific linux-libre kernel version sed -i -e 's/lib\/modules\/\$(shell uname -r)/usr\/lib\/modules\/3.6.2-1-LIBRE/' Makefile - cd ${srcdir}/compat-wireless-2012-10-03-pc ./scripts/driver-select alx make cd ${srcdir}/compat-wireless-2012-10-03-pc/compat -- cgit v1.2.3 From 28ecb8725923a9c5f1fd17e5f75a0092cb965406 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 23 Oct 2012 01:20:49 -0200 Subject: linux-libre-kmod-alx-20121021-1: updating version --- libre/linux-libre-kmod-alx/PKGBUILD | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index fc86511e9..7f38c7f86 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -1,8 +1,10 @@ # Maintainer: André Silva -_kernver=3.6.2 +_kernver=3.6.3 +_kernrel=1 pkgname=('linux-libre-kmod-alx') -pkgver=20121003 +_pkgver=2012-10-21 +pkgver=20121021 pkgrel=1 pkgdesc='Atheros alx ethernet device driver for linux-libre kernel' arch=('i686' 'x86_64') @@ -11,26 +13,26 @@ license=('GPL2') depends=("linux-libre=$_kernver") makedepends=("linux-libre-headers=$_kernver") install=linux-libre-kmod-alx.install -source=(http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-10-03-pc.tar.bz2) +source=(http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-$_pkgver-pc.tar.bz2) -md5sums=('7d541af2ae06eeaaadaba5b4fbcbfb13') +md5sums=('b2deb38ad2623f8b68813c5565907664') build() { # current extramodules version _extraver=extramodules-3.6-LIBRE - cd ${srcdir}/compat-wireless-2012-10-03-pc + cd $srcdir/compat-wireless-$_pkgver-pc # replacing to specific linux-libre kernel version - sed -i -e 's/lib\/modules\/\$(shell uname -r)/usr\/lib\/modules\/3.6.2-1-LIBRE/' Makefile + sed -i -e "s/lib\/modules\/\$(shell uname -r)/usr\/lib\/modules\/$_kernver-$_kernrel-LIBRE/" Makefile ./scripts/driver-select alx make - cd ${srcdir}/compat-wireless-2012-10-03-pc/compat + cd $srcdir/compat-wireless-$_pkgver-pc/compat gzip -9 compat.ko - install -D -m 0644 compat.ko.gz ${pkgdir}/lib/modules/$_extraver/compat.ko.gz - cd ${srcdir}/compat-wireless-2012-10-03-pc/drivers/net/ethernet/atheros/alx + install -D -m 0644 compat.ko.gz $pkgdir/lib/modules/$_extraver/compat.ko.gz + cd $srcdir/compat-wireless-$_pkgver-pc/drivers/net/ethernet/atheros/alx gzip -9 alx.ko - install -D -m 0644 alx.ko.gz ${pkgdir}/lib/modules/$_extraver/alx.ko.gz + install -D -m 0644 alx.ko.gz $pkgdir/lib/modules/$_extraver/alx.ko.gz } -- cgit v1.2.3 From 98972a77437f7b83c3a6c627a16dbae2f272ff02 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 23 Oct 2012 04:06:49 -0200 Subject: linux-libre-kmod-alx-20121003-2: put back previous changes, due that newest version doesn't has support for alx, but new revision was added, due that linux-libre was updated --- libre/linux-libre-kmod-alx/PKGBUILD | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index 7f38c7f86..7dc94ab41 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -3,9 +3,9 @@ _kernver=3.6.3 _kernrel=1 pkgname=('linux-libre-kmod-alx') -_pkgver=2012-10-21 -pkgver=20121021 -pkgrel=1 +_pkgver=2012-10-03 +pkgver=20121003 +pkgrel=2 pkgdesc='Atheros alx ethernet device driver for linux-libre kernel' arch=('i686' 'x86_64') url='http://linuxwireless.org/' @@ -15,7 +15,7 @@ makedepends=("linux-libre-headers=$_kernver") install=linux-libre-kmod-alx.install source=(http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-$_pkgver-pc.tar.bz2) -md5sums=('b2deb38ad2623f8b68813c5565907664') +md5sums=('7d541af2ae06eeaaadaba5b4fbcbfb13') build() { -- cgit v1.2.3 From aa62d258942e43da7897dbea3118ca59b51439d8 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 29 Oct 2012 17:25:56 -0200 Subject: linux-libre-kmod-alx-20121003-3: updating revision due rebuild against linux-libre-3.6.4 --- libre/linux-libre-kmod-alx/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index 7dc94ab41..64b57eed5 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -1,11 +1,11 @@ # Maintainer: André Silva -_kernver=3.6.3 +_kernver=3.6.4 _kernrel=1 pkgname=('linux-libre-kmod-alx') _pkgver=2012-10-03 pkgver=20121003 -pkgrel=2 +pkgrel=3 pkgdesc='Atheros alx ethernet device driver for linux-libre kernel' arch=('i686' 'x86_64') url='http://linuxwireless.org/' -- cgit v1.2.3 From 21b4d45ef70d4b8ab20c7a0a6e8b4adc9db91a40 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 1 Nov 2012 23:30:04 -0200 Subject: linux-libre-kmod-alx-20121003-4: updating revision due rebuilding against linux-libre-3.6.5 --- libre/linux-libre-kmod-alx/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libre/linux-libre-kmod-alx') diff --git a/libre/linux-libre-kmod-alx/PKGBUILD b/libre/linux-libre-kmod-alx/PKGBUILD index 64b57eed5..294c5afbf 100644 --- a/libre/linux-libre-kmod-alx/PKGBUILD +++ b/libre/linux-libre-kmod-alx/PKGBUILD @@ -1,11 +1,11 @@ # Maintainer: André Silva -_kernver=3.6.4 +_kernver=3.6.5 _kernrel=1 pkgname=('linux-libre-kmod-alx') _pkgver=2012-10-03 pkgver=20121003 -pkgrel=3 +pkgrel=4 pkgdesc='Atheros alx ethernet device driver for linux-libre kernel' arch=('i686' 'x86_64') url='http://linuxwireless.org/' -- cgit v1.2.3