Gentoo Archives: gentoo-commits

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