Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/vhba: vhba-20110915.ebuild ChangeLog vhba-20101015-r1.ebuild vhba-1.2.1.ebuild
Date: Wed, 23 Nov 2011 09:40:11
Message-Id: 20111123094000.368702004B@flycatcher.gentoo.org
1 tetromino 11/11/23 09:40:00
2
3 Modified: ChangeLog vhba-20101015-r1.ebuild vhba-1.2.1.ebuild
4 Added: vhba-20110915.ebuild
5 Log:
6 Bump, port to EAPI4, install udev rules in /lib/udev, and update description. (bug #369063)
7
8 (Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.25 sys-fs/vhba/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/ChangeLog?rev=1.25&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/ChangeLog?rev=1.25&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/ChangeLog?r1=1.24&r2=1.25
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/vhba/ChangeLog,v
20 retrieving revision 1.24
21 retrieving revision 1.25
22 diff -u -r1.24 -r1.25
23 --- ChangeLog 22 Nov 2011 20:39:51 -0000 1.24
24 +++ ChangeLog 23 Nov 2011 09:40:00 -0000 1.25
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-fs/vhba
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/ChangeLog,v 1.24 2011/11/22 20:39:51 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/ChangeLog,v 1.25 2011/11/23 09:40:00 tetromino Exp $
30 +
31 +*vhba-20110915 (23 Nov 2011)
32 +
33 + 23 Nov 2011; Alexandre Rostovtsev <tetromino@g.o> vhba-1.2.1.ebuild,
34 + vhba-20101015-r1.ebuild, +vhba-20110915.ebuild:
35 + Bump, port to EAPI4, install udev rules in /lib/udev, and update description.
36 + (bug #369063)
37
38 22 Nov 2011; Alexandre Rostovtsev <tetromino@g.o> metadata.xml:
39 Add myself as maintainer.
40
41
42
43 1.3 sys-fs/vhba/vhba-20101015-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/vhba-20101015-r1.ebuild?rev=1.3&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/vhba-20101015-r1.ebuild?rev=1.3&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/vhba-20101015-r1.ebuild?r1=1.2&r2=1.3
48
49 Index: vhba-20101015-r1.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/sys-fs/vhba/vhba-20101015-r1.ebuild,v
52 retrieving revision 1.2
53 retrieving revision 1.3
54 diff -u -r1.2 -r1.3
55 --- vhba-20101015-r1.ebuild 28 Apr 2011 19:01:45 -0000 1.2
56 +++ vhba-20101015-r1.ebuild 23 Nov 2011 09:40:00 -0000 1.3
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2011 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/vhba-20101015-r1.ebuild,v 1.2 2011/04/28 19:01:45 ulm Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/vhba-20101015-r1.ebuild,v 1.3 2011/11/23 09:40:00 tetromino Exp $
62
63 # Use svn snapshots:
64 # https://sourceforge.net/tracker/?func=detail&atid=603423&aid=3041832&group_id=93175
65 @@ -12,7 +12,7 @@
66 inherit linux-mod eutils
67
68 MY_P=vhba-module-${PV}
69 -DESCRIPTION="VHBA module provides Virtual (SCSI) Host Bus Adapter for the cdemu suite"
70 +DESCRIPTION="Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite"
71 HOMEPAGE="http://cdemu.org"
72 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
73
74
75
76
77 1.9 sys-fs/vhba/vhba-1.2.1.ebuild
78
79 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/vhba-1.2.1.ebuild?rev=1.9&view=markup
80 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/vhba-1.2.1.ebuild?rev=1.9&content-type=text/plain
81 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/vhba-1.2.1.ebuild?r1=1.8&r2=1.9
82
83 Index: vhba-1.2.1.ebuild
84 ===================================================================
85 RCS file: /var/cvsroot/gentoo-x86/sys-fs/vhba/vhba-1.2.1.ebuild,v
86 retrieving revision 1.8
87 retrieving revision 1.9
88 diff -u -r1.8 -r1.9
89 --- vhba-1.2.1.ebuild 28 Apr 2011 19:01:45 -0000 1.8
90 +++ vhba-1.2.1.ebuild 23 Nov 2011 09:40:00 -0000 1.9
91 @@ -1,12 +1,12 @@
92 # Copyright 1999-2011 Gentoo Foundation
93 # Distributed under the terms of the GNU General Public License v2
94 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/vhba-1.2.1.ebuild,v 1.8 2011/04/28 19:01:45 ulm Exp $
95 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/vhba-1.2.1.ebuild,v 1.9 2011/11/23 09:40:00 tetromino Exp $
96
97 EAPI="2"
98
99 inherit linux-mod eutils
100
101 -DESCRIPTION="VHBA module provides Virtual (SCSI) Host Bus Adapter for the cdemu suite"
102 +DESCRIPTION="Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite"
103 HOMEPAGE="http://cdemu.org"
104 SRC_URI="mirror://sourceforge/cdemu/vhba-module-${PV}.tar.bz2"
105
106
107
108
109 1.1 sys-fs/vhba/vhba-20110915.ebuild
110
111 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/vhba-20110915.ebuild?rev=1.1&view=markup
112 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/vhba/vhba-20110915.ebuild?rev=1.1&content-type=text/plain
113
114 Index: vhba-20110915.ebuild
115 ===================================================================
116 # Copyright 1999-2011 Gentoo Foundation
117 # Distributed under the terms of the GNU General Public License v2
118 # $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/vhba-20110915.ebuild,v 1.1 2011/11/23 09:40:00 tetromino Exp $
119
120 EAPI="4"
121
122 inherit eutils linux-mod
123
124 MY_P=vhba-module-${PV}
125 DESCRIPTION="Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite"
126 HOMEPAGE="http://cdemu.org"
127 SRC_URI="mirror://sourceforge/cdemu/${MY_P}.tar.gz"
128
129 LICENSE="GPL-2"
130 SLOT="0"
131 KEYWORDS="~amd64 ~x86"
132 IUSE=""
133
134 RDEPEND=">=sys-fs/udev-125"
135 DEPEND=""
136
137 S=${WORKDIR}/${MY_P}
138 MODULE_NAMES="vhba(block:${S})"
139 BUILD_TARGETS=all
140
141 pkg_setup() {
142 CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG"
143 check_extra_config
144 BUILD_PARAMS="KDIR=${KV_DIR}"
145 linux-mod_pkg_setup
146
147 enewgroup cdemu
148 }
149
150 src_prepare() {
151 # Avoid "make jobserver unavailable" warning
152 sed -e 's:\t$(KMAKE):\t+$(KMAKE):g' -i Makefile || die "sed failed"
153 }
154
155 src_install() {
156 dodoc AUTHORS ChangeLog README
157 linux-mod_src_install
158
159 einfo "Generating udev rules ..."
160 dodir /lib/udev/rules.d/
161 cat > "${D}"/lib/udev/rules.d/70-vhba.rules <<-EOF || die
162 # do not edit this file, it will be overwritten on update
163 #
164 KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu"
165 EOF
166 }
167
168 pkg_postinst() {
169 elog "Don't forget to add your user to the cdemu group if you want to"
170 elog "be able to use virtual cdemu devices."
171
172 # Older versions of vhba installed their rule file in /etc/udev/rules.d,
173 # which overrides rules in /lib/udev/rules.d. We remove the old file
174 # automatically if it is identical to the default one installed by
175 # vhba-1.2.1 or 20101015-r1. Note that the comment at the top of the rules
176 # file states that it can be automatically overwritten by the system.
177 old_rules="${ROOT}etc/udev/rules.d/70-vhba.rules"
178 if [[ -f "${old_rules}" ]]; then
179 case "$(md5sum ${old_rules})" in
180 2959b3cf61cfe6e466cc3516a7bc19de* | 1e7a7e5d6d28c811eeec98ec26ed5d28* )
181 elog
182 elog "Removing old ${old_rules} ..."
183 rm -f "${old_rules}" ||
184 eerror "Failed, please remove ${old_rules} manually."
185 ;;
186 * )
187 ewarn
188 ewarn "The ${old_rules} file from a previous"
189 ewarn "installation of ${PN} is overriding ${P}'s"
190 ewarn "udev rules. Unless you had deliberately customized it,"
191 ewarn "you should remove it."
192 ewarn
193 ;;
194 esac
195 fi
196
197 linux-mod_pkg_postinst
198 }