summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2012-04-28 01:52:42 +0000
committerCy Schubert <cy@FreeBSD.org>2012-04-28 01:52:42 +0000
commite08026ceca7074cd82f5fad3d489054f897c0e48 (patch)
treef6313a4dc3727d0b751207d8edcbd0751912a9b0 /x11
parent- Fix distfile checksum (diff)
Xforward is a program for relaying X11 connections across network boundaries.
Notes
Notes: svn path=/head/; revision=295629
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/xforward/Makefile28
-rw-r--r--x11/xforward/distinfo2
-rw-r--r--x11/xforward/files/patch-Makefile25
-rw-r--r--x11/xforward/files/patch-xforward.c11
-rw-r--r--x11/xforward/pkg-descr4
6 files changed, 71 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 6043a0d55e8d..375d98a7674e 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -367,6 +367,7 @@
SUBDIR += xfd
SUBDIR += xfindproxy
SUBDIR += xfishtank
+ SUBDIR += xforward
SUBDIR += xfree86_xkb_xml
SUBDIR += xfwp
SUBDIR += xgamma
diff --git a/x11/xforward/Makefile b/x11/xforward/Makefile
new file mode 100644
index 000000000000..c6edaac0598a
--- /dev/null
+++ b/x11/xforward/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: xforward
+# Date created: 27 April 2012
+# Whom: Cy Schubert <cy@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xforward
+PORTVERSION= 1.0
+CATEGORIES= x11
+MASTER_SITES= http://komquats.com/distfiles/ \
+ http://people.freebsd.org/~cy/distfiles/
+DISTNAME= ${PORTNAME}
+
+WRKSRC= ${WRKDIR}
+
+MAINTAINER= cy@FreeBSD.org
+COMMENT= Provide user-level X forwarding service
+
+LICENSE_FILE= ${WRKSRC}/NOTICE
+
+MAKE_ARGS+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
+USE_XORG= x11 xt xaw
+USE_MOTIF= yes
+MAN1= xforward.1
+PLIST_FILES= bin/xforward
+
+.include <bsd.port.mk>
diff --git a/x11/xforward/distinfo b/x11/xforward/distinfo
new file mode 100644
index 000000000000..abd21a1c3411
--- /dev/null
+++ b/x11/xforward/distinfo
@@ -0,0 +1,2 @@
+SHA256 (xforward.tar.gz) = a3ddea6b932757efe6a0bb4eeddd2d2f2296d1d1cd4ef681875bf9baa902a493
+SIZE (xforward.tar.gz) = 9308
diff --git a/x11/xforward/files/patch-Makefile b/x11/xforward/files/patch-Makefile
new file mode 100644
index 000000000000..2c05be07154a
--- /dev/null
+++ b/x11/xforward/files/patch-Makefile
@@ -0,0 +1,25 @@
+--- Makefile.orig 1993-06-04 19:32:01.000000000 -0700
++++ Makefile 2012-04-27 13:01:33.079482669 -0700
+@@ -18,17 +18,17 @@
+ # MANDIR is where the manual page will be installed.
+
+ DESTDIR=
+-BINDIR=/usr/local/bin
+-MANDIR=/usr/local/man/man1
++BINDIR=${PREFIX}/bin
++MANDIR=${PREFIX}/man/man1
+
+ # Where to find things
+ # INCFLAGS lists directories to search for header files
+ # LDFLAGS lists directories to search for libraries
+ # LIBS lists the necessary libraries (Motif, Xt, X11)
+
+-INCFLAGS= -I/usr/lib/DXM/lib -I/usr/lib/DXM/lib/Xt
+-LDFLAGS= -L/usr/lib/DXM/lib/Xm -L/usr/lib/DXM/lib/Xt
+-LIBS= -lXm -lXt -lX11
++INCFLAGS= -I${LOCALBASE}/include
++LDFLAGS= -L${LOCALBASE}/lib
++LIBS= -lXm -lXt -lX11 -lXext
+
+ CFLAGS= ${INCFLAGS} -O
+
diff --git a/x11/xforward/files/patch-xforward.c b/x11/xforward/files/patch-xforward.c
new file mode 100644
index 000000000000..c6f5b916b379
--- /dev/null
+++ b/x11/xforward/files/patch-xforward.c
@@ -0,0 +1,11 @@
+--- xforward.c.orig 1993-06-04 19:30:16.000000000 -0700
++++ xforward.c 2012-04-27 13:20:20.603550383 -0700
+@@ -292,7 +292,7 @@
+ struct timeval timeout;
+ struct pend_conn *cur,*prev;
+ pid_t temppid;
+- union wait wstatus;
++ int wstatus;
+ int exitstat,wopts,newoutgoing;
+
+ /* for each entry, call waitpid */
diff --git a/x11/xforward/pkg-descr b/x11/xforward/pkg-descr
new file mode 100644
index 000000000000..2971ecc107e0
--- /dev/null
+++ b/x11/xforward/pkg-descr
@@ -0,0 +1,4 @@
+This is version 1.0 of xforward, a program for relaying X11
+connections across network boundaries. While it may be used to cross
+security boundaries, Digital Equipment Corporation does not warrant
+this software for security or any other purpose.