summaryrefslogtreecommitdiff
blob: 7aac8b708dab0183892de4198667c3147dbea40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/infosatepg/infosatepg-0.1.2.ebuild,v 1.4 2006/08/11 09:26:35 zzam Exp $

# include functions from eutils
inherit eutils

VDR_CONV_DIR="/etc/vdr"
TVMOVIE2VDR_CONV_DIR="${VDR_CONV_DIR}/tvmovie2vdr"
DATA_DIR="/var/vdr"
TVMOVIE2VDR_FILES_DIR="${DATA_DIR}/tvmovie2vdr"

DESCRIPTION="load the siehferninfo program guide from sat to import the data with tvmovie2vdr to vdr"
SRC_URI="http://www.herzomedia.net/schwarzott/vdr/${P}.tar.bz2"
HOMEPAGE="http://www.herzomedia.net/schwarzott/vdr/"
LICENSE="GPL-2"
RESTRICT="nomirror"

SLOT="0"
KEYWORDS="~x86"
IUSE=""

src_unpack() {
	unpack ${A}
	cd ${S}

	epatch "${FILESDIR}/${P}-gcc4.diff"
}

src_install() {
	exeinto /usr/bin
	doexe src/infosatepg
	dodoc AUTHORS
	dodoc COPYING
	dodoc README
	dodoc TODO
	dodoc INSTALL
	keepdir "${TVMOVIE2VDR_FILES_DIR}/infosatepg"
}

pkg_postinst() {
	elog "setting rights for received dir"
	chown vdr:vdr "${ROOT}/${TVMOVIE2VDR_FILES_DIR}/infosatepg"
	elog
	ewarn Program options changed, you should update yout /etc/crontab
	elog
	elog "Its a good idea to add the following to /etc/crontab:"
	elog "10  3  * * *     vdr     (infosatepg -c CHANNEL_ON_TRANSPONDER -o ${TVMOVIE2VDR_FILES_DIR}/infosatepg)"
	elog
	elog "Update your tvmovie2vdr channels.pl to update the data to vdr"
	elog
	elog "Addiotnal Infos and Updatescripts for commands.conf you find here:"
	elog "http://www.vdr-wiki.de/wiki/index.php/Infosatepg"
	elog
}