aboutsummaryrefslogtreecommitdiffstats
path: root/irc/infobot/Makefile
blob: 41616525b9e76da236136a3b40a7a411b9c18588 (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
# Created by: perlguy@perlguy.com
# $FreeBSD$

PORTNAME=   infobot
PORTVERSION=    0.45.3
CATEGORIES= irc
MASTER_SITES=   http://www.infobot.org/src/ \
        http://www.infobot.org/src/prior/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Bot written in Perl with a rabid AI

USES=       perl5
NO_BUILD=   yes

NO_STAGE=   yes
do-install:
    ${MKDIR} ${DATADIR}
    ${CP} -r ${WRKSRC}/src ${WRKSRC}/extras ${WRKSRC}/files \
        ${WRKSRC}/scripts ${DATADIR}/
    ${RM} ${DATADIR}/src/*.orig
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${WRKSRC}/REVISIONS ${DOCSDIR}
.endif
    ${MKDIR} ${PREFIX}/etc/infobot
    ${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/etc/infobot
    ${SED} -e 's,$$param{\(.\)basedir\(.\)} = .*,$$param{\1basedir\2} = "${DATADIR}";,' \
    -e 's,$$param{\(.\)confdir\(.\)} = .*,$$param{\1confdir\2} = "${PREFIX}/etc/infobot";,' \
    ${WRKSRC}/infobot  > ${WRKDIR}/infobot
    ${INSTALL_SCRIPT} ${WRKDIR}/infobot ${PREFIX}/bin

.include <bsd.port.mk>