b7f05445c0
It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
102 lines
2.9 KiB
Makefile
102 lines
2.9 KiB
Makefile
PORTNAME= citrix_ica
|
|
PORTVERSION= 13.10.0
|
|
CATEGORIES= net comms linux
|
|
MASTER_SITES= #
|
|
DISTNAME= linuxx86-${PORTVERSION}.20
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Citrix(R) Presentation Server(TM) client
|
|
WWW= https://www.citrix.com/products/receiver/
|
|
|
|
# Converted from RESTRICTED
|
|
LICENSE= citrix
|
|
LICENSE_NAME= citrix
|
|
LICENSE_TEXT= License prohibits redistribution
|
|
LICENSE_PERMS= auto-accept
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
USES= fakeroot linux:c7 webplugin:linux
|
|
USE_LINUX= alsalib gtk2 libxml2 openmotif
|
|
WEBPLUGIN_DIR= ${PREFIX}/ICAClient
|
|
WEBPLUGIN_FILES= npica.so
|
|
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
|
|
CDIR= ${PREFIX}/ICAClient
|
|
CERTDIR= ${CDIR}/keystore/cacerts
|
|
|
|
PLIST_SUB= MOZILLA_HOME=${MOZILLA_HOME}
|
|
|
|
.if defined(ICA_CERTS)
|
|
PLIST_SUB+= HAVE_ICA_CERTS="" ICA_CERTS="${ICA_CERTS}" CERTDIR="${CERTDIR}"
|
|
.else
|
|
PLIST_SUB+= HAVE_ICA_CERTS="@comment "
|
|
.endif
|
|
|
|
SUB_FILES= wfcmgr wfica
|
|
SUB_LIST= CDIR=${CDIR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
IGNORE=May not be redistributed due to licensing. Please visit https://www.citrix.com/downloads/citrix-receiver/linux/ accept their license and download ${DISTFILES} into ${DISTDIR}
|
|
.endif
|
|
|
|
.if defined(ICA_CERTS)
|
|
.for f in ${ICA_CERTS}
|
|
PLIST_FILES+= ${CERTDIR}/${f}
|
|
HASH_${f}!= openssl x509 -noout -hash -in ${DISTDIR}/${f}
|
|
PLIST_FILES+= ${CERTDIR}/${HASH_${f}}.0
|
|
.endfor
|
|
.endif
|
|
|
|
pre-fetch:
|
|
.if defined(ICA_CERTS)
|
|
.for f in ${ICA_CERTS}
|
|
@echo "Checking ${f}"
|
|
.if !exists(${DISTDIR}/${f})
|
|
@echo "Cert ${f} not found."
|
|
@exit 1
|
|
.endif
|
|
.endfor
|
|
.endif
|
|
|
|
post-patch:
|
|
# - linux syscall epoll_create is not yet implemented
|
|
# - disable Flash redirection as it generates a deadlock in linux_sys_futex
|
|
@${REINPLACE_CMD} \
|
|
-e 's|^ClientAudio=On|ClientAudio=Off|' \
|
|
-e 's|^FlashV2=On|FlashV2=Off|' \
|
|
${WRKSRC}/linuxx86/linuxx86.cor/nls/*/module.ini
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${STAGEDIR}${PREFIX}|g' ${WRKSRC}/linuxx86/hinst
|
|
|
|
do-install:
|
|
@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
|
|
cd ${WRKSRC} && ${FAKEROOT} ${SH} -c './setupwfc'
|
|
${INSTALL_SCRIPT} ${WRKDIR}/wfcmgr ${STAGEDIR}${PREFIX}/bin/wfcmgr
|
|
${INSTALL_SCRIPT} ${WRKDIR}/wfica ${STAGEDIR}${PREFIX}/bin/wfica
|
|
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
|
|
${MKDIR} ${STAGEDIR}${CDIR}
|
|
${MKDIR} ${STAGEDIR}${CDIR}/config
|
|
cd ${WRKSRC}/linuxx86/linuxx86.cor/ && ${COPYTREE_SHARE} . ${STAGEDIR}${CDIR}
|
|
${CP} ${WRKSRC}/setupwfc ${STAGEDIR}${CDIR}
|
|
|
|
.if defined(ICA_CERTS)
|
|
${MKDIR} ${STAGEDIR}${CERTDIR}
|
|
.for f in ${ICA_CERTS}
|
|
${INSTALL_DATA} ${DISTDIR}/${f} ${STAGEDIR}${CERTDIR}
|
|
${LN} -sf ${f} ${STAGEDIR}${CERTDIR}/$$(openssl x509 -noout -hash -in ${DISTDIR}/${f}).0
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|