aboutsummaryrefslogtreecommitdiff
path: root/net/freenx/Makefile
blob: 761d44663773b80b19c8cc42b23407f19565d554 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# New ports collection makefile for:    freenx
# Date created:                         Sat 11 Sep 2004
# Whom:                                 Lauri Watts <lauri@kde.org>
#
# $FreeBSD$
#

PORTNAME=	freenx
PORTVERSION=	0.6.0
PORTREVISION=	2
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
USE_PERL5_RUN=	yes

BUILD_WRKSRC=	${WRKSRC}/nxserver-helper

NXPREFIX?=	${PREFIX}/NX

.include <bsd.port.pre.mk>

.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_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.post.mk>