1 |
commit: 049085bd1fd0bad083e9b3edc42660a2f4b649d8 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 16:50:05 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 16:50:05 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=049085bd |
7 |
|
8 |
app-laptop/tp_smapi: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
app-laptop/tp_smapi/files/tp_smapi-0.40-initd | 2 +- |
15 |
app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild | 75 +++++++++++++++++++++++++++ |
16 |
2 files changed, 76 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/app-laptop/tp_smapi/files/tp_smapi-0.40-initd b/app-laptop/tp_smapi/files/tp_smapi-0.40-initd |
19 |
index e0b3bd5..3b8c10d 100644 |
20 |
--- a/app-laptop/tp_smapi/files/tp_smapi-0.40-initd |
21 |
+++ b/app-laptop/tp_smapi/files/tp_smapi-0.40-initd |
22 |
@@ -1,4 +1,4 @@ |
23 |
-#!/sbin/runscript |
24 |
+#!/sbin/openrc-run |
25 |
# Copyright (C) 2011 Henning Schild <henning@××××××××××××××.de> |
26 |
# Copyright (C) 2011 Sebastian Pipping <sebastian@×××××××.org> |
27 |
# |
28 |
|
29 |
diff --git a/app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild b/app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..e32c1f3 |
32 |
--- /dev/null |
33 |
+++ b/app-laptop/tp_smapi/tp_smapi-0.41-r2.ebuild |
34 |
@@ -0,0 +1,75 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+ |
41 |
+inherit flag-o-matic linux-mod |
42 |
+ |
43 |
+DESCRIPTION="IBM ThinkPad SMAPI BIOS driver" |
44 |
+HOMEPAGE="https://github.com/evgeni/tp_smapi/ http://tpctl.sourceforge.net/" |
45 |
+SRC_URI="mirror://github/evgeni/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+ |
51 |
+IUSE="hdaps" |
52 |
+ |
53 |
+RESTRICT="userpriv" |
54 |
+ |
55 |
+# We need dmideode if the kernel does not support DMI_DEV_TYPE_OEM_STRING |
56 |
+# in dmi.h |
57 |
+DEPEND="sys-apps/dmidecode" |
58 |
+RDEPEND="${DEPEND}" |
59 |
+ |
60 |
+pkg_pretend() { |
61 |
+ linux-mod_pkg_setup |
62 |
+ |
63 |
+ if kernel_is lt 2 6 19; then |
64 |
+ eerror |
65 |
+ eerror "${P} requires Linux kernel 2.6.19 or above." |
66 |
+ eerror |
67 |
+ die "Unsupported kernel version" |
68 |
+ fi |
69 |
+ |
70 |
+ MODULE_NAMES="thinkpad_ec(extra:) tp_smapi(extra:)" |
71 |
+ BUILD_PARAMS="KSRC=${KV_DIR} KBUILD=${KV_OUT_DIR}" |
72 |
+ BUILD_TARGETS="default" |
73 |
+ |
74 |
+ if use hdaps; then |
75 |
+ CONFIG_CHECK="~INPUT_UINPUT" |
76 |
+ WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better" |
77 |
+ linux-info_pkg_setup |
78 |
+ |
79 |
+ MODULE_NAMES="${MODULE_NAMES} hdaps(extra:)" |
80 |
+ BUILD_PARAMS="${BUILD_PARAMS} HDAPS=1" |
81 |
+ |
82 |
+ CONFIG_CHECK="~!SENSORS_HDAPS" |
83 |
+ ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with in-kernel HDAPS (CONFIG_SENSORS_HDAPS)" |
84 |
+ linux-info_pkg_setup |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+pkg_setup() { |
89 |
+ # run again as pkg_pretend is not var safe |
90 |
+ pkg_pretend |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ # Kernel Makefiles may pull in -mpreferred-stack-boundary=3 |
95 |
+ # which requires that SSE disabled or compilation will fail. |
96 |
+ # So we need to ensure that appended user CLAGS do not re-enable SSE |
97 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=492964 |
98 |
+ replace-flags '-msse*' '' |
99 |
+ replace-flags '-mssse3' '' |
100 |
+ |
101 |
+ linux-mod_src_compile |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ linux-mod_src_install |
106 |
+ dodoc CHANGES README |
107 |
+ newinitd "${FILESDIR}"/${PN}-0.40-initd smapi |
108 |
+ newconfd "${FILESDIR}"/${PN}-0.40-confd smapi |
109 |
+} |