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