--- quassel-0.2.0_rc1.ebuild.old 2008-08-05 00:11:16.000000000 +0200 +++ quassel-0.2.0_rc1.ebuild 2008-08-06 22:15:49.000000000 +0200 @@ -1,19 +1,19 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/quassel-0.2.0_rc1.ebuild,v 1.2 2008/07/02 22:52:24 flameeyes Exp $ +# $Header: $ EAPI=1 inherit cmake-utils eutils if [[ ${PV} == *9999 ]]; then - inherit git EGIT_REPO_URI="git://git.quassel-irc.org/quassel.git" case ${PV} in 0.2.9999) EGIT_BRANCH="0.2" ;; *) EGIT_BRANCH="master" esac + inherit git else MY_P="${P/_/-}" SRC_URI="http://quassel-irc.org/system/files/${MY_P}.tar.bz2" @@ -87,4 +87,16 @@ newins "${S}"/src/icons/quassel/connected/${size}.png quassel.png done fi + + if use server; then + newinitd ${FILESDIR}/quasselcore.init quasselcore + newconfd ${FILESDIR}/quasselcore.conf quasselcore + fi +} + +pkg_postinst() { + if use server; then + ewarn "In order to use the quassel init script you must set the" + ewarn "QUASSEL_USER variable in /etc/conf.d/quasselcore to your username." + fi }