1 |
commit: 7188def42e64670b3f242e7ce5bc4871a58b48a1 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 17:34:23 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 17:34:23 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7188def4 |
7 |
|
8 |
net-wireless/irda-utils: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
net-wireless/irda-utils/files/irda.initd | 4 +- |
15 |
.../irda-utils/irda-utils-0.9.18-r6.ebuild | 105 +++++++++++++++++++++ |
16 |
2 files changed, 107 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-wireless/irda-utils/files/irda.initd b/net-wireless/irda-utils/files/irda.initd |
19 |
index c515d12..055860e 100644 |
20 |
--- a/net-wireless/irda-utils/files/irda.initd |
21 |
+++ b/net-wireless/irda-utils/files/irda.initd |
22 |
@@ -1,5 +1,5 @@ |
23 |
-#!/sbin/runscript |
24 |
-# Copyright 1999-2008 Gentoo Foundation |
25 |
+#!/sbin/openrc-run |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License, v2 |
28 |
# $Id$ |
29 |
|
30 |
|
31 |
diff --git a/net-wireless/irda-utils/irda-utils-0.9.18-r6.ebuild b/net-wireless/irda-utils/irda-utils-0.9.18-r6.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..d04d69f |
34 |
--- /dev/null |
35 |
+++ b/net-wireless/irda-utils/irda-utils-0.9.18-r6.ebuild |
36 |
@@ -0,0 +1,105 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI=5 |
42 |
+ |
43 |
+inherit eutils flag-o-matic toolchain-funcs udev |
44 |
+ |
45 |
+DESCRIPTION="IrDA management and handling utilities" |
46 |
+HOMEPAGE="http://irda.sourceforge.net" |
47 |
+SRC_URI="mirror://sourceforge/irda/${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~arm ~ppc ~sh ~x86" |
52 |
+IUSE="" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-libs/glib:2 |
56 |
+ >=sys-apps/pciutils-2.2.7-r1 |
57 |
+ sys-process/procps |
58 |
+ sys-apps/setserial |
59 |
+ sys-apps/grep |
60 |
+ virtual/udev |
61 |
+" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ virtual/pkgconfig |
64 |
+ !app-laptop/smcinit |
65 |
+" |
66 |
+ |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}/${PN}-rh1.patch" |
69 |
+ "${FILESDIR}/${P}-makefile.diff" |
70 |
+ "${FILESDIR}/${P}-smcinit.diff" |
71 |
+ "${FILESDIR}/${P}-io.h.diff" |
72 |
+ "${FILESDIR}/${P}-dofail.patch" |
73 |
+ "${FILESDIR}/${P}-asneeded.patch" |
74 |
+ "${FILESDIR}/${P}-ldflags.patch" |
75 |
+ "${FILESDIR}/${P}-headers.patch" |
76 |
+) |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ # TODO: switch to 'default' once udev.eclass is EAPI=6 clean |
80 |
+ epatch -p1 "${PATCHES[@]}" |
81 |
+ |
82 |
+ append-flags "-fno-strict-aliasing" # bug???? |
83 |
+ |
84 |
+ # fix Bug 570488 by restoring pre-GCC5 inline semantics |
85 |
+ append-cflags -std=gnu89 |
86 |
+ |
87 |
+ # fix crosscompile, respect CFLAGS (Bug 200295) |
88 |
+ sed -i -e "/^CC/s:gcc:$(tc-getCC):" \ |
89 |
+ -e "/^LD/s:ld:$(tc-getLD):" \ |
90 |
+ -e "/^AR/s:ar:$(tc-getAR):" \ |
91 |
+ -e "/^RANLIB/s:ranlib:$(tc-getRANLIB):" \ |
92 |
+ -e "/^CFLAGS/s:-O2:${CFLAGS}:" Makefile */Makefile || die |
93 |
+ |
94 |
+ # fix compile when pciutils is compiled with USE=zlib (Bug 200295) |
95 |
+ sed -i -e "s:-lpci:$(pkg-config --libs libpci):g" smcinit/Makefile || die |
96 |
+ |
97 |
+ # disable etc subdir in Makefile |
98 |
+ sed -i -e "s:^\(DIRS.*=.* \)etc \(.*\):\1\2:g" Makefile || die |
99 |
+ |
100 |
+ # disable write_pid(), because we don't need it |
101 |
+ sed -i -e "s:\(write_pid();\):/* \1 */:g" irattach/util.c || die |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ emake RPM_OPT_FLAGS="${CFLAGS}" RPM_BUILD_ROOT="${D}" ROOT="${D}" |
106 |
+} |
107 |
+ |
108 |
+src_install () { |
109 |
+ dodir /usr/bin |
110 |
+ dodir /usr/sbin |
111 |
+ |
112 |
+ emake install RPM_OPT_FLAGS="${CFLAGS}" ROOT="${D}" \ |
113 |
+ MANDIR="${D}usr/share/man" |
114 |
+ |
115 |
+ newdoc ethereal/README README.wireshark |
116 |
+ newdoc irattach/README README.irattach |
117 |
+ newdoc irdadump/README README.irdadump |
118 |
+ newdoc irdaping/README README.irdaping |
119 |
+ newdoc irsockets/README README.irsockets |
120 |
+ newdoc tekram/README README.tekram |
121 |
+ newdoc smcinit/README README.smcinit |
122 |
+ newdoc smcinit/README.Peri README.smcinit.Peri |
123 |
+ newdoc smcinit/README.Rob README.smcinit.Rob |
124 |
+ newdoc smcinit/README.Tom README.smcinit.Tom |
125 |
+ newdoc irattach/ChangeLog ChangeLog.irattach |
126 |
+ newdoc irdadump/ChangeLog ChangeLog.irdadump |
127 |
+ newdoc smcinit/ChangeLog ChangeLog.smcinit |
128 |
+ dohtml smcinit/RobMiller-irda.html |
129 |
+ dodoc README |
130 |
+ |
131 |
+ newconfd "${FILESDIR}/irda.confd" irda |
132 |
+ newinitd "${FILESDIR}/irda.initd" irda |
133 |
+ |
134 |
+ insinto /etc/modprobe.d |
135 |
+ newins "${FILESDIR}/irda.modsd" irda.conf |
136 |
+ |
137 |
+ udev_newrules "${FILESDIR}/irda.rules" 53-irda.rules |
138 |
+ exeinto "$(get_udevdir)" |
139 |
+ newexe "${FILESDIR}/irda-setup.sh" irda-setup |
140 |
+ newexe "${FILESDIR}/irda-usb.sh" irda-usb |
141 |
+} |