summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authormartti <martti>2002-01-21 13:19:08 +0000
committermartti <martti>2002-01-21 13:19:08 +0000
commitd2428a7de2db4ac818a9e9deefe5e22397c0ee73 (patch)
tree7901f4b9be34064ba33a71a82b3bd8520c2d589a /net
parent0623784b8766690c2c4de71c667cd4cb9debf2f0 (diff)
downloadpkgsrc-d2428a7de2db4ac818a9e9deefe5e22397c0ee73.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')
-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"