# 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 with safe auto-updating..." HOMEPAGE="http://people.zeelandnet.nl/xentric/" SRC_URI="http://people.zeelandnet.nl/xentric/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" IUSE="qt kde gtk gnome" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm ~amd64 ~ia64" RDEPEND=">=dev-lang/perl-5.0 >=sys-apps/coreutils-5.2 >=sys-apps/diffutils-2.8 >=sys-apps/gawk-3.0 >=sys-apps/grep-2.0 qt? ( >=x11-misc/sux-1.0 >=kde-misc/kdiff3-0.9 >=dev-util/xxdiff-2.9 ) kde? ( >=x11-misc/sux-1.0 >=kde-misc/kdiff3-0.9 >=dev-util/xxdiff-2.9 ) gtk? ( >=x11-misc/sux-1.0 >=dev-util/meld-0.9 ) gnome? ( >=x11-misc/sux-1.0 >=dev-util/meld-0.9 )" src_unpack() { unpack ${P}.tar.gz } pkg_postrm() { ewarn "" ewarn "You should manually disable the alias for emerge in /etc/profile" ewarn "and remove the index file /usr/lib/cfg-update/checksum-index" ewarn "if you are permanently removing cfg-update from your system." ewarn "" } src_install() { exeinto /usr/bin doexe cfg-update # install the cfg-update script doexe emerge_with_indexing_for_cfg-update # install the emerge-alias script exeinto /usr/lib/cfg-update doexe cfg-update # install backup file (with default settings) insinto /usr/lib/cfg-update doins .bashrc # install example file for /root/.bashrc doins .bash_profile # install example file for /root/.bash_profile doins .Xdefaults # install example file for /root/.Xdefaults doins README doins COPYING doins ChangeLog doman *.8 # install the manpage } pkg_postinst() { einfo "" einfo "Converting old configurationfile backups to new filename format..." cfg-update --convert 2>/dev/null # convert old backup-filenames to the new filename format einfo "Turning off old emerge alias in /etc/profile..." cfg-update --off >/dev/null # turn old alias for emerge OFF in /etc/profile einfo "Turning on new emerge alias in /etc/profile..." cfg-update --on >/dev/null # turn new alias for emerge ON in /etc/profile einfo "Trying to build the checksum index for automatic updating..." cfg-update --index >/dev/null # try to build the checksum index in /usr/lib/cfg-update/checksum-index ewarn "Type: \"source /etc/profile\" when this installation is finished to load the" ewarn "alias for emerge. If you do not want to use the auto-update function you can" ewarn "disable the emerge alias with \"cfg-update --off\" but this is not recommended" ewarn "because the very safe auto-update function will save you a lot of time!" ewarn "" }