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