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