2015-03-14 16:21:56 +01:00
|
|
|
# $NetBSD: Makefile,v 1.45 2015/03/14 15:21:56 joerg Exp $
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
DISTNAME= citrix_ica-10.6.115659
|
2011-03-17 10:05:32 +01:00
|
|
|
PKGREVISION= 2
|
2001-03-20 20:06:12 +01:00
|
|
|
CATEGORIES= net
|
2007-07-29 07:18:36 +02:00
|
|
|
MASTER_SITES= # empty
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2007-01-19 09:56:45 +01:00
|
|
|
MAINTAINER= sborrill@NetBSD.org
|
2011-03-17 10:05:32 +01:00
|
|
|
HOMEPAGE= http://www.citrix.com/English/ss/downloads/results.asp?productID=186&c1=sot2755
|
2007-01-18 23:34:05 +01:00
|
|
|
COMMENT= Citrix(R) ICA client for the Citrix(R) Presentation Server(TM)
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= citrix_ica-license
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
RESTRICTED= License prohibits redistribution
|
|
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
2003-08-11 12:39:32 +02:00
|
|
|
|
2012-05-19 23:40:19 +02:00
|
|
|
# "Abort Traps" indefinitely in pbulk
|
2015-03-14 16:21:56 +01:00
|
|
|
NOT_FOR_PLATFORM+= DragonFly-*-* NetBSD-*-x86_64
|
2012-05-19 23:40:19 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
EMUL_PLATFORMS= linux-i386
|
|
|
|
EMUL_PLATFORMS+= solaris-sparc
|
2008-10-07 11:57:58 +02:00
|
|
|
EMUL_PLATFORMS+= solaris-i386
|
2007-07-29 07:18:36 +02:00
|
|
|
EMUL_MODULES.linux= locale motif x11
|
2003-08-11 12:39:32 +02:00
|
|
|
|
2013-05-07 17:14:46 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
2012-08-14 19:07:55 +02:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2013-02-12 14:55:48 +01:00
|
|
|
PATCH_ARCH= ${MACHINE_ARCH}
|
2007-07-29 07:18:36 +02:00
|
|
|
.if ${EMUL_PLATFORM} == "linux-i386"
|
2007-03-05 19:01:02 +01:00
|
|
|
DISTNAME= en.linuxx86
|
2007-07-03 15:31:31 +02:00
|
|
|
PKGNAME= citrix_ica-10.6.115659
|
2013-02-12 14:55:48 +01:00
|
|
|
PATCH_ARCH= i386
|
2008-10-07 11:57:58 +02:00
|
|
|
MASTER_SITES= ftp://download2.citrix.com/FILES/en/products/Linux10/
|
2007-07-29 07:18:36 +02:00
|
|
|
.elif ${EMUL_PLATFORM} == "solaris-sparc"
|
2007-01-18 23:34:05 +01:00
|
|
|
DISTNAME= en.solaris
|
2011-03-17 10:05:32 +01:00
|
|
|
PKGNAME= citrix_ica-8.63.165401
|
|
|
|
HOMEPAGE= http://www.citrix.com/English/ss/downloads/details.asp?downloadId=1859901&productId=186&c1=sot2755
|
|
|
|
MASTER_SITES= manual
|
|
|
|
EXTRACT_SUFX= .tar.z
|
2008-10-07 11:57:58 +02:00
|
|
|
.elif ${EMUL_PLATFORM} == "solaris-i386"
|
|
|
|
DISTNAME= en.solx86
|
2011-03-17 10:05:32 +01:00
|
|
|
PKGNAME= citrix_ica-8.63.165401
|
|
|
|
HOMEPAGE= http://www.citrix.com/English/ss/downloads/details.asp?downloadId=1859901&productId=186&c1=sot2755
|
|
|
|
MASTER_SITES= manual
|
|
|
|
EXTRACT_SUFX= .tar.z
|
2001-03-20 20:06:12 +01:00
|
|
|
.endif
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2013-05-07 17:14:46 +02:00
|
|
|
PLAIN_CDIR= ${PREFIX}/lib/ICAClient
|
|
|
|
CDIR= ${DESTDIR}${PLAIN_CDIR}
|
2007-01-18 23:34:05 +01:00
|
|
|
USE_TOOLS+= patch
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2013-05-07 17:14:46 +02:00
|
|
|
INSTALLATION_DIRS= bin lib
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2011-03-17 10:05:32 +01:00
|
|
|
.if ${MASTER_SITES} == "manual"
|
|
|
|
FETCH_MESSAGE= "Please fetch ${DISTFILES} manually from"
|
|
|
|
FETCH_MESSAGE+= "${HOMEPAGE}"
|
|
|
|
FETCH_MESSAGE+= "and put into"
|
|
|
|
FETCH_MESSAGE+= "${DISTDIR}/${PKGNAME_NOREV}"
|
|
|
|
.endif
|
|
|
|
|
2005-08-10 19:12:32 +02:00
|
|
|
do-patch:
|
2007-01-18 23:34:05 +01:00
|
|
|
(cd ${WRKSRC}; \
|
2013-02-12 14:55:48 +01:00
|
|
|
for f in ${PATCHDIR}/patch-${PATCH_ARCH}-*;do \
|
2007-01-20 00:37:43 +01:00
|
|
|
${PATCH} ${PATCH_ARGS} <$$f >/dev/null 2>&1 || ${TRUE}; \
|
2005-08-10 19:12:32 +02:00
|
|
|
done)
|
2001-05-09 01:58:44 +02:00
|
|
|
|
2002-08-05 02:34:56 +02:00
|
|
|
do-build:
|
2003-08-11 12:39:32 +02:00
|
|
|
${SED} s%DESTINATION%${CDIR}% ${FILESDIR}/response.${MACHINE_ARCH} \
|
2001-03-20 20:06:12 +01:00
|
|
|
> ${WRKSRC}/response
|
2013-05-07 17:14:46 +02:00
|
|
|
${SED} s%DESTINATION%${PLAIN_CDIR}% ${FILESDIR}/wfcmgr \
|
2001-03-20 20:06:12 +01:00
|
|
|
> ${WRKSRC}/wfcmgr.x
|
2013-05-07 17:14:46 +02:00
|
|
|
${SED} s%DESTINATION%${PLAIN_CDIR}% ${FILESDIR}/wfica \
|
2001-03-20 20:06:12 +01:00
|
|
|
> ${WRKSRC}/wfica.x
|
2002-08-05 02:34:56 +02:00
|
|
|
|
|
|
|
pre-install:
|
2007-07-29 07:18:36 +02:00
|
|
|
${RUN} if [ `${ID} -u` != 0 ]; then \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${ECHO} "*** ${PKGNAME} must be installed with" \
|
|
|
|
"superuser privileges ***"; \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
${RUN} if [ -d "${CDIR}" ]; then \
|
2002-08-05 02:34:56 +02:00
|
|
|
${ECHO} ""; \
|
|
|
|
${ECHO} "*** Please remove ${CDIR} and try again ***"; \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-install:
|
2001-03-20 20:06:12 +01:00
|
|
|
cd ${WRKSRC} && ./setupwfc < response
|
2013-05-07 17:14:46 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${DESTDIR}${PREFIX}/bin/wfcmgr
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${DESTDIR}${PREFIX}/bin/wfica
|
|
|
|
${SED} "s#/usr/lib/ICAClient#${PLAIN_CDIR}#g" \
|
2002-01-21 14:19:08 +01:00
|
|
|
< ${CDIR}/util/icalicense.sh > ${CDIR}/util/icalicense.sh.fixed
|
|
|
|
${MV} ${CDIR}/util/icalicense.sh.fixed ${CDIR}/util/icalicense.sh
|
2001-03-20 20:06:12 +01:00
|
|
|
|
2013-05-07 17:14:46 +02:00
|
|
|
post-install:
|
|
|
|
.for f in desktop/Citrix_PNA.desktop desktop/wfcmgr.desktop wfica.sh \
|
|
|
|
wfica_assoc.sh
|
|
|
|
sed -e s,${CDIR:Q},${PLAIN_CDIR:Q},g ${CDIR}/${f} > ${CDIR}/${f}.new
|
|
|
|
mv ${CDIR}/${f}.new ${CDIR}/${f}
|
|
|
|
.endfor
|
|
|
|
|
2003-03-26 05:05:37 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|