aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/eiskaltdcpp-cli/Makefile
blob: 5d3cc8eed2a87cd5f51535821ce7918e3e86a9a1 (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: Maxim Ignatenko <gelraen.ua@gmail.com>
# $FreeBSD$

PORTNAME=   eiskaltdcpp
CATEGORIES= net-p2p
PKGNAMESUFFIX=  -cli

MAINTAINER= ports@FreeBSD.org
COMMENT=    EiskaltDC++ Direct Connect command-line interface

LICENSE=    GPLv3

RUN_DEPENDS=    p5-RPC-XML>=0:${PORTSDIR}/net/p5-RPC-XML \
        p5-JSON-RPC>=0:${PORTSDIR}/devel/p5-JSON-RPC \
        p5-Term-ShellUI>=0:${PORTSDIR}/shells/p5-Term-ShellUI

MASTERDIR=  ${.CURDIR}/../eiskaltdcpp-lib

NO_BUILD=   yes
NO_ARCH=    yes
USES=       perl5 shebangfix
USE_PERL5=  run
SHEBANG_FILES=  eiskaltdcpp-cli/*.pl

do-install:
    @${INSTALL_SCRIPT} "${WRKSRC}/eiskaltdcpp-cli/cli-jsonrpc.pl" \
        "${STAGEDIR}${PREFIX}/bin/eiskaltdcpp-cli-jsonrpc"
    @${INSTALL_SCRIPT} "${WRKSRC}/eiskaltdcpp-cli/cli-xmlrpc.pl" \
        "${STAGEDIR}${PREFIX}/bin/eiskaltdcpp-cli-xmlrpc"
    @${INSTALL_MAN} "${WRKSRC}/eiskaltdcpp-cli/eiskaltdcpp-cli-jsonrpc.1" \
        "${STAGEDIR}${PREFIX}/man/man1/"
    @${INSTALL_MAN} "${WRKSRC}/eiskaltdcpp-cli/eiskaltdcpp-cli-xmlrpc.1" \
        "${STAGEDIR}${PREFIX}/man/man1/"
    @${MKDIR} "${STAGEDIR}${PREFIX}/etc/eiskaltdcpp" || true
    @${INSTALL_DATA} "${WRKSRC}/eiskaltdcpp-cli/cli-jsonrpc-config.pl" \
        "${STAGEDIR}${PREFIX}/etc/eiskaltdcpp/cli-jsonrpc-config.pl.sample"
    @${INSTALL_DATA} "${WRKSRC}/eiskaltdcpp-cli/cli-xmlrpc-config.pl" \
        "${STAGEDIR}${PREFIX}/etc/eiskaltdcpp/cli-xmlrpc-config.pl.sample"

.include "${MASTERDIR}/Makefile"