diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-01-14 03:07:44 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-01-14 03:07:44 +0000 |
commit | 718de6e6b8b579acdaee57bb22a83393ffa21f97 (patch) | |
tree | b26c98948eda0b54015778e14cc1b26a97c3cd57 | |
parent | [media-sound/amarok-2.4.0] Fix SRC_URI. Fixes bug 351618 - thanks to ScytheMa... (diff) | |
download | gentoo-2-718de6e6b8b579acdaee57bb22a83393ffa21f97.tar.gz gentoo-2-718de6e6b8b579acdaee57bb22a83393ffa21f97.tar.bz2 gentoo-2-718de6e6b8b579acdaee57bb22a83393ffa21f97.zip |
Fix installation.
(Portage version: 2.2.0_alpha15_p1/cvs/Linux x86_64)
-rw-r--r-- | app-admin/bcfg2/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/bcfg2/bcfg2-1.1.0.ebuild | 21 |
2 files changed, 19 insertions, 10 deletions
diff --git a/app-admin/bcfg2/ChangeLog b/app-admin/bcfg2/ChangeLog index 6a5e916e0193..574dfd6f783c 100644 --- a/app-admin/bcfg2/ChangeLog +++ b/app-admin/bcfg2/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/bcfg2 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/ChangeLog,v 1.15 2010/10/16 01:13:16 arfrever Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/ChangeLog,v 1.16 2011/01/14 03:07:44 arfrever Exp $ + + 14 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + bcfg2-1.1.0.ebuild: + Fix installation. 16 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> bcfg2-1.1.0.ebuild: diff --git a/app-admin/bcfg2/bcfg2-1.1.0.ebuild b/app-admin/bcfg2/bcfg2-1.1.0.ebuild index 8f7c049d76a0..d246a869230c 100644 --- a/app-admin/bcfg2/bcfg2-1.1.0.ebuild +++ b/app-admin/bcfg2/bcfg2-1.1.0.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/bcfg2-1.1.0.ebuild,v 1.2 2010/10/16 01:13:16 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/bcfg2-1.1.0.ebuild,v 1.3 2011/01/14 03:07:44 arfrever Exp $ EAPI="3" PYTHON_DEPEND="2:2.6" @@ -31,23 +31,28 @@ RDEPEND="${DEPEND}" PYTHON_MODNAME="Bcfg2" +distutils_src_install_post_hook() { + if ! use server; then + rm -f "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/sbin/bcfg2-"* + fi +} + src_install() { - distutils_src_install --record=PY_SERVER_LIBS --install-scripts "${EPREFIX}"/usr/sbin + distutils_src_install --record=PY_SERVER_LIBS --install-scripts "${EPREFIX}/usr/sbin" # Remove files only necessary for a server installation if ! use server; then - rm -rf "${ED}"usr/sbin/bcfg2-* - rm -rf "${ED}"usr/share/bcfg2 - rm -rf "${ED}"usr/share/man/man8 + rm -rf "${ED}usr/share/bcfg2" + rm -rf "${ED}usr/share/man/man8" fi # Install a server init.d script if use server; then - newinitd "${FILESDIR}"/bcfg2-server.rc bcfg2-server + newinitd "${FILESDIR}/bcfg2-server.rc" bcfg2-server fi insinto /etc - doins examples/bcfg2.conf + doins examples/bcfg2.conf || die "doins failed" } pkg_postinst () { |