aboutsummaryrefslogtreecommitdiff
path: root/net/citrix_xenapp
diff options
context:
space:
mode:
authorThomas Abthorpe <tabthorpe@FreeBSD.org>2007-09-07 03:48:36 +0000
committerThomas Abthorpe <tabthorpe@FreeBSD.org>2007-09-07 03:48:36 +0000
commita2fc3d0d2dc81193b2610db862c76c5767f768cc (patch)
treeb2047e0b8f3dd86db89b2f16e7afa52395cb78c1 /net/citrix_xenapp
parentd84f52593e87c86c346024e80c7a8ca09d29fc36 (diff)
- add support for non-standard root certificates
- this patch gives the possibility to install extra certificates by setting the variable ICA_CERTS in /etc/make.conf - bump PORTREVISION PR: ports/115944 Submitted by: Edwin Groothuis <edwin_AT_mavetju.org> Approved by: clsung (mentor)
Notes
Notes: svn path=/head/; revision=198976
Diffstat (limited to 'net/citrix_xenapp')
-rw-r--r--net/citrix_xenapp/Makefile37
-rw-r--r--net/citrix_xenapp/pkg-descr11
-rw-r--r--net/citrix_xenapp/pkg-plist1
3 files changed, 37 insertions, 12 deletions
diff --git a/net/citrix_xenapp/Makefile b/net/citrix_xenapp/Makefile
index 0c28b4b58363..b0f5592b9912 100644
--- a/net/citrix_xenapp/Makefile
+++ b/net/citrix_xenapp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= citrix_ica
PORTVERSION= 10.6
+PORTREVISION= 1
CATEGORIES= net comms linux
MASTER_SITES=
DISTNAME= ${PORTNAME}-linuxx86-${PORTVERSION}
@@ -26,23 +27,17 @@ NO_BUILD= yes
CDIR= ${PREFIX}/ICAClient
BINDIR= ${PREFIX}/bin
-
-NSCP= ${LOCALBASE}/libexec/netscape \
- ${LOCALBASE}/libexec/netscape-linux \
- ${LOCALBASE}/netscape \
- ${LOCALBASE}/netscape-linux \
- ${LOCALBASE}/lib/netscape \
- ${LOCALBASE}/lib/netscape-linux \
- ${MOZILLA_HOME}
+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
.include <bsd.port.pre.mk>
-.if exists(${PREFIX}/bin/kde-config)
-HAVE_KDE= "\\ny"
-.endif
-
.if defined(BATCH) || defined(PACKAGE_BUILDING)
IGNORE='The distribution file for this port may not be automatically fetched due to licensing restrictions.'
.endif
@@ -60,6 +55,18 @@ do-fetch:
@${FALSE}
.endif
+.if defined(ICA_CERTS)
+pre-fetch:
+.for f in ${ICA_CERTS}
+ @echo "Checking ${f}"
+.if !exists(${DISTDIR}/${f})
+ @echo "Cert ${f} not found."
+ @exit 1
+.endif
+.endfor
+.endif
+
+
do-install:
@if (test -d "${CDIR}") ; \
then \
@@ -80,4 +87,10 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${PREFIX}/bin/wfica
# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
+.if defined(ICA_CERTS)
+.for f in ${ICA_CERTS}
+ ${INSTALL_DATA} ${DISTDIR}/${f} ${CERTDIR}
+.endfor
+.endif
+
.include <bsd.port.post.mk>
diff --git a/net/citrix_xenapp/pkg-descr b/net/citrix_xenapp/pkg-descr
index 69deced9f262..0fec5f244890 100644
--- a/net/citrix_xenapp/pkg-descr
+++ b/net/citrix_xenapp/pkg-descr
@@ -10,4 +10,15 @@ Linux to access virtualized applications. Other important capabilities
are powerful management and configuration tools and faster, more
flexible printing.
+
+If your Citrix server does not have one of the supplied root-certificates,
+you can copy the certificate to /usr/ports/distfiles and add the
+following line to your /etc/make.conf:
+
+ ICA_CERTS=mycert.crt
+
+It will then automatically be installed and removed with the normal
+FreeBSD package tools.
+
+
WWW: http://www.citrix.com/English/ps2/products/product.asp?contentID=186
diff --git a/net/citrix_xenapp/pkg-plist b/net/citrix_xenapp/pkg-plist
index 1285b5d1e0c3..7ef5f088bd4a 100644
--- a/net/citrix_xenapp/pkg-plist
+++ b/net/citrix_xenapp/pkg-plist
@@ -98,6 +98,7 @@ ICAClient/keystore/cacerts/Class4PCA_G2_v2.crt
ICAClient/keystore/cacerts/GTECTGlobalRoot.crt
ICAClient/keystore/cacerts/Pcs3ss_v4.crt
ICAClient/keystore/cacerts/SecureServer.crt
+%%HAVE_ICA_CERTS%%@unexec for f in %%ICA_CERTS%%; do rm %%CERTDIR%%/${f}; done
ICAClient/libctxssl.so
ICAClient/nls/en/UTF-8/Wfcmgr
ICAClient/nls/en/UTF-8/Wfica