Skip to content

Commit

Permalink
Add ebuild template.
Browse files Browse the repository at this point in the history
  • Loading branch information
HackingM committed Jan 7, 2020
1 parent 1a5cb6d commit b208f0d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gentoo/app-emulation/xen-vif-hacking/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>overlay-maintainer@mad-hacking.net</email>
<name>Overlay Maintainer</name>
</maintainer>
<upstream>
<maintainer>
<email>default-package-maintainer@mad-hacking.net</email>
<name>Default Package Maintainer</name>
</maintainer>
<bugs-to>https://github.com/MADhacking/rsnapshot-scripts/issues</bugs-to>
<doc>https://github.com/MADhacking/rsnapshot-scripts</doc>
</upstream>
</pkgmetadata>
40 changes: 40 additions & 0 deletions .gentoo/app-emulation/xen-vif-hacking/xen-vif-hacking-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Additional (link-route / default-gateway) vif scripts for Xen"
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"

RESTRICT="!test? ( test )"

RDEPEND="app-emulation/xen-tools"
DEPEND="test? (
${RDEPEND}
dev-util/bats-assert
dev-util/bats-file
)"

src_test() {
bats --tap tests || die "Tests failed"
}

src_install() {
einstalldocs

exeinto /etc/xen/scripts
doexe etc/xen/scripts/*
}
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

0 comments on commit b208f0d

Please sign in to comment.