View | Details | Raw Unified | Return to bug 235701 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +24 lines)
Lines 36-44 Link Here
36
NO_ARCH=	yes
36
NO_ARCH=	yes
37
SUB_FILES=	500.certbot
37
SUB_FILES=	500.certbot
38
PLIST_FILES=	etc/periodic/weekly/500.certbot
38
PLIST_FILES=	etc/periodic/weekly/500.certbot
39
UNIQUE_SUFFIX_FILES+=	etc/periodic/weekly/500.certbot
39
40
41
OPTIONS_DEFINE=	MANPAGES
42
OPTIONS_DEFAULT=	MANPAGES
43
MANPAGES_DESC=	Build manpages
44
45
MANPAGES_USES=	gmake
46
MANPAGES_BUILD_DEPENDS=	${RUN_DEPENDS} \
47
			${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
48
			sphinx-build:textproc/py-sphinx@${PY_FLAVOR} \
49
			${PYTHON_PKGNAMEPREFIX}repoze.sphinx.autointerface>0:devel/py-repoze.sphinx.autointerface@${PY_FLAVOR} \
50
51
MANPAGES_PLIST_FILES=	share/man/man1/certbot.1.gz \
52
			share/man/man7/certbot.7.gz
53
40
post-patch:
54
post-patch:
41
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/certbot/compat/misc.py
55
	${REINPLACE_CMD} -i ""  's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/certbot/compat/misc.py
42
56
43
post-install:
57
post-install:
44
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/weekly
58
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/weekly
Lines 45-52 Link Here
45
	${INSTALL_SCRIPT} ${WRKDIR}/500.certbot \
59
	${INSTALL_SCRIPT} ${WRKDIR}/500.certbot \
46
		${STAGEDIR}${PREFIX}/etc/periodic/weekly
60
		${STAGEDIR}${PREFIX}/etc/periodic/weekly
47
61
62
post-build-MANPAGES-on:
63
	${DO_MAKE_BUILD} -C ${WRKSRC}/docs man
64
	(${ECHO}  ".if n .pl 2000v" && ${CAT} ${WRKSRC}/docs/_build/man/certbot.7) > ${WRKSRC}/docs/_build/dummy1 && ${MV} ${WRKSRC}/docs/_build/dummy1 ${WRKSRC}/docs/_build/man/certbot.7 
65
48
do-test:
66
do-test:
49
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
67
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
50
68
69
post-install-MANPAGES-on:
70
	${INSTALL_MAN} ${WRKSRC}/docs/_build/man/certbot.1 ${STAGEDIR}${PREFIX}/share/man/man1
71
	${INSTALL_MAN} ${WRKSRC}/docs/_build/man/certbot.7 ${STAGEDIR}${PREFIX}/share/man/man7
72
51
.include "${.CURDIR}/../py-acme/version.mk"
73
.include "${.CURDIR}/../py-acme/version.mk"
74
52
.include <bsd.port.mk>
75
.include <bsd.port.mk>

Return to bug 235701