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

Collapse All | Expand All

(-)Makefile (-1 / +29 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
			gsed:textproc/gsed
51
MANPAGES_PLIST_FILES=	share/man/man1/certbot.1.gz \
52
			share/man/man7/certbot.7.gz
53
54
SED_CMD=	${LOCALBASE}/bin/gsed
55
40
post-patch:
56
post-patch:
41
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/certbot/compat/misc.py
57
	${REINPLACE_CMD} -i ""  's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/certbot/compat/misc.py
42
58
43
post-install:
59
post-install:
44
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/weekly
60
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/weekly
Lines 45-52 Link Here
45
	${INSTALL_SCRIPT} ${WRKDIR}/500.certbot \
61
	${INSTALL_SCRIPT} ${WRKDIR}/500.certbot \
46
		${STAGEDIR}${PREFIX}/etc/periodic/weekly
62
		${STAGEDIR}${PREFIX}/etc/periodic/weekly
47
63
64
post-build-MANPAGES-on:
65
	${DO_MAKE_BUILD} -C ${WRKSRC}/docs man
66
48
do-test:
67
do-test:
49
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
68
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
50
69
70
post-install-MANPAGES-on:
71
	${INSTALL_MAN} ${WRKSRC}/docs/_build/man/certbot.1 ${STAGEDIR}${PREFIX}/share/man/man1
72
	${INSTALL_MAN} ${WRKSRC}/docs/_build/man/certbot.7 ${STAGEDIR}${PREFIX}/share/man/man7
73
	${SED_CMD} -i '1i\.if n .pl 2000v' ${STAGEDIR}${PREFIX}/share/man/man7/certbot.7
74
51
.include "${.CURDIR}/../py-acme/version.mk"
75
.include "${.CURDIR}/../py-acme/version.mk"
76
52
.include <bsd.port.mk>
77
.include <bsd.port.mk>
78
79
80

Return to bug 235701