summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-10-19 10:47:54 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-10-19 10:47:54 +0000
commit7aae3d496968a1d540f02d33a7c24e1b17b41957 (patch)
treece4095bacab23b6357a7bcd834aa6af04d6c9abb /media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild
parentUpdated dependency, thanks to Ramon van Alteren <ramon@vanalteren.nl>. (diff)
downloadgentoo-2-7aae3d496968a1d540f02d33a7c24e1b17b41957.tar.gz
gentoo-2-7aae3d496968a1d540f02d33a7c24e1b17b41957.tar.bz2
gentoo-2-7aae3d496968a1d540f02d33a7c24e1b17b41957.zip
Added new version with new database format. pkg_postinst populates the new database from looking at /var/db/pkg.
(Portage version: 2.1.2_pre3-r5)
Diffstat (limited to 'media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild')
-rw-r--r--media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild b/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild
new file mode 100644
index 000000000000..941dcf1016d3
--- /dev/null
+++ b/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2006 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.1 2006/10/19 10:47:54 zzam 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
+ einfo "Removing old vdrplugindb."
+ rm ${OLD_DB}/vdrplugindb*
+ rmdir ${OLD_DB}
+ fi
+ fi
+}
+