1 |
commit: 55a219da8dd36f615b4f60a17dde987b3379ca53 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 29 17:44:19 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 29 19:32:13 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55a219da |
7 |
|
8 |
sys-apps/apmd: 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 |
sys-apps/apmd/apmd-3.2.2_p14-r1.ebuild | 79 ++++++++++++++++++++++++++++++++++ |
15 |
sys-apps/apmd/files/apmd.rc6 | 4 +- |
16 |
2 files changed, 81 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/apmd/apmd-3.2.2_p14-r1.ebuild b/sys-apps/apmd/apmd-3.2.2_p14-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..a10a659 |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/apmd/apmd-3.2.2_p14-r1.ebuild |
23 |
@@ -0,0 +1,79 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=5 |
29 |
+inherit eutils multilib toolchain-funcs |
30 |
+ |
31 |
+MY_PV=${PV%_p*} |
32 |
+MY_P=${PN}_${MY_PV} |
33 |
+PATCHV=${PV#*_p} |
34 |
+ |
35 |
+DESCRIPTION="Advanced Power Management Daemon" |
36 |
+HOMEPAGE="http://packages.qa.debian.org/a/apmd.html" |
37 |
+SRC_URI="mirror://debian/pool/main/a/apmd/${MY_P}.orig.tar.gz |
38 |
+ mirror://debian/pool/main/a/apmd/${MY_P}-${PATCHV}.diff.gz" |
39 |
+ |
40 |
+LICENSE="GPL-2" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="amd64 arm ppc ppc64 x86" |
43 |
+IUSE="nls X" |
44 |
+ |
45 |
+RDEPEND=">=sys-apps/debianutils-1.16 |
46 |
+ >=sys-power/powermgmt-base-1.31 |
47 |
+ X? ( x11-libs/libX11 |
48 |
+ x11-libs/libXaw |
49 |
+ x11-libs/libXmu |
50 |
+ x11-libs/libSM |
51 |
+ x11-libs/libICE |
52 |
+ x11-libs/libXt |
53 |
+ x11-libs/libXext )" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ sys-devel/libtool |
56 |
+ virtual/os-headers" |
57 |
+ |
58 |
+S=${WORKDIR}/${PN}-${MY_PV}.orig |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ epatch "${WORKDIR}"/${MY_P}-${PATCHV}.diff |
62 |
+ |
63 |
+ if ! use X; then |
64 |
+ sed -i \ |
65 |
+ -e 's:\(EXES=.*\)xapm:\1:' \ |
66 |
+ -e 's:\(.*\)\$(LT_INSTALL).*xapm.*$:\1echo:' \ |
67 |
+ Makefile || die |
68 |
+ fi |
69 |
+ |
70 |
+ # use system headers and skip on_ac_power |
71 |
+ rm -f on_ac_power* |
72 |
+ |
73 |
+ sed -i \ |
74 |
+ -e '/on_ac_power/d' \ |
75 |
+ -e 's:-I/usr/src/linux/include -I/usr/X11R6/include::' \ |
76 |
+ -e 's:-L/usr/X11R6/lib::' \ |
77 |
+ Makefile || die |
78 |
+} |
79 |
+ |
80 |
+src_compile() { |
81 |
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ dodir /usr/sbin |
86 |
+ emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) install |
87 |
+ |
88 |
+ keepdir /etc/apm/{event.d,suspend.d,resume.d,other.d,scripts.d} |
89 |
+ exeinto /etc/apm |
90 |
+ doexe debian/apmd_proxy |
91 |
+ dodoc AUTHORS {,apmsleep.}README debian/{changelog,README.Debian} |
92 |
+ |
93 |
+ doman *.{1,8} |
94 |
+ |
95 |
+ # note: apmd_proxy.conf is currently disabled and not used, thus |
96 |
+ # not installed - liquidx (01 Mar 2004) |
97 |
+ |
98 |
+ newconfd "${FILESDIR}"/apmd.confd apmd |
99 |
+ newinitd "${FILESDIR}"/apmd.rc6 apmd |
100 |
+ |
101 |
+ use nls || rm -rf "${D}"/usr/share/man/fr |
102 |
+} |
103 |
|
104 |
diff --git a/sys-apps/apmd/files/apmd.rc6 b/sys-apps/apmd/files/apmd.rc6 |
105 |
index bb5e009..2521dd1 100644 |
106 |
--- a/sys-apps/apmd/files/apmd.rc6 |
107 |
+++ b/sys-apps/apmd/files/apmd.rc6 |
108 |
@@ -1,5 +1,5 @@ |
109 |
-#!/sbin/runscript |
110 |
-# Copyright 1999-2004 Gentoo Foundation |
111 |
+#!/sbin/openrc-run |
112 |
+# Copyright 1999-2016 Gentoo Foundation |
113 |
# Distributed under the terms of the GNU General Public License v2 |
114 |
# $Id$ |