mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# Created by: Lauri Watts <lauri@kde.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= freenx
|
|
PORTVERSION= 0.6.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= net
|
|
MASTER_SITES= BERLIOS
|
|
|
|
MAINTAINER= freenx@deweyonline.com
|
|
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:${PORTSDIR}/x11/xauth
|
|
USES= perl5
|
|
USE_PERL5= run
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/nxserver-helper
|
|
|
|
NXPREFIX?= ${PREFIX}/NX
|
|
|
|
NO_STAGE= yes
|
|
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_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}/node.conf.sample ${NXPREFIX}/etc/nxserver
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|