aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-swift/Makefile
blob: 4d5da2bc0e33b2fd6a927c680d50815584fd010b (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
117
118
119
120
121
122
123
124
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=   swift
PORTVERSION=    1.9.0
CATEGORIES= databases python
MASTER_SITES=   http://launchpadlibrarian.net/143982818/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= gslin@gslin.org
COMMENT=    Highly available, distributed, eventually consistent object/blob store

LICENSE=    AL2

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}PasteDeploy>0:${PORTSDIR}/www/py-pastedeploy \
        ${PYTHON_PKGNAMEPREFIX}d2to1>=0.2.10:${PORTSDIR}/devel/py-d2to1 \
        ${PYTHON_PKGNAMEPREFIX}dnspython>=1.10.0:${PORTSDIR}/dns/py-dnspython \
        ${PYTHON_PKGNAMEPREFIX}eventlet>=0.9.8:${PORTSDIR}/net/py-eventlet \
        ${PYTHON_PKGNAMEPREFIX}netifaces>=0:${PORTSDIR}/net/py-netifaces \
        ${PYTHON_PKGNAMEPREFIX}simplejson>=0:${PORTSDIR}/devel/py-simplejson \
        ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3 \
        ${PYTHON_PKGNAMEPREFIX}webob>=0.9.8:${PORTSDIR}/www/py-webob \
        ${PYTHON_PKGNAMEPREFIX}xattr>=0:${PORTSDIR}/devel/py-xattr \
        rsync>=3.0:${PORTSDIR}/net/rsync

USE_PYTHON= -2.7
USE_PYDISTUTILS=    easy_install
USE_RC_SUBR=    swift

MAN1=       swift-account-auditor.1 \
        swift-account-reaper.1 \
        swift-account-replicator.1 \
        swift-account-server.1 \
        swift-container-auditor.1 \
        swift-container-replicator.1 \
        swift-container-server.1 \
        swift-container-sync.1 \
        swift-container-updater.1 \
        swift-dispersion-populate.1 \
        swift-dispersion-report.1 \
        swift-get-nodes.1 \
        swift-init.1 \
        swift-object-auditor.1 \
        swift-object-expirer.1 \
        swift-object-info.1 \
        swift-object-replicator.1 \
        swift-object-server.1 \
        swift-object-updater.1 \
        swift-orphans.1 \
        swift-proxy-server.1 \
        swift-recon.1 \
        swift-ring-builder.1

MAN5=       account-server.conf.5 \
        container-server.conf.5 \
        dispersion.conf.5 \
        object-expirer.conf.5 \
        object-server.conf.5 \
        proxy-server.conf.5

post-patch:
    @${REINPLACE_CMD} -e "s|/etc/swift|${PREFIX}/etc/${PORTNAME}|" \
        ${WRKSRC}/bin/swift-account-audit \
        ${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}/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-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}/swift/account/reaper.py \
        ${WRKSRC}/swift/common/constraints.py \
        ${WRKSRC}/swift/common/db_replicator.py \
        ${WRKSRC}/swift/common/manager.py \
        ${WRKSRC}/swift/common/middleware/memcache.py \
        ${WRKSRC}/swift/common/middleware/recon.py \
        ${WRKSRC}/swift/common/middleware/staticweb.py \
        ${WRKSRC}/swift/common/utils.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/probe/test_account_failures.py \
        ${WRKSRC}/test/probe/test_container_failures.py \
        ${WRKSRC}/test/probe/test_empty_device_handoff.py \
        ${WRKSRC}/test/probe/test_object_async_update.py \
        ${WRKSRC}/test/probe/test_object_failures.py \
        ${WRKSRC}/test/probe/test_object_handoff.py \
        ${WRKSRC}/test/sample.conf \
        ${WRKSRC}/test/unit/common/middleware/test_memcache.py
    @${FIND} ${WRKSRC} -type f -name "*.bak" -delete

post-install:
    ${MKDIR} ${PREFIX}/etc/${PORTNAME}
    ${CP} -R ${WRKSRC}/etc/ ${PREFIX}/etc/${PORTNAME}
.for i in ${MAN1}
    ${INSTALL_MAN} ${WRKSRC}/doc/manpages/${i} ${MANPREFIX}/man/man1/${i}
.endfor
.for i in ${MAN5}
    ${INSTALL_MAN} ${WRKSRC}/doc/manpages/${i} ${MANPREFIX}/man/man5/${i}
.endfor

.include <bsd.port.mk>