Thu Aug 20 11:30:25 2020 UTC ()
Add back sysutils/xenstoretools, based on xentools411


(bouyer)
diff -r0 -r1.3 pkgsrc/sysutils/xenstoretools/DESCR
diff -r0 -r1.15 pkgsrc/sysutils/xenstoretools/Makefile
diff -r0 -r1.6 pkgsrc/sysutils/xenstoretools/PLIST
diff -r0 -r1.3 pkgsrc/sysutils/xenstoretools/files/xendomname.sh
diff -r1.20 -r1.21 pkgsrc/sysutils/xentools411/Makefile
diff -r0 -r1.1 pkgsrc/sysutils/xentools411/version.mk

File Added: pkgsrc/sysutils/xenstoretools/DESCR
This package is a subset of the xentools411 package. It contains
just the tools to manipulate xenstore from the guest VM.

File Added: pkgsrc/sysutils/xenstoretools/Makefile
# $NetBSD: Makefile,v 1.15 2020/08/20 11:30:25 bouyer Exp $
#

# VERSION is set in xentool411/version.mk
.include		"../../sysutils/xentools411/version.mk"

DIST_SUBDIR=		xen411
DISTNAME=		xen-${VERSION}
PKGNAME=		xenstoretools-${VERSION}
CATEGORIES=		sysutils
MASTER_SITES=		https://downloads.xenproject.org/release/xen/${VERSION}/

DISTFILES=		${DISTNAME}.tar.gz

XEN_EXTFILES=		http://xenbits.xensource.com/xen-extfiles/
DIST_IPXE=		ipxe-git-${VERSION_IPXE}.tar.gz
DISTFILES+=		${DIST_IPXE}
SITES.${DIST_IPXE} +=	${XEN_EXTFILES}

MAINTAINER=		sborrill@NetBSD.org
HOMEPAGE=		http://xen.org/
COMMENT=		Xenstore Tools for Xen 4.11.x

LICENSE=		gnu-gpl-v2
DISTINFO_FILE=		${.CURDIR}/../../sysutils/xentools411/distinfo
PATCHDIR=		${.CURDIR}/../../sysutils/xentools411/patches
INSTALL_DIRS=		tools/xenstore
INSTALL_MAKE_FLAGS+=	XENSTORE_XENSTORED=n

.if !exists(/usr/bin/iasl)
BUILD_DEPENDS+=	acpica-utils-[0-9]*:../../sysutils/acpica-utils
.endif

GNU_CONFIGURE=		yes
# configure checks for more components than are required to build the
# xenstore subdirectory, so provide dummy args to allow it to complete
# without adding unnecessary dependencies
CONFIGURE_ARGS+=	ac_cv_path_AS86=/dummy
CONFIGURE_ARGS+=	ac_cv_path_LD86=/dummy
CONFIGURE_ARGS+=	ac_cv_path_BCC=/dummy
CONFIGURE_ARGS+=	ac_cv_lib_yajl_yajl_alloc=yes
CONFIGURE_ARGS+=	ac_cv_lib_z_deflateCopy=yes
CONFIGURE_ARGS+=	ac_cv_header_argp_h=yes
CONFIGURE_ARGS+=	ac_cv_lib_argp_argp_usage=yes
CONFIGURE_ARGS+=	pixman_CFLAGS=dummy
CONFIGURE_ARGS+=	pixman_LIBS=/dummy

PKG_SYSCONFSUBDIR=	xen
BUILD_DEFS+=		VARBASE

ONLY_FOR_PLATFORM=	Linux-2.6*-i386 Linux-2.6*-x86_64
ONLY_FOR_PLATFORM+=	NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386

CONFLICTS+=		libxen-[0-9]*
CONFLICTS+=		xentools20-[0-9]*
CONFLICTS+=		xentools3*
CONFLICTS+=		xentools4*

USE_TOOLS+=		bash gmake pkg-config perl

MAKE_ENV+=		PREFIX=${prefix:Q} WRKSRC=${WRKSRC}
MAKE_ENV+=		MV=${MV:Q} PYTHON=${PYTHONBIN:Q} SED=${SED:Q}
MAKE_ENV+=		VARBASE=${VARBASE}

RCD_SCRIPTS=		xendomname
FILES_SUBST+=		PREFIX=${PREFIX}

.include "../../mk/bsd.prefs.mk"

INSTALLATION_DIRS=	bin include lib

pre-build:
	${LN} -s ../../xen/include/public ${WRKSRC}/tools/include/xen

do-build:
	${RUN}${_ULIMIT_CMD}                                            \
	cd ${WRKSRC}/tools/libs/toolcore  &&                            \
		${BUILD_MAKE_CMD} all
	${RUN}${_ULIMIT_CMD}                                            \
	cd ${WRKSRC}/tools/xenstore  &&                                 \
		${BUILD_MAKE_CMD} clients

pre-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pkgconfig

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../devel/glib2/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/sysutils/xenstoretools/PLIST
@comment $NetBSD: PLIST,v 1.6 2020/08/20 11:30:25 bouyer Exp $
bin/xenstore
bin/xenstore-chmod
bin/xenstore-control
bin/xenstore-exists
bin/xenstore-list
bin/xenstore-ls
bin/xenstore-read
bin/xenstore-rm
bin/xenstore-watch
bin/xenstore-write
include/xenstore-compat/xs.h
include/xenstore-compat/xs_lib.h
include/xenstore.h
include/xenstore_lib.h
include/xs.h
include/xs_lib.h
lib/libxenstore.a
lib/libxenstore.so
lib/libxenstore.so.3.0
lib/libxenstore.so.3.0.3
share/pkgconfig/xenstore.pc

File Added: pkgsrc/sysutils/xenstoretools/files/xendomname.sh
#!@RCD_SCRIPTS_SHELL@

# PROVIDE: xendomname
# REQUIRE: network mountcritlocal
# BEFORE:  dhcpcd
#
# Sets the hostname to the xen domain name
# (dhcpcd can pick it up and send it to the DHCP server.)
#

$_rc_subr_loaded . /etc/rc.subr

name=xendomname
rcvar=$name
start_cmd="xendomname_start"

xendomname_start()
{
	mount /kern || true
	dname="`@PREFIX@/bin/xenstore-read name`"
	echo "Setting hostname to xen domain name: $dname"
	hostname "$dname"
}

load_rc_config $name
run_rc_command "$1"

cvs diff -r1.20 -r1.21 pkgsrc/sysutils/xentools411/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/xentools411/Attic/Makefile 2020/08/17 20:37:53 1.20
+++ pkgsrc/sysutils/xentools411/Attic/Makefile 2020/08/20 11:30:25 1.21
@@ -1,17 +1,18 @@ @@ -1,17 +1,18 @@
1# $NetBSD: Makefile,v 1.20 2020/08/17 20:37:53 wiz Exp $ 1# $NetBSD: Makefile,v 1.21 2020/08/20 11:30:25 bouyer Exp $
2# 2#
3VERSION= 4.11.3 3# VERSION is set in version.mk as it is shared with other packages
4VERSION_IPXE= 356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d 4.include "version.mk"
 5
5DIST_IPXE= ipxe-git-${VERSION_IPXE}.tar.gz 6DIST_IPXE= ipxe-git-${VERSION_IPXE}.tar.gz
6 7
7DIST_SUBDIR= xen411 8DIST_SUBDIR= xen411
8DISTNAME= xen-${VERSION} 9DISTNAME= xen-${VERSION}
9PKGNAME= xentools411-${VERSION} 10PKGNAME= xentools411-${VERSION}
10PKGREVISION= 5 11PKGREVISION= 5
11CATEGORIES= sysutils 12CATEGORIES= sysutils
12MASTER_SITES= https://downloads.xenproject.org/release/xen/${VERSION}/ 13MASTER_SITES= https://downloads.xenproject.org/release/xen/${VERSION}/
13 14
14DISTFILES= ${DISTNAME}.tar.gz 15DISTFILES= ${DISTNAME}.tar.gz
15 16
16XEN_EXTFILES= http://xenbits.xensource.com/xen-extfiles/ 17XEN_EXTFILES= http://xenbits.xensource.com/xen-extfiles/
17DISTFILES+= ${DIST_IPXE} 18DISTFILES+= ${DIST_IPXE}

File Added: pkgsrc/sysutils/xentools411/Attic/version.mk
# $NetBSD: version.mk,v 1.1 2020/08/20 11:30:25 bouyer Exp $
#
# Version number is used by xentools411 and xenstoretools

VERSION=	4.11.3
VERSION_IPXE=	356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d