Skip to content

Commit a0374cd

Browse files
committed
Add ebuild template.
1 parent f211d21 commit a0374cd

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.gentoo/overlays

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mad-hacking https://github.com/MADhacking/overlay.git
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3+
4+
<pkgmetadata>
5+
<maintainer type="person">
6+
<email>overlay-maintainer@mad-hacking.net</email>
7+
<name>Overlay Maintainer</name>
8+
</maintainer>
9+
<upstream>
10+
<maintainer>
11+
<email>default-package-maintainer@mad-hacking.net</email>
12+
<name>Default Package Maintainer</name>
13+
</maintainer>
14+
<bugs-to>https://github.com/MADhacking/rbd-dracut-module-noceph/issues</bugs-to>
15+
<doc>https://github.com/MADhacking/rbd-dracut-module-noceph</doc>
16+
</upstream>
17+
</pkgmetadata>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 1999-2020 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=7
5+
6+
DESCRIPTION="Dracut module to boot from Rados Block Device (RBD - Ceph)"
7+
HOMEPAGE="https://github.com/GITHUB_REPOSITORY"
8+
LICENSE="GPL-3"
9+
10+
if [[ ${PV} = *9999* ]]; then
11+
inherit git-r3
12+
EGIT_REPO_URI="https://github.com/GITHUB_REPOSITORY"
13+
EGIT_BRANCH="GITHUB_REF"
14+
else
15+
SRC_URI="https://github.com/GITHUB_REPOSITORY/archive/${PV}.tar.gz -> ${P}.tar.gz"
16+
fi
17+
18+
KEYWORDS=""
19+
IUSE="test"
20+
SLOT="0"
21+
22+
RDEPEND="sys-apps/haveged
23+
sys-cluster/rbd-client-tools-noceph
24+
sys-kernel/dracut
25+
sys-process/procps"
26+
27+
src_install() {
28+
einstalldocs
29+
30+
exeinto /usr/lib/dracut/modules.d/95rbd
31+
doexe usr/lib/dracut/modules.d/95rbd/*
32+
}

0 commit comments

Comments
 (0)