1 |
commit: 13076ec901d7b12fbca02cb5d63b181e7ff02866 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 5 06:33:00 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 5 06:53:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13076ec9 |
7 |
|
8 |
sys-fs/vhba: Drop old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-fs/vhba/Manifest | 1 - |
13 |
sys-fs/vhba/vhba-20190302.ebuild | 81 ---------------------------------------- |
14 |
2 files changed, 82 deletions(-) |
15 |
|
16 |
diff --git a/sys-fs/vhba/Manifest b/sys-fs/vhba/Manifest |
17 |
index 35368ad5da1..667f7ec876d 100644 |
18 |
--- a/sys-fs/vhba/Manifest |
19 |
+++ b/sys-fs/vhba/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST vhba-module-20190302.tar.bz2 15708 BLAKE2B 4a6f1f22e893597e50e78fa06e1296079b600ad6b2cf7b319267ef44d1ff07795f2aca22541993a7fc57d15550297e71046ce4147226d0731aa2b4d691dd5299 SHA512 6df59112b9b0597ce98de85744acd8158dbc015841740649fa3538fec32f1d7cbf4e489062998cc13dc85a1b3558bcffc2ea65285e17ee5b3f1c0a7d49cd6a38 |
22 |
DIST vhba-module-20190410.tar.bz2 15741 BLAKE2B 6d513877c771b1c4c5805231cf8bb13333d29dd3c6de7d91879ef1898fdc424df026b0835a772f398dcdc7d8900db462164a40e46c9b66b38ed70f5b5f6a0e7e SHA512 e4b30bea8464d8ac24fd2fddca9d41052af2f5b3dc9e054ead47991bff41366be377600075627c40261722c88c20ed2eaf65fa7afb34690ef09a6f4ea6f9351f |
23 |
|
24 |
diff --git a/sys-fs/vhba/vhba-20190302.ebuild b/sys-fs/vhba/vhba-20190302.ebuild |
25 |
deleted file mode 100644 |
26 |
index 157ae2ff9f9..00000000000 |
27 |
--- a/sys-fs/vhba/vhba-20190302.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,81 +0,0 @@ |
30 |
-# Copyright 1999-2019 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI="6" |
34 |
- |
35 |
-inherit eutils linux-mod udev |
36 |
- |
37 |
-MY_P=vhba-module-${PV} |
38 |
-DESCRIPTION="Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite" |
39 |
-HOMEPAGE="http://cdemu.org" |
40 |
-SRC_URI="mirror://sourceforge/cdemu/${MY_P}.tar.bz2" |
41 |
- |
42 |
-LICENSE="GPL-2+" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="amd64 x86" |
45 |
-IUSE="" |
46 |
- |
47 |
-RDEPEND="virtual/udev" |
48 |
-DEPEND="${RDEPEND} |
49 |
- virtual/pkgconfig" |
50 |
- |
51 |
-S=${WORKDIR}/${MY_P} |
52 |
-MODULE_NAMES="vhba(block:${S})" |
53 |
-BUILD_TARGETS=modules |
54 |
- |
55 |
-pkg_setup() { |
56 |
- CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG" |
57 |
- check_extra_config |
58 |
- BUILD_PARAMS="KDIR=${KV_OUT_DIR}" |
59 |
- linux-mod_pkg_setup |
60 |
-} |
61 |
- |
62 |
-src_prepare() { |
63 |
- # Avoid "make jobserver unavailable" warning and -Werror problems |
64 |
- sed -e '/ccflags/s/-Werror$/-Wall/' \ |
65 |
- -i Makefile || die "sed failed" |
66 |
- |
67 |
- eapply_user |
68 |
-} |
69 |
- |
70 |
-src_install() { |
71 |
- dodoc AUTHORS ChangeLog README |
72 |
- linux-mod_src_install |
73 |
- |
74 |
- einfo "Generating udev rules ..." |
75 |
- dodir "$(get_udevdir)"/rules.d |
76 |
- cat > "${D}/$(get_udevdir)"/rules.d/69-vhba.rules <<-EOF || die |
77 |
- # do not edit this file, it will be overwritten on update |
78 |
- # |
79 |
- KERNEL=="vhba_ctl", SUBSYSTEM=="misc", TAG+="uaccess" |
80 |
- EOF |
81 |
-} |
82 |
- |
83 |
-pkg_postinst() { |
84 |
- # Older versions of vhba installed their rule file in /etc/udev/rules.d, |
85 |
- # which overrides rules in /lib/udev/rules.d. We remove the old file |
86 |
- # automatically if it is identical to the default one installed by |
87 |
- # vhba-1.2.1 or 20101015-r1. Note that the comment at the top of the rules |
88 |
- # file states that it can be automatically overwritten by the system. |
89 |
- old_rules="${ROOT}etc/udev/rules.d/70-vhba.rules" |
90 |
- if [[ -f "${old_rules}" ]]; then |
91 |
- case "$(md5sum ${old_rules})" in |
92 |
- 2959b3cf61cfe6e466cc3516a7bc19de* | 1e7a7e5d6d28c811eeec98ec26ed5d28* ) |
93 |
- elog |
94 |
- elog "Removing old ${old_rules} ..." |
95 |
- rm -f "${old_rules}" || |
96 |
- eerror "Failed, please remove ${old_rules} manually." |
97 |
- ;; |
98 |
- * ) |
99 |
- ewarn |
100 |
- ewarn "The ${old_rules} file from a previous" |
101 |
- ewarn "installation of ${PN} is overriding ${P}'s" |
102 |
- ewarn "udev rules. Unless you had deliberately customized it," |
103 |
- ewarn "you should remove it." |
104 |
- ewarn |
105 |
- ;; |
106 |
- esac |
107 |
- fi |
108 |
- |
109 |
- linux-mod_pkg_postinst |
110 |
-} |