aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/eiskaltdcpp-cli/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/eiskaltdcpp-cli/Makefile')
-rw-r--r--net-p2p/eiskaltdcpp-cli/Makefile42
1 files changed, 22 insertions, 20 deletions
diff --git a/net-p2p/eiskaltdcpp-cli/Makefile b/net-p2p/eiskaltdcpp-cli/Makefile
index 16157515df8d..646fea524d6b 100644
--- a/net-p2p/eiskaltdcpp-cli/Makefile
+++ b/net-p2p/eiskaltdcpp-cli/Makefile
@@ -1,11 +1,9 @@
# Created by: Maxim Ignatenko <gelraen.ua@gmail.com>
# $FreeBSD$
-PORTNAME= eiskaltdcpp-cli
-PORTVERSION= 2.2.4
+PORTNAME= eiskaltdcpp
CATEGORIES= net-p2p
-MASTER_SITES= GOOGLE_CODE
-DISTNAME= eiskaltdcpp-${DISTVERSION}
+PKGNAMESUFFIX= -cli
MAINTAINER= ports@FreeBSD.org
COMMENT= EiskaltDC++ Direct Connect command-line interface
@@ -13,26 +11,30 @@ 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
-PROJECTHOST= eiskaltdc
+MASTERDIR= ${.CURDIR}/../eiskaltdcpp-lib
NO_BUILD= yes
-USES= perl5 tar:xz
+NO_ARCH= yes
+USES= perl5 shebangfix
USE_PERL5= run
+SHEBANG_FILES= eiskaltdcpp-cli/*.pl
-MAN1= ${PORTNAME}.1
-MANCOMPRESSED= no
-
-NO_STAGE= yes
do-install:
- @${INSTALL_SCRIPT} "${WRKSRC}/${PORTNAME}/cli.pl" "${PREFIX}/bin/eiskaltdcpp-cli"
- @${INSTALL_MAN} "${WRKSRC}/${PORTNAME}/eiskaltdcpp-cli.1" "${PREFIX}/man/man1/"
- @${MKDIR} "${PREFIX}/etc/eiskaltdcpp" || true
- @${INSTALL_DATA} "${WRKSRC}/${PORTNAME}/config.pl" "${PREFIX}/etc/eiskaltdcpp/config.pl.dist"
- @if [ ! -f "${PREFIX}/etc/eiskaltdcpp/config.pl" ]; then \
- ${CP} -pv "${PREFIX}/etc/eiskaltdcpp/config.pl.dist" \
- "${PREFIX}/etc/eiskaltdcpp/config.pl"; \
- fi
-
-.include <bsd.port.mk>
+ @${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.dist"
+ @${INSTALL_DATA} "${WRKSRC}/eiskaltdcpp-cli/cli-xmlrpc-config.pl" \
+ "${STAGEDIR}${PREFIX}/etc/eiskaltdcpp/cli-xmlrpc-config.pl.dist"
+
+.include "${MASTERDIR}/Makefile"