Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI="5" |
5 |
EAPI="5" |
6 |
|
6 |
|
7 |
inherit eutils user |
7 |
inherit eutils user systemd |
8 |
|
8 |
|
9 |
DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" |
9 |
DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" |
10 |
HOMEPAGE="http://www.gentoo.org/" |
10 |
HOMEPAGE="http://www.gentoo.org/" |
Lines 50-55
Link Here
|
50 |
for kd in shutdown-data merged-config-files dvd-images tmp; do |
50 |
for kd in shutdown-data merged-config-files dvd-images tmp; do |
51 |
keepdir "${VDR_HOME}/${kd}" |
51 |
keepdir "${VDR_HOME}/${kd}" |
52 |
done |
52 |
done |
|
|
53 |
|
54 |
# install systemd unit file |
55 |
systemd_dounit "${FILESDIR}/vdr.service" |
56 |
# install systemd helper script which uses OpenRC-based framework |
57 |
exeinto "/usr/share/vdr/bin" |
58 |
doexe "${FILESDIR}/vdr-systemd_helper.sh" |
59 |
# create empty environment exchange file and set correct permissions |
60 |
touch "${D}${VDR_HOME}/tmp/systemd_env" |
61 |
fowners vdr:vdr "${VDR_HOME}/tmp/systemd_env" |
62 |
insinto "/etc/systemd/system/vdr.service.d" |
63 |
doins "${FILESDIR}/00-gentoo-vdr-user.conf" |
53 |
} |
64 |
} |
54 |
|
65 |
|
55 |
pkg_preinst() { |
66 |
pkg_preinst() { |
Lines 108-113
Link Here
|
108 |
ewarn "This no longer has any effect, please use" |
119 |
ewarn "This no longer has any effect, please use" |
109 |
ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" |
120 |
ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" |
110 |
fi |
121 |
fi |
|
|
122 |
|
123 |
ewarn "" |
124 |
ewarn "If using systemd, you can still customize any of the" |
125 |
ewarn "'/etc/conf.d/vdr*' config files as you would do when using OpenRC." |
126 |
ewarn "The only thing you have to take special care of is how to deal with running" |
127 |
ewarn "the VDR service either as user 'vdr' or as user 'root'." |
128 |
ewarn "If you have to set START_VDR_AS_ROOT=yes in /etc/conf.d/vdr, then" |
129 |
ewarn "you need to set 'User=root' in" |
130 |
ewarn "'/etc/systemd/system/vdr.service.d/00-gentoo-vdr-user.conf' and viceversa." |
131 |
ewarn "Make sure you toggle these 2 user settings in sync and" |
132 |
ewarn "ONLY when the VDR service is STOPPED !!!!" |
111 |
} |
133 |
} |
112 |
|
134 |
|
113 |
pkg_config() { |
135 |
pkg_config() { |