import mxconns port. dbt@meat.net.

This commit is contained in:
turan 2000-03-17 03:17:02 +00:00
parent 7733ae6755
commit 5379fd3bdd
6 changed files with 81 additions and 0 deletions

25
x11/mxconns/Makefile Normal file
View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/03/17 03:17:02 turan Exp $
DISTNAME= mxconns-3.1.4
CATEGORIES= x11 security
MASTER_SITES= http://home.cern.ch/c/cons/www/mxconns/
MAINTAINER= dbt@meat.net
PERMIT_PACKAGE_CDROM= "no fee"
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= "no fee"
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= Xm.1:${PORTSDIR}/x11/lesstif
HAS_CONFIGURE= yes
EXTRACT_SUFX= .tgz
FAKE=Yes
do-install:
install -c -o root -g bin -m 555 ${WRKBUILD}/mxconns ${PREFIX}/bin/mxconns
install -c -o root -g bin -m 444 ${WRKBUILD}/mxconns.man \
${PREFIX}/man/man1/mxconns.1
.include <bsd.port.mk>

3
x11/mxconns/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (mxconns-3.1.4.tgz) = c39611efd4c978d4302538ad65db5f53
RMD160 (mxconns-3.1.4.tgz) = 1b317972436a4f818ddfdf33b8349c79e7fd2d84
SHA1 (mxconns-3.1.4.tgz) = 368424e7b5f39cc7667fbb8035ed5352b50ab7dc

View File

@ -0,0 +1,39 @@
diff -u configure.old configure
--- configure.old Tue Jan 4 01:02:50 2000
+++ configure Mon Feb 28 11:11:30 2000
@@ -46,6 +46,7 @@
OSF1) os="OSF1";;
SunOS) if [ $rev -ge 5 ]; then os="Solaris"; else os="SunOS"; fi;;
ULTRIX) os="ULTRIX";;
+ OpenBSD) os="OpenBSD";;
*) echo "Sorry, $uname is not yet supported"; exit 1;;
esac
echo "This seems to be a $os machine..."
@@ -148,6 +149,27 @@
MOTIF_LIB = $xmlib
SYS_CFLAGS = -I/usr/X11R6/include
SYS_LDFLAGS = $strip-L/usr/X11R6/lib
+SYS_LIBS = -lXext $extra
+EOT
+ unset extra
+fi
+
+#
+# OpenBSD
+#
+if [ "$os" = "OpenBSD" ]; then
+ # everything should be under /usr/X11R6
+ # statically link Motif with explicit library name
+ # Motif could come from Lesstif which could be in /usr/local
+ extra=""
+ if [ -f "/usr/X11R6/lib/libXpm.a" ]; then
+ extra="$extra -lXpm"
+ fi
+ xmlib="-lXm"
+ cat <<EOT >> Makefile.sys
+MOTIF_LIB = $xmlib
+SYS_CFLAGS = -I/usr/X11R6/include -I/usr/local/include
+SYS_LDFLAGS = $strip-L/usr/X11R6/lib -L/usr/local/lib
SYS_LIBS = -lXext $extra
EOT
unset extra

1
x11/mxconns/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
Interactive X11 proxy with selective X request replacement.

11
x11/mxconns/pkg/DESCR Normal file
View File

@ -0,0 +1,11 @@
Mxconns is an X11 proxy that prompts you for individual connections,
and lets you optionally disable "dangerous" X requests. Useful
when logging into a potentially untrusted machine via ssh.
Quick start:
in your .xsession:
export XDISPLAY=`mxconns -fork -hunt -verbose -icf "c" -debug "al"`
later...
DISPLAY=$XDISPLAY ssh -f <untrusted host> xterm
for more info, read the man page.

2
x11/mxconns/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
bin/mxconns
man/man1/mxconns.1