Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-laptop/laptop-mode-tools: laptop-mode-tools-1.67.ebuild ChangeLog
Date: Fri, 03 Jul 2015 15:42:21
Message-Id: 20150703154212.AB5C8743@oystercatcher.gentoo.org
1 alonbl 15/07/03 15:42:12
2
3 Modified: ChangeLog
4 Added: laptop-mode-tools-1.67.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
9
10 Revision Changes Path
11 1.101 app-laptop/laptop-mode-tools/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog?rev=1.101&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog?rev=1.101&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog?r1=1.100&r2=1.101
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v
20 retrieving revision 1.100
21 retrieving revision 1.101
22 diff -u -r1.100 -r1.101
23 --- ChangeLog 3 Jul 2015 15:38:53 -0000 1.100
24 +++ ChangeLog 3 Jul 2015 15:42:12 -0000 1.101
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-laptop/laptop-mode-tools
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.100 2015/07/03 15:38:53 alonbl Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.101 2015/07/03 15:42:12 alonbl Exp $
30 +
31 +*laptop-mode-tools-1.67 (03 Jul 2015)
32 +
33 + 03 Jul 2015; Alon Bar-Lev <alonbl@g.o> +laptop-mode-tools-1.67.ebuild:
34 + Version bump
35
36 03 Jul 2015; Alon Bar-Lev <alonbl@g.o>
37 -files/laptop-mode-tools-1.65-usb-autosuspend.patch,
38
39
40
41 1.1 app-laptop/laptop-mode-tools/laptop-mode-tools-1.67.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.67.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.67.ebuild?rev=1.1&content-type=text/plain
45
46 Index: laptop-mode-tools-1.67.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.67.ebuild,v 1.1 2015/07/03 15:42:12 alonbl Exp $
51
52 EAPI=5
53 inherit eutils multilib systemd udev
54
55 MY_P=${PN}_${PV}
56
57 DESCRIPTION="Linux kernel laptop_mode user-space utilities"
58 HOMEPAGE="http://www.samwel.tk/laptop_mode/"
59 SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 IUSE="+acpi apm bluetooth scsi"
65
66 RDEPEND="net-wireless/wireless-tools
67 sys-apps/iproute2
68 sys-apps/ethtool
69 sys-apps/hdparm
70 sys-apps/which
71 acpi? ( sys-power/acpid )
72 apm? ( sys-apps/apmd )
73 bluetooth? ( net-wireless/bluez:= )
74 scsi? ( sys-apps/sdparm )"
75 DEPEND=""
76
77 S=${WORKDIR}/${MY_P}
78
79 src_prepare() {
80 # This should avoid conflict with pm-powersave wrt #327443 and #396703
81 cat <<-EOF > "${T}"/${PN}
82 HOOK_BLACKLIST="00powersave"
83 EOF
84 }
85
86 src_compile() { :; }
87
88 src_install() {
89 DESTDIR="${D}" \
90 INIT_D="none" \
91 MAN_D="/usr/share/man" \
92 LIB_D="/usr/$(get_libdir)" \
93 UDEV_D="$(get_udevdir)" \
94 SYSTEMD_UNIT_D="$(systemd_get_unitdir)" \
95 TMPFILES_D="/usr/lib/tmpfiles.d" \
96 ACPI="$(use acpi && echo force || echo disabled)" \
97 PMU="$(false && echo force || echo disabled)" \
98 APM="$(use apm && echo force || echo disabled)" \
99 SYSTEMD=yes \
100 sh ./install.sh || die
101
102 dodoc Documentation/*.txt README.md
103 newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode
104
105 # See src_prepare()
106 insinto /etc/pm/config.d
107 doins "${T}"/${PN}
108 }
109
110 pkg_postinst() {
111 if use acpi || use apm; then
112 if use acpi; then
113 daemon_name="acpid"
114 elif use apm; then
115 deamon_name="apmd"
116 fi
117 if [ "$(rc-config list default | grep laptop_mode)" = "" ] || [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
118 ewarn "To enable automatic power state event handling,"
119 ewarn "e.g. enabling laptop_mode after unplugging the battery,"
120 ewarn "both laptop_mode and the ${daemon_name} daemon must be"
121 ewarn "added to default runlevel:"
122 if [ "$(rc-config list default | grep laptop_mode)" = "" ]; then
123 ewarn "# rc-update add laptop_mode default"
124 fi
125 if [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
126 ewarn "# rc-update add ${daemon_name} default"
127 fi
128 fi
129 else
130 ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not"
131 ewarn "automatically disable laptop_mode on low battery."
132 ewarn
133 ewarn "This means you can lose up to 10 minutes of work if running"
134 ewarn "out of battery while laptop_mode is enabled."
135 ewarn
136 ewarn "Please see laptop-mode.txt in /usr/share/doc/${PF} for further"
137 ewarn "information."
138 ewarn
139 fi
140 }