# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="a tool for creating custom stage tarballs and livecds"
HOMEPAGE="http://www.gentoo.org/proj/en/releng/catalyst/"
SRC_URI="http://dev.gentoo.org/~drobbins/catalyst/${P}.tar.gz"

LICENSE="gpl-2"
SLOT="0"
KEYWORDS="~x86"

RDEPEND=""

S=${WORKDIR}/${PN}

src_install () {
	dodoc ${S}/README
	dosbin ${S}/catalyst
	mv ${S} ${D}/usr/share/catalyst
	dodir /etc
	insinto /etc
	newins ${FILESDIR}/catalyst.conf.example catalyst.conf
}

pkg_postinst() {
	einfo "Catalyst is still under heavy development."
	einfo "Please use the reference manual located at:"
	einfo "  http://www.gentoo.org/proj/en/releng/catalyst/reference.xml"
	einfo
	einfo "/etc/catalyst.conf may need to be edited."
}