From e0dd308fa3745b3b184eec7afa0a48f9ae8332cc Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sun, 20 May 2012 13:54:12 +0400 Subject: [PATCH] network-profile added --- app-admin/network-profile/Manifest | 1 + .../network-profile-9999.ebuild | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 app-admin/network-profile/Manifest create mode 100644 app-admin/network-profile/network-profile-9999.ebuild diff --git a/app-admin/network-profile/Manifest b/app-admin/network-profile/Manifest new file mode 100644 index 00000000..226e1b74 --- /dev/null +++ b/app-admin/network-profile/Manifest @@ -0,0 +1 @@ +EBUILD network-profile-9999.ebuild 828 RMD160 80d563a6c5d57803cebeebbad3ec137f380ff6c8 SHA1 d9aef51030ebde6a23e2b95751b35aff13e4398f SHA256 252b9901609736ba33e4cb0068b68c507e46a9987f9d8751543489d341aefd3f diff --git a/app-admin/network-profile/network-profile-9999.ebuild b/app-admin/network-profile/network-profile-9999.ebuild new file mode 100644 index 00000000..8049f81e --- /dev/null +++ b/app-admin/network-profile/network-profile-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit eutils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/backbone/network-profile.git"} + inherit git-2 + KEYWORDS="" +else + SRC_URI="ftp://backbone.ws/projects/network-profile/${P}.tar.bz2" + KEYWORDS="-* ~x86 ~amd64" +fi + +DESCRIPTION="Automated Gentoo upgrading" + +HOMEPAGE="https://chili.backbone.ws/projects/network-profile" + +SLOT="0" + +LICENSE="GPL-3" + +IUSE="" + +DEPEND="" + +RDEPEND="${DEPEND}" + +src_prepare() { + if [[ ${PV} == "9999" ]] ; then + # Allow user patches to be applied without modifying the ebuild + epatch_user + fi +} + +src_install() { + if [[ ${PV} == "9999" ]] ; then + emake install DESTDIR="${D}" + else + emake install DESTDIR="${D}" || die + fi +}