blob: 049f8c12e450bd206b4a82f60eea37ce720e346f (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild,v 1.3 2007/01/05 17:15:59 hd_brummy Exp $
DESCRIPTION="A utility to rebuild any plugins for vdr which you have installed."
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE=""
DEPEND=""
src_install() {
newsbin ${FILESDIR}/${P%_rc*} ${PN}
keepdir /usr/share/vdr/vdrplugin-rebuild
}
pkg_postinst() {
if has_version "<=media-tv/vdrplugin-rebuild-0.1"; then
# populate new database
${ROOT}/usr/sbin/vdrplugin-rebuild populate
local OLD_DB=${ROOT}/var/lib/vdrplugin-rebuild
if [[ -d ${OLD_DB} ]]; then
elog "Removing old vdrplugindb."
rm ${OLD_DB}/vdrplugindb*
rmdir ${OLD_DB}
fi
fi
}
|