Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2016 16:14:42 +0000 (UTC)
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r425162 - in head: . misc/py-glance misc/py-glance/files
Message-ID:  <201611021614.uA2GEgPA085597@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: novel
Date: Wed Nov  2 16:14:42 2016
New Revision: 425162
URL: https://svnweb.freebsd.org/changeset/ports/425162

Log:
  Add py-glance 13.0.0, OpenStack Image Service
  
  PR:		213769
  Submitted by:	Alexander Nusov <alexander.nusov@nfvexpress.com>

Added:
  head/misc/py-glance/
  head/misc/py-glance/Makefile   (contents, props changed)
  head/misc/py-glance/distinfo   (contents, props changed)
  head/misc/py-glance/files/
  head/misc/py-glance/files/glance-api.in   (contents, props changed)
  head/misc/py-glance/files/glance-registry.in   (contents, props changed)
  head/misc/py-glance/files/glance-scrubber.in   (contents, props changed)
  head/misc/py-glance/pkg-descr   (contents, props changed)
  head/misc/py-glance/pkg-plist   (contents, props changed)
Modified:
  head/GIDs
  head/UIDs

Modified: head/GIDs
==============================================================================
--- head/GIDs	Wed Nov  2 16:06:10 2016	(r425161)
+++ head/GIDs	Wed Nov  2 16:14:42 2016	(r425162)
@@ -132,7 +132,7 @@ swift:*:187:
 netxms:*:188:
 leofs:*:189:
 keystone:*:190:
-# free: 191
+glance:*:191:
 moinmoin:*:192:
 cups:*:193:
 saned:*:194:

Modified: head/UIDs
==============================================================================
--- head/UIDs	Wed Nov  2 16:06:10 2016	(r425161)
+++ head/UIDs	Wed Nov  2 16:14:42 2016	(r425162)
@@ -137,7 +137,7 @@ swift:*:187:187::0:0:Swift daemon pseudo
 netxms:*:188:188::0:0:netxms pseudo-user:/nonexistent:/usr/sbin/nologin
 leofs:*:189:189::0:0:LeoFS daemons pseudo-user:/var/db/leofs:/usr/sbin/nologin
 keystone:*:190:190::0:0:Keystone pseudo-user:/var/lib/keystone:/usr/sbin/nologin
-# free: 191
+glance:*:191:191::0:0:Glance pseudo-user:/var/lib/glance:/usr/sbin/nologin
 moinmoin:*:192:192::0:0:MoinMoin User:/nonexistent:/usr/sbin/nologin
 cups:*:193:193::0:0:Cups Owner:/nonexistent:/usr/sbin/nologin
 saned:*:194:194::0:0:SANE Scanner Daemon:/nonexistent:/bin/sh

Added: head/misc/py-glance/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-glance/Makefile	Wed Nov  2 16:14:42 2016	(r425162)
@@ -0,0 +1,74 @@
+# Created by: Alexander Nusov <alexander.nusov@nfvexpress.com>
+# $FreeBSD$
+
+PORTNAME=	glance
+PORTVERSION=	13.0.0
+CATEGORIES=	misc python
+MASTER_SITES=	https://fossies.org/linux/misc/openstack/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	alexander.nusov@nfvexpress.com
+COMMENT=	OpenStack Image Service
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pbr>=1.6:devel/py-pbr
+
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=0:databases/py-sqlalchemy10 \
+		${PYTHON_PKGNAMEPREFIX}eventlet>=0:net/py-eventlet \
+		${PYTHON_PKGNAMEPREFIX}PasteDeploy>=1.5.0:www/py-pastedeploy \
+		${PYTHON_PKGNAMEPREFIX}routes>=0:www/py-routes \
+		${PYTHON_PKGNAMEPREFIX}webob>=1.2.3:www/py-webob \
+		${PYTHON_PKGNAMEPREFIX}sqlalchemy-migrate>=0.9.6:databases/py-sqlalchemy-migrate \
+		${PYTHON_PKGNAMEPREFIX}httplib2>=0.7.5:www/py-httplib2 \
+		${PYTHON_PKGNAMEPREFIX}pycrypto>=2.6:security/py-pycrypto \
+		${PYTHON_PKGNAMEPREFIX}oslo.config>=3.14.0:devel/py-oslo.config \
+		${PYTHON_PKGNAMEPREFIX}oslo.concurrency>=3.8.0:devel/py-oslo.concurrency \
+		${PYTHON_PKGNAMEPREFIX}oslo.context>=2.9.0:devel/py-oslo.context \
+		${PYTHON_PKGNAMEPREFIX}oslo.service>=1.10.0:devel/py-oslo.service \
+		${PYTHON_PKGNAMEPREFIX}oslo.utils>=3.16.0:devel/py-oslo.utils \
+		${PYTHON_PKGNAMEPREFIX}stevedore>=1.16.0:devel/py-stevedore \
+		${PYTHON_PKGNAMEPREFIX}futurist>=0:devel/py-futurist \
+		${PYTHON_PKGNAMEPREFIX}taskflow>=1.26.0:devel/py-taskflow \
+		${PYTHON_PKGNAMEPREFIX}keystoneauth1>=2.10.0:devel/py-keystoneauth1 \
+		${PYTHON_PKGNAMEPREFIX}keystonemiddleware>=0:devel/py-keystonemiddleware \
+		${PYTHON_PKGNAMEPREFIX}wsme>=0.8:devel/py-wsme \
+		${PYTHON_PKGNAMEPREFIX}prettytable>=0:devel/py-prettytable \
+		${PYTHON_PKGNAMEPREFIX}Paste>=0:www/py-paste \
+		${PYTHON_PKGNAMEPREFIX}jsonschema>=0:devel/py-jsonschema \
+		${PYTHON_PKGNAMEPREFIX}keystoneclient>=0:net/py-keystoneclient \
+		${PYTHON_PKGNAMEPREFIX}openssl>=0.14:security/py-openssl \
+		${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six \
+		${PYTHON_PKGNAMEPREFIX}oslo.db>=0:devel/py-oslo.db \
+		${PYTHON_PKGNAMEPREFIX}oslo.i18n>=2.1.0:devel/py-oslo.i18n \
+		${PYTHON_PKGNAMEPREFIX}oslo.log>=1.14.0:devel/py-oslo.log \
+		${PYTHON_PKGNAMEPREFIX}oslo.messaging>=5.2.0:devel/py-oslo.messaging \
+		${PYTHON_PKGNAMEPREFIX}oslo.middleware>=3.0.0:devel/py-oslo.middleware \
+		${PYTHON_PKGNAMEPREFIX}oslo.policy>=1.9.0:devel/py-oslo.policy \
+		${PYTHON_PKGNAMEPREFIX}retrying>=0:devel/py-retrying \
+		${PYTHON_PKGNAMEPREFIX}osprofiler>=1.4.0:devel/py-osprofiler \
+		${PYTHON_PKGNAMEPREFIX}glance-store>=0.18.0:devel/py-glance-store \
+		${PYTHON_PKGNAMEPREFIX}semantic_version>=2.3.1:devel/py-semantic_version \
+		${PYTHON_PKGNAMEPREFIX}debtcollector>=1.2.0:devel/py-debtcollector \
+		${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography \
+		${PYTHON_PKGNAMEPREFIX}cursive>=0.1.1:devel/py-cursive \
+		${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601 \
+		${PYTHON_PKGNAMEPREFIX}monotonic>=0.6:devel/py-monotonic \
+		${PYTHON_PKGNAMEPREFIX}sqlparse>=0:databases/py-sqlparse
+
+NO_ARCH=	yes
+
+USES=		python
+USE_PYTHON=	autoplist distutils noegginfo
+
+USE_RC_SUBR=	glance-api glance-registry glance-scrubber
+USERS=		glance
+GROUPS=		glance
+
+post-extract:
+	@(cd ${WRKSRC}/etc; for f in *.conf; do ${MV} $${f} $${f}.sample; done)
+
+post-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
+	${CP} -R ${WRKSRC}/etc/ ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/misc/py-glance/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-glance/distinfo	Wed Nov  2 16:14:42 2016	(r425162)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1476650212
+SHA256 (glance-13.0.0.tar.gz) = 3ef3594018469ba36425afafa61ae31487b6025e6f8d9d14febcedfa7136160f
+SIZE (glance-13.0.0.tar.gz) = 1742124

Added: head/misc/py-glance/files/glance-api.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-glance/files/glance-api.in	Wed Nov  2 16:14:42 2016	(r425162)
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: glance_api
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable glance-api:
+#
+# glance_api_enable (bool):	Set it to "YES" to enable glance-api.
+# 				Default is "NO".
+
+. /etc/rc.subr
+
+name="glance_api"
+rcvar=glance_api_enable
+
+extra_commands="reload shutdown status"
+reload_cmd="glance-control api reload"
+shutdown_cmd="glance-control api shutdown"
+start_cmd="glance-control api start"
+status_cmd="glance-control api status"
+stop_cmd="glance-control api stop"
+
+required_files=%%PREFIX%%/etc/glance/glance-api.conf
+
+PATH=%%PREFIX%%/bin:$PATH
+
+load_rc_config $name
+
+: ${glance_api_enable:="NO"}
+
+run_rc_command "$1"

Added: head/misc/py-glance/files/glance-registry.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-glance/files/glance-registry.in	Wed Nov  2 16:14:42 2016	(r425162)
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: glance_registry
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable glance-registry:
+#
+# glance_registry_enable (bool):	Set it to "YES" to enable glance-registry.
+# 					Default is "NO".
+
+. /etc/rc.subr
+
+name="glance_registry"
+rcvar=glance_registry_enable
+
+extra_commands="reload shutdown status"
+reload_cmd="glance-control registry reload"
+shutdown_cmd="glance-control registry shutdown"
+start_cmd="glance-control registry start"
+status_cmd="glance-control registry status"
+stop_cmd="glance-control registry stop"
+
+required_files=%%PREFIX%%/etc/glance/glance-registry.conf
+
+PATH=%%PREFIX%%/bin:$PATH
+
+load_rc_config $name
+
+: ${glance_registry_enable:="NO"}
+
+run_rc_command "$1"

Added: head/misc/py-glance/files/glance-scrubber.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-glance/files/glance-scrubber.in	Wed Nov  2 16:14:42 2016	(r425162)
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: glance_scrubber
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable glance-scrubber:
+#
+# glance_scrubber_enable (bool):	Set it to "YES" to enable glance-scrubber.
+# 					Default is "NO".
+
+. /etc/rc.subr
+
+name="glance_scrubber"
+rcvar=glance_scrubber_enable
+
+extra_commands="shutdown status"
+shutdown_cmd="glance-control scrubber shutdown"
+start_cmd="glance-control scrubber start"
+status_cmd="glance-control scrubber status"
+stop_cmd="glance-control scrubber stop"
+
+required_files=%%PREFIX%%/etc/glance/glance-scrubber.conf
+
+PATH=%%PREFIX%%/bin:$PATH
+
+load_rc_config $name
+
+: ${glance_scrubber_enable:="NO"}
+
+run_rc_command "$1"

Added: head/misc/py-glance/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-glance/pkg-descr	Wed Nov  2 16:14:42 2016	(r425162)
@@ -0,0 +1,5 @@
+The Glance project provides services for discovering, registering, and
+retrieving virtual machine images. Glance has a RESTful API that allows
+querying of VM image metadata as well as retrieval of the actual image.
+
+WWW: http://openstack.org/glance

Added: head/misc/py-glance/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-glance/pkg-plist	Wed Nov  2 16:14:42 2016	(r425162)
@@ -0,0 +1,18 @@
+@owner glance
+@dir %%ETCDIR%%
+@sample %%ETCDIR%%/glance-swift.conf.sample
+@sample %%ETCDIR%%/ovf-metadata.json.sample
+@sample %%ETCDIR%%/property-protections-policies.conf.sample
+@sample %%ETCDIR%%/property-protections-roles.conf.sample
+@sample %%ETCDIR%%/glance-api.conf.sample
+@sample %%ETCDIR%%/glance-cache.conf.sample
+@sample %%ETCDIR%%/glance-glare.conf.sample
+@sample %%ETCDIR%%/glance-manage.conf.sample
+@sample %%ETCDIR%%/glance-registry.conf.sample
+@sample %%ETCDIR%%/glance-scrubber.conf.sample
+%%ETCDIR%%/policy.json
+%%ETCDIR%%/schema-image.json
+%%ETCDIR%%/glance-api-paste.ini
+%%ETCDIR%%/glance-glare-paste.ini
+%%ETCDIR%%/glance-registry-paste.ini
+@dir %%ETCDIR%%/metadefs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611021614.uA2GEgPA085597>