1998-12-28 18:38:16 -05:00
|
|
|
# New ports collection makefile for: Citrix(R) ICA(R) Client
|
1998-09-21 17:30:24 -04:00
|
|
|
# Date created: 20 Sep 1998
|
|
|
|
# Whom: msmith
|
|
|
|
#
|
1999-08-30 10:24:37 -04:00
|
|
|
# $FreeBSD$
|
1998-09-21 17:30:24 -04:00
|
|
|
#
|
|
|
|
|
2000-04-09 14:14:07 -04:00
|
|
|
PORTNAME= citrix_ica
|
2002-09-14 04:09:35 -04:00
|
|
|
PORTVERSION= 6.30.1052
|
2000-10-04 02:40:08 -04:00
|
|
|
CATEGORIES= net comms linux
|
2000-12-12 10:54:55 -05:00
|
|
|
MASTER_SITES=
|
2002-09-14 04:09:35 -04:00
|
|
|
DISTNAME= ${PORTNAME}-linuxx86
|
1998-09-21 17:30:24 -04:00
|
|
|
|
2001-12-23 18:27:43 -05:00
|
|
|
MAINTAINER= mbr@FreeBSD.org
|
1998-09-21 17:30:24 -04:00
|
|
|
|
2001-01-16 12:33:20 -05:00
|
|
|
RUN_DEPENDS= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
|
1998-09-21 17:30:24 -04:00
|
|
|
|
1999-01-06 21:31:51 -05:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
RESTRICTED= "License prohibits redistribution"
|
|
|
|
IS_INTERACTIVE= "Noisy license agreement ignores stdin"
|
|
|
|
|
2001-01-16 12:33:20 -05:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
1998-09-21 17:30:24 -04:00
|
|
|
|
2001-01-16 12:33:20 -05:00
|
|
|
CDIR= ${PREFIX}/ICAClient
|
1998-09-21 17:30:24 -04:00
|
|
|
BINDIR= ${PREFIX}/bin
|
|
|
|
|
2002-01-21 19:43:03 -05:00
|
|
|
NSCP= /usr/local/libexec/netscape \
|
|
|
|
/usr/local/libexec/netscape-linux \
|
|
|
|
/usr/local/netscape \
|
|
|
|
/usr/local/netscape-linux \
|
|
|
|
/usr/local/lib/netscape \
|
|
|
|
/usr/local/lib/netscape-linux \
|
|
|
|
${MOZILLA_HOME}
|
|
|
|
|
1999-01-04 11:26:59 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-09-14 04:09:35 -04:00
|
|
|
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
|
|
|
IGNORE='The distribution file for this port may not be automatically fetched due to licensing restrictions.'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-fetch:
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You have to fetch the file manually after reading and"
|
|
|
|
@${ECHO} "agreeing to the license at:"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "http://www.citrix.com/download/bin/license.asp?client=linux"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "Once linuxx86.tar.gz has been downloaded move it to"
|
|
|
|
@${ECHO} "${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} and restart the build."
|
|
|
|
@${ECHO} ""
|
|
|
|
@${FALSE}
|
1999-01-04 11:26:59 -05:00
|
|
|
.endif
|
1998-12-28 18:38:16 -05:00
|
|
|
|
1998-09-21 17:30:24 -04:00
|
|
|
do-install:
|
2001-12-23 18:27:43 -05:00
|
|
|
@if (test -d "${CDIR}") ; \
|
|
|
|
then \
|
|
|
|
${ECHO} "-----------------------------------------------------------" ; \
|
|
|
|
${ECHO} "" ; \
|
|
|
|
${ECHO} "A ${CDIR} installation does already exist." ; \
|
|
|
|
${ECHO} "Please move it away or delete the old port" ; \
|
|
|
|
${ECHO} "" ; \
|
|
|
|
${ECHO} "-----------------------------------------------------------" ; \
|
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
2002-01-21 19:43:03 -05:00
|
|
|
|
2002-01-29 06:48:57 -05:00
|
|
|
@${ECHO_CMD} -e "1\n${CDIR}\ny\ny\ny\ny\n3" > ${WRKSRC}/response ;
|
2002-01-21 19:43:03 -05:00
|
|
|
@for dir in ${NSCP}; do \
|
|
|
|
if [ -e $${dir}/plugins/libnullplugin.so ]; then \
|
|
|
|
BIN=`${FILE} $${dir}/plugins/libnullplugin.so | ${AWK} '{print $$11}'` ; \
|
|
|
|
case $${BIN} in \
|
|
|
|
\(SYSV\),) \
|
2002-01-29 06:48:57 -05:00
|
|
|
${ECHO_CMD} -e "1\n${CDIR}\ny\ny\ny\n3" > ${WRKSRC}/response ; \
|
2002-01-21 19:43:03 -05:00
|
|
|
esac \
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
1998-09-21 17:30:24 -04:00
|
|
|
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
|
|
|
|
> ${WRKSRC}/wfcmgr.x
|
|
|
|
${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \
|
|
|
|
> ${WRKSRC}/wfica.x
|
2000-12-12 10:54:55 -05:00
|
|
|
cd ${WRKSRC} && ${LINUXBASE}/bin/sh -c './setupwfc < response'
|
1998-09-21 17:30:24 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${PREFIX}/bin/wfcmgr
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${PREFIX}/bin/wfica
|
|
|
|
|
1999-01-04 11:26:59 -05:00
|
|
|
.include <bsd.port.post.mk>
|