Lines 2-11
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= glance |
4 |
PORTNAME= glance |
5 |
PORTVERSION= 13.0.0 |
5 |
PORTVERSION= 16.0.1 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= misc python |
6 |
CATEGORIES= misc python |
8 |
MASTER_SITES= https://fossies.org/linux/misc/openstack/ |
7 |
MASTER_SITES= https://tarballs.openstack.org/glance/ |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
10 |
|
9 |
|
11 |
MAINTAINER= alexander.nusov@nfvexpress.com |
10 |
MAINTAINER= alexander.nusov@nfvexpress.com |
Lines 12-77
Link Here
|
12 |
COMMENT= OpenStack Image Service |
11 |
COMMENT= OpenStack Image Service |
13 |
|
12 |
|
14 |
LICENSE= APACHE20 |
13 |
LICENSE= APACHE20 |
|
|
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
15 |
|
15 |
|
16 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=1.6:devel/py-pbr@${PY_FLAVOR} |
16 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=2.0.0:devel/py-pbr@${PY_FLAVOR} |
17 |
|
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=2.0.0:devel/py-pbr@${PY_FLAVOR} \ |
18 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
18 |
${PYTHON_PKGNAMEPREFIX}defusedxml>=0.5.0:devel/py-defusedxml@${PY_FLAVOR} \ |
19 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=0:databases/py-sqlalchemy10@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}sqlalchemy12>=1.0.10:databases/py-sqlalchemy12@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}eventlet>=0:net/py-eventlet@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}eventlet>=0.18.2:net/py-eventlet@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}PasteDeploy>=1.5.0:www/py-pastedeploy@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}PasteDeploy>=1.5.0:www/py-pastedeploy@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}routes>=0:www/py-routes@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}routes>=2.3.1:www/py-routes@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}webob>=1.2.3:www/py-webob@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}webob>=1.7.1:www/py-webob@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}sqlalchemy-migrate>=0.9.6:databases/py-sqlalchemy-migrate@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}sqlalchemy-migrate>=0.11.0:databases/py-sqlalchemy-migrate@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}httplib2>=0.7.5:www/py-httplib2@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}sqlparse>=0.2.2:databases/py-sqlparse@${PY_FLAVOR} \ |
26 |
${PYTHON_PKGNAMEPREFIX}pycrypto>=2.6:security/py-pycrypto@${PY_FLAVOR} \ |
26 |
${PYTHON_PKGNAMEPREFIX}alembic>=0.8.10:databases/py-alembic@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}oslo.config>=3.14.0:devel/py-oslo.config@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}httplib2>=0.9.1:www/py-httplib2@${PY_FLAVOR} \ |
28 |
${PYTHON_PKGNAMEPREFIX}oslo.concurrency>=3.8.0:devel/py-oslo.concurrency@${PY_FLAVOR} \ |
28 |
${PYTHON_PKGNAMEPREFIX}oslo.config>=5.1.0:devel/py-oslo.config@${PY_FLAVOR} \ |
29 |
${PYTHON_PKGNAMEPREFIX}oslo.context>=2.9.0:devel/py-oslo.context@${PY_FLAVOR} \ |
29 |
${PYTHON_PKGNAMEPREFIX}oslo.concurrency>=3.25.0:devel/py-oslo.concurrency@${PY_FLAVOR} \ |
30 |
${PYTHON_PKGNAMEPREFIX}oslo.service>=1.10.0:devel/py-oslo.service@${PY_FLAVOR} \ |
30 |
${PYTHON_PKGNAMEPREFIX}oslo.context>=2.19.2:devel/py-oslo.context@${PY_FLAVOR} \ |
31 |
${PYTHON_PKGNAMEPREFIX}oslo.utils>=3.16.0:devel/py-oslo.utils@${PY_FLAVOR} \ |
31 |
${PYTHON_PKGNAMEPREFIX}oslo.utils>=3.33.0:devel/py-oslo.utils@${PY_FLAVOR} \ |
32 |
${PYTHON_PKGNAMEPREFIX}stevedore>=1.16.0:devel/py-stevedore@${PY_FLAVOR} \ |
32 |
${PYTHON_PKGNAMEPREFIX}stevedore>=1.20.0:devel/py-stevedore@${PY_FLAVOR} \ |
33 |
${PYTHON_PKGNAMEPREFIX}futurist>=0:devel/py-futurist@${PY_FLAVOR} \ |
33 |
${PYTHON_PKGNAMEPREFIX}futurist>=1.2.0:devel/py-futurist@${PY_FLAVOR} \ |
34 |
${PYTHON_PKGNAMEPREFIX}taskflow>=1.26.0:devel/py-taskflow@${PY_FLAVOR} \ |
34 |
${PYTHON_PKGNAMEPREFIX}taskflow>=2.16.0:devel/py-taskflow@${PY_FLAVOR} \ |
35 |
${PYTHON_PKGNAMEPREFIX}keystoneauth1>=2.10.0:devel/py-keystoneauth1@${PY_FLAVOR} \ |
35 |
${PYTHON_PKGNAMEPREFIX}keystoneauth1>=3.3.0:devel/py-keystoneauth1@${PY_FLAVOR} \ |
36 |
${PYTHON_PKGNAMEPREFIX}keystonemiddleware>=0:devel/py-keystonemiddleware@${PY_FLAVOR} \ |
36 |
${PYTHON_PKGNAMEPREFIX}keystonemiddleware>=4.17.0:devel/py-keystonemiddleware@${PY_FLAVOR} \ |
37 |
${PYTHON_PKGNAMEPREFIX}wsme>=0.8:devel/py-wsme@${PY_FLAVOR} \ |
37 |
${PYTHON_PKGNAMEPREFIX}wsme>=0.8:devel/py-wsme@${PY_FLAVOR} \ |
38 |
${PYTHON_PKGNAMEPREFIX}prettytable>=0:devel/py-prettytable@${PY_FLAVOR} \ |
38 |
${PYTHON_PKGNAMEPREFIX}prettytable>=0.7.1:devel/py-prettytable@${PY_FLAVOR} \ |
39 |
${PYTHON_PKGNAMEPREFIX}Paste>=0:www/py-paste@${PY_FLAVOR} \ |
39 |
${PYTHON_PKGNAMEPREFIX}Paste>=2.0.2:www/py-paste@${PY_FLAVOR} \ |
40 |
${PYTHON_PKGNAMEPREFIX}jsonschema>=0:devel/py-jsonschema@${PY_FLAVOR} \ |
40 |
${PYTHON_PKGNAMEPREFIX}jsonschema>=2.6.0:devel/py-jsonschema@${PY_FLAVOR} \ |
41 |
${PYTHON_PKGNAMEPREFIX}python-keystoneclient>=0:net/py-python-keystoneclient@${PY_FLAVOR} \ |
41 |
${PYTHON_PKGNAMEPREFIX}python-keystoneclient>=3.8.0:net/py-python-keystoneclient@${PY_FLAVOR} \ |
42 |
${PYTHON_PKGNAMEPREFIX}openssl>=0.14:security/py-openssl@${PY_FLAVOR} \ |
42 |
${PYTHON_PKGNAMEPREFIX}openssl>=16.2.0:security/py-openssl@${PY_FLAVOR} \ |
43 |
${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} \ |
43 |
${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} \ |
44 |
${PYTHON_PKGNAMEPREFIX}oslo.db>=0:devel/py-oslo.db@${PY_FLAVOR} \ |
44 |
${PYTHON_PKGNAMEPREFIX}oslo.db>=4.27.0:devel/py-oslo.db@${PY_FLAVOR} \ |
45 |
${PYTHON_PKGNAMEPREFIX}oslo.i18n>=2.1.0:devel/py-oslo.i18n@${PY_FLAVOR} \ |
45 |
${PYTHON_PKGNAMEPREFIX}oslo.i18n>=3.15.3:devel/py-oslo.i18n@${PY_FLAVOR} \ |
46 |
${PYTHON_PKGNAMEPREFIX}oslo.log>=1.14.0:devel/py-oslo.log@${PY_FLAVOR} \ |
46 |
${PYTHON_PKGNAMEPREFIX}oslo.log>=3.36.0:devel/py-oslo.log@${PY_FLAVOR} \ |
47 |
${PYTHON_PKGNAMEPREFIX}oslo.messaging>=5.2.0:devel/py-oslo.messaging@${PY_FLAVOR} \ |
47 |
${PYTHON_PKGNAMEPREFIX}oslo.messaging>=5.29.0:devel/py-oslo.messaging@${PY_FLAVOR} \ |
48 |
${PYTHON_PKGNAMEPREFIX}oslo.middleware>=3.0.0:devel/py-oslo.middleware@${PY_FLAVOR} \ |
48 |
${PYTHON_PKGNAMEPREFIX}oslo.middleware>=3.31.0:devel/py-oslo.middleware@${PY_FLAVOR} \ |
49 |
${PYTHON_PKGNAMEPREFIX}oslo.policy>=1.9.0:devel/py-oslo.policy@${PY_FLAVOR} \ |
49 |
${PYTHON_PKGNAMEPREFIX}oslo.policy>=1.30.0:devel/py-oslo.policy@${PY_FLAVOR} \ |
50 |
${PYTHON_PKGNAMEPREFIX}retrying>=0:devel/py-retrying@${PY_FLAVOR} \ |
50 |
${PYTHON_PKGNAMEPREFIX}retrying>=1.2.3:devel/py-retrying@${PY_FLAVOR} \ |
51 |
${PYTHON_PKGNAMEPREFIX}osprofiler>=1.4.0:devel/py-osprofiler@${PY_FLAVOR} \ |
51 |
${PYTHON_PKGNAMEPREFIX}osprofiler>=1.4.0:devel/py-osprofiler@${PY_FLAVOR} \ |
52 |
${PYTHON_PKGNAMEPREFIX}glance-store>=0.18.0:devel/py-glance-store@${PY_FLAVOR} \ |
52 |
${PYTHON_PKGNAMEPREFIX}glance-store>=0.22.0:devel/py-glance-store@${PY_FLAVOR} \ |
53 |
${PYTHON_PKGNAMEPREFIX}semantic_version>=2.3.1:devel/py-semantic_version@${PY_FLAVOR} \ |
|
|
54 |
${PYTHON_PKGNAMEPREFIX}debtcollector>=1.2.0:devel/py-debtcollector@${PY_FLAVOR} \ |
53 |
${PYTHON_PKGNAMEPREFIX}debtcollector>=1.2.0:devel/py-debtcollector@${PY_FLAVOR} \ |
55 |
${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR} \ |
54 |
${PYTHON_PKGNAMEPREFIX}cryptography>=1.9:security/py-cryptography@${PY_FLAVOR} \ |
56 |
${PYTHON_PKGNAMEPREFIX}cursive>=0.1.1:devel/py-cursive@${PY_FLAVOR} \ |
55 |
${PYTHON_PKGNAMEPREFIX}cursive>=0.2.1:devel/py-cursive@${PY_FLAVOR} \ |
57 |
${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601@${PY_FLAVOR} \ |
56 |
${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601@${PY_FLAVOR} \ |
58 |
${PYTHON_PKGNAMEPREFIX}monotonic>=0.6:devel/py-monotonic@${PY_FLAVOR} \ |
57 |
${PYTHON_PKGNAMEPREFIX}monotonic>=0.6:devel/py-monotonic@${PY_FLAVOR} |
59 |
${PYTHON_PKGNAMEPREFIX}sqlparse>=0:databases/py-sqlparse@${PY_FLAVOR} |
|
|
60 |
|
58 |
|
61 |
NO_ARCH= yes |
59 |
USES= python |
|
|
60 |
USE_PYTHON= autoplist distutils |
61 |
USE_RC_SUBR= glance-api glance-registry glance-scrubber |
62 |
|
62 |
|
63 |
USES= python:2.7 |
|
|
64 |
USE_PYTHON= autoplist distutils noegginfo |
65 |
|
66 |
USE_RC_SUBR= glance-api glance-registry glance-scrubber glance-glare |
67 |
USERS= glance |
63 |
USERS= glance |
68 |
GROUPS= glance |
64 |
GROUPS= glance |
69 |
|
65 |
|
|
|
66 |
NO_ARCH= yes |
67 |
PORTDOCS= * |
68 |
SUB_LIST= PYTHON_VER=${PYTHON_VER} |
69 |
|
70 |
CONFLICTS_INSTALL= py??-glance-* |
71 |
|
72 |
OPTIONS_DEFINE= DOCS |
73 |
OPTIONS_GROUP= MISC |
74 |
OPTIONS_GROUP_MISC= MEMCACHED MONGODB |
75 |
OPTIONS_RADIO= DB |
76 |
OPTIONS_RADIO_DB= MYSQL PGSQL |
77 |
|
78 |
MEMCACHED_DESC= memcached support |
79 |
MONGODB_DESC= MongoDB support (used for messaging services) |
80 |
MYSQL_DESC= MySQL/MariaDB support |
81 |
PGSQL_DESC= PostgreSQL support |
82 |
|
83 |
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.6.2:textproc/py-sphinx@${PY_FLAVOR} \ |
84 |
${PYTHON_PKGNAMEPREFIX}openstackdocstheme>=0:textproc/py-openstackdocstheme@${PY_FLAVOR} \ |
85 |
${PYTHON_PKGNAMEPREFIX}xattr>=0:devel/py-xattr@${PY_FLAVOR} \ |
86 |
${RUN_DEPENDS} |
87 |
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E" |
88 |
MEMCACHED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-memcached>=1.56:databases/py-python-memcached@${PY_FLAVOR} |
89 |
MONGODB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymongo>=3.0.2:databases/pymongo@${PY_FLAVOR} |
90 |
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymysql>=0:databases/py-pymysql@${PY_FLAVOR} |
91 |
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2@${PY_FLAVOR} |
92 |
|
93 |
MY_CONFFILES= glance-api.conf glance-cache.conf glance-manage.conf \ |
94 |
glance-registry.conf glance-scrubber.conf glance-api-paste.ini \ |
95 |
glance-registry-paste.ini policy.json rootwrap.conf |
96 |
|
97 |
MY_REGEX= (/etc/)(ceph|glance|nova|pki|ssl) |
98 |
|
70 |
post-extract: |
99 |
post-extract: |
71 |
@(cd ${WRKSRC}/etc; for f in *.conf; do ${MV} $${f} $${f}.sample; done) |
100 |
@(cd ${WRKSRC}/etc && for f in ${MY_CONFFILES} ; do ${MV} $${f} $${f}.sample; done) |
|
|
101 |
@(cd ${WRKSRC}/etc/metadefs && for f in *.json ; do ${MV} $${f} $${f}.sample; done) |
72 |
|
102 |
|
|
|
103 |
post-patch: |
104 |
# Prevent the installation of files into ${ETCDIR} by distutils. We do it |
105 |
# manually in the post-install target |
106 |
@${REINPLACE_CMD} -e '/etc\//d' ${WRKSRC}/setup.cfg |
107 |
# Replace (hardcoded) paths of config, documentation and Python files |
108 |
@${GREP} -Rl -Ee '${MY_REGEX}' --null \ |
109 |
${WRKSRC}/etc ${WRKSRC}/doc ${WRKSRC}/glance | \ |
110 |
${XARGS} -0 ${REINPLACE_CMD} -i '' -Ee \ |
111 |
"s,${MY_REGEX},${PREFIX}\1\2,g" |
112 |
|
73 |
post-install: |
113 |
post-install: |
74 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME} |
114 |
@${MKDIR} ${STAGEDIR}${ETCDIR}/metadefs |
75 |
${CP} -R ${WRKSRC}/etc/ ${STAGEDIR}${PREFIX}/etc/${PORTNAME} |
115 |
.for f in ${MY_CONFFILES} |
|
|
116 |
${INSTALL_DATA} ${WRKSRC}/etc/$f.sample ${STAGEDIR}${ETCDIR} |
117 |
.endfor |
118 |
${INSTALL_DATA} ${WRKSRC}/etc/metadefs/* ${STAGEDIR}${ETCDIR}/metadefs |
76 |
|
119 |
|
|
|
120 |
post-install-DOCS-on: |
121 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
122 |
(cd ${WRKSRC}/doc/build/html && \ |
123 |
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ |
124 |
"! -name .buildinfo -and ! -name objects.inv") |
125 |
|
77 |
.include <bsd.port.mk> |
126 |
.include <bsd.port.mk> |