1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/net/vnc/Makefile

53 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: vnc
# Date created: 24 February 1998
# Whom: msmith
#
1999-08-30 14:24:37 +00:00
# $FreeBSD$
#
PORTNAME= vnc
PORTVERSION= 3.3.3.2
CATEGORIES= net
MASTER_SITES= http://www.uk.research.att.com/vnc/dist/ \
ftp://ftp.uk.research.att.com/pub/vnc/dist/
DISTFILES= vnc-3.3.3r2_unixsrc.tgz \
vnc-latest_doc.tgz
EXTRACT_ONLY= vnc-3.3.3r2_unixsrc.tgz
MAINTAINER= bmah@freebsd.org
USE_PERL5= YES
IGNOREFILES= vnc-latest_doc.tgz
WRKSRC= ${WRKDIR}/vnc_unixsrc
USE_IMAKE= YES
NO_INSTALL_MANPAGES= YES
ALL_TARGET= World
# We have to frob a few things, and we want our own permissions, so it's easier
# to do the install ourselves.
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc ${PREFIX}/bin/Xvnc
${INSTALL_PROGRAM} ${WRKSRC}/vncviewer/vncviewer ${PREFIX}/bin/vncviewer
${INSTALL_PROGRAM} ${WRKSRC}/vncpasswd/vncpasswd ${PREFIX}/bin/vncpasswd
${INSTALL_PROGRAM} ${WRKSRC}/vncconnect/vncconnect ${PREFIX}/bin/vncconnect
${SED} -e s%/usr/local/vnc/classes%${PREFIX}/share/vnc/classes% \
-e s%^\#!/usr/bin/perl%\#!${PERL}% \
< ${WRKSRC}/vncserver \
> ${WRKSRC}/vncserver.local
${INSTALL_SCRIPT} ${WRKSRC}/vncserver.local ${PREFIX}/bin/vncserver
# Go install Java classes
${MKDIR} ${PREFIX}/share/vnc
${CP} -R ${WRKSRC}/classes ${PREFIX}/share/vnc
.if !defined(NOPORTDOCS)
# The documentation comes with bogus ownerships; this is a little leaky
# security-wise
${TAR} -C ${PREFIX}/share/doc -xzf ${DISTDIR}/vnc-latest_doc.tgz
(cd ${PREFIX}/share/doc; ${RM} -rf vnc; ${MV} vnc_docs vnc)
1999-08-22 19:01:07 +00:00
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/vnc
# Add to PLIST because VNC developers can't/won't freeze their doc
# distfile.
(cd ${PREFIX}; ls share/doc/vnc/* >> ${TMPPLIST})
${ECHO} '@dirrm share/doc/vnc' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>