summaryrefslogtreecommitdiff
path: root/net/xnap
diff options
context:
space:
mode:
Diffstat (limited to 'net/xnap')
-rw-r--r--net/xnap/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/xnap/Makefile b/net/xnap/Makefile
index 3a2403f9f78..97d2788f641 100644
--- a/net/xnap/Makefile
+++ b/net/xnap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/02/22 19:27:01 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2010/02/11 23:23:11 joerg Exp $
#
DISTNAME= xnap-2.0
@@ -10,9 +10,11 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://xnap.sourceforge.net/
COMMENT= Java filesharing client with support for OpenNap
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_BUILD= yes
-INSTALLATION_DIRS= bin
+INSTALLATION_DIRS= bin share/xnap share/doc/xnap
post-extract:
cd ${WRKSRC} && ${MV} xnap.sh xnap.sh.in
@@ -22,12 +24,9 @@ pre-configure:
-e 's|@PREFIX@|${PREFIX}|g' < xnap.sh.in > xnap.sh
do-install:
- ${CP} ${WRKSRC}/xnap.sh ${PREFIX}/bin/xnap
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/share/xnap
- ${CP} ${WRKSRC}/xnap.jar ${PREFIX}/share/xnap/xnap.jar
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/share/doc/xnap
- ${CP} ${WRKSRC}/README ${PREFIX}/share/doc/xnap
- ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/xnap ${PREFIX}/share/doc/xnap
+ ${INSTALL_SCRIPT} ${WRKSRC}/xnap.sh ${DESTDIR}${PREFIX}/bin/xnap
+ ${INSTALL_DATA} ${WRKSRC}/xnap.jar ${PREFIX}/share/xnap/xnap.jar
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xnap
.include "../../mk/java-vm.mk"