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