commit:     938ea653f3ffdb4ab0e72eb7f652959f45297ba8
Author:     Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Mon Jun 15 20:15:50 2015 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Mon Jun 15 20:20:02 2015 +0000
URL:        https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=938ea653

dev-util/openstack-debian-images: 1.4

 .../files/openstack-debian-images-1.4-parted.patch | 25 ++++++++++++++
 dev-util/openstack-debian-images/metadata.xml      |  8 +++++
 .../openstack-debian-images-1.4.ebuild             | 39 ++++++++++++++++++++++
 3 files changed, 72 insertions(+)

diff --git 
a/dev-util/openstack-debian-images/files/openstack-debian-images-1.4-parted.patch
 
b/dev-util/openstack-debian-images/files/openstack-debian-images-1.4-parted.patch
new file mode 100644
index 0000000..2ad9953
--- /dev/null
+++ 
b/dev-util/openstack-debian-images/files/openstack-debian-images-1.4-parted.patch
@@ -0,0 +1,25 @@
+From 476a31938b2030ac2a3b7cf3806775fb22930e88 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <[email protected]>
+Date: Mon, 15 Jun 2015 21:50:13 +0200
+Subject: [PATCH] Fix parted location for Gentoo
+
+---
+ build-openstack-debian-image | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build-openstack-debian-image b/build-openstack-debian-image
+index 0c3767c..031a4fe 100755
+--- a/build-openstack-debian-image
++++ b/build-openstack-debian-image
+@@ -187,7 +187,7 @@ set -x
+ ######################################
+ ### Prepare the HDD (format, ext.) ###
+ ######################################
+-PARTED=/sbin/parted
++PARTED=/usr/sbin/parted
+ rm -f $AMI_NAME
+ qemu-img create ${AMI_NAME} ${IMAGE_SIZE}G
+ #dd if=/dev/null bs=1M seek=1024 of=${AMI_NAME}
+-- 
+2.4.0
+

diff --git a/dev-util/openstack-debian-images/metadata.xml 
b/dev-util/openstack-debian-images/metadata.xml
new file mode 100644
index 0000000..16bcc9f
--- /dev/null
+++ b/dev-util/openstack-debian-images/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer>
+               <email>[email protected]</email>
+               <name>Sebastian Pipping</name>
+       </maintainer>
+</pkgmetadata>

diff --git 
a/dev-util/openstack-debian-images/openstack-debian-images-1.4.ebuild 
b/dev-util/openstack-debian-images/openstack-debian-images-1.4.ebuild
new file mode 100644
index 0000000..d284016
--- /dev/null
+++ b/dev-util/openstack-debian-images/openstack-debian-images-1.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="(Re-)build official Debian OpenStack images"
+HOMEPAGE="https://packages.debian.org/sid/openstack-debian-images";
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+       app-emulation/qemu
+       dev-util/debootstrap
+       sys-block/parted
+       sys-boot/mbr
+       sys-boot/syslinux
+       sys-fs/multipath-tools
+       "
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-parted.patch
+}
+
+src_install() {
+       insinto /usr/share/${PN}/
+       doins -r contrib examples
+
+       dodoc debian/changelog
+
+       doman build-openstack-debian-image.1
+       dobin build-openstack-debian-image
+}

Reply via email to