Skip to content

Commit

Permalink
Add ebuild template.
Browse files Browse the repository at this point in the history
  • Loading branch information
HackingM committed Feb 13, 2020
1 parent 2872b7d commit 79702b4
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gentoo/overlays
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mad-hacking https://github.com/MADhacking/overlay.git
17 changes: 17 additions & 0 deletions .gentoo/sys-cluster/rbd-client-tools/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">

<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Overlay Maintainer</name>
</maintainer>
<upstream>
<maintainer>
<email>[email protected]</email>
<name>Default Package Maintainer</name>
</maintainer>
<bugs-to>https://github.com/MADhacking/rbd-client-tools/issues</bugs-to>
<doc>https://github.com/MADhacking/rbd-client-tools</doc>
</upstream>
</pkgmetadata>
29 changes: 29 additions & 0 deletions .gentoo/sys-cluster/rbd-client-tools/rbd-client-tools-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Client tools for Rados Block Device (RBD) including mount.rbd helper script"
HOMEPAGE="https://github.com/GITHUB_REPOSITORY"
LICENSE="GPL-3"

if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/GITHUB_REPOSITORY"
EGIT_BRANCH="GITHUB_REF"
else
SRC_URI="https://github.com/GITHUB_REPOSITORY/archive/${PV}.tar.gz -> ${P}.tar.gz"
fi

KEYWORDS=""
IUSE="test"
SLOT="0"

RDEPEND="sys-cluster/ceph"

src_install() {
einstalldocs

exeinto /sbin
doexe sbin/*
}

0 comments on commit 79702b4

Please sign in to comment.