mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 14:01:36 +02:00
add(app-emulation/xenstore): Add minimal xenstore package
This commit is contained in:
parent
1b004da4fd
commit
a0d77fd8ea
1
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/Manifest
vendored
Normal file
1
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST xen-4.4.0.tar.gz 18116578 SHA256 6910a504fe2ffe8db0e7a44756ce1c4c95e1ccbef942a1fc8da27aced5aac021 SHA512 84bc293415b8ce9686240b0145a92be190cdd7032c66b5b07906baacbfeb33ad1e6148336e951fd4506b7f4e0b250937c702226c0207d7088a50e643bedabd17 WHIRLPOOL 87886cc83bf1eaaf5dd5b67d7cc82823d98dd9b4b47c0a178ea70ee2367c1a4a142aa66df13f58603840d0e310fb5c09dc0d5b87f6361c934e1c83c95d09d406
|
67
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/files/Tools.mk
vendored
Normal file
67
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/files/Tools.mk
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# Prefix and install folder
|
||||||
|
prefix := /usr
|
||||||
|
PREFIX := $(prefix)
|
||||||
|
exec_prefix := ${prefix}
|
||||||
|
libdir := ${exec_prefix}/lib
|
||||||
|
LIBDIR := $(libdir)
|
||||||
|
|
||||||
|
# A debug build of tools?
|
||||||
|
debug := n
|
||||||
|
|
||||||
|
# Tools path
|
||||||
|
BISON :=
|
||||||
|
FLEX :=
|
||||||
|
PYTHON :=
|
||||||
|
PYTHON_PATH :=
|
||||||
|
PERL :=
|
||||||
|
CURL_CONFIG :=
|
||||||
|
XML2_CONFIG :=
|
||||||
|
BASH :=
|
||||||
|
XGETTTEXT :=
|
||||||
|
AS86 :=
|
||||||
|
LD86 :=
|
||||||
|
BCC :=
|
||||||
|
IASL :=
|
||||||
|
FETCHER :=
|
||||||
|
SEABIOS_PATH :=
|
||||||
|
OVMF_PATH :=
|
||||||
|
|
||||||
|
# Extra folder for libs/includes
|
||||||
|
PREPEND_INCLUDES :=
|
||||||
|
PREPEND_LIB :=
|
||||||
|
APPEND_INCLUDES :=
|
||||||
|
APPEND_LIB :=
|
||||||
|
|
||||||
|
PTHREAD_CFLAGS := -pthread
|
||||||
|
PTHREAD_LDFLAGS := -pthread
|
||||||
|
PTHREAD_LIBS :=
|
||||||
|
|
||||||
|
PTYFUNCS_LIBS :=
|
||||||
|
|
||||||
|
# Download GIT repositories via HTTP or GIT's own protocol?
|
||||||
|
# GIT's protocol is faster and more robust, when it works at all (firewalls
|
||||||
|
# may block it). We make it the default, but if your GIT repository downloads
|
||||||
|
# fail or hang, please specify GIT_HTTP=y in your environment.
|
||||||
|
GIT_HTTP := n
|
||||||
|
|
||||||
|
# Optional components
|
||||||
|
XENSTAT_XENTOP := n
|
||||||
|
LIBXENAPI_BINDINGS := n
|
||||||
|
OCAML_TOOLS := n
|
||||||
|
FLASK_POLICY := n
|
||||||
|
CONFIG_OVMF := n
|
||||||
|
CONFIG_ROMBIOS := n
|
||||||
|
CONFIG_SEABIOS := n
|
||||||
|
CONFIG_QEMU_TRAD := n
|
||||||
|
CONFIG_QEMU_XEN := n
|
||||||
|
CONFIG_XEND := n
|
||||||
|
CONFIG_BLKTAP1 := n
|
||||||
|
|
||||||
|
#System options
|
||||||
|
ZLIB :=
|
||||||
|
CONFIG_LIBICONV := n
|
||||||
|
CONFIG_GCRYPT := n
|
||||||
|
EXTFS_LIBS :=
|
||||||
|
CURSES_LIBS :=
|
||||||
|
|
||||||
|
FILE_OFFSET_BITS :=
|
97
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/files/config.h
vendored
Normal file
97
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/files/config.h
vendored
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
/* config.h. Generated from config.h.in by configure. */
|
||||||
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `aio' library (-laio). */
|
||||||
|
/* #undef HAVE_LIBAIO */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `crypto' library (-lcrypto). */
|
||||||
|
/* #undef HAVE_LIBCRYPTO */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `fdt' library (-lfdt). */
|
||||||
|
/* #undef HAVE_LIBFDT */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `yajl' library (-lyajl). */
|
||||||
|
/* #undef HAVE_LIBYAJL */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `z' library (-lz). */
|
||||||
|
/* #undef HAVE_LIBZ */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#define HAVE_MEMORY_H 1
|
||||||
|
|
||||||
|
/* Qemu traditional enabled */
|
||||||
|
/* #undef HAVE_QEMU_TRADITIONAL */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#define HAVE_STDLIB_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#define HAVE_STRINGS_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/eventfd.h> header file. */
|
||||||
|
#define HAVE_SYS_EVENTFD_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#define HAVE_SYS_STAT_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#define HAVE_UNISTD_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <yajl/yajl_version.h> header file. */
|
||||||
|
/* #undef HAVE_YAJL_YAJL_VERSION_H */
|
||||||
|
|
||||||
|
/* Define curses header to use */
|
||||||
|
/* #undef INCLUDE_CURSES_H */
|
||||||
|
|
||||||
|
/* Define extfs header to use */
|
||||||
|
/* #undef INCLUDE_EXTFS_H */
|
||||||
|
|
||||||
|
/* libutil header file name */
|
||||||
|
/* #undef INCLUDE_LIBUTIL_H */
|
||||||
|
|
||||||
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
#define PACKAGE_BUGREPORT "xen-devel@lists.xen.org"
|
||||||
|
|
||||||
|
/* Define to the full name of this package. */
|
||||||
|
#define PACKAGE_NAME "Xen Hypervisor Tools"
|
||||||
|
|
||||||
|
/* Define to the full name and version of this package. */
|
||||||
|
#define PACKAGE_STRING "Xen Hypervisor Tools 4.4"
|
||||||
|
|
||||||
|
/* Define to the one symbol short name of this package. */
|
||||||
|
#define PACKAGE_TARNAME "xen"
|
||||||
|
|
||||||
|
/* Define to the home page for this package. */
|
||||||
|
#define PACKAGE_URL "http://www.xen.org/"
|
||||||
|
|
||||||
|
/* Define to the version of this package. */
|
||||||
|
#define PACKAGE_VERSION "4.4"
|
||||||
|
|
||||||
|
/* Qemu Xen path */
|
||||||
|
/* #undef QEMU_XEN_PATH */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
|
||||||
|
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||||
|
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||||
|
# define _DARWIN_USE_64_BIT_INODE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||||
|
/* #undef _FILE_OFFSET_BITS */
|
||||||
|
|
||||||
|
/* Define for large files, on AIX-style hosts. */
|
||||||
|
/* #undef _LARGE_FILES */
|
73
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/xenstore-4.4.0.ebuild
vendored
Normal file
73
sdk_container/src/third_party/coreos-overlay/app-emulation/xenstore/xenstore-4.4.0.ebuild
vendored
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.4.0.ebuild,v 1.3 2014/04/04 01:06:31 idella4 Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python2_7 )
|
||||||
|
|
||||||
|
inherit multilib python-any-r1 toolchain-funcs
|
||||||
|
|
||||||
|
MY_PV=${PV/_/-}
|
||||||
|
S="${WORKDIR}/xen-${MY_PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Xen's xenstore client utility"
|
||||||
|
HOMEPAGE="http://xen.org/"
|
||||||
|
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 ~arm ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPENDS="${PYTHON_DEPS}"
|
||||||
|
RDEPENDS=""
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
python-any-r1_pkg_setup
|
||||||
|
|
||||||
|
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
||||||
|
if use x86 && use amd64; then
|
||||||
|
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
||||||
|
elif use x86; then
|
||||||
|
export XEN_TARGET_ARCH="x86_32"
|
||||||
|
elif use amd64 ; then
|
||||||
|
export XEN_TARGET_ARCH="x86_64"
|
||||||
|
elif use arm; then
|
||||||
|
export XEN_TARGET_ARCH="arm32"
|
||||||
|
else
|
||||||
|
die "Unsupported architecture!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -e '/^CFLAGS += -Werror$/d' tools/xenstore/Makefile || die
|
||||||
|
cp "${FILESDIR}"/config.h tools/ || die
|
||||||
|
cp "${FILESDIR}"/Tools.mk config/ || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
: # configured manually
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local opts=(
|
||||||
|
V=1
|
||||||
|
CC="$(tc-getCC)"
|
||||||
|
LD="$(tc-getLD)"
|
||||||
|
AR="$(tc-getAR)"
|
||||||
|
PYTHON="${PYTHON}"
|
||||||
|
RANLIB="$(tc-getRANLIB)"
|
||||||
|
libdir="/usr/$(get_libdir)"
|
||||||
|
)
|
||||||
|
unset LDFLAGS
|
||||||
|
unset CFLAGS
|
||||||
|
emake "${opts[@]}" -C tools/include all
|
||||||
|
emake "${opts[@]}" -C tools/xenstore clients
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dolib.so tools/xenstore/libxenstore.so*
|
||||||
|
dobin tools/xenstore/xenstore
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user