1 |
dertobi123 09/10/27 19:47:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: open-iscsi-2.0.870.3-r1.ebuild |
5 |
Removed: open-iscsi-2.0.870.3.ebuild |
6 |
Log: |
7 |
Revbump, proxy-commiting for Craig (security bug #290631) |
8 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.22 sys-block/open-iscsi/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/open-iscsi/ChangeLog?rev=1.22&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/open-iscsi/ChangeLog?rev=1.22&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/open-iscsi/ChangeLog?r1=1.21&r2=1.22 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/ChangeLog,v |
20 |
retrieving revision 1.21 |
21 |
retrieving revision 1.22 |
22 |
diff -u -r1.21 -r1.22 |
23 |
--- ChangeLog 23 Sep 2009 20:31:26 -0000 1.21 |
24 |
+++ ChangeLog 27 Oct 2009 19:47:34 -0000 1.22 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sys-block/open-iscsi |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/ChangeLog,v 1.21 2009/09/23 20:31:26 patrick Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/ChangeLog,v 1.22 2009/10/27 19:47:34 dertobi123 Exp $ |
30 |
+ |
31 |
+*open-iscsi-2.0.870.3-r1 (27 Oct 2009) |
32 |
+ |
33 |
+ 27 Oct 2009; Tobias Scherbaum <dertobi123@g.o> |
34 |
+ -open-iscsi-2.0.870.3.ebuild, +open-iscsi-2.0.870.3-r1.ebuild, |
35 |
+ +files/CVE-2009-1297.patch: |
36 |
+ Revbump, proxy-commiting for Craig (security bug #290631) |
37 |
|
38 |
23 Sep 2009; Patrick Lauer <patrick@g.o> |
39 |
open-iscsi-2.0.870.3.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-block/open-iscsi/open-iscsi-2.0.870.3-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/open-iscsi/open-iscsi-2.0.870.3-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-block/open-iscsi/open-iscsi-2.0.870.3-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: open-iscsi-2.0.870.3-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/open-iscsi-2.0.870.3-r1.ebuild,v 1.1 2009/10/27 19:47:34 dertobi123 Exp $ |
53 |
|
54 |
inherit versionator linux-mod eutils flag-o-matic |
55 |
|
56 |
DESCRIPTION="Open-iSCSI is a high performance, transport independent, multi-platform implementation of RFC3720" |
57 |
HOMEPAGE="http://www.open-iscsi.org/" |
58 |
MY_PV="${PN}-$(replace_version_separator 2 "-" $MY_PV)" |
59 |
SRC_URI="http://www.open-iscsi.org/bits/${MY_PV}.tar.gz" |
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~x86 ~amd64 ~ppc ~mips" |
63 |
IUSE="modules utils debug" |
64 |
DEPEND="virtual/linux-sources" |
65 |
RDEPEND="${DEPEND} |
66 |
virtual/modutils |
67 |
sys-apps/util-linux" |
68 |
|
69 |
S="${WORKDIR}/${MY_PV}" |
70 |
|
71 |
MODULE_NAMES_ARG="kernel/drivers/scsi:${S}/kernel" |
72 |
MODULE_NAMES="iscsi_tcp(${MODULE_NAMES_ARG}) scsi_transport_iscsi(${MODULE_NAMES_ARG}) libiscsi(${MODULE_NAMES_ARG})" |
73 |
BUILD_TARGETS="all" |
74 |
CONFIG_CHECK="CRYPTO_CRC32C" |
75 |
ERROR_CFG="open-iscsi needs CRC32C support in your kernel." |
76 |
|
77 |
src_unpack() { |
78 |
unpack ${A} |
79 |
export EPATCH_OPTS="-d${S}" |
80 |
if [ $KV_PATCH -lt 15 ]; then |
81 |
die "Sorry, your kernel must be 2.6.16-rc5 or newer!" |
82 |
fi |
83 |
epatch "${FILESDIR}"/CVE-2009-1297.patch |
84 |
} |
85 |
|
86 |
src_compile() { |
87 |
use debug && append-flags -DDEBUG_TCP -DDEBUG_SCSI |
88 |
|
89 |
if use modules; then |
90 |
einfo "Building kernel modules" |
91 |
export KSRC="${KERNEL_DIR}" |
92 |
linux-mod_src_compile || die "failed to build modules" |
93 |
fi |
94 |
|
95 |
einfo "Building fwparam_ibft" |
96 |
cd "${S}"/utils/fwparam_ibft && \ |
97 |
CFLAGS="" emake OPTFLAGS="${CFLAGS}" \ |
98 |
|| die "emake failed" |
99 |
|
100 |
einfo "Building userspace" |
101 |
cd "${S}"/usr && \ |
102 |
CFLAGS="" emake OPTFLAGS="${CFLAGS}" \ |
103 |
|| die "emake failed" |
104 |
|
105 |
if use utils; then |
106 |
einfo "Building utils" |
107 |
cd "${S}"/utils && \ |
108 |
CFLAGS="" emake OPTFLAGS="${CFLAGS}" \ |
109 |
|| die "emake failed" |
110 |
fi |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
if use modules; then |
115 |
einfo "Installing kernel modules" |
116 |
export KSRC="${KERNEL_DIR}" |
117 |
linux-mod_src_install |
118 |
fi |
119 |
|
120 |
einfo "Installing userspace" |
121 |
dosbin usr/iscsid usr/iscsiadm usr/iscsistart |
122 |
|
123 |
if use utils; then |
124 |
einfo "Installing utilities" |
125 |
dosbin utils/iscsi-iname utils/iscsi_discovery |
126 |
fi |
127 |
|
128 |
einfo "Installing docs" |
129 |
doman doc/*[1-8] |
130 |
dodoc README THANKS |
131 |
docinto test |
132 |
dodoc test/* |
133 |
|
134 |
einfo "Installing configuration" |
135 |
insinto /etc/iscsi |
136 |
doins etc/iscsid.conf |
137 |
|
138 |
# only contains iscsi initiatorname, no need to update |
139 |
if [ ! -e /etc/iscsi/initiatorname.iscsi ]; then |
140 |
doins "${FILESDIR}"/initiatorname.iscsi |
141 |
fi |
142 |
|
143 |
# if there is a special conf.d for this version, use it |
144 |
# otherwise, use the default: iscsid-conf.d |
145 |
insinto /etc/conf.d |
146 |
if [ -e "${FILESDIR}"/iscsid-${PV}.conf.d ]; then |
147 |
newins "${FILESDIR}"/iscsid-${PV}.conf.d iscsid |
148 |
else |
149 |
newins "${FILESDIR}"/iscsid-conf.d iscsid |
150 |
fi |
151 |
|
152 |
# same for init.d |
153 |
if [ -e "${FILESDIR}"/iscsid-${PV}.init.d ]; then |
154 |
newinitd "${FILESDIR}"/iscsid-${PV}.init.d iscsid |
155 |
else |
156 |
newinitd "${FILESDIR}"/iscsid-init.d iscsid |
157 |
fi |
158 |
|
159 |
keepdir /var/db/iscsi |
160 |
fperms 700 /var/db/iscsi |
161 |
fperms 600 /etc/iscsi/iscsid.conf |
162 |
} |
163 |
|
164 |
pkg_postinst() { |
165 |
linux-mod_pkg_postinst |
166 |
} |