aboutsummaryrefslogtreecommitdiff
path: root/databases/py-swift/Makefile
blob: cd53b119737e4a250ff59751e21e49979f4b7f29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# 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

RUN_DEPENDS:=	${BUILD_DEPENDS}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}PasteDeploy>0:www/py-pastedeploy \
		${PYTHON_PKGNAMEPREFIX}dnspython>=1.10.0:dns/py-dnspython \
		${PYTHON_PKGNAMEPREFIX}eventlet>=0.9.8:net/py-eventlet \
		${PYTHON_PKGNAMEPREFIX}netifaces>=0:net/py-netifaces \
		${PYTHON_PKGNAMEPREFIX}python-swiftclient>=0:databases/py-python-swiftclient \
		${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson \
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3 \
		${PYTHON_PKGNAMEPREFIX}webob>=0.9.8:www/py-webob \
		${PYTHON_PKGNAMEPREFIX}xattr>=0:devel/py-xattr \
		memcached>=0:databases/memcached \
		rsync>=3.0:net/rsync

USES=		python:2
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>