diff options
author | Roman Bogorodskiy <novel@FreeBSD.org> | 2016-11-02 16:14:42 +0000 |
---|---|---|
committer | Roman Bogorodskiy <novel@FreeBSD.org> | 2016-11-02 16:14:42 +0000 |
commit | bebcdb2b88ca45000380c2d5a1fe230c29fdf6e6 (patch) | |
tree | 430740b145070081ee9702185564f1cfa43ff77a /misc/py-glance | |
parent | 74060713bd167d7f857ffc85d07765df14d4089c (diff) | |
download | ports-bebcdb2b88ca45000380c2d5a1fe230c29fdf6e6.tar.gz ports-bebcdb2b88ca45000380c2d5a1fe230c29fdf6e6.zip |
Notes
Diffstat (limited to 'misc/py-glance')
-rw-r--r-- | misc/py-glance/Makefile | 74 | ||||
-rw-r--r-- | misc/py-glance/distinfo | 3 | ||||
-rw-r--r-- | misc/py-glance/files/glance-api.in | 34 | ||||
-rw-r--r-- | misc/py-glance/files/glance-registry.in | 34 | ||||
-rw-r--r-- | misc/py-glance/files/glance-scrubber.in | 33 | ||||
-rw-r--r-- | misc/py-glance/pkg-descr | 5 | ||||
-rw-r--r-- | misc/py-glance/pkg-plist | 18 |
7 files changed, 201 insertions, 0 deletions
diff --git a/misc/py-glance/Makefile b/misc/py-glance/Makefile new file mode 100644 index 000000000000..85e406610cfd --- /dev/null +++ b/misc/py-glance/Makefile @@ -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> diff --git a/misc/py-glance/distinfo b/misc/py-glance/distinfo new file mode 100644 index 000000000000..4ce99ff17176 --- /dev/null +++ b/misc/py-glance/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1476650212 +SHA256 (glance-13.0.0.tar.gz) = 3ef3594018469ba36425afafa61ae31487b6025e6f8d9d14febcedfa7136160f +SIZE (glance-13.0.0.tar.gz) = 1742124 diff --git a/misc/py-glance/files/glance-api.in b/misc/py-glance/files/glance-api.in new file mode 100644 index 000000000000..7073fdc2f9eb --- /dev/null +++ b/misc/py-glance/files/glance-api.in @@ -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" diff --git a/misc/py-glance/files/glance-registry.in b/misc/py-glance/files/glance-registry.in new file mode 100644 index 000000000000..598652706aba --- /dev/null +++ b/misc/py-glance/files/glance-registry.in @@ -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" diff --git a/misc/py-glance/files/glance-scrubber.in b/misc/py-glance/files/glance-scrubber.in new file mode 100644 index 000000000000..d59afb3aaf99 --- /dev/null +++ b/misc/py-glance/files/glance-scrubber.in @@ -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" diff --git a/misc/py-glance/pkg-descr b/misc/py-glance/pkg-descr new file mode 100644 index 000000000000..1a49ed689c92 --- /dev/null +++ b/misc/py-glance/pkg-descr @@ -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 diff --git a/misc/py-glance/pkg-plist b/misc/py-glance/pkg-plist new file mode 100644 index 000000000000..a1e3a4a73a43 --- /dev/null +++ b/misc/py-glance/pkg-plist @@ -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 |