aboutsummaryrefslogtreecommitdiffstats
path: root/databases/gnatsweb4/Makefile
blob: b8076442d13688b2c089c3c4f3fa1efb7608c6a8 (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
# Created by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
# $FreeBSD$

PORTNAME=   gnatsweb
PORTVERSION=    4.00
PORTREVISION=   6
CATEGORIES= databases devel www
MASTER_SITES=   GNU

MAINTAINER= ports@FreeBSD.org
COMMENT=    Gnatsweb, a GNATS web interface

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

RUN_DEPENDS=    p5-MIME-Base64>=0:converters/p5-MIME-Base64

USES=       apache:run,2.2+ perl5 shebangfix
SHEBANG_FILES=  gnatsweb.pl
USE_PERL5=  run
NO_BUILD=   yes
NO_ARCH=    yes

CGI_DIR?=   ${WWWDIR}/cgi-bin

PLIST_SUB=  CGI_DIR="${CGI_DIR:S,^${PREFIX}/,,}"

PORTDOCS=   CUSTOMIZE CUSTOMIZE.cb CUSTOMIZE.vars \
        ChangeLog INSTALL NEWS README TROUBLESHOOTING

PORTEXAMPLES=   gnatsweb-site-example.pl

OPTIONS_DEFINE= DOCS EXAMPLES

do-install:
    @${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${CGI_DIR} \
        ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/gnatsweb-site.pl \
        ${STAGEDIR}${ETCDIR}/gnatsweb-site.pl.sample
    ${INSTALL_SCRIPT} ${WRKSRC}/gnatsweb.pl ${STAGEDIR}${CGI_DIR}
    ${LN} -s  ${ETCDIR}/gnatsweb-site.pl ${STAGEDIR}${CGI_DIR}
    ${INSTALL_DATA} ${WRKSRC}/gnatsweb.html ${STAGEDIR}${CGI_DIR}

do-install-DOCS-on:
.for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor

do-install-EXAMPLES-on:
.for example in ${PORTEXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/${example} ${STAGEDIR}${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>