summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/openstack-debian-images/Manifest1
-rw-r--r--dev-util/openstack-debian-images/files/openstack-debian-images-1.4-parted.patch25
-rw-r--r--dev-util/openstack-debian-images/metadata.xml8
-rw-r--r--dev-util/openstack-debian-images/openstack-debian-images-1.4.ebuild39
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-util/openstack-debian-images/Manifest b/dev-util/openstack-debian-images/Manifest
new file mode 100644
index 0000000..4d61e31
--- /dev/null
+++ b/dev-util/openstack-debian-images/Manifest
@@ -0,0 +1 @@
+DIST openstack-debian-images_1.4.tar.xz 13032 SHA256 3264fde803031b08d4d71c767e19e871f240b94c9d27b0124cdcdc9538f45a1e SHA512 174cd878c40a5d0b34be67fb9ab400bd62571aef8b6dc6e5783204b61bd9d12a1c06b15fdd6faddbc69b2add1ba37a969101b1676d944d7e34d49d6d36c136f8 WHIRLPOOL a492dc65f14e40db7930fccf11d93054877aa9445a8dfb525e294b854b371f38a767657fee23e2fd5d4693f1fcb0c42d0d35fe9282d1069eaf04bd1a5319e058
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 <sebastian@pipping.org>
+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>sping@gentoo.org</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
+}