1 |
hd_brummy 15/01/01 17:33:09 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gentoo-vdr-scripts-2.5.ebuild |
5 |
Log: |
6 |
bump; fixed locale handling for systemd, thx to D.Ferdinand wrt bug 530690; fixed misusing 'need net', wrt bug 530828; fixed locale handling openrc |
7 |
|
8 |
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 34C2808A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.130 media-tv/gentoo-vdr-scripts/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog?rev=1.130&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog?rev=1.130&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog?r1=1.129&r2=1.130 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v |
20 |
retrieving revision 1.129 |
21 |
retrieving revision 1.130 |
22 |
diff -u -r1.129 -r1.130 |
23 |
--- ChangeLog 22 Oct 2014 10:59:08 -0000 1.129 |
24 |
+++ ChangeLog 1 Jan 2015 17:33:09 -0000 1.130 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for media-tv/gentoo-vdr-scripts |
27 |
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.129 2014/10/22 10:59:08 hd_brummy Exp $ |
29 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.130 2015/01/01 17:33:09 hd_brummy Exp $ |
31 |
+ |
32 |
+*gentoo-vdr-scripts-2.5 (01 Jan 2015) |
33 |
+ |
34 |
+ 01 Jan 2015; Joerg Bornkessel <hd_brummy@g.o> |
35 |
+ +gentoo-vdr-scripts-2.5.ebuild: |
36 |
+ bump; fixed locale handling for systemd, thx to D.Ferdinand wrt bug 530690; |
37 |
+ fixed misusing 'need net', wrt bug 530828; fixed locale handling openrc |
38 |
|
39 |
*gentoo-vdr-scripts-2.5_rc4 (22 Oct 2014) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.5.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.5.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.5.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: gentoo-vdr-scripts-2.5.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2015 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-2.5.ebuild,v 1.1 2015/01/01 17:33:09 hd_brummy Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
inherit eutils user |
58 |
|
59 |
DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" |
60 |
HOMEPAGE="http://www.gentoo.org/" |
61 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
62 |
http://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~arm ~ppc ~x86" |
67 |
IUSE="nvram" |
68 |
|
69 |
RDEPEND="nvram? ( sys-power/nvram-wakeup ) |
70 |
app-admin/sudo |
71 |
sys-process/wait_on_pid" |
72 |
|
73 |
VDR_HOME=/var/vdr |
74 |
|
75 |
pkg_setup() { |
76 |
enewgroup vdr |
77 |
|
78 |
# Add user vdr to these groups: |
79 |
# video - accessing dvb-devices |
80 |
# audio - playing sound when using software-devices |
81 |
# cdrom - playing dvds/audio-cds ... |
82 |
enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom |
83 |
} |
84 |
|
85 |
src_prepare() { |
86 |
# moved into own package |
87 |
sed -e '/SUBDIRS =/s# bin # #' -i usr/Makefile |
88 |
sed -e '/all:/s#compile##' -i Makefile |
89 |
} |
90 |
|
91 |
src_install() { |
92 |
emake -s install DESTDIR="${D}" || die "make install failed" |
93 |
dodoc README TODO ChangeLog README.grub2 README.shutdown README.shutdown-jobs README.systemd README.vdrcaps |
94 |
|
95 |
# create necessary directories |
96 |
diropts -ovdr -gvdr |
97 |
keepdir "${VDR_HOME}" |
98 |
|
99 |
local kd |
100 |
for kd in shutdown-data merged-config-files dvd-images tmp; do |
101 |
keepdir "${VDR_HOME}/${kd}" |
102 |
done |
103 |
} |
104 |
|
105 |
pkg_preinst() { |
106 |
local PLUGINS_NEW=0 |
107 |
if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then |
108 |
PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) |
109 |
fi |
110 |
if [[ ${PLUGINS_NEW} > 0 ]]; then |
111 |
cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins |
112 |
else |
113 |
einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins" |
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 |
has_version "<${CATEGORY}/${PN}-0.5.4" |
121 |
previous_less_than_0_5_4=$? |
122 |
} |
123 |
|
124 |
VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" |
125 |
|
126 |
pkg_postinst() { |
127 |
if [[ $previous_less_than_0_5_4 = 0 ]] ; then |
128 |
einfo "\nVDR use now default the --cachedir parameter to store the epg.file" |
129 |
einfo "Please do not override this with the EPGFILE variable\n" |
130 |
|
131 |
einfo "svdrp port 2001 support removed\n" |
132 |
|
133 |
einfo "--rcu support removed, use media-plugin/vdr-rcu\n" |
134 |
fi |
135 |
|
136 |
elog "nvram wakeup is optional." |
137 |
elog "To make use of it emerge sys-power/nvram-wakeup." |
138 |
elog |
139 |
|
140 |
elog "Plugins which should be used are now set via its" |
141 |
elog "own config-file called /etc/conf.d/vdr.plugins" |
142 |
elog "or enabled via the frontend eselect vdr-plugin." |
143 |
elog |
144 |
|
145 |
if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then |
146 |
ewarn |
147 |
ewarn "You have dvbsplash installed!" |
148 |
ewarn "/etc/init.d/dvbsplash will now be deleted" |
149 |
ewarn "as it causes difficult to debug problems." |
150 |
ewarn |
151 |
rm "${ROOT}/etc/init.d/dvbsplash" |
152 |
fi |
153 |
|
154 |
if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && |
155 |
grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch |
156 |
then |
157 |
ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" |
158 |
ewarn "This no longer has any effect, please use" |
159 |
ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" |
160 |
fi |
161 |
|
162 |
einfo "Up from this version systemd is supported by gentoo-vdr-scripts" |
163 |
einfo "Please see for detailed info on this:" |
164 |
einfo "Also please report problems with systemd on gentoo-vdr-scripts direct in this bug" |
165 |
einfo "https://bugs.gentoo.org/show_bug.cgi?id=353492" |
166 |
|
167 |
} |
168 |
|
169 |
pkg_config() { |
170 |
if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then |
171 |
|
172 |
einfo "Removing depricated entry from /etc/sudoers:" |
173 |
einfo "- ${VDRSUDOENTRY}" |
174 |
|
175 |
cd "${T}" |
176 |
cat >sudoedit-vdr.sh <<-SUDOEDITOR |
177 |
#!/bin/bash |
178 |
sed -i \${1} -e '/\/usr\/share\/vdr\/bin\/vdrshutdown-really.sh *$/d' |
179 |
|
180 |
SUDOEDITOR |
181 |
chmod a+x sudoedit-vdr.sh |
182 |
|
183 |
VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed" |
184 |
|
185 |
einfo "Edited /etc/sudoers" |
186 |
fi |
187 |
} |