aboutsummaryrefslogtreecommitdiffstats
path: root/net/gwhois/Makefile
blob: c25e40fa07b1a02a59e1409926369a18f46c6730 (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
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gwhois
PORTVERSION=    20120626
CATEGORIES= net
MASTER_SITES=   http://julijane.de/gwhois/
DISTNAME=   ${PORTNAME}_${DISTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Flexible whois client and proxy

RUN_DEPENDS=    p5-libwww>=5.805:${PORTSDIR}/www/p5-libwww \
        p5-Net-LibIDN>=0:${PORTSDIR}/dns/p5-Net-LibIDN \
        lynx:${PORTSDIR}/www/lynx \
        curl:${PORTSDIR}/ftp/curl

NO_BUILD=   yes
USES=       perl5 shebangfix
USE_PERL5=  run
SHEBANG_FILES=  gwhois
WRKSRC=     ${WRKDIR}/${PORTNAME}-${DISTVERSION}
PLIST_FILES=    bin/${PORTNAME} man/man1/gwhois.1.gz %%DATADIR%%/pattern
PORTDOCS=   TODO README.RIPE

OPTIONS_DEFINE= DOCS

post-patch:
    ${REINPLACE_CMD} -e 's|/etc/gwhois|${DATADIR}|g'\
        ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/pattern ${STAGEDIR}${DATADIR}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>