summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-09-01 14:14:14 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-09-01 14:14:14 +0000
commit18666fbe54f8ba84c1d947764725dc853e7d0e79 (patch)
treeaccd01ecc5eb8abff5b52461f02f4c54c21ef831 /comms
parentUpgrade (new fonts) (diff)
XCept - a decoder for the CEPT protocol as it is in use in the Btx
service of the Deutsche Telekom. XCept 2 is freeware (BSD-style copyright), but has later been replaced by the commercial XCept 3. The authors no longer distribute or support this old version. I cannot build it on freefall's 2.1.x system, but it builds fine on my 2.2-current. thud seems to be down...
Notes
Notes: svn path=/head/; revision=3731
Diffstat (limited to 'comms')
-rw-r--r--comms/xcept/Makefile19
-rw-r--r--comms/xcept/distinfo1
-rw-r--r--comms/xcept/files/patch-aa6
-rw-r--r--comms/xcept/files/patch-ab229
-rw-r--r--comms/xcept/files/patch-ac279
-rw-r--r--comms/xcept/files/patch-ad17
-rw-r--r--comms/xcept/files/patch-ae131
-rw-r--r--comms/xcept/pkg-comment1
-rw-r--r--comms/xcept/pkg-descr29
-rw-r--r--comms/xcept/pkg-plist17
10 files changed, 729 insertions, 0 deletions
diff --git a/comms/xcept/Makefile b/comms/xcept/Makefile
new file mode 100644
index 000000000000..24f3fb69dca8
--- /dev/null
+++ b/comms/xcept/Makefile
@@ -0,0 +1,19 @@
+# New ports collection makefile for: xcept
+# Version required: 2.1.2
+# Date created: Sep 1, 1996
+# Whom: joerg
+#
+# $Id$
+#
+
+DISTNAME= xcept-2.1.2
+WRKSRC= ${WRKDIR}/XCept-2.1.2
+CATEGORIES+= comms
+MASTER_SITES= ftp://freefall.cdrom.com/pub/FreeBSD/LOCAL_PORTS/
+
+MAINTAINER= joerg@FreeBSD.ORG
+
+USE_X11= yes
+PREFIX= /usr/local
+
+.include <bsd.port.mk>
diff --git a/comms/xcept/distinfo b/comms/xcept/distinfo
new file mode 100644
index 000000000000..6bb6922a43a6
--- /dev/null
+++ b/comms/xcept/distinfo
@@ -0,0 +1 @@
+MD5 (xcept-2.1.2.tar.gz) = 5b8f8e8839d14ed7c899bcaa2749f147
diff --git a/comms/xcept/files/patch-aa b/comms/xcept/files/patch-aa
new file mode 100644
index 000000000000..4bbfeee67af7
--- /dev/null
+++ b/comms/xcept/files/patch-aa
@@ -0,0 +1,6 @@
+--- /dev/null Sun Sep 1 12:14:31 1996
++++ Makefile Sun Sep 1 14:43:35 1996
+@@ -0,0 +1,3 @@
++SUBDIR= ceptd xcept lib etc
++
++.include <bsd.subdir.mk>
diff --git a/comms/xcept/files/patch-ab b/comms/xcept/files/patch-ab
new file mode 100644
index 000000000000..cc2a89bdc5a8
--- /dev/null
+++ b/comms/xcept/files/patch-ab
@@ -0,0 +1,229 @@
+--- ceptd/config.h.orig Wed Jul 27 10:28:38 1994
++++ ceptd/config.h Sun Sep 1 12:37:09 1996
+@@ -49,7 +49,7 @@
+
+ #undef NO_STRERROR /* define NO_STRERROR if you don't have strerror func. */
+ #define HASTERMIOS /* define HASTERMIOS if system has termios.h */
+-#undef ASCIIPID /* define if your system writes pid in ascii to
++#define ASCIIPID /* define if your system writes pid in ascii to
+ uucp-lock */
+
+ #endif /* __bsdi__ */
+--- ceptd/Makefile.orig Wed Jun 15 17:10:59 1994
++++ ceptd/Makefile Sun Sep 1 14:17:11 1996
+@@ -1,21 +1,30 @@
+ # directories:
+ OWNER= root
+-GROUP= sys
+-EXECMODE= 6750
++GROUP= bin
++EXECMODE= 04750
++MANMODE= 0644
+
+-BINDIR= /usr/local/bin# directory for the executable ceptd
+-MANDIR= /usr/local/man/manl# directory for the ceptds manpage
++BINDIR= /usr/local/libexec# directory for the executable ceptd
++MANDIR= /usr/local/man/man8# directory for the ceptds manpage
+ ETCDIR= /usr/local/etc# directory for 'init file' and 'users file'
+
+ # defaults for the ceptd :
+
+-DEFAULTINITFILENAME= $(ETCDIR)/init.cept# modems default init file
+-DEFAULTUSERSFILENAME= $(ETCDIR)/users.cept# file with allowed users
+-DEFAULTLOGFILENAME= /tmp/log.cept# logfile for user online times
++DEFAULTINITFILENAME= $(ETCDIR)/cept.init# modems default init file
++DEFAULTUSERSFILENAME= $(ETCDIR)/cept.users# file with allowed users
++DEFAULTLOGFILENAME= /var/log/log.cept# logfile for user online times
+ DEFAULTMODEM= /dev/modem# char. special file for modem
+ DEFAULTSPEED= 2400# modem baud rate
+ DEFAULTSOCKETPORT= 20005# socket port for connections
+-LOCKDIR= /var/spool/locks# lock dir for uucp-locks
++LOCKDIR= /var/spool/lock# lock dir for uucp-locks
++
++.ifdef NOMANCOMPRESS
++MANPAGE= ceptd.8
++MANCOMPRESS= cat
++.else
++MANPAGE= ceptd.8.gz
++MANCOMPRESS= gzip -c -9
++.endif
+
+ # define these flags in $(DEFS):
+
+@@ -54,86 +63,49 @@
+ -DDEFAULTINITFILENAME=\"$(DEFAULTINITFILENAME)\"\
+ -DDEFAULTUSERSFILENAME=\"$(DEFAULTUSERSFILENAME)\"\
+ -DDEFAULTLOGFILENAME=\"$(DEFAULTLOGFILENAME)\"\
+- -DSVR4
++ -DBSD
+ # -DISDN\
+
+ # the GNU C-compiler:
+-CC = gcc
+-CCOPTS = -O
+-CCFLAGS = -Wswitch -Wcomment -Wshadow -Wpointer-arith -Wcast-qual\
+- -Wtrigraphs# -Wunused
++#CC = gcc
++#CCOPTS = -O
++#CCFLAGS = -Wswitch -Wcomment -Wshadow -Wpointer-arith -Wcast-qual\
++# -Wtrigraphs# -Wunused
+
+ # ... the lex is ...
+-LEX = flex
++#LEX =flex
+
+ ##############################################################################
+
+-all: ceptd ceptd.8
++all: ceptd ${MANPAGE}
+
+ OBJS = ceptd.o level2.o modeminit.o socket.o term.o lex.yy.o isdn.o
+ SRC = ceptd.c level2.c modeminit.c socket.c term.c lex.yy.c isdn.c
+ INC = config.h cept.h ../xcept/protocol.h
+
+-.c.o: makefile config.h cept.h ../xcept/protocol.h
+- @echo
+- @echo '########################## $@ ########################'
+- $(CC) -c $(CCOPTS) $(CCFLAGS) $(DEFS) $*.c
++.c.o: config.h cept.h ../xcept/protocol.h
++ $(CC) -c $(CFLAGS) $(DEFS) $*.c
+
+ lex.yy.c: lex_yy
+- @echo
+- @echo '########################## $@ ########################'
+ $(LEX) -s -i -p lex_yy
+
+
+ ceptd: $(OBJS)
+- @echo
+- @echo '########################## $@ ########################'
+- $(CC) $(OBJS) -L. -o ceptd -lnsl -lsocket
+- @echo "$@ finished"
+-
+-install: ceptd ceptd.8
+- @echo
+- @echo '########################## $@ #################################'
+- strip ceptd
+- mv ceptd $(BINDIR)
+- chown $(OWNER) $(BINDIR)/ceptd
+- chgrp $(GROUP) $(BINDIR)/ceptd
+- chmod $(EXECMODE) $(BINDIR)/ceptd
+- mv ceptd.8 $(MANDIR)
+- chown $(OWNER) $(MANDIR)/ceptd.8
+- chgrp $(GROUP) $(MANDIR)/ceptd.8
+- chmod 644 $(MANDIR)/ceptd.8
+- @echo
+- @echo '**************************************************************'
+- @echo '**************************************************************'
+- @echo "------>>> Now do the following steps:"
+- @echo
+- @echo '1)' add the following line to your /etc/inetd.conf file:
+- @echo " cept stream tcp nowait $(OWNER)"\
+- $(BINDIR)/ceptd ceptd
+- @echo
+- @echo '2)' add the following line to your /etc/services file:
+- @echo " cept $(DEFAULTSOCKETPORT)/tcp ceptd"
+- @echo
+- @echo '3)' copy the ../etc/users.cept file to $(DEFAULTUSERSFILENAME)\
+- and edit it.
+- @echo
+- @echo '4)' copy the ../etc/init.cept file to $(DEFAULTINITFILENAME)\
+- and edit it.
+- @echo
+- @echo '5)' read the ceptd manual.
+- @echo '***************************************************************'
+- @echo '***************************************************************'
++ $(CC) $(OBJS) -L. -o ceptd
++
++install: ceptd ${MANPAGE}
++ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m ${EXECMODE} ceptd ${BINDIR}/ceptd
++ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m ${MANMODE} ${MANPAGE} ${MANDIR}/${MANPAGE}
+
+-ceptd.8: ceptd.8.template
++${MANPAGE}: ceptd.8.template
+ sed -e 's|--- The permissions file.|$(DEFAULTUSERSFILENAME)|g'\
+ -e 's|--- The initalization file.|$(DEFAULTINITFILENAME)|g'\
+ -e 's|--- The log file.|$(DEFAULTLOGFILENAME)|g'\
+- ceptd.8.template > ceptd.8
++ ceptd.8.template | ${MANCOMPRESS} > ${MANPAGE}
+
+
+ clean:
+- rm -f ceptd.8 *.o TAGS ceptd
++ rm -f ${MANPAGE} *.o TAGS ceptd
+
+ veryclean:
+ rm -f ceptd.8 *.o TAGS ceptd lex.yy.c *.zoo
+--- ceptd/ceptd.8.template.orig Wed May 25 19:36:11 1994
++++ ceptd/ceptd.8.template Sun Sep 1 15:33:16 1996
+@@ -17,8 +17,8 @@
+ .I ceptd
+ can be started from the \fIinetd\fR. If not started from inetd,
+ \fIceptd\fR will deal with connection request forking on connects.
+-If the standard input of ceptd
+-is not a tty, ceptd assumes being started from inetd.
++If standard input and output of ceptd
++are sockets, ceptd assumes being started from inetd.
+ .PP
+ .I Available options:
+ .PP
+--- ceptd/ceptd.c.orig Wed May 25 19:36:11 1994
++++ ceptd/ceptd.c Sun Sep 1 15:36:13 1996
+@@ -67,12 +67,12 @@
+ static int endtime();
+ static void exit_btx_server(); /* signal routine for parent */
+ static pid_t childpid = -1; /* pid of child process */
+-static int modem = -1, inetd = 0;
++static int modem = -1;
+ int debug =0;
+ static char *userlogfilename = DEFAULTLOGFILENAME;
+ static int connected;
+ static char *caller;
+-int connectstatus, isdnflag = 0;
++int connectstatus, isdnflag = 0, inetd = 0;
+
+ main(argc,argv)
+ int argc;char *argv[];
+@@ -220,12 +220,8 @@
+ #else
+ {
+ struct sigaction act;
++ memset(&act, 0, sizeof act);
+ act.sa_handler = hang_childs;
+- act.sa_mask.sa_sigbits[0] = 0;
+- act.sa_mask.sa_sigbits[1] = 0;
+- act.sa_mask.sa_sigbits[2] = 0;
+- act.sa_mask.sa_sigbits[3] = 0;
+- act.sa_flags =0;
+ sigaction(SIGCHLD, &act, NULL); /* POSIX */
+ }
+ #endif
+--- ceptd/modeminit.c.orig Wed May 25 19:36:12 1994
++++ ceptd/modeminit.c Sun Sep 1 15:35:42 1996
+@@ -82,6 +82,7 @@
+
+ extern int errno;
+ extern int connectstatus, isdnflag;
++extern int inetd;
+
+ #ifdef USE_LOCK
+ #include <string.h>
+@@ -134,7 +135,8 @@
+ */
+ modemclose()
+ {
+- (void) setsid (); /* give up controling terminal modem */
++ if (!inetd)
++ (void) setsid (); /* give up controling terminal modem */
+ if(modem != -1){
+ sendmodem(hangupstring);
+ termflush(modem); /* get rid of garbage */
+@@ -163,7 +165,7 @@
+ #endif
+ int s;
+
+- if(-1 == setsid())
++ if(!inetd && -1 == setsid())
+ log(LOG_ERR,"Can't setsid : %m");
+ #ifdef USE_LOCK
+ device = strrchr(devname, '/');
diff --git a/comms/xcept/files/patch-ac b/comms/xcept/files/patch-ac
new file mode 100644
index 000000000000..462755016457
--- /dev/null
+++ b/comms/xcept/files/patch-ac
@@ -0,0 +1,279 @@
+--- /dev/null Sun Sep 1 12:14:31 1996
++++ etc/Makefile Sun Sep 1 14:38:51 1996
+@@ -0,0 +1,10 @@
++DESTDIR = /usr/local/etc
++MODE= 644
++OWNER= root
++GROUP= bin
++
++all:
++
++install:
++ ${INSTALL} -c -m ${MODE} -o ${OWNER} -g ${GROUP} init.cept ${DESTDIR}/cept.init
++ ${INSTALL} -c -m ${MODE} -o ${OWNER} -g ${GROUP} users.cept ${DESTDIR}/cept.users
+--- etc/init.cept.orig Tue Jun 28 16:09:20 1994
++++ etc/init.cept Sun Sep 1 15:14:18 1996
+@@ -26,30 +26,16 @@
+ # '\' = quote character e.g. \^ \~ \\
+ # '^' = control character e.g. ^M = return ^J = line_feed
+ #############################################################################
+-opendevice 38400 "/dev/ttyF00"
++opendevice 38400 "/dev/cuaa0"
+-hangupstring "~+++~ATH0^M"
+-connectstring "CONNECT 2400"
++hangupstring "~+++~ATH0^M~ATZ"
++connectstring "CONNECT"
+ nodialtonestring "NO DIALTONE^M"
+ nocarrierstring "NO CARRIER^M"
+ busystring "BUSY^M"
+
+
+-send "at^M"
+-sleep 10
+ send "ATZ^M" # reset
+-sleep 20
+-send "AT&D2^M" # hangup when DTR off
+-sleep 4
+-send "ATQ0^M" #
+-sleep 4
+-send "ATV1^M"
+-sleep 4
+-send "AT^M" # dial-in/out modem
+-sleep 4
+-send "ATS21=24^M" # CD from phone line
+-sleep 4
+-send "ATS2=255^M" # no +++ allowed
+-sleep 4
+-send "~ATDT01300190^M"
++sleep 10
++send "~ATD01910^M" # Btx service Deutsche Telekom
+
+ wait 100 # wait 100 sec for BUSY, CONNECT, NO CARRIER, ....
+--- etc/users.cept.orig Tue Jun 28 16:09:30 1994
++++ etc/users.cept Sun Sep 1 15:14:41 1996
+@@ -16,223 +16,7 @@
+ # (every user is allowed on every machine)
+ ############################################################################
+
+-# 2.3
+-# users.cept,v
+-# Revision 2.3 1993/09/24 14:07:01 husemann
+-# some fixes
+-#
+-# Revision 2.2 1993/09/24 11:12:07 husemann
+-# 2.0 BETA RELEASE
+-#
+-# Revision 2.1 1993/09/24 10:02:28 husemann
+-# Getting ready for beta release of XCept.
+-#
+-# Revision 1.1.1.1 1993/05/18 08:21:31 husemann
+-# New checkin for new CVS tree --- this time for sure!
+-#
+-# Revision 1.1 1993/01/14 16:39:06 aoaugust
+-# Initial revision
+-#
+-# Revision 1.22 1993/01/12 14:26:10 fzhauck
+-# Elmar Storath added
+-#
+-# Revision 1.21 1993/01/12 12:35:28 eckert
+-# added access for faui45r (eckert)
+-#
+-# Revision 1.20 1993/01/11 16:19:24 husemann
+-# added faui45x
+-#
+-# Revision 1.19 1993/01/11 11:08:34 jklein
+-# removed faui43d, added faui45j
+-#
+-# Revision 1.18 1993/01/08 09:51:21 husemann
+-# added vespucci
+-#
+-# Revision 1.17 1992/12/18 11:11:42 husemann
+-# added Prof. Hofmann
+-#
+-# Revision 1.16 1992/12/14 08:59:05 husemann
+-# corrected faui43a again
+-#
+-# Revision 1.15 1992/12/08 14:47:56 husemann
+-# added eckertchen
+-#
+-# Revision 1.14 1992/12/08 12:04:17 husemann
+-# added faui45{v,w}
+-#
+-# Revision 1.13 1992/11/30 10:35:34 husemann
+-# added faui43a -dirk
+-#
+-# Revision 1.12 1992/11/26 08:12:23 jklein
+-# added faui43d and jklein
+-#
+-# Revision 1.11 1992/10/07 12:03:12 btx
+-# added faui4s w/ domain extension
+-#
+-# Revision 1.10 1992/10/05 10:51:18 root
+-# add S10'er
+-#
+-# Revision 1.9 1992/09/29 13:41:16 btx
+-# added btx
+-#
+-# Revision 1.8 1992/09/25 12:47:37 btx
+-# added faui45g
+-#
+-# Revision 1.7 1992/09/25 06:44:07 btx
+-# added pruy
+-#
+-# Revision 1.6 1992/09/23 07:53:31 btx
+-# added Wurm
+-#
+-# Revision 1.5 1992/09/22 14:29:14 btx
+-# added flacke
+-#
+-# Revision 1.4 1992/09/21 11:01:39 root
+-# added Matthias Gente
+-#
+-# Revision 1.3 1992/09/18 11:12:41 root
+-# added a couple of users
+-#
+-# Revision 1.2 1992/09/18 10:58:10 root
+-# added RCS keywords
+-#
+-
+-@hydra
+-@tensor
+-@faui09
+-@faui09.informatik.uni-erlangen.de
+-@calimero
+-@faui33
+-@faui33.informatik.uni-erlangen.de
+-@camelot
+-@chaos
+-@eva
+-@vespucci
+-@vespucci.informatik.uni-erlangen.de
+-@faui43
+-@faui43.informatik.uni-erlangen.de
+-@faui43_revue
+-@faui48
+-@faui48.informatik.uni-erlangen.de
+-@faui48a
+-@faui48a.informatik.uni-erlangen.de
+-@faui48b
+-@faui48b.informatik.uni-erlangen.de
+-@faui48c
+-@faui48c.informatik.uni-erlangen.de
+-@faui48d
+-@faui48d.informatik.uni-erlangen.de
+-@faui49
+-@faui49.informatik.uni-erlangen.de
+-@faui49a
+-@faui49a.informatik.uni-erlangen.de
+-@faui49b
+-@faui49c
+-@faui49c.informatik.uni-erlangen.de
+-@faui49d
+-@faui49d.informatik.uni-erlangen.de
+-@faui49e
+-@faui49e.informatik.uni-erlangen.de
+-@faui49f
+-@faui49f.informatik.uni-erlangen.de
+-@faui4a
+-@faui4a.informatik.uni-erlangen.de
+-@faui4c
+-@faui4c.informatik.uni-erlangen.de
+-@faui4d
+-@faui4d.informatik.uni-erlangen.de
+-@faui4e
+-@faui4e.informatik.uni-erlangen.de
+-@faui4f
+-@faui4f.informatik.uni-erlangen.de
+-@faui4g
+-@faui4g.informatik.uni-erlangen.de
+-@faui4h
+-@faui4h.informatik.uni-erlangen.de
+-@faui4j
+-@faui4j.informatik.uni-erlangen.de
+-@faui4l
+-@faui4l.informatik.uni-erlangen.de
+-@faui4n
+-@faui4n.informatik.uni-erlangen.de
+-@faui4p
+-@faui4p.informatik.uni-erlangen.de
+-@faui4q
+-@faui4q.informatik.uni-erlangen.de
+-@faui4r
+-@faui4r.informatik.uni-erlangen.de
+-@faui4s
+-@faui4s.informatik.uni-erlangen.de
+-@faui4t
+-@faui4t.informatik.uni-erlangen.de
+-@faui4u
+-@faui4u.informatik.uni-erlangen.de
+-@faui4x
+-@faui4x.informatik.uni-erlangen.de
+-@fridolin
+-@medusa
+-@pse
+-@torus
+-@faui43a
+-@faui43a.informatik.uni-erlangen.de
+-@faui45
+-@faui45.informatik.uni-erlangen.de
+-@faui45b
+-@faui45b.informatik.uni-erlangen.de
+-@faui45d
+-@faui45d.informatik.uni-erlangen.de
+-@faui45g
+-@faui45g.informatik.uni-erlangen.de
+-@faui45h
+-@faui45h.informatik.uni-erlangen.de
+-@faui45j
+-@faui45j.informatik.uni-erlangen.de
+-@faui45k
+-@faui45k.informatik.uni-erlangen.de
+-@faui45l
+-@faui45l.informatik.uni-erlangen.de
+-@faui45m
+-@faui45m.informatik.uni-erlangen.de
+-@faui45n
+-@faui45n.informatik.uni-erlangen.de
+-@faui45o
+-@faui45o.informatik.uni-erlangen.de
+-@faui45p
+-@faui45p.informatik.uni-erlangen.de
+-@faui45r
+-@faui45r.informatik.uni-erlangen.de
+-@faui45v
+-@faui45v.informatik.uni-erlangen.de
+-@faui45w
+-@faui45w.informatik.uni-erlangen.de
+-@faui45y
+-@faui45y.informatik.uni-erlangen.de
+-@faui45x
+-@faui45x.informatik.uni-erlangen.de
+-
+-
++@localhost
+
+ #allowed users
+-aoaugust
+-apsel
+-btx
+-demeer
+-eirich
+-eckert
+-faust
+-fhofmann
+-fkhoerin
+-flacke
+-frank
+-fzhauck
+-gente
+-hahn
+-husemann
+-jklein
+-kirschni
+-linster
+-pruy
+-rueth
+-storath
+-turo
+-wurm
++root
diff --git a/comms/xcept/files/patch-ad b/comms/xcept/files/patch-ad
new file mode 100644
index 000000000000..c4cc79a2183c
--- /dev/null
+++ b/comms/xcept/files/patch-ad
@@ -0,0 +1,17 @@
+--- /dev/null Sun Sep 1 12:14:31 1996
++++ lib/Makefile Sun Sep 1 14:33:06 1996
+@@ -0,0 +1,14 @@
++#
++# Makefile for scripts
++# essentially the install command
++SCRIPTS = ascii.xcept Bundesbahn.xcept DeutscheBank-Kontoauszug.xcept \
++ on-off.xcept popup.xcept Sparkasse.xcept \
++ ZDF.xcept client-mode xcept.pl ZDF.pl
++DEST = /usr/local/lib/xcept
++
++all:
++
++install:
++ mkdir -p $(DEST)
++ install -c -m 0664 $(SCRIPTS) $(DEST)
++ chmod 755 $(DEST)/ZDF.pl $(DEST)/xcept.pl
diff --git a/comms/xcept/files/patch-ae b/comms/xcept/files/patch-ae
new file mode 100644
index 000000000000..2d9b6d596bd4
--- /dev/null
+++ b/comms/xcept/files/patch-ae
@@ -0,0 +1,131 @@
+--- xcept/makefile.orig Fri May 13 12:19:55 1994
++++ xcept/makefile Sun Sep 1 14:27:37 1996
+@@ -48,23 +48,31 @@
+ # should be displayed in the scripts menu. (Only used when not
+ # overridden by enironment variable XCEPTSCRIPTS or by command line
+ # option '-S').
+-SCRIPTSDIR = /usr/local/btx
++SCRIPTSDIR = /usr/local/lib/xcept
+
+
+ #define compiler and X11 include+library pathes
+-CC = gcc
+-XINC = -I/usr/X386/include
+-XLIB = -L/usr/X386/lib
++#CC = gcc
++XINC = -I${X11BASE}/include
++XLIB = -L${X11BASE}/lib
+ #WARN = -W -Wunused -Wswitch -Wcomment -Wshadow -Wpointer-arith -Wcast-qual
+
+
+ #define location of the xcept binary and online manual (for 'make install').
+ OWNER = bin
+-GROUP = uucp
+-MODE = 755
++GROUP = bin
++BINMODE = 755
+ BINDIR = /usr/local/bin
+-MANDIR = /usr/local/man/manl
++MANDIR = /usr/local/man/man1
++MANMODE = 644
+
++.ifdef NOMANCOMPRESS
++MANPAGE = xcept.1
++.else
++MANPAGE = xcept.1.gz
++MANCOMPRESS = gzip -c -9
++MANCLEAN = ${MANPAGE}
++.endif
+
+
+
+@@ -73,7 +81,7 @@
+ DEFS = -DDEFAULTCEPTHOSTNAME=\"$(SERVERHOST)\" \
+ -DDEFAULTSOCKETPORT=$(SERVERPORT) \
+ -DXCEPTSCRIPTS_DEFAULTPATH=\"$(SCRIPTSDIR)\"
+-CFLAGS = $(XINC) $(WARN) $(DEFS)
++CFLAGS += $(XINC) $(WARN) $(DEFS)
+
+
+ SRCS = xcept.c xfont.c rawfont.c xwin.c layer6.c socket.c buttons.c \
+@@ -84,34 +92,31 @@
+
+
+
+-all: xcept
++all: xcept ${MANPAGE}
+
+ xcept: $(OBJS)
+- @echo 'linking $@'
+- @$(CC) $(OBJS) -o xcept $(XLIB) -lX11 -lnsl -lsocket /usr/ucblib/libucb.a
++ $(CC) $(OBJS) -o xcept $(XLIB) -lX11
+
+ $(OBJS):
+- @echo 'compiling $*.c'
+- @$(CC) $(CFLAGS) -c $*.c
++ $(CC) $(CFLAGS) -c $*.c
+
+
+ tags: $(SRCS)
+ etags -e $(SRCS)
+
+-install: xcept
+- strip xcept
+- mv xcept $(BINDIR)
+- -chown $(OWNER) $(BINDIR)/xcept
+- -chgrp $(GROUP) $(BINDIR)/xcept
+- chmod $(MODE) $(BINDIR)/xcept
+- cp xcept.1 $(MANDIR)
+- -chown $(OWNER) $(MANDIR)/xcept.1
+- -chgrp $(GROUP) $(MANDIR)/xcept.1
+- chmod 644 $(MANDIR)/xcept.1
+-
++.ifndef NOMANCOMPRESS
++${MANPAGE}: xcept.1
++ ${MANCOMPRESS} < xcept.1 > ${MANPAGE}
++.endif
++
++install: all
++ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m ${BINMODE} xcept\
++ ${BINDIR}/xcept
++ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m ${MANMODE}\
++ ${MANPAGE} ${MANDIR}/${MANPAGE}
+
+ clean:
+- @rm -f $(OBJS) xcept
++ @rm -f $(OBJS) xcept ${MANCLEAN}
+
+
+
+--- xcept/script.c.orig Fri Sep 24 16:07:29 1993
++++ xcept/script.c Sun Sep 1 14:08:13 1996
+@@ -1082,7 +1082,8 @@
+ printf( "%s", b->value );
+ fflush(stdout);
+ }
+- gets(tmpstr);
++ fgets(tmpstr, 300, stdin);
++ if ((ptr = strchr(tmpstr, '\n'))) *ptr = '\0';
+ }
+ else if(visible) {
+ if(echo) {
+@@ -1105,7 +1106,8 @@
+ }
+ printf("? ");
+ fflush(stdout);
+- gets(tmpstr);
++ fgets(tmpstr, 300, stdin);
++ if ((ptr = strchr(tmpstr, '\n'))) *ptr = '\0';
+ if( !strlen(tmpstr) ) strncpy( tmpstr, c->value, sizeof(tmpstr)-1 );
+ }
+ }
+--- xcept/xcept.c.orig Mon Apr 25 16:13:26 1994
++++ xcept/xcept.c Sun Sep 1 14:01:54 1996
+@@ -945,7 +945,6 @@
+ int perr, p1, p2, p3, p4, p5, p6, p7, p8;
+ {
+ extern int errno;
+- extern char *sys_errlist[];
+ static char errstr[200];
+
+ if(!visible) {
diff --git a/comms/xcept/pkg-comment b/comms/xcept/pkg-comment
new file mode 100644
index 000000000000..79b407a6e653
--- /dev/null
+++ b/comms/xcept/pkg-comment
@@ -0,0 +1 @@
+a decoder for the CEPT (Btx) protocol
diff --git a/comms/xcept/pkg-descr b/comms/xcept/pkg-descr
new file mode 100644
index 000000000000..a73a66a5490d
--- /dev/null
+++ b/comms/xcept/pkg-descr
@@ -0,0 +1,29 @@
+XCept provides a decoder for the CEPT protocol as it is in use for
+example by the Btx service of the Deutsche Telekom. In particular,
+electronic banking and other commercial services are being handled
+this way. The CEPT protocol itself is supposed to be a European Telco
+protocol, though I don't know whether any other Telco is actually
+using it.
+
+The program consists of two parts, ceptd acting as a server on the
+host with the modem to use, and xcept as the client which interacts
+with the user, using an X11 frontend if desired. Xcept also provides
+basic scripting facilities.
+
+The package has been developed by Arno Augustin and Frank Hoering at
+the University of Nürnberg-Erlangen, Germany. XCept version 2 has
+been the last version distributed under a BSD-style copyright; the
+package went commercial in later versions. The authors no longer
+distribute or support version 2.
+
+After installing the package, you must add
+
+xcept 20005/tcp #XCEPT
+
+to /etc/services, and
+
+xcept stream tcp nowait root /usr/local/libexec/ceptd ceptd
+
+to /etc/inetd.conf on your server host.
+
+Jörg Wunsch <joerg@FreeBSD.org>
diff --git a/comms/xcept/pkg-plist b/comms/xcept/pkg-plist
new file mode 100644
index 000000000000..542d1fbb3da1
--- /dev/null
+++ b/comms/xcept/pkg-plist
@@ -0,0 +1,17 @@
+bin/xcept
+libexec/ceptd
+man/man1/xcept.1.gz
+man/man8/ceptd.8.gz
+etc/cept.init
+etc/cept.users
+lib/xcept/Bundesbahn.xcept
+lib/xcept/DeutscheBank-Kontoauszug.xcept
+lib/xcept/Sparkasse.xcept
+lib/xcept/ZDF.pl
+lib/xcept/ZDF.xcept
+lib/xcept/ascii.xcept
+lib/xcept/client-mode
+lib/xcept/on-off.xcept
+lib/xcept/popup.xcept
+lib/xcept/xcept.pl
+@dirrm lib/xcept