Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= certbot |
4 |
PORTNAME= certbot |
5 |
PORTVERSION= ${ACME_VERSION} |
5 |
PORTVERSION= ${ACME_VERSION} |
6 |
PORTEPOCH= 1 |
6 |
PORTEPOCH= 2 |
7 |
CATEGORIES= security python |
7 |
CATEGORIES= security python |
8 |
MASTER_SITES= CHEESESHOP |
8 |
MASTER_SITES= CHEESESHOP |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 32-39
Link Here
|
32 |
USES= python |
32 |
USES= python |
33 |
USE_PYTHON= autoplist concurrent distutils |
33 |
USE_PYTHON= autoplist concurrent distutils |
34 |
|
34 |
|
|
|
35 |
OPTIONS_DEFINE= MANPAGES |
36 |
MAN_DESC= Build manpages |
37 |
OPTIONS_DEFAULT= MANPAGES |
38 |
|
39 |
MANPAGES_USES= gmake |
40 |
MANPAGES_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx@${PY_FLAVOR} \ |
41 |
${PYTHON_PKGNAMEPREFIX}repoze.sphinx.autointerface>0:devel/py-repoze.sphinx.autointerface@${PY_FLAVOR} \ |
42 |
gsed:textproc/gsed |
43 |
MANPAGES_PLIST_FILES= man/man1/certbot.1.gz \ |
44 |
man/man7/certbot.7.gz |
45 |
|
35 |
NO_ARCH= yes |
46 |
NO_ARCH= yes |
36 |
|
47 |
|
|
|
48 |
SED_CMD= ${LOCALBASE}/bin/gsed |
49 |
|
50 |
.include <bsd.port.options.mk> |
51 |
|
37 |
post-patch: |
52 |
post-patch: |
38 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/certbot/compat.py |
53 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/certbot/compat.py |
39 |
|
54 |
|
Lines 40-44
Link Here
|
40 |
do-test: |
55 |
do-test: |
41 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
56 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
42 |
|
57 |
|
|
|
58 |
pre-install: |
59 |
.if ${PORT_OPTIONS:MMANPAGES} |
60 |
${DO_MAKE_BUILD} -C ${WRKSRC}/docs man |
61 |
.endif |
62 |
|
63 |
post-install: |
64 |
.if ${PORT_OPTIONS:MMANPAGES} |
65 |
${INSTALL_MAN} ${WRKSRC}/docs/_build/man/certbot.1 ${STAGEDIR}${PREFIX}/man/man1 |
66 |
${INSTALL_MAN} ${WRKSRC}/docs/_build/man/certbot.7 ${STAGEDIR}${PREFIX}/man/man7 |
67 |
${SED_CMD} -i '1i\.if n .pl 2000v' ${STAGEDIR}${PREFIX}/man/man7/certbot.7 |
68 |
.endif |
69 |
|
43 |
.include "${.CURDIR}/../py-acme/version.mk" |
70 |
.include "${.CURDIR}/../py-acme/version.mk" |
|
|
71 |
|
44 |
.include <bsd.port.mk> |
72 |
.include <bsd.port.mk> |