aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-openxpki-client-html-mason/Makefile
blob: 498e26e2443af96a685e93104c1a9303b6b1b65e (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
# New ports collection makefile for:    p5-openxpki-client-html-mason
# Date created:             03 Oct 2006
# Whom:                 svysh
#
# $FreeBSD$
#

PORTNAME=   openxpki-client-html-mason
PORTVERSION=    0.9.1396
CATEGORIES= security perl5
MASTER_SITES=   SF/openxpki/openxpki/0.9.1300
PKGNAMEPREFIX=  p5-
DISTNAME=   OpenXPKI-Client-HTML-Mason-${PORTVERSION}
DIST_SUBDIR=    openxpki

MAINTAINER= svysh@pn.sinp.msu.ru
COMMENT=    Web interface for local openxpki daemon

BUILD_DEPENDS=  \
    p5-openxpki-client>=0:${PORTSDIR}/security/p5-openxpki-client \
    p5-HTML-Mason>=0:${PORTSDIR}/www/p5-HTML-Mason \
    p5-Data-SpreadPagination>=0:${PORTSDIR}/textproc/p5-Data-SpreadPagination
RUN_DEPENDS:=   ${BUILD_DEPENDS}

MAN3=   OpenXPKI::Client::HTML::Mason.3 \
    OpenXPKI::Client::HTML::Mason::CRR.3 \
    OpenXPKI::Client::HTML::Mason::Config.3 \
    OpenXPKI::Client::HTML::Mason::Javascript.3 \
    OpenXPKI::Client::HTML::Mason::Menu.3
USE_GMAKE=  yes
PERL_CONFIGURE= yes

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    @${CP} -R ${WRKSRC}/htdocs ${DOCSDIR}/
    @${ECHO_MSG} ""
    @${ECHO_MSG} "==================================================================="
    @${ECHO_MSG} "===> Mason htdocs for ${DISTNAME}"
    @${ECHO_MSG} "===> installed in ${DOCSDIR}"
    @${ECHO_MSG} "==================================================================="
    @${ECHO_MSG} ""
.if !defined(BATCH)
    @sleep 3
.endif
.endif
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}
    @${CP} -R ${WRKSRC}/eg ${EXAMPLESDIR}/
    @${ECHO_MSG} ""
    @${ECHO_MSG} "==================================================================="
    @${ECHO_MSG} "===> Examples of simple Mason configuration via httpd.conf directives"
    @${ECHO_MSG} "===> installed in ${EXAMPLESDIR}"
    @${ECHO_MSG} "==================================================================="
    @${ECHO_MSG} ""
.if !defined(BATCH)
    @sleep 3
.endif
.endif
.if !defined(NOPORTDATA)
    ${MKDIR} ${DATADIR}
    @${MKDIR} ${DATADIR}
    @${CP} -R ${WRKSRC}/bin ${DATADIR}/
    @${ECHO_MSG} ""
    @${ECHO_MSG} "==================================================================="
    @${ECHO_MSG} "===> Examples of CGI scripts for ${DISTNAME}"
    @${ECHO_MSG} "===> installed in ${DATADIR}"
    @${ECHO_MSG} "==================================================================="
    @${ECHO_MSG} ""
.if !defined(BATCH)
    @sleep 3
.endif
.endif

.include <bsd.port.mk>