aboutsummaryrefslogtreecommitdiffstats
path: root/net/freenx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/freenx/Makefile')
-rw-r--r--net/freenx/Makefile50
1 files changed, 34 insertions, 16 deletions
diff --git a/net/freenx/Makefile b/net/freenx/Makefile
index febfd5f22c9d..e0fb6a7a73fa 100644
--- a/net/freenx/Makefile
+++ b/net/freenx/Makefile
@@ -6,10 +6,9 @@
#
PORTNAME= freenx
-PORTVERSION= 0.4.4
-PORTREVISION= 3
+PORTVERSION= 0.6.0
CATEGORIES= net
-MASTER_SITES= http://www.iem.pw.edu.pl/ftp/distfiles/
+MASTER_SITES= BERLIOS
MAINTAINER= freenx@deweyonline.com
COMMENT= Frontend (auth/session management) for nxserver libraries
@@ -17,25 +16,44 @@ COMMENT= Frontend (auth/session management) for nxserver libraries
RUN_DEPENDS= ${NXPREFIX}/bin/nxagent:${PORTSDIR}/net/nxserver \
bash:${PORTSDIR}/shells/bash \
expect:${PORTSDIR}/lang/expect \
+ gls:${PORTSDIR}/sysutils/coreutils \
xauth:${X_CLIENTS_PORT}
+USE_PERL5_RUN= yes
-NO_BUILD= yes
+BUILD_WRKSRC= ${WRKSRC}/nxserver-helper
-USE_X_PREFIX= yes
NXPREFIX?= ${PREFIX}/NX
-WRKSRC= ${WRKDIR}
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 503102
+RUN_DEPENDS+= nc:${PORTSDIR}/net/netcat
+.endif
+
+.if ${OSVERSION} < 601101
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-freenx-nxserver \
+ ${PATCHDIR}/extra-patch-freenx-nxsetup
+.endif
+
+post-patch:
+ @cd ${WRKSRC} && ${REINPLACE_CMD} -e "s|/usr/local/|${PREFIX}/|" \
+ -e "s|!/bin/bash|!${PREFIX}/bin/bash|" \
+ -e "s|/usr/bin/expect|${PREFIX}/bin/expect|" \
+ -e "s|/usr/NX|${NXPREFIX}|" \
+ node.conf.sample nxclient nxkeygen nxloadconfig nxnode \
+ nxnode-login nxprint nxserver nxsetup
do-install:
${MKDIR} ${NXPREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/nxclient ${NXPREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/nxnode ${NXPREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/nxnode-login ${NXPREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/nxserver ${NXPREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/nxsetup ${NXPREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/nxkeygen ${NXPREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/nxloadconfig ${NXPREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/nxprint ${NXPREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/nxserver-helper/nxserver-helper \
+ ${NXPREFIX}/bin
+.for i in nxnode nxserver nxsetup nxkeygen nxnode-login nxloadconfig nxprint nxclient
+ ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${NXPREFIX}/bin
+.endfor
${MKDIR} ${NXPREFIX}/etc/nxserver
- ${INSTALL_SCRIPT} ${WRKSRC}/freenx-0.4.4/node.conf.sample ${NXPREFIX}/etc/nxserver
+ ${INSTALL_SCRIPT} ${WRKSRC}/node.conf.sample ${NXPREFIX}/etc/nxserver
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>