# 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/mboven79/" SRC_URI="http://people.zeelandnet.nl/mboven79/${PF}.tar.gz" LICENSE="GPL-2" SLOT="0" IUSE="" KEYWORDS="x86 ppc sparc alpha mips hppa arm amd64 ia64" RDEPEND=">=dev-lang/perl-5.0 >=sys-apps/textutils-2.0 >=sys-apps/gawk-3.0 >=sys-apps/grep-2.0 >=dev-util/xxdiff-2.9 >=app-portage/gentoolkit-0.1.30" src_unpack() { unpack ${PF}.tar.gz } pkg_prerm() { einfo "Creating alias for emerge in /etc/profile..." cfg-update --off ewarn "You should manually remove the checksum-index from" ewarn "/usr/lib/cfg-update if you unmerge this package!" } 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 einfo "Creating alias for emerge in /etc/profile..." cfg-update --on einfo "Sourcing /etc/profile..." source /etc/profile 2>/dev/null einfo "Creating new checksum-index if necessary..." cfg-update --index 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 neccesary if you have used version 1.5 or older!" }