Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2001 22:11:13 +0100
From:      Thierry Thomas <thierry@thomas.as>
To:        freebsd-ports@FreeBSD.ORG
Cc:        Cyrille Lefevre <clefevre@citeweb.net>
Subject:   Re: ports/29286: New port: french/xtel - an emulator for the french Minitel
Message-ID:  <20011111221113.A71650@graf.pompo.net>
In-Reply-To: <20011110080443.A89434@graf.pompo.net>; from thierry@thomas.as on Sat, Nov 10, 2001 at 08:04:43AM %2B0100
References:  <200111092310.fA9NA2u70578@freefall.freebsd.org> <200111100116.fAA1GHo04726@gits.dyndns.org> <20011110080443.A89434@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Le 10 Nov 01 à  8:04:43 +0000, Thierry Thomas écrivait :
> It seems that I-Minitel requires special modems, and I do not have one.

Today I am no more sure of that... The support of I-Minitel is still
disabled, but I am on a trail, and it might be re-enabled soon.

> Thanks for your remarks, I shall take them into account.

Here is the new release:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	french/xtel
#	french/xtel/files
#	french/xtel/files/patch-aa
#	french/xtel/files/patch-ab
#	french/xtel/files/patch-ac
#	french/xtel/files/patch-ad
#	french/xtel/Makefile
#	french/xtel/distinfo
#	french/xtel/pkg-descr
#	french/xtel/pkg-comment
#	french/xtel/pkg-plist
#	french/xtel/pkg-message
#	french/xtel/pkg-message-fr
#
echo c - french/xtel
mkdir -p french/xtel > /dev/null 2>&1
echo c - french/xtel/files
mkdir -p french/xtel/files > /dev/null 2>&1
echo x - french/xtel/files/patch-aa
sed 's/^X//' >french/xtel/files/patch-aa << 'END-of-french/xtel/files/patch-aa'
X--- Config.tmpl.orig	Tue Feb 13 09:53:03 2001
X+++ Config.tmpl	Sat Jul 28 11:34:57 2001
X@@ -13,6 +13,9 @@
X  * 	Pas de popup-menu		DONT_USE_POPUP  (pb LessTif)
X  */
X 
X+#define __FreeBSD__
X+#define i386BsdArchitecture
X+
X /* Pour installer le démon */
X #define INSTALLDEMON
X 
END-of-french/xtel/files/patch-aa
echo x - french/xtel/files/patch-ab
sed 's/^X//' >french/xtel/files/patch-ab << 'END-of-french/xtel/files/patch-ab'
X--- Imakefile.orig	Mon Feb 12 17:33:01 2001
X+++ Imakefile	Sun Nov 11 21:12:45 2001
X@@ -23,6 +23,12 @@
X NETWORKCFLAGS = -DNO_NETWORK
X #endif
X 
X+#if defined(__FreeBSD__)
X+EXTRA_INCLUDES = -I%%LOCALBASE%%/include -L%%LOCALBASE%%/lib
X+#else
X+EXTRA_INCLUDES=
X+#endif
X+
X #ifdef NO_TERMIO
X TERMIOCFLAGS = -DNO_TERMIO
X #else
X@@ -91,7 +97,7 @@
X SVR4CFLAGS= -DSVR4
X #endif
X 
X-      XTELCFLAGS = $(NETWORKCFLAGS) $(TERMIOCFLAGS) $(SELFILECFLAGS) $(LOWMCFLAGS) $(XPMCFLAGS) $(MOTIFCFLAGS) $(SYSLOGCFLAGS) $(TVRCFLAGS) $(WINCFLAGS) $(XTELDFLAGS) $(POPUPFLAGS)
X+      XTELCFLAGS = $(NETWORKCFLAGS) $(TERMIOCFLAGS) $(SELFILECFLAGS) $(LOWMCFLAGS) $(XPMCFLAGS) $(MOTIFCFLAGS) $(SYSLOGCFLAGS) $(TVRCFLAGS) $(WINCFLAGS) $(XTELDFLAGS) $(POPUPFLAGS) $(EXTRA_INCLUDES)
X 
X      DEPENDFLAGS = $(XTELCFLAGS)
X 
X@@ -193,7 +199,7 @@
X 
X       PROGRAMS = xtel xteld mdmdetect
X  
X-SUBDIRS= Videotex $(WIDGETS) $(XSRA) fonts $(BITMAPSDIR) $(PIXMAPSDIR) iminitel
X+SUBDIRS= Videotex $(WIDGETS) $(XSRA) fonts $(BITMAPSDIR) $(PIXMAPSDIR)
X 
X #if !defined(MOTIF) && !defined(NO_SEL_FILE)
X NamedMakeSubdirs(all, Xsra)
END-of-french/xtel/files/patch-ab
echo x - french/xtel/files/patch-ac
sed 's/^X//' >french/xtel/files/patch-ac << 'END-of-french/xtel/files/patch-ac'
X--- modem.c.orig	Tue Feb 13 10:39:23 2001
X+++ modem.c	Tue Jul 24 00:03:52 2001
X@@ -307,14 +307,14 @@
X      *  (comme le Hayes Optima par exemple)...
X      */
X #ifdef USE_TERMIOS
X-    ioctl (fd, TCIOCGETA, &term);
X+    ioctl (fd, TIOCGETA, &term);
X #else
X     ioctl (fd, TCGETA, &term);
X #endif /* USE_TERMIOS */
X     if ((term.c_cflag | CLOCAL) == 0) {
X 	term.c_cflag |= CLOCAL;
X #ifdef USE_TERMIOS
X-	ioctl (fd, TCIOCSETA, &term);
X+	ioctl (fd, TIOCSETA, &term);
X #else
X 	ioctl (fd, TCSETA, &term);
X #endif /* USE_TERMIOS */
X@@ -592,7 +592,7 @@
X     if (cmodem) {
X 	term.c_cflag &= ~CLOCAL;
X #ifdef USE_TERMIOS
X-	ioctl (fd, TCIOCSETA, &term);
X+	ioctl (fd, TIOCSETA, &term);
X #else
X 	ioctl (fd, TCSETA, &term);
X #endif /* USE_TERMIOS */
END-of-french/xtel/files/patch-ac
echo x - french/xtel/files/patch-ad
sed 's/^X//' >french/xtel/files/patch-ad << 'END-of-french/xtel/files/patch-ad'
X--- mdmdetect.c.orig	Sun Feb 11 01:02:58 2001
X+++ mdmdetect.c	Tue Jul 24 00:10:05 2001
X@@ -37,7 +37,16 @@
X #include <sys/types.h>
X #include <sys/socket.h>
X #include <netinet/in.h>
X+#ifdef NO_TERMIO
X+#include <sgtty.h>
X+#else
X+#ifdef USE_TERMIOS
X+#include <sys/ioctl.h>
X+#include <termios.h>
X+#else
X #include <termio.h>
X+#endif /* USE_TERMIOS */
X+#endif
X #ifdef SVR4
X #include <sys/mkdev.h>
X #endif /* SVR4 */
END-of-french/xtel/files/patch-ad
echo x - french/xtel/Makefile
sed 's/^X//' >french/xtel/Makefile << 'END-of-french/xtel/Makefile'
X# Ports collection makefile for:  xtel
X# Date created:			  Wed Jul 11, 2001
X# Whom:				  Thierry Thomas (<thierry@thomas.as>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xtel
XPORTVERSION=	3.3.0
XCATEGORIES=	french comms emulators
XMASTER_SITES=	http://pficheux.free.fr/xtel/download/
X
XMAINTAINER=	thierry@thomas.as
X
XLIB_DEPENDS+=	jpeg.9:${PORTSDIR}/graphics/jpeg
X
X# Remark: Xtel can serve a network, and emulate TVR and I-Minitel, but this is
X# the first release of this port, and these functionnalities have not (yet)
X# been implemented.
X
XUSE_IMAKE=	yes
XUSE_XPM=	yes
X
X.include <bsd.port.pre.mk>
X
XMAN1=	xtel.1 xteld.1
X
X.if defined(LANG)
XCUT=	/usr/bin/cut
XLANGUE=	`${ECHO} ${LANG} | ${CUT} -c 1-2`
X.else
XLANGUE=	english
X.endif
X
XDOCS=	COPYING COPYRIGHT FAQ.txt HISTOIRE.txt LISEZMOI.txt README_IMINITEL.txt
XPATCH_FILES=	Imakefile
X
Xpost-patch:
X.for FILE in ${PATCH_FILES}
X	@${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/${FILE}
X.endfor
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for FILE in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X	@${ECHO}
X	@(if [ 0${LANGUE} = 0fr ] ; then \
X	  ${ECHO_MSG} "La documentation a été installée dans ${DOCSDIR}." ; \
X	else \
X	  ${ECHO_MSG} "Documentation installed in ${DOCSDIR}." ; \
X	fi)
X.endif
X	@${TOUCH} ${PREFIX}/lib/X11/xtel/xtel.log
X	@(if [ 0${LANGUE} = 0fr ] ; then \
X		${CP} ${PKGMESSAGE}-fr ${WRKDIR}/pkg-message ; \
X	else \
X		${CP} ${PKGMESSAGE} ${WRKDIR} ; \
X	fi)
X	@${ECHO}
X	@${CAT} ${WRKDIR}/pkg-message | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
X	@${ECHO}
X
X.include <bsd.port.post.mk>
END-of-french/xtel/Makefile
echo x - french/xtel/distinfo
sed 's/^X//' >french/xtel/distinfo << 'END-of-french/xtel/distinfo'
XMD5 (xtel-3.3.0.tar.gz) = 9c26286ec7d4e2d893ddafdf755759bd
END-of-french/xtel/distinfo
echo x - french/xtel/pkg-descr
sed 's/^X//' >french/xtel/pkg-descr << 'END-of-french/xtel/pkg-descr'
X[please see english description below]
X
XXTEL permet d'émuler un Minitel 1B, 2. Xtel est aussi utilisable en réseau,
Xet il permet d'émuler les TVR et les I-Minitel, mais ceci n'est pas encore
Xpris en compte ce port FreeBSD.
X
XXTEL is an emulator for the Minitel. The Minitel is a passive terminal, used
Xin France to access to different network services via a telephone line. 
X
XWWW: http://www.com1.fr/~pficheux/xtel/
END-of-french/xtel/pkg-descr
echo x - french/xtel/pkg-comment
sed 's/^X//' >french/xtel/pkg-comment << 'END-of-french/xtel/pkg-comment'
XAn emulator for the french Minitel
END-of-french/xtel/pkg-comment
echo x - french/xtel/pkg-plist
sed 's/^X//' >french/xtel/pkg-plist << 'END-of-french/xtel/pkg-plist'
Xbin/xtel
Xbin/xteld
Xbin/mdmdetect
Xbin/make_xtel_lignes
Xlib/X11/app-defaults/XTel
Xlib/X11/app-defaults/XTel-msg
Xlib/X11/xtel/modem.list
Xlib/X11/xtel/xtel.lignes
Xlib/X11/xtel/xtel.log
Xlib/X11/xtel/xtel.services
Xlib/X11/fonts/xtel/fonts.alias
Xlib/X11/fonts/xtel/fonts.dir
Xlib/X11/fonts/xtel/g016x10.pcf.gz
Xlib/X11/fonts/xtel/g016x20.pcf.gz
Xlib/X11/fonts/xtel/g016x40.pcf.gz
Xlib/X11/fonts/xtel/g032x20.pcf.gz
Xlib/X11/fonts/xtel/g032x40.pcf.gz
Xlib/X11/fonts/xtel/g08x10.pcf.gz
Xlib/X11/fonts/xtel/g08x20.pcf.gz
Xlib/X11/fonts/xtel/g0s16x10.pcf.gz
Xlib/X11/fonts/xtel/g0s16x20.pcf.gz
Xlib/X11/fonts/xtel/g0s16x40.pcf.gz
Xlib/X11/fonts/xtel/g0s32x20.pcf.gz
Xlib/X11/fonts/xtel/g0s32x40.pcf.gz
Xlib/X11/fonts/xtel/g0s8x10.pcf.gz
Xlib/X11/fonts/xtel/g0s8x20.pcf.gz
Xlib/X11/fonts/xtel/g116x20.pcf.gz
Xlib/X11/fonts/xtel/g18x10.pcf.gz
Xlib/X11/fonts/xtel/g1s16x20.pcf.gz
Xlib/X11/fonts/xtel/g1s8x10.pcf.gz
Xlib/X11/fonts/xtel/xteldigit.pcf.gz
X%%PORTDOCS%%share/doc/xtel/COPYING
X%%PORTDOCS%%share/doc/xtel/COPYRIGHT
X%%PORTDOCS%%share/doc/xtel/FAQ.txt
X%%PORTDOCS%%share/doc/xtel/HISTOIRE.txt
X%%PORTDOCS%%share/doc/xtel/LISEZMOI.txt
X%%PORTDOCS%%share/doc/xtel/README_IMINITEL.txt
X@dirrm lib/X11/xtel
X@dirrm lib/X11/fonts/xtel
X%%PORTDOCS%%@dirrm share/doc/xtel
END-of-french/xtel/pkg-plist
echo x - french/xtel/pkg-message
sed 's/^X//' >french/xtel/pkg-message << 'END-of-french/xtel/pkg-message'
X****************************************************************************
XXtel has been installed on %%PREFIX%%/bin/xtel.
X
XIn order to use it, you have to edit the file /etc/services
Xand add the line:
X
Xxtel            1313/tcp   #xtel Minitel emulator
X
XThen you have to edit the file /etc/inetd.conf (or its equivalent
Xif you run another internet services daemon) and add the line:
X
Xxtel	stream	tcp	nowait	root	%%PREFIX%%/bin/xteld	xteld
X
XForce the super-daemon to re-read its configuration file by
Xkillall -1 inetd
X
XIf your modem is plugged to /dev/cuaax (where x = 0, 1, 2,...)
Xdetect its initialization string by:
X
Xmdmdetect cuaax
X
XAfter some time while your computer should be dialoguing with the
Xmodem, you should get such a line
X
XModemModel , 38400 \dat&fm1e0&k3f3\r-OK
X
XTake note of the second (speed) and last parameters, and report them
Xinto the file %%PREFIX%%/lib/X11/xtel/xtel.lignes so that you have a
Xline like this one:
X
Xmodem0,/dev/cuaa0,38400,7,E,\dat&fm1e0&k3f3\r OK atdt\T\r CONNECT,30
X
Xwhere cuaa0 should be adjusted to your port number, 38400 to the speed
Xdetected by mdmdetect, and where the string included between "E," and atdt
Xcorresponds to the third parameter (Note that the "-" has been replaced by
Xa space).
X
XTo end, you just have to install the fonts, either by entering
Xxset +fp %%PREFIX%%/lib/X11/fonts/xtel
Xxset fp rehash
Xor by adding %%PREFIX%%/lib/X11/fonts/xtel to FontPath in your
XXF86Config.
X****************************************************************************
END-of-french/xtel/pkg-message
echo x - french/xtel/pkg-message-fr
sed 's/^X//' >french/xtel/pkg-message-fr << 'END-of-french/xtel/pkg-message-fr'
X************************************************************************
XXtel a été installé sur %%PREFIX%%/bin/xtel.
X
XPour pouvoir l'utiliser, vous devez modifier le fichier /etc/services
Xet y ajouter la ligne :
X
Xxtel            1313/tcp   #xtel emulateur Minitel
X
XVous devez ensuite modifier le fichier /etc/inetd.conf (ou son
Xéquivalent si vous utilisez un autre super-démon) pour y ajouter la
Xligne :
X
Xxtel	stream	tcp	nowait	root	%%PREFIX%%/bin/xteld	xteld
X
XForcez le super-démon à relire son fichier de configuration par
Xkillall -1 inetd
X
XSi votre modem est connecté à /dev/cuaax (où x = 0, 1, 2,...)
Xdétectez sa chaîne d'initialisation par :
X
Xmdmdetect cuaax
X
XAprès quelques instants pendant lesquels votre ordinateur doit dialoguer
Xavec le modem, une ligne semblable à la suivante doit s'afficher :
X
XModèleModem , 38400 \dat&fm1e0&k3f3\r-OK
X
XNotez le deuxième paramètre (vitesse) et le dernier, et reportez-les
Xdans le fichier %%PREFIX%%/lib/X11/xtel/xtel.lignes de façon à avoir
Xune ligne telle que :
X
Xmodem0,/dev/cuaa0,38400,7,E,\dat&fm1e0&k3f3\r OK atdt\T\r CONNECT,30
X
Xoù cuaa0 doit être adapté à votre n° de port, 38400 à la vitesse
Xdétectée par mdmdetect, et où la chaîne comprise entre "E," et "atdt"
Xcorrespond au troisième paramètre (Notez que le "-" est remplacé par
Xun blanc).
X
XIl ne reste plus qu'à installer les polices, soit en entrant
Xxset +fp %%PREFIX%%/lib/X11/fonts/xtel
Xxset fp rehash
Xsoit en ajoutant %%PREFIX%%/lib/X11/fonts/xtel au FontPath de votre
Xfichier de XF86Config.
X************************************************************************
END-of-french/xtel/pkg-message-fr
exit

-- 
Th. Thomas.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011111221113.A71650>