Gentoo Archives: gentoo-commits

From: Joerg Bornkessel <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/gentoo-vdr-scripts/
Date: Sun, 15 Dec 2019 01:06:14
Message-Id: 1576371914.832251698a5928764e2aeb6486cbb07f82a42944.hd_brummy@gentoo
1 commit: 832251698a5928764e2aeb6486cbb07f82a42944
2 Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 15 01:05:14 2019 +0000
4 Commit: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 15 01:05:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83225169
7
8 media-tv/gentoo-vdr-scripts: bump to 2.8
9
10 this bump will fix:
11 SYMLINK_LIB=no / 17.1 profiles break VDR plugins
12 fails to shutdown pc for sleep
13 shuts the vdr down even if nvram-wakup fails
14 disabled login for user vdr
15 ebuild cleanup
16 cleanup old
17
18 Bug: https://bugs.gentoo.org/688174
19 Bug: https://bugs.gentoo.org/646518
20 Bug: https://bugs.gentoo.org/298785
21 Closes: https://bugs.gentoo.org/688174
22 Closes: https://bugs.gentoo.org/646518
23 Closes: https://bugs.gentoo.org/298785
24 Package-Manager: Portage-2.3.81, Repoman-2.3.18
25 Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org>
26
27 media-tv/gentoo-vdr-scripts/Manifest | 6 +-
28 .../gentoo-vdr-scripts-2.0.0.ebuild | 130 --------------------
29 .../gentoo-vdr-scripts-2.5.ebuild | 133 --------------------
30 .../gentoo-vdr-scripts-2.7.2.ebuild | 135 ---------------------
31 .../gentoo-vdr-scripts-2.7.5.ebuild | 130 --------------------
32 .../gentoo-vdr-scripts-2.7.ebuild | 135 ---------------------
33 .../gentoo-vdr-scripts-2.8.ebuild | 82 +++++++++++++
34 7 files changed, 83 insertions(+), 668 deletions(-)
35
36 diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest
37 index d95af15c2ea..32cdcfe2b74 100644
38 --- a/media-tv/gentoo-vdr-scripts/Manifest
39 +++ b/media-tv/gentoo-vdr-scripts/Manifest
40 @@ -1,7 +1,3 @@
41 -DIST gentoo-vdr-scripts-2.0.0.tar.bz2 37438 BLAKE2B b7662b188809d17bd08186eb44444811408cbbaf37dfadc52d75f3d2ecdc934f68cf60c4631b1e92425e0cc827d1901763dd0e90ef049d68f9c851a35beac735 SHA512 0214b390e1e4fe4f65ceb940a1d092f88fe5263eda3c97ebfa7d2925a772165af3a3c62bfc964e577e374ce723aefccb29082f8219fda918ad17f966ad8ad392
42 -DIST gentoo-vdr-scripts-2.5.tar.bz2 39893 BLAKE2B 5cfee26bd0187776169c5fd23e95681be2bfd4e983cb45c17c2479e29b270e241a898609ecc0619ca367d1c21bac11fd1b0f3f6a7d335b4bc38f36dd52fea802 SHA512 bed3db4e3c4f8195d5715d274a32485d067fa2e539ace417c2d73bac1294d46736754be589d5e18b77e0baa1b4d9cd7df5ff8a13db2850d92d2eb992f9b131a6
43 -DIST gentoo-vdr-scripts-2.7.2.tar.bz2 48584 BLAKE2B f2841f0d996f2db025d06d80b54c07fdbbcac6d131ff534447ad940ed5d7af6fb2fa14ca6280f9973e11fd2a7ae6019e0a118d01822829891eb11cd3ed66b272 SHA512 cb0297c7e78e4c110097d1c08a5f6642d8194d01dd47308f7a41c6d76f7b1675cc612d47a7725eb4f47a393086b034ca09703af0867ae02a36af4be12701f861
44 DIST gentoo-vdr-scripts-2.7.3.tar.bz2 49156 BLAKE2B b5aaeb2cc704a2d43e05cb30cc6ea0d01f6f1b00dbfdf8a61d87cfc0360a86f2e7fb10daaeae7210eac46bca36ce72e4e928e1ce0752ffa3343fac83392b530b SHA512 9d00acaf77bbbf52f4a4d4b8284d94b9d191c354de52ea6f7bba0751be661feec4915cca20be3d24a0471efe4b3f24c5dcc025e3e8b0cc6b2c37f8843b91a520
45 DIST gentoo-vdr-scripts-2.7.5.1.tar.bz2 49537 BLAKE2B a6f01cc7b30b8d289317cbebed21bd4790865ebcf2f9f1b81375a35332784d2f2603aabb852808cca764dbd748469f815dbd83b296d71249dd6a4fd2709a6e31 SHA512 5b8f91f73ee42e290966eb9ae95b020b0a2c16f9d2c4eb79766934b8fa2e6bf415db20325254c0c6058abb868b010eb4180acc3714c18b47a5be390ee3e928c9
46 -DIST gentoo-vdr-scripts-2.7.5.tar.bz2 49457 BLAKE2B 8c5bb9ee6369ee5b5e9b4bf392116b4f7b08d097b73b8790b4e2e6c1bc8ae9cc0f8f0eddf489af154e2ed5a964d7fce560e901a77f3886604c675dfc72550fc8 SHA512 b79460ae73c1914b0057d44469c0ac3e30feab3fc9fa91af618a0753f5061184110af6f2426d0638861e899fe7ef8ddc749bee631e95dbf52da9d32ae3ae7afe
47 -DIST gentoo-vdr-scripts-2.7.tar.bz2 46618 BLAKE2B 5677506d8e798ff5a9f1968f6d63baa93cf049b24674ed1be23f4a7d10aa67213c4c20cfa95e3b3091be851aa1ce87eb901df076a3a3b7635b5d897bb978fe45 SHA512 95db4d2632d07cc86394fbc2898050d47175f01cc60b61230ba5363c770ba6ad5c5935987ac6a1131bc575887633ed6c8f6242f7de225fc875d0871123665bc5
48 +DIST gentoo-vdr-scripts-2.8.tar.bz2 49662 BLAKE2B 1a49d03441c991f6aa08cefc3b6d3a926a18ef7cb6c97bef886f922901f681ab95e9b60648d3930136148dafdf87f702d564e5a89fb6945ef9ed0cec1c2fbbaa SHA512 587bfc329efb92f1d9d9f87b3eb88ff9c74f92587d20c1489e67c861c769f9cb307bd6314aa88dc7d2a1400bc408033b913093b8f219fa59857638f2d062eecf
49
50 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.0.0.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.0.0.ebuild
51 deleted file mode 100644
52 index 9bcc52db694..00000000000
53 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.0.0.ebuild
54 +++ /dev/null
55 @@ -1,130 +0,0 @@
56 -# Copyright 1999-2013 Gentoo Foundation
57 -# Distributed under the terms of the GNU General Public License v2
58 -
59 -EAPI="5"
60 -
61 -inherit eutils user
62 -
63 -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box"
64 -HOMEPAGE="https://www.gentoo.org/"
65 -SRC_URI="mirror://gentoo/${P}.tar.bz2
66 - https://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2"
67 -
68 -LICENSE="GPL-2"
69 -SLOT="0"
70 -KEYWORDS="amd64 ~arm ~ppc x86"
71 -IUSE="nvram"
72 -
73 -RDEPEND="nvram? ( sys-power/nvram-wakeup )
74 - app-admin/sudo
75 - sys-process/wait_on_pid"
76 -
77 -VDR_HOME=/var/vdr
78 -
79 -pkg_setup() {
80 - enewgroup vdr
81 -
82 - # Add user vdr to these groups:
83 - # video - accessing dvb-devices
84 - # audio - playing sound when using software-devices
85 - # cdrom - playing dvds/audio-cds ...
86 - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom
87 -}
88 -
89 -src_prepare() {
90 - # moved into own package
91 - sed -e '/SUBDIRS =/s# bin # #' -i usr/Makefile
92 - sed -e '/all:/s#compile##' -i Makefile
93 -}
94 -
95 -src_install() {
96 - emake -s install DESTDIR="${D}"
97 - dodoc README TODO ChangeLog README.grub2
98 -
99 - # create necessary directories
100 - diropts -ovdr -gvdr
101 - keepdir "${VDR_HOME}"
102 -
103 - local kd
104 - for kd in shutdown-data merged-config-files dvd-images tmp; do
105 - keepdir "${VDR_HOME}/${kd}"
106 - done
107 -}
108 -
109 -pkg_preinst() {
110 - local PLUGINS_NEW=0
111 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then
112 - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l)
113 - fi
114 - if [[ ${PLUGINS_NEW} > 0 ]]; then
115 - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins
116 - else
117 - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins"
118 - local PLUGIN
119 - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do
120 - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins
121 - done
122 - fi
123 -
124 - has_version "<${CATEGORY}/${PN}-0.5.4"
125 - previous_less_than_0_5_4=$?
126 -}
127 -
128 -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
129 -
130 -pkg_postinst() {
131 - if [[ $previous_less_than_0_5_4 = 0 ]] ; then
132 - einfo "\nVDR use now default the --cachedir parameter to store the epg.file"
133 - einfo "Please do not override this with the EPGFILE variable\n"
134 -
135 - einfo "svdrp port 2001 support removed\n"
136 -
137 - einfo "--rcu support removed, use media-plugin/vdr-rcu\n"
138 - fi
139 -
140 - elog "nvram wakeup is optional."
141 - elog "To make use of it emerge sys-power/nvram-wakeup."
142 - elog
143 -
144 - elog "Plugins which should be used are now set via its"
145 - elog "own config-file called /etc/conf.d/vdr.plugins"
146 - elog "or enabled via the frontend eselect vdr-plugin."
147 - elog
148 -
149 - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then
150 - ewarn
151 - ewarn "You have dvbsplash installed!"
152 - ewarn "/etc/init.d/dvbsplash will now be deleted"
153 - ewarn "as it causes difficult to debug problems."
154 - ewarn
155 - rm "${ROOT}/etc/init.d/dvbsplash"
156 - fi
157 -
158 - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] &&
159 - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch
160 - then
161 - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch"
162 - ewarn "This no longer has any effect, please use"
163 - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd"
164 - fi
165 -}
166 -
167 -pkg_config() {
168 - if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then
169 -
170 - einfo "Removing depricated entry from /etc/sudoers:"
171 - einfo "- ${VDRSUDOENTRY}"
172 -
173 - cd "${T}"
174 - cat >sudoedit-vdr.sh <<-SUDOEDITOR
175 - #!/bin/bash
176 - sed -i \${1} -e '/\/usr\/share\/vdr\/bin\/vdrshutdown-really.sh *$/d'
177 -
178 - SUDOEDITOR
179 - chmod a+x sudoedit-vdr.sh
180 -
181 - VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed"
182 -
183 - einfo "Edited /etc/sudoers"
184 - fi
185 -}
186
187 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.5.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.5.ebuild
188 deleted file mode 100644
189 index 8336694cbce..00000000000
190 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.5.ebuild
191 +++ /dev/null
192 @@ -1,133 +0,0 @@
193 -# Copyright 1999-2015 Gentoo Foundation
194 -# Distributed under the terms of the GNU General Public License v2
195 -
196 -EAPI=5
197 -
198 -inherit eutils user
199 -
200 -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box"
201 -HOMEPAGE="https://www.gentoo.org/"
202 -SRC_URI="mirror://gentoo/${P}.tar.bz2
203 - https://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2"
204 -
205 -LICENSE="GPL-2"
206 -SLOT="0"
207 -KEYWORDS="amd64 ~arm ~ppc x86"
208 -IUSE="nvram"
209 -
210 -RDEPEND="nvram? ( sys-power/nvram-wakeup )
211 - app-admin/sudo
212 - sys-process/wait_on_pid"
213 -
214 -VDR_HOME=/var/vdr
215 -
216 -pkg_setup() {
217 - enewgroup vdr
218 -
219 - # Add user vdr to these groups:
220 - # video - accessing dvb-devices
221 - # audio - playing sound when using software-devices
222 - # cdrom - playing dvds/audio-cds ...
223 - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom
224 -}
225 -
226 -src_prepare() {
227 - # moved into own package
228 - sed -e '/SUBDIRS =/s# bin # #' -i usr/Makefile
229 - sed -e '/all:/s#compile##' -i Makefile
230 -}
231 -
232 -src_install() {
233 - emake -s install DESTDIR="${D}"
234 - dodoc README TODO ChangeLog README.grub2 README.shutdown README.shutdown-jobs README.systemd README.vdrcaps
235 -
236 - # create necessary directories
237 - diropts -ovdr -gvdr
238 - keepdir "${VDR_HOME}"
239 -
240 - local kd
241 - for kd in shutdown-data merged-config-files dvd-images tmp; do
242 - keepdir "${VDR_HOME}/${kd}"
243 - done
244 -}
245 -
246 -pkg_preinst() {
247 - local PLUGINS_NEW=0
248 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then
249 - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l)
250 - fi
251 - if [[ ${PLUGINS_NEW} > 0 ]]; then
252 - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins
253 - else
254 - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins"
255 - local PLUGIN
256 - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do
257 - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins
258 - done
259 - fi
260 -
261 - has_version "<${CATEGORY}/${PN}-0.5.4"
262 - previous_less_than_0_5_4=$?
263 -}
264 -
265 -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
266 -
267 -pkg_postinst() {
268 - if [[ $previous_less_than_0_5_4 = 0 ]] ; then
269 - einfo "\nVDR use now default the --cachedir parameter to store the epg.file"
270 - einfo "Please do not override this with the EPGFILE variable\n"
271 -
272 - einfo "svdrp port 2001 support removed\n"
273 -
274 - einfo "--rcu support removed, use media-plugin/vdr-rcu\n"
275 - fi
276 -
277 - elog "nvram wakeup is optional."
278 - elog "To make use of it emerge sys-power/nvram-wakeup."
279 - elog
280 -
281 - elog "Plugins which should be used are now set via its"
282 - elog "own config-file called /etc/conf.d/vdr.plugins"
283 - elog "or enabled via the frontend eselect vdr-plugin."
284 - elog
285 -
286 - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then
287 - ewarn
288 - ewarn "You have dvbsplash installed!"
289 - ewarn "/etc/init.d/dvbsplash will now be deleted"
290 - ewarn "as it causes difficult to debug problems."
291 - ewarn
292 - rm "${ROOT}/etc/init.d/dvbsplash"
293 - fi
294 -
295 - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] &&
296 - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch
297 - then
298 - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch"
299 - ewarn "This no longer has any effect, please use"
300 - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd"
301 - fi
302 -
303 - einfo "systemd is now supported by gentoo-vdr-scripts"
304 - einfo "Please read for detailed info on this vdr's README.systemd"
305 -}
306 -
307 -pkg_config() {
308 - if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then
309 -
310 - einfo "Removing depricated entry from /etc/sudoers:"
311 - einfo "- ${VDRSUDOENTRY}"
312 -
313 - cd "${T}"
314 - cat >sudoedit-vdr.sh <<-SUDOEDITOR
315 - #!/bin/bash
316 - sed -i \${1} -e '/\/usr\/share\/vdr\/bin\/vdrshutdown-really.sh *$/d'
317 -
318 - SUDOEDITOR
319 - chmod a+x sudoedit-vdr.sh
320 -
321 - VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed"
322 -
323 - einfo "Edited /etc/sudoers"
324 - fi
325 -}
326
327 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.2.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.2.ebuild
328 deleted file mode 100644
329 index 80c34f17a1c..00000000000
330 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.2.ebuild
331 +++ /dev/null
332 @@ -1,135 +0,0 @@
333 -# Copyright 1999-2015 Gentoo Foundation
334 -# Distributed under the terms of the GNU General Public License v2
335 -
336 -EAPI=5
337 -
338 -inherit eutils user
339 -
340 -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box"
341 -HOMEPAGE="https://www.gentoo.org/"
342 -SRC_URI="mirror://gentoo/${P}.tar.bz2
343 - https://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2"
344 -
345 -LICENSE="GPL-2"
346 -SLOT="0"
347 -KEYWORDS="~amd64 ~arm ~ppc ~x86"
348 -IUSE="nvram"
349 -
350 -RDEPEND="nvram? ( sys-power/nvram-wakeup )
351 - app-admin/sudo
352 - sys-process/wait_on_pid"
353 -
354 -VDR_HOME=/var/vdr
355 -
356 -pkg_setup() {
357 - enewgroup vdr
358 -
359 - # Add user vdr to these groups:
360 - # video - accessing dvb-devices
361 - # audio - playing sound when using software-devices
362 - # cdrom - playing dvds/audio-cds ...
363 - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom
364 -}
365 -
366 -src_prepare() {
367 - # moved into own package
368 - sed -e '/SUBDIRS =/s# bin # #' -i usr/Makefile
369 - sed -e '/all:/s#compile##' -i Makefile
370 -}
371 -
372 -src_install() {
373 - default
374 - dodoc README* TODO ChangeLog
375 -
376 - # create necessary directories
377 - diropts -ovdr -gvdr
378 - keepdir "${VDR_HOME}"
379 -
380 - local kd
381 - for kd in shutdown-data merged-config-files dvd-images; do
382 - keepdir "${VDR_HOME}/${kd}"
383 - done
384 -}
385 -
386 -pkg_preinst() {
387 - local PLUGINS_NEW=0
388 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then
389 - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l)
390 - fi
391 - if [[ ${PLUGINS_NEW} > 0 ]]; then
392 - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins
393 - else
394 - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins"
395 - local PLUGIN
396 - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do
397 - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins
398 - done
399 - fi
400 -
401 - has_version "<${CATEGORY}/${PN}-0.5.4"
402 - previous_less_than_0_5_4=$?
403 -
404 - has_version "<${CATEGORY}/${PN}-2.6"
405 - previous_less_than_2_6=$?
406 -}
407 -
408 -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
409 -
410 -pkg_postinst() {
411 - if [[ $previous_less_than_0_5_4 = 0 ]] ; then
412 - elog "\nVDR use now default the --cachedir parameter to store the epg.file"
413 - elog "Please do not override this with the EPGFILE variable\n"
414 -
415 - elog "svdrp port 2001 support removed\n"
416 -
417 - elog "--rcu support removed, use media-plugin/vdr-rcu\n"
418 - fi
419 -
420 - if [[ $previous_less_than_2_6 = 0 ]]; then
421 - elog "${CATEGORY}/${PN} supports now a init script"
422 - elog "to start a X server"
423 - elog "Please refer for detailed info to"
424 - elog "${CATGORY}/${PN} README.x11-setup\n"
425 - fi
426 -
427 - if use nvram; then
428 - elog "nvram wakeup is optional."
429 - elog "To make use of it emerge sys-power/nvram-wakeup.\n"
430 - fi
431 -
432 - elog "Plugins which should be used are now set via its"
433 - elog "own config-file called /etc/conf.d/vdr.plugins"
434 - elog "or enabled via the frontend eselect vdr-plugin.\n"
435 -
436 - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] &&
437 - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch
438 - then
439 - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch"
440 - ewarn "This no longer has any effect, please use"
441 - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd"
442 - fi
443 -
444 - elog "systemd is supported by ${CATEGORY}/${PN}"
445 - elog "Please read for detailed info on this"
446 - elog "${CATEGORY}/${PN} README.systemd"
447 -}
448 -
449 -pkg_config() {
450 - if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then
451 -
452 - einfo "Removing depricated entry from /etc/sudoers:"
453 - einfo "- ${VDRSUDOENTRY}"
454 -
455 - cd "${T}"
456 - cat >sudoedit-vdr.sh <<-SUDOEDITOR
457 - #!/bin/bash
458 - sed -i \${1} -e '/\/usr\/share\/vdr\/bin\/vdrshutdown-really.sh *$/d'
459 -
460 - SUDOEDITOR
461 - chmod a+x sudoedit-vdr.sh
462 -
463 - VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed"
464 -
465 - einfo "Edited /etc/sudoers"
466 - fi
467 -}
468
469 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.5.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.5.ebuild
470 deleted file mode 100644
471 index 6fdabc3dcf2..00000000000
472 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.5.ebuild
473 +++ /dev/null
474 @@ -1,130 +0,0 @@
475 -# Copyright 1999-2015 Gentoo Foundation
476 -# Distributed under the terms of the GNU General Public License v2
477 -
478 -EAPI=6
479 -
480 -inherit user
481 -
482 -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box"
483 -HOMEPAGE="https://www.gentoo.org/"
484 -SRC_URI="mirror://gentoo/${P}.tar.bz2
485 - https://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2"
486 -
487 -LICENSE="GPL-2"
488 -SLOT="0"
489 -KEYWORDS="~amd64 ~arm ~ppc ~x86"
490 -IUSE="nvram"
491 -
492 -RDEPEND="nvram? ( sys-power/nvram-wakeup )
493 - app-admin/sudo
494 - sys-process/wait_on_pid"
495 -
496 -VDR_HOME=/var/vdr
497 -
498 -pkg_setup() {
499 - enewgroup vdr
500 -
501 - # Add user vdr to these groups:
502 - # video - accessing dvb-devices
503 - # audio - playing sound when using software-devices
504 - # cdrom - playing dvds/audio-cds ...
505 - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom
506 -}
507 -
508 -src_install() {
509 - local DOCS=( README* TODO ChangeLog )
510 -
511 - default
512 -
513 - # create necessary directories
514 - diropts -ovdr -gvdr
515 - keepdir "${VDR_HOME}"
516 -
517 - local kd
518 - for kd in shutdown-data merged-config-files dvd-images; do
519 - keepdir "${VDR_HOME}/${kd}"
520 - done
521 -}
522 -
523 -pkg_preinst() {
524 - local PLUGINS_NEW=0
525 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then
526 - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l)
527 - fi
528 - if [[ ${PLUGINS_NEW} > 0 ]]; then
529 - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins
530 - else
531 - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins"
532 - local PLUGIN
533 - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do
534 - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins
535 - done
536 - fi
537 -
538 - has_version "<${CATEGORY}/${PN}-0.5.4"
539 - previous_less_than_0_5_4=$?
540 -
541 - has_version "<${CATEGORY}/${PN}-2.6"
542 - previous_less_than_2_6=$?
543 -}
544 -
545 -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
546 -
547 -pkg_postinst() {
548 - if [[ $previous_less_than_0_5_4 = 0 ]] ; then
549 - elog "\nVDR use now default the --cachedir parameter to store the epg.file"
550 - elog "Please do not override this with the EPGFILE variable\n"
551 -
552 - elog "svdrp port 2001 support removed\n"
553 -
554 - elog "--rcu support removed, use media-plugin/vdr-rcu\n"
555 - fi
556 -
557 - if [[ $previous_less_than_2_6 = 0 ]]; then
558 - elog "${CATEGORY}/${PN} supports now a init script"
559 - elog "to start a X server"
560 - elog "Please refer for detailed info to"
561 - elog "${CATGORY}/${PN} README.x11-setup\n"
562 - fi
563 -
564 - if use nvram; then
565 - elog "nvram wakeup is optional."
566 - elog "To make use of it emerge sys-power/nvram-wakeup.\n"
567 - fi
568 -
569 - elog "Plugins which should be used are now set via its"
570 - elog "own config-file called /etc/conf.d/vdr.plugins"
571 - elog "or enabled via the frontend eselect vdr-plugin.\n"
572 -
573 - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] &&
574 - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch
575 - then
576 - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch"
577 - ewarn "This no longer has any effect, please use"
578 - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd"
579 - fi
580 -
581 - elog "systemd is supported by ${CATEGORY}/${PN}"
582 - elog "Please read for detailed info on this"
583 - elog "${CATEGORY}/${PN} README.systemd"
584 -}
585 -
586 -pkg_config() {
587 - if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then
588 -
589 - einfo "Removing depricated entry from /etc/sudoers:"
590 - einfo "- ${VDRSUDOENTRY}"
591 -
592 - cd "${T}"
593 - cat >sudoedit-vdr.sh <<-SUDOEDITOR
594 - #!/bin/bash
595 - sed -i \${1} -e '/\/usr\/share\/vdr\/bin\/vdrshutdown-really.sh *$/d'
596 -
597 - SUDOEDITOR
598 - chmod a+x sudoedit-vdr.sh
599 -
600 - VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed"
601 -
602 - einfo "Edited /etc/sudoers"
603 - fi
604 -}
605
606 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.ebuild
607 deleted file mode 100644
608 index 50266d56682..00000000000
609 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.ebuild
610 +++ /dev/null
611 @@ -1,135 +0,0 @@
612 -# Copyright 1999-2015 Gentoo Foundation
613 -# Distributed under the terms of the GNU General Public License v2
614 -
615 -EAPI=5
616 -
617 -inherit eutils user
618 -
619 -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box"
620 -HOMEPAGE="https://www.gentoo.org/"
621 -SRC_URI="mirror://gentoo/${P}.tar.bz2
622 - https://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2"
623 -
624 -LICENSE="GPL-2"
625 -SLOT="0"
626 -KEYWORDS="amd64 ~arm ~ppc x86"
627 -IUSE="nvram"
628 -
629 -RDEPEND="nvram? ( sys-power/nvram-wakeup )
630 - app-admin/sudo
631 - sys-process/wait_on_pid"
632 -
633 -VDR_HOME=/var/vdr
634 -
635 -pkg_setup() {
636 - enewgroup vdr
637 -
638 - # Add user vdr to these groups:
639 - # video - accessing dvb-devices
640 - # audio - playing sound when using software-devices
641 - # cdrom - playing dvds/audio-cds ...
642 - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom
643 -}
644 -
645 -src_prepare() {
646 - # moved into own package
647 - sed -e '/SUBDIRS =/s# bin # #' -i usr/Makefile
648 - sed -e '/all:/s#compile##' -i Makefile
649 -}
650 -
651 -src_install() {
652 - default
653 - dodoc README* TODO ChangeLog
654 -
655 - # create necessary directories
656 - diropts -ovdr -gvdr
657 - keepdir "${VDR_HOME}"
658 -
659 - local kd
660 - for kd in shutdown-data merged-config-files dvd-images; do
661 - keepdir "${VDR_HOME}/${kd}"
662 - done
663 -}
664 -
665 -pkg_preinst() {
666 - local PLUGINS_NEW=0
667 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then
668 - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l)
669 - fi
670 - if [[ ${PLUGINS_NEW} > 0 ]]; then
671 - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins
672 - else
673 - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins"
674 - local PLUGIN
675 - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do
676 - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins
677 - done
678 - fi
679 -
680 - has_version "<${CATEGORY}/${PN}-0.5.4"
681 - previous_less_than_0_5_4=$?
682 -
683 - has_version "<${CATEGORY}/${PN}-2.6"
684 - previous_less_than_2_6=$?
685 -}
686 -
687 -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
688 -
689 -pkg_postinst() {
690 - if [[ $previous_less_than_0_5_4 = 0 ]] ; then
691 - elog "\nVDR use now default the --cachedir parameter to store the epg.file"
692 - elog "Please do not override this with the EPGFILE variable\n"
693 -
694 - elog "svdrp port 2001 support removed\n"
695 -
696 - elog "--rcu support removed, use media-plugin/vdr-rcu\n"
697 - fi
698 -
699 - if [[ $previous_less_than_2_6 = 0 ]]; then
700 - elog "${CATEGORY}/${PN} supports now a init script"
701 - elog "to start a X server"
702 - elog "Please refer for detailed info to"
703 - elog "${CATGORY}/${PN} README.x11-setup\n"
704 - fi
705 -
706 - if use nvram; then
707 - elog "nvram wakeup is optional."
708 - elog "To make use of it emerge sys-power/nvram-wakeup.\n"
709 - fi
710 -
711 - elog "Plugins which should be used are now set via its"
712 - elog "own config-file called /etc/conf.d/vdr.plugins"
713 - elog "or enabled via the frontend eselect vdr-plugin.\n"
714 -
715 - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] &&
716 - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch
717 - then
718 - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch"
719 - ewarn "This no longer has any effect, please use"
720 - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd"
721 - fi
722 -
723 - elog "systemd is supported by ${CATEGORY}/${PN}"
724 - elog "Please read for detailed info on this"
725 - elog "${CATEGORY}/${PN} README.systemd"
726 -}
727 -
728 -pkg_config() {
729 - if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then
730 -
731 - einfo "Removing depricated entry from /etc/sudoers:"
732 - einfo "- ${VDRSUDOENTRY}"
733 -
734 - cd "${T}"
735 - cat >sudoedit-vdr.sh <<-SUDOEDITOR
736 - #!/bin/bash
737 - sed -i \${1} -e '/\/usr\/share\/vdr\/bin\/vdrshutdown-really.sh *$/d'
738 -
739 - SUDOEDITOR
740 - chmod a+x sudoedit-vdr.sh
741 -
742 - VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed"
743 -
744 - einfo "Edited /etc/sudoers"
745 - fi
746 -}
747
748 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.8.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.8.ebuild
749 new file mode 100644
750 index 00000000000..ec0010a562c
751 --- /dev/null
752 +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.8.ebuild
753 @@ -0,0 +1,82 @@
754 +# Copyright 1999-2019 Gentoo Authors
755 +# Distributed under the terms of the GNU General Public License v2
756 +
757 +EAPI=7
758 +
759 +inherit user
760 +
761 +GVS_VERSION="3ef03483b825a032d2618c2f3fb61865b0fc2f1e"
762 +
763 +DESCRIPTION="Scripts necessary for use of VDR as a set-top-box"
764 +HOMEPAGE="https://gitweb.gentoo.org/proj/gentoo-vdr-scripts.git/about/"
765 +SRC_URI="https://gitweb.gentoo.org/proj/gentoo-vdr-scripts.git/snapshot/gentoo-vdr-scripts-${GVS_VERSION}.tar.bz2 -> ${P}.tar.bz2"
766 +
767 +LICENSE="GPL-2"
768 +SLOT="0"
769 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
770 +IUSE=""
771 +
772 +RDEPEND="app-admin/sudo
773 + sys-process/wait_on_pid"
774 +
775 +S="${WORKDIR}/${PN}-${GVS_VERSION}"
776 +
777 +VDR_HOME=/var/vdr
778 +
779 +pkg_setup() {
780 + enewgroup vdr
781 +
782 + # Add user vdr to these groups:
783 + # video - accessing dvb-devices
784 + # audio - playing sound when using software-devices
785 + # cdrom - playing dvds/audio-cds ...
786 + enewuser vdr -1 -1 "${VDR_HOME}" vdr,video,audio,cdrom
787 +}
788 +
789 +src_install() {
790 + default
791 +
792 + # create necessary directories
793 + diropts -ovdr -gvdr
794 + keepdir "${VDR_HOME}"
795 +
796 + keepdir "${VDR_HOME}/shutdown-data"
797 + keepdir "${VDR_HOME}/merged-config-files"
798 + keepdir "${VDR_HOME}/dvd-images"
799 +}
800 +
801 +VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
802 +
803 +pkg_postinst() {
804 + elog "${CATEGORY}/${PN} supports an init script"
805 + elog "to start a X server"
806 + elog "Please refer for detailed info to"
807 + elog "/usr/share/doc/${PF}/ README.x11-setup\n"
808 +
809 + elog "systemd is supported by ${CATEGORY}/${PN}"
810 + elog "This are described in the README.systemd file"
811 + elog "in /usr/share/doc/${PF}/\n"
812 +
813 + einfo "nvram wakeup is supported optional."
814 + einfo "To make use of it emerge sys-power/nvram-wakeup.\n"
815 +
816 + elog "Plugins which should be used are set via"
817 + elog "the config-file called /etc/conf.d/vdr.plugins"
818 + elog "or enabled them via the frontend eselect vdr-plugin.\n"
819 +
820 + if [[ -f "${EROOT}"/etc/conf.d/vdr.dvdswitch ]] &&
821 + grep -q ^DVDSWITCH_BURNSPEED= "${EROOT}"/etc/conf.d/vdr.dvdswitch
822 + then
823 + ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch"
824 + ewarn "This no longer has any effect, please use"
825 + ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd"
826 + fi
827 +
828 + # backup routine for old /etc/sudoers entry
829 + if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${EROOT}"/etc/sudoers; then
830 + ewarn "Please remove depricated entry from /etc/sudoers:"
831 + ewarn "${VDRSUDOENTRY}"
832 + ewarn "sudoers handling is supported by:"
833 + ewarn "/etc/sudoers.d/vdr"
834 + fi
835 +}