# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Easy to use GUI & CLI alternative for etc-update..." HOMEPAGE="http://people.zeelandnet.nl/xentric/" SRC_URI="http://people.zeelandnet.nl/xentric/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" IUSE="qt kde gnome" KEYWORDS="x86 ppc sparc alpha mips hppa arm amd64 ia64" RDEPEND=">=dev-lang/perl-5.0 >=sys-apps/coreutils-5.2 >=sys-apps/gawk-3.0 >=sys-apps/grep-2.0 qt? ( >=dev-util/xxdiff-2.9 ) kde? ( >=dev-util/xxdiff-2.9 ) gnome? ( >=dev-util/meld-0.9 )" src_unpack() { unpack ${P}.tar.gz } pkg_prerm() { einfo "Disabling alias for emerge in /etc/profile..." cfg-update --off } src_install() { exeinto /usr/lib/cfg-update doexe cfg-update.pl doexe convert.sh dodir /usr/bin dosym /usr/lib/cfg-update/cfg-update.pl /usr/bin/cfg-update insinto /usr/lib/cfg-update doins .bashrc doins .bash_profile doins .Xdefaults doins README doins COPYING doins ChangeLog doman *.8 } pkg_postinst() { einfo "Checking root environment..." cfg-update --check cfg-update --index 2>/dev/null cfg-update --on 2>/dev/null source /etc/profile 2>/dev/null einfo "To convert old format backups to the new filename format," einfo "run as root: /usr/lib/cfg-update/convert.sh" einfo "This is only necessary if you are upgrading from v1.5 or older!" }