Gentoo Archives: gentoo-commits

From: "Krzysztof Pawlik (nelchael)" <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/hibernate-script: ChangeLog hibernate-script-2.0-r4.ebuild
Date: Wed, 30 Nov 2011 19:22:41
Message-Id: 20111130192225.C27962004B@flycatcher.gentoo.org
1 nelchael 11/11/30 19:22:25
2
3 Modified: ChangeLog
4 Added: hibernate-script-2.0-r4.ebuild
5 Log:
6 Version bump, changes opts to extra_started_commands in init.d script, see bug #385643.
7
8 (Portage version: 2.1.10.38/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.90 sys-power/hibernate-script/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/hibernate-script/ChangeLog?rev=1.90&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/hibernate-script/ChangeLog?rev=1.90&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/hibernate-script/ChangeLog?r1=1.89&r2=1.90
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v
20 retrieving revision 1.89
21 retrieving revision 1.90
22 diff -u -r1.89 -r1.90
23 --- ChangeLog 6 Feb 2011 18:23:45 -0000 1.89
24 +++ ChangeLog 30 Nov 2011 19:22:25 -0000 1.90
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-power/hibernate-script
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.89 2011/02/06 18:23:45 nelchael Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/ChangeLog,v 1.90 2011/11/30 19:22:25 nelchael Exp $
30 +
31 +*hibernate-script-2.0-r4 (30 Nov 2011)
32 +
33 + 30 Nov 2011; Krzysztof Pawlik <nelchael@g.o>
34 + +hibernate-script-2.0-r4.ebuild:
35 + Version bump, changes opts to extra_started_commands in init.d script, see
36 + bug #385643.
37
38 *hibernate-script-2.0-r3 (06 Feb 2011)
39
40
41
42
43 1.1 sys-power/hibernate-script/hibernate-script-2.0-r4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/hibernate-script/hibernate-script-2.0-r4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/hibernate-script/hibernate-script-2.0-r4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: hibernate-script-2.0-r4.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-power/hibernate-script/hibernate-script-2.0-r4.ebuild,v 1.1 2011/11/30 19:22:25 nelchael Exp $
53
54 EAPI=2
55
56 inherit eutils
57
58 PATCH_VERSION="2"
59
60 DESCRIPTION="Hibernate script supporting multiple suspend methods"
61 HOMEPAGE="http://www.tuxonice.net/"
62 SRC_URI="http://www.tuxonice.net/downloads/all/${P}.tar.gz
63 mirror://gentoo/${P}-patches-${PATCH_VERSION}.tar.bz2"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~x86"
68
69 IUSE="vim-syntax"
70
71 DEPEND=""
72 RDEPEND="!<media-gfx/splashutils-1.5.2"
73
74 src_prepare() {
75 epatch "${WORKDIR}/${PV}/"*.patch
76 }
77
78 src_install() {
79 BASE_DIR="${D}" \
80 DISTRIBUTION="gentoo" \
81 PREFIX="/usr" \
82 MAN_DIR="${D}/usr/share/man" \
83 "${S}/install.sh" || die "Install failed"
84
85 # hibernate-ram will default to using ram.conf
86 dosym /usr/sbin/hibernate /usr/sbin/hibernate-ram
87
88 newinitd "${S}"/init.d/hibernate-cleanup.sh hibernate-cleanup
89
90 # other ebuilds can install scriplets to this dir
91 keepdir /etc/hibernate/scriptlets.d/
92
93 if use vim-syntax; then
94 insinto /usr/share/vim/vimfiles/syntax
95 doins hibernate.vim
96 fi
97
98 dodoc CHANGELOG README SCRIPTLET-API hibernate.vim
99
100 insinto /etc/logrotate.d
101 newins "${S}"/logrotate.d-hibernate-script hibernate-script
102 chmod 644 \
103 "${D}/etc/hibernate/"*.conf \
104 "${D}/etc/hibernate/blacklisted-modules" \
105 "${D}/usr/share/hibernate/scriptlets.d/"* \
106 "${D}/usr/share/hibernate/tuxonice-binary-signature.bin" \
107 || die
108 }
109
110 pkg_postinst() {
111 elog
112 elog "You should run the following command to invalidate suspend"
113 elog "images on a clean boot."
114 elog
115 elog " # rc-update add hibernate-cleanup boot"
116 elog
117 elog "See /usr/share/doc/${PF}/README.* for further details."
118 elog
119 elog "Please note that you will need to manually emerge any utilities"
120 elog "(radeontool, vbetool, ...) enabled in the configuration files,"
121 elog "should you wish to use them."
122 }