summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2005-08-21 21:37:33 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2005-08-21 21:37:33 +0000
commit2c6668d86576e6b6f32f746ab7c248c3c289e392 (patch)
tree70fee199ef7270f66d6d59f70564052091ec2197 /media-video/vdr/vdr-1.3.27.ebuild
parentCorrect KDE dependency (#83058). (diff)
downloadgentoo-2-2c6668d86576e6b6f32f746ab7c248c3c289e392.tar.gz
gentoo-2-2c6668d86576e6b6f32f746ab7c248c3c289e392.tar.bz2
gentoo-2-2c6668d86576e6b6f32f746ab7c248c3c289e392.zip
changed ownership of config-files and renamed some variables
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'media-video/vdr/vdr-1.3.27.ebuild')
-rw-r--r--media-video/vdr/vdr-1.3.27.ebuild42
1 files changed, 29 insertions, 13 deletions
diff --git a/media-video/vdr/vdr-1.3.27.ebuild b/media-video/vdr/vdr-1.3.27.ebuild
index 62dc6a0407dd..a52e39e269bb 100644
--- a/media-video/vdr/vdr-1.3.27.ebuild
+++ b/media-video/vdr/vdr-1.3.27.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.3.27.ebuild,v 1.4 2005/08/14 16:35:49 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.3.27.ebuild,v 1.5 2005/08/21 21:37:33 zzam Exp $
inherit eutils
@@ -44,14 +44,17 @@ DEPEND="${_DEPEND}
)"
# Relevant Pathes for vdr on gentoo
-DVBDIR=/usr/include
-VDRDIR=/usr/include/vdr
-PLUGINDIR=/usr/lib/vdr/plugins
-CONFDIR=/etc/vdr
+DVB_DIR=/usr/include
+VDR_INCLUDE_DIR=/usr/include/vdr
+PLUGIN_DIR=/usr/lib/vdr/plugins
+CONF_DIR=/etc/vdr
+RC_DIR=/usr/lib/vdr/rcscript
+CAP_FILE=${S}/vdr-capabilities.sh
+VDR_HOME=/var/vdr
pkg_setup() {
enewgroup vdr
- enewuser vdr -1 /bin/bash /var/vdr vdr,video
+ enewuser vdr -1 /bin/bash ${VDR_HOME} vdr,video
}
src_unpack() {
@@ -69,9 +72,9 @@ src_unpack() {
#
# Generated by ebuild ${PF}
#
- DVBDIR = ${DVBDIR}
- PLUGINLIBDIR = ${PLUGINDIR}
- CONFIGDIR = ${CONFDIR}
+ DVBDIR = ${DVB_DIR}
+ PLUGINLIBDIR = ${PLUGIN_DIR}
+ CONFIGDIR = ${CONF_DIR}
DEFINES += -DCONFIGDIR=\"\$(CONFIGDIR)\"
EOT
@@ -135,6 +138,8 @@ src_compile() {
test -n "${myconf}" && einfo "Compiling with: ${myconf}"
emake ${myconf} || die "compilation failed"
+
+ touch ${CAP_FILE}
}
src_install() {
@@ -142,17 +147,28 @@ src_install() {
doexe vdr
doexe svdrpsend.pl
- insinto /usr/include/vdr
+ insinto ${VDR_INCLUDE_DIR}
doins *.h
doins Make.config
- insinto /etc/vdr
+ diropts -m755 -ovdr -gvdr
+ keepdir ${CONF_DIR}
+ keepdir ${CONF_DIR}/plugins
+ keepdir ${VDR_HOME}
+
+ insinto ${CONF_DIR}
+ insopts -m0644 -ovdr -gvdr
doins *.conf channels.conf.*
+ insopts -m0644
+ diropts -m755
- keepdir "${PLUGINDIR}"
- keepdir /var/vdr
+
+ keepdir "${PLUGIN_DIR}"
doman vdr.1 vdr.5
+
+ insinto ${RC_DIR}
+ doins ${CAP_FILE}
}
pkg_postinst() {