mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
551be3c723
Ports using USE_PYTHON=distutils are now flavored. They will automatically get flavors (py27, py34, py35, py36) depending on what versions they support. There is also a USE_PYTHON=flavors for ports that do not use distutils but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if using distutils but flavors are not wanted. A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been added to cope with Python ports that did not have the Python PKGNAMEPREFIX but are flavored. USES=python now also exports a PY_FLAVOR variable that contains the current python flavor. It can be used in dependency lines when the port itself is not python flavored. For example, deskutils/calibre. By default, all the flavors are generated. To only generate flavors for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf. In all the ports with Python dependencies, the *_DEPENDS entries MUST end with the flavor so that the framework knows which to build/use. This is done by appending '@${PY_FLAVOR}' after the origin (or @${FLAVOR} if in a Python module with Python flavors, as the content will be the same). For example: RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} PR: 223071 Reviewed by: portmgr, python Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12464
117 lines
4.3 KiB
Makefile
117 lines
4.3 KiB
Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= swift
|
|
PORTVERSION= 2.2.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= http://launchpadlibrarian.net/196367574/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= trociny@FreeBSD.org
|
|
COMMENT= Highly available, distributed, eventually consistent object/blob store
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=0.5.21:devel/py-pbr@${FLAVOR}
|
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}PasteDeploy>0:www/py-pastedeploy@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}dnspython>=1.10.0:dns/py-dnspython@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}eventlet>=0.9.8:net/py-eventlet@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}netifaces>=0:net/py-netifaces@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}python-swiftclient>=0:databases/py-python-swiftclient@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}webob>=0.9.8:www/py-webob@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}xattr>=0:devel/py-xattr@${FLAVOR} \
|
|
memcached>=0:databases/memcached \
|
|
rsync>=3.0:net/rsync
|
|
|
|
USES= python:2.7
|
|
USE_PYTHON= distutils autoplist
|
|
USE_RC_SUBR= swift
|
|
USERS= swift
|
|
GROUPS= swift
|
|
|
|
post-extract:
|
|
@(cd ${WRKSRC}/etc; \
|
|
for f in *-sample; do\
|
|
${MV} $${f} $${f%%-sample}.sample;\
|
|
done)
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|/etc/swift|${PREFIX}/etc/${PORTNAME}|" \
|
|
-e "s|conf-sample|conf.sample|" \
|
|
-e "s|types-sample|types.sample|" \
|
|
${WRKSRC}/bin/swift-account-audit \
|
|
${WRKSRC}/bin/swift-account-info \
|
|
${WRKSRC}/bin/swift-container-info \
|
|
${WRKSRC}/bin/swift-dispersion-populate \
|
|
${WRKSRC}/bin/swift-dispersion-report \
|
|
${WRKSRC}/bin/swift-get-nodes \
|
|
${WRKSRC}/bin/swift-object-info \
|
|
${WRKSRC}/bin/swift-recon \
|
|
${WRKSRC}/bin/swift-recon-cron \
|
|
${WRKSRC}/bin/swift-reconciler-enqueue \
|
|
${WRKSRC}/doc/manpages/account-server.conf.5 \
|
|
${WRKSRC}/doc/manpages/container-server.conf.5 \
|
|
${WRKSRC}/doc/manpages/dispersion.conf.5 \
|
|
${WRKSRC}/doc/manpages/object-expirer.conf.5 \
|
|
${WRKSRC}/doc/manpages/object-server.conf.5 \
|
|
${WRKSRC}/doc/manpages/proxy-server.conf.5 \
|
|
${WRKSRC}/doc/manpages/swift-dispersion-populate.1 \
|
|
${WRKSRC}/doc/manpages/swift-dispersion-report.1 \
|
|
${WRKSRC}/doc/manpages/swift-get-nodes.1 \
|
|
${WRKSRC}/doc/manpages/swift-recon.1 \
|
|
${WRKSRC}/etc/account-server.conf.sample \
|
|
${WRKSRC}/etc/container-reconciler.conf.sample \
|
|
${WRKSRC}/etc/container-server.conf.sample \
|
|
${WRKSRC}/etc/dispersion.conf.sample \
|
|
${WRKSRC}/etc/object-expirer.conf.sample \
|
|
${WRKSRC}/etc/object-server.conf.sample \
|
|
${WRKSRC}/etc/proxy-server.conf.sample \
|
|
${WRKSRC}/etc/swift.conf.sample \
|
|
${WRKSRC}/swift.egg-info/SOURCES.txt \
|
|
${WRKSRC}/swift/account/reaper.py \
|
|
${WRKSRC}/swift/cli/info.py \
|
|
${WRKSRC}/swift/cli/recon.py \
|
|
${WRKSRC}/swift/common/constraints.py \
|
|
${WRKSRC}/swift/common/db_replicator.py \
|
|
${WRKSRC}/swift/common/manager.py \
|
|
${WRKSRC}/swift/common/middleware/account_quotas.py \
|
|
${WRKSRC}/swift/common/middleware/container_quotas.py \
|
|
${WRKSRC}/swift/common/middleware/container_sync.py \
|
|
${WRKSRC}/swift/common/middleware/gatekeeper.py \
|
|
${WRKSRC}/swift/common/middleware/list_endpoints.py \
|
|
${WRKSRC}/swift/common/middleware/memcache.py \
|
|
${WRKSRC}/swift/common/middleware/recon.py \
|
|
${WRKSRC}/swift/common/middleware/staticweb.py \
|
|
${WRKSRC}/swift/common/middleware/tempauth.py \
|
|
${WRKSRC}/swift/common/utils.py \
|
|
${WRKSRC}/swift/container/reconciler.py \
|
|
${WRKSRC}/swift/container/server.py \
|
|
${WRKSRC}/swift/container/sync.py \
|
|
${WRKSRC}/swift/container/updater.py \
|
|
${WRKSRC}/swift/obj/expirer.py \
|
|
${WRKSRC}/swift/obj/replicator.py \
|
|
${WRKSRC}/swift/obj/server.py \
|
|
${WRKSRC}/swift/obj/updater.py \
|
|
${WRKSRC}/swift/proxy/server.py \
|
|
${WRKSRC}/test/__init__.py \
|
|
${WRKSRC}/test/functional/tests.py \
|
|
${WRKSRC}/test/probe/common.py \
|
|
${WRKSRC}/test/sample.conf \
|
|
${WRKSRC}/test/unit/common/middleware/test_memcache.py
|
|
@${FIND} ${WRKSRC} -type f -name "*.bak" -delete
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
|
|
${CP} -R ${WRKSRC}/etc/ ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
|
|
.for n in 1 5
|
|
${INSTALL_MAN} ${WRKSRC}/doc/manpages/*.${n} \
|
|
${STAGEDIR}${MANPREFIX}/man/man${n}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|