diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-05 14:22:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-05 14:22:23 +0000 |
commit | 704a5293c9c0c3b035619b0032f460b0aea2186f (patch) | |
tree | def777294f507eb88c6bfb5a584cc91d327a1790 | |
parent | c11fe8f1f0df42d83447eb97b147c50ac7bcba7f (diff) | |
download | alpine_aports-704a5293c9c0c3b035619b0032f460b0aea2186f.tar.bz2 alpine_aports-704a5293c9c0c3b035619b0032f460b0aea2186f.tar.xz alpine_aports-704a5293c9c0c3b035619b0032f460b0aea2186f.zip |
main/iscsitarget-grsec: recompile for 2.6.30.4
-rw-r--r-- | main/iscsitarget-grsec/APKBUILD | 11 | ||||
-rw-r--r-- | main/iscsitarget-grsec/iscsitarget-0.4.17+linux-2.6.30.patch | 37 |
2 files changed, 45 insertions, 3 deletions
diff --git a/main/iscsitarget-grsec/APKBUILD b/main/iscsitarget-grsec/APKBUILD index a555918a8c..af00f93fa3 100644 --- a/main/iscsitarget-grsec/APKBUILD +++ b/main/iscsitarget-grsec/APKBUILD | |||
@@ -6,6 +6,7 @@ _realname=iscsitarget | |||
6 | if [ -f ../linux-$_flavor/APKBUILD ]; then | 6 | if [ -f ../linux-$_flavor/APKBUILD ]; then |
7 | . ../linux-$_flavor/APKBUILD | 7 | . ../linux-$_flavor/APKBUILD |
8 | fi | 8 | fi |
9 | _kernelver=$pkgver-r$pkgrel | ||
9 | _abi_release=$pkgver-${_flavor} | 10 | _abi_release=$pkgver-${_flavor} |
10 | 11 | ||
11 | # get pkgver from iscsitarget | 12 | # get pkgver from iscsitarget |
@@ -14,17 +15,20 @@ if [ -f ../iscsitarget/APKBUILD ]; then | |||
14 | fi | 15 | fi |
15 | pkgname=${_realname}-${_flavor} | 16 | pkgname=${_realname}-${_flavor} |
16 | pkgver=${pkgver:-0.4.17} | 17 | pkgver=${pkgver:-0.4.17} |
17 | pkgrel=3 | 18 | pkgrel=4 |
18 | pkgdesc="$_flavor kernel modules for iscsitarget" | 19 | pkgdesc="$_flavor kernel modules for iscsitarget" |
19 | url="http://iscsitarget.sourceforge.net/" | 20 | url="http://iscsitarget.sourceforge.net/" |
20 | license="GPL-2" | 21 | license="GPL-2" |
21 | depends= | 22 | #depends="linux-${_flavor}=${_kernelver}" |
23 | depends="linux-${_flavor}" | ||
22 | install= | 24 | install= |
25 | #makedepends="linux-${_flavor}-dev=${_kernelver}" | ||
23 | makedepends="linux-${_flavor}-dev" | 26 | makedepends="linux-${_flavor}-dev" |
24 | subpackages= | 27 | subpackages= |
25 | source="http://downloads.sourceforge.net/$_realname/$_realname-$pkgver.tar.gz | 28 | source="http://downloads.sourceforge.net/$_realname/$_realname-$pkgver.tar.gz |
26 | iscsitarget-0.4.17+linux-2.6.28.patch | 29 | iscsitarget-0.4.17+linux-2.6.28.patch |
27 | iscsitarget-0.4.17+linux-2.6.29.patch | 30 | iscsitarget-0.4.17+linux-2.6.29.patch |
31 | iscsitarget-0.4.17+linux-2.6.30.patch | ||
28 | " | 32 | " |
29 | 33 | ||
30 | build() { | 34 | build() { |
@@ -41,4 +45,5 @@ build() { | |||
41 | } | 45 | } |
42 | md5sums="e79b437695fc50e7d054631855a16b1b iscsitarget-0.4.17.tar.gz | 46 | md5sums="e79b437695fc50e7d054631855a16b1b iscsitarget-0.4.17.tar.gz |
43 | f58dde50f72b04b7737b33e517e56208 iscsitarget-0.4.17+linux-2.6.28.patch | 47 | f58dde50f72b04b7737b33e517e56208 iscsitarget-0.4.17+linux-2.6.28.patch |
44 | a7be10bb04c9014807e39db75c9cd468 iscsitarget-0.4.17+linux-2.6.29.patch" | 48 | a7be10bb04c9014807e39db75c9cd468 iscsitarget-0.4.17+linux-2.6.29.patch |
49 | 2f65d30d1766828fc87cac55a84e0b07 iscsitarget-0.4.17+linux-2.6.30.patch" | ||
diff --git a/main/iscsitarget-grsec/iscsitarget-0.4.17+linux-2.6.30.patch b/main/iscsitarget-grsec/iscsitarget-0.4.17+linux-2.6.30.patch new file mode 100644 index 0000000000..fa420e97b3 --- /dev/null +++ b/main/iscsitarget-grsec/iscsitarget-0.4.17+linux-2.6.30.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From cb1b94ffa91d71aba8e07ed018e9f43064e05a49 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?utf-8?q?Diego=20Elio=20'Flameeyes'=20Petten=C3=B2?= <flameeyes@gmail.com> | ||
3 | Date: Wed, 10 Jun 2009 17:24:02 +0200 | ||
4 | Subject: [PATCH 3/3] Fix building with Linux kernel 2.6.30 and later. | ||
5 | |||
6 | With commit 99b76233803beab302123d243eea9e41149804f3 the proc_dir_entry | ||
7 | structure does not have an owner any longer, this just removes the | ||
8 | assignment to make the code build with the newer kernel. | ||
9 | --- | ||
10 | kernel/config.c | 3 +++ | ||
11 | 1 files changed, 3 insertions(+), 0 deletions(-) | ||
12 | |||
13 | diff --git a/kernel/config.c b/kernel/config.c | ||
14 | index d6c4b5e..34681f5 100644 | ||
15 | --- a/kernel/config.c | ||
16 | +++ b/kernel/config.c | ||
17 | @@ -5,6 +5,7 @@ | ||
18 | */ | ||
19 | |||
20 | #include <linux/proc_fs.h> | ||
21 | +#include <linux/version.h> | ||
22 | |||
23 | #include "iscsi.h" | ||
24 | #include "iscsi_dbg.h" | ||
25 | @@ -43,7 +44,9 @@ int iet_procfs_init(void) | ||
26 | if (!(proc_iet_dir = proc_mkdir("iet", init_net.proc_net))) | ||
27 | goto err; | ||
28 | |||
29 | +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) | ||
30 | proc_iet_dir->owner = THIS_MODULE; | ||
31 | +#endif | ||
32 | |||
33 | for (i = 0; i < ARRAY_SIZE(iet_proc_entries); i++) { | ||
34 | ent = create_proc_entry(iet_proc_entries[i].name, 0, proc_iet_dir); | ||
35 | -- | ||
36 | 1.6.3.1 | ||
37 | |||