1 |
zzam 08/02/23 16:29:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gentoo-vdr-scripts-0.4.3.ebuild |
5 |
Log: |
6 |
Version bumped. Most visible change is support of new kernel rtc interface for wakeup and a general cleanup of the wakeup code. Should now also work with baselayout-2/openrc. |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.89 media-tv/gentoo-vdr-scripts/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog?rev=1.89&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog?rev=1.89&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog?r1=1.88&r2=1.89 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v |
19 |
retrieving revision 1.88 |
20 |
retrieving revision 1.89 |
21 |
diff -u -r1.88 -r1.89 |
22 |
--- ChangeLog 11 Dec 2007 23:16:07 -0000 1.88 |
23 |
+++ ChangeLog 23 Feb 2008 16:29:53 -0000 1.89 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for media-tv/gentoo-vdr-scripts |
26 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.88 2007/12/11 23:16:07 zzam Exp $ |
28 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.89 2008/02/23 16:29:53 zzam Exp $ |
30 |
+ |
31 |
+*gentoo-vdr-scripts-0.4.3 (23 Feb 2008) |
32 |
+ |
33 |
+ 23 Feb 2008; Matthias Schwarzott <zzam@g.o> |
34 |
+ +gentoo-vdr-scripts-0.4.3.ebuild: |
35 |
+ Version bumped. Most visible change is support of new kernel rtc interface |
36 |
+ for wakeup and a general cleanup of the wakeup code. Should now also work |
37 |
+ with baselayout-2/openrc. |
38 |
|
39 |
11 Dec 2007; Matthias Schwarzott <zzam@g.o> |
40 |
gentoo-vdr-scripts-0.4.2.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: gentoo-vdr-scripts-0.4.3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild,v 1.1 2008/02/23 16:29:53 zzam Exp $ |
54 |
|
55 |
inherit eutils |
56 |
|
57 |
DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" |
58 |
HOMEPAGE="http://www.gentoo.org/" |
59 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
60 |
http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~ppc ~x86" |
65 |
IUSE="nvram" |
66 |
|
67 |
RDEPEND="nvram? ( sys-power/nvram-wakeup ) |
68 |
app-admin/sudo |
69 |
!media-tv/vdr-dvd-scripts |
70 |
!media-tv/vdrplugin-rebuild" |
71 |
|
72 |
VDR_HOME=/var/vdr |
73 |
|
74 |
pkg_setup() { |
75 |
enewgroup vdr |
76 |
|
77 |
# Add user vdr to these groups: |
78 |
# video - accessing dvb-devices |
79 |
# audio - playing sound when using software-devices |
80 |
# cdrom - playing dvds/audio-cds ... |
81 |
enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom |
82 |
} |
83 |
|
84 |
src_install() { |
85 |
local myopts="" |
86 |
if use nvram ; then |
87 |
myopts="${myopts} NVRAM=1" |
88 |
fi |
89 |
|
90 |
emake -s install DESTDIR="${D}" ${myopts} || die "make install failed" |
91 |
dodoc README TODO ChangeLog |
92 |
|
93 |
# create necessary directories |
94 |
diropts -ovdr -gvdr |
95 |
keepdir "${VDR_HOME}" |
96 |
|
97 |
local kd |
98 |
for kd in shutdown-data merged-config-files dvd-images tmp; do |
99 |
keepdir "${VDR_HOME}/${kd}" |
100 |
done |
101 |
} |
102 |
|
103 |
pkg_preinst() { |
104 |
einfo "Smart updating /etc/conf.d/vdr.plugins" |
105 |
local PLUGINS_NEW=0 |
106 |
if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then |
107 |
PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) |
108 |
fi |
109 |
if [[ ${PLUGINS_NEW} > 0 ]]; then |
110 |
einfo "Using existing /etc/conf.d/vdr.plugins" |
111 |
cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins |
112 |
else |
113 |
einfo "Using PLUGINS from /etc/conf.d/vdr" |
114 |
local PLUGIN |
115 |
for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do |
116 |
echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins |
117 |
done |
118 |
fi |
119 |
} |
120 |
|
121 |
VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" |
122 |
|
123 |
pkg_postinst() { |
124 |
if has_version "<media-tv/gentoo-vdr-scripts-0.3.6"; then |
125 |
ewarn |
126 |
ewarn "A shutdown-file has been changed." |
127 |
ewarn "You really have to execute" |
128 |
ewarn "\temerge --config gentoo-vdr-scripts" |
129 |
ewarn "to keep shutdown working." |
130 |
ewarn |
131 |
|
132 |
ebeep 5 |
133 |
else |
134 |
elog |
135 |
elog "To make shutdown work add this line to /etc/sudoers" |
136 |
elog "\t${VDRSUDOENTRY}" |
137 |
elog |
138 |
elog "or execute this command:" |
139 |
elog "\temerge --config gentoo-vdr-scripts" |
140 |
elog |
141 |
fi |
142 |
|
143 |
if ! use nvram ; then |
144 |
elog "nvram wakeup is now optional." |
145 |
elog "To make use of it enable the use flag nvram for ${PN}" |
146 |
elog "or just emerge nvram-wakeup." |
147 |
fi |
148 |
|
149 |
if has_version "<media-tv/gentoo-vdr-scripts-0.3.7"; then |
150 |
einfo |
151 |
einfo "Plugins which should be used are now set via its" |
152 |
einfo "own config-file called /etc/conf.d/vdr.plugins" |
153 |
einfo |
154 |
einfo "Smart updating should have moved all your settings" |
155 |
einfo |
156 |
fi |
157 |
|
158 |
if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then |
159 |
ewarn |
160 |
ewarn "You have dvbsplash installed!" |
161 |
ewarn "/etc/init.d/dvbsplash will now be deleted" |
162 |
ewarn "as it causes difficult to debug problems." |
163 |
ewarn |
164 |
rm "${ROOT}/etc/init.d/dvbsplash" |
165 |
fi |
166 |
|
167 |
if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && |
168 |
grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch |
169 |
then |
170 |
ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" |
171 |
ewarn "This no longer has any effect, please use" |
172 |
ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" |
173 |
fi |
174 |
} |
175 |
|
176 |
pkg_config() { |
177 |
if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then |
178 |
einfo "sudoers-entry for vdr already in place." |
179 |
else |
180 |
einfo "Adding this line to /etc/sudoers:" |
181 |
einfo "+ ${VDRSUDOENTRY}" |
182 |
|
183 |
cd "${T}" |
184 |
cat >sudoedit-vdr.sh <<-SUDOEDITOR |
185 |
#!/bin/bash |
186 |
echo Commenting out old entry |
187 |
sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' |
188 |
echo Adding new entry |
189 |
echo "" >> \${1} |
190 |
echo "${VDRSUDOENTRY}" >> \${1} |
191 |
SUDOEDITOR |
192 |
chmod a+x sudoedit-vdr.sh |
193 |
|
194 |
VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed" |
195 |
|
196 |
einfo "Edited /etc/sudoers" |
197 |
fi |
198 |
} |
199 |
|
200 |
|
201 |
|
202 |
-- |
203 |
gentoo-commits@l.g.o mailing list |