aboutsummaryrefslogtreecommitdiffstats
path: root/security/libwhisker/Makefile
blob: 81f7678e82472d85f45aeb5633aafaf03a97e0b9 (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
# New ports collection makefile for:    libwhisker
# Date created:             20 September 2002
# Whom:                 pandzilla
#
# $FreeBSD$
#

PORTNAME=   libwhisker
PORTVERSION=    2.1
CATEGORIES= security perl5
MASTER_SITES=   http://www.wiretrip.net/rfp/${PORTNAME}/

MAINTAINER= araujo@FreeBSD.org
COMMENT=    Perl module to create HTTP test scripts

WRKSRC=     ${WRKDIR}/${PORTNAME}2-${PORTVERSION}

NO_BUILD=   yes
USE_PERL5=  yes

PLIST_FILES=    ${SITE_PERL_REL}/LW.pm \
        ${SITE_PERL_REL}/LW2.pm

MAN3=       LW2.3pm
MANPREFIX=  ${LOCALBASE}/lib/perl5/${PERL_VERSION}/perl/

.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PERL5} Makefile.pl lib

do-install:
    @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PERL5} Makefile.pl ${INSTALL_TARGET}
    @${INSTALL_DATA} ${WRKSRC}/compat/LW.pm ${SITE_PERL}
    @${CHMOD} 444 ${SITE_PERL}/LW2.pm

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/docs ${DOCSDIR}/scripts
    cd ${WRKSRC} && ${INSTALL_DATA} README CHANGES KNOWNBUGS ${DOCSDIR}
    cd ${WRKSRC}/docs/ && ${INSTALL_DATA} * ${DOCSDIR}/docs
    cd ${WRKSRC}/scripts/ && ${INSTALL_SCRIPT} * ${DOCSDIR}/scripts
.endif

.include <bsd.port.mk>