blob: b875e4cbf285e2a352f768a518fdac5e4b50f531 (
plain)
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
|
PORTNAME= theonionbox
DISTVERSION= 4.3.1
PORTREVISION= 2
CATEGORIES= security net python
MASTER_SITES= CHEESESHOP
MAINTAINER= yuri@FreeBSD.org
COMMENT= Web interface to monitor Tor node operation
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}apscheduler>=3.4:devel/py-apscheduler@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}bottle>=0.12.13:www/py-bottle@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}psutil>=5.4.0:sysutils/py-psutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pysocks>=1.6.7:net/py-pysocks@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>2.18:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}stem>=1.5.4:security/py-stem@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tzlocal>=1.5:devel/py-tzlocal@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>=1.22:net/py-urllib3@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} # workaround for bug#230613: missing internal sqlite3 module in python
USES= python:3.6+
USE_PYTHON= distutils autoplist noflavors
NO_ARCH= yes
POST_PLIST= correct-plist
OPTIONS_DEFINE= DOCS
post-patch:
@${MV} ${WRKSRC}/FreeBSD/${PORTNAME}.sh ${WRKSRC}/FreeBSD/${PORTNAME}
@${REINPLACE_CMD} ' \
s|"/your/path/to/${PORTNAME}"|"${PREFIX}"|; \
s|${PORTNAME}_dir}/${PORTNAME}\.py|${PORTNAME}_dir}/bin/${PORTNAME}|; \
s|/config/${PORTNAME}.cfg|/etc/${PORTNAME}/${PORTNAME}|; \
s|"/usr/local/bin/python"|"${PYTHON_CMD}"|' \
${WRKSRC}/FreeBSD/${PORTNAME}
post-patch-DOCS-off:
@${REINPLACE_CMD} "s|('share/doc/${PORTNAME}', \['docs/\*\.\*'\]),||" ${WRKSRC}/setup.py
post-install:
@${CHMOD} +x ${STAGEDIR}${PREFIX}/etc/rc.d/${PORTNAME}
correct-plist:
@${REINPLACE_CMD} ' \
s|^etc/${PORTNAME}/${PORTNAME}.example$$|@sample & etc/${PORTNAME}/${PORTNAME}|; \
s|^etc/${PORTNAME}$$|@dir &|; \
s|^etc/rc.d$$|@dir &|; \
s|^share/doc/${PORTNAME}$$|@dir &|' \
${TMPPLIST}
.include <bsd.port.mk>
|