summaryrefslogtreecommitdiff
path: root/net/citrix_ica
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2002-01-21 13:19:08 +0000
committermartti <martti@pkgsrc.org>2002-01-21 13:19:08 +0000
commit7d86586dffd9384bd92908ffa7fcec8a3d2ec959 (patch)
tree7901f4b9be34064ba33a71a82b3bd8520c2d589a /net/citrix_ica
parente2085318bc641fa6bb67e693e1ba47dbf6dc91cd (diff)
downloadpkgsrc-7d86586dffd9384bd92908ffa7fcec8a3d2ec959.tar.gz
* Refuse to install if ${PREFIX}/lib/ICAClient already exists (otherwise
the installation program goes crazy) * Fix path in the license generation script
Diffstat (limited to 'net/citrix_ica')
-rw-r--r--net/citrix_ica/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/citrix_ica/Makefile b/net/citrix_ica/Makefile
index 1bb824ef8f0..f8e7b08867f 100644
--- a/net/citrix_ica/Makefile
+++ b/net/citrix_ica/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2002/01/18 11:50:40 martti Exp $
+# $NetBSD: Makefile,v 1.7 2002/01/21 13:19:08 martti Exp $
#
DISTNAME= citrix_ica-client
@@ -55,6 +55,14 @@ pre-patch:
${MKDIR} ${PATCHDIR}
${CP} ${.CURDIR}/patches/patch-${MACHINE_ARCH}-* ${PATCHDIR}
+pre-install:
+ @if [ -d "${CDIR}" ]; then \
+ ${ECHO} ""; \
+ ${ECHO} "*** Please remove ${CDIR} and try again ***"; \
+ ${ECHO} ""; \
+ ${FALSE}; \
+ fi
+
do-install:
${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/response \
> ${WRKSRC}/response
@@ -65,5 +73,8 @@ do-install:
cd ${WRKSRC} && ./setupwfc < response
${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${PREFIX}/bin/wfcmgr
${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${PREFIX}/bin/wfica
+ ${SED} "s#/usr/lib/ICAClient#${CDIR}#g" \
+ < ${CDIR}/util/icalicense.sh > ${CDIR}/util/icalicense.sh.fixed
+ ${MV} ${CDIR}/util/icalicense.sh.fixed ${CDIR}/util/icalicense.sh
.include "../../mk/bsd.pkg.mk"