From 015ee1e8e6f209d3cc081678e6a8521e21659902 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Tue, 25 Dec 2001 21:39:56 +0000 Subject: [PATCH] Add xtel 3.3.0, an emulator for the french Minitel. PR: 29286 Submitted by: Thierry Thomas () --- french/Makefile | 1 + french/xtel/Makefile | 65 +++++++++++++++++++++++++++++ french/xtel/distinfo | 1 + french/xtel/files/patch-Config.tmpl | 12 ++++++ french/xtel/files/patch-Imakefile | 33 +++++++++++++++ french/xtel/files/patch-mdmdetect.c | 19 +++++++++ french/xtel/files/patch-modem.c | 28 +++++++++++++ french/xtel/pkg-comment | 1 + french/xtel/pkg-descr | 10 +++++ french/xtel/pkg-message | 43 +++++++++++++++++++ french/xtel/pkg-message-fr | 44 +++++++++++++++++++ french/xtel/pkg-plist | 40 ++++++++++++++++++ 12 files changed, 297 insertions(+) create mode 100644 french/xtel/Makefile create mode 100644 french/xtel/distinfo create mode 100644 french/xtel/files/patch-Config.tmpl create mode 100644 french/xtel/files/patch-Imakefile create mode 100644 french/xtel/files/patch-mdmdetect.c create mode 100644 french/xtel/files/patch-modem.c create mode 100644 french/xtel/pkg-comment create mode 100644 french/xtel/pkg-descr create mode 100644 french/xtel/pkg-message create mode 100644 french/xtel/pkg-message-fr create mode 100644 french/xtel/pkg-plist diff --git a/french/Makefile b/french/Makefile index 0eac2948d577..1137596f5ff2 100644 --- a/french/Makefile +++ b/french/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ # + SUBDIR += xtel SUBDIR += ispell SUBDIR += kde2-i18n diff --git a/french/xtel/Makefile b/french/xtel/Makefile new file mode 100644 index 000000000000..3fb21fe6e551 --- /dev/null +++ b/french/xtel/Makefile @@ -0,0 +1,65 @@ +# Ports collection makefile for: xtel +# Date created: Wed Jul 11, 2001 +# Whom: Thierry Thomas () +# +# $FreeBSD$ +# + +PORTNAME= xtel +PORTVERSION= 3.3.0 +CATEGORIES= french comms emulators +MASTER_SITES= http://pficheux.free.fr/xtel/download/ + +MAINTAINER= thierry@thomas.as + +LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg + +# Remark: Xtel can serve a network, and emulate TVR and I-Minitel, but this is +# the first release of this port, and these functionnalities have not (yet) +# been implemented. + +USE_IMAKE= yes +USE_XPM= yes + +.include + +MAN1= xtel.1 xteld.1 + +.if defined(LANG) +LANGUE= english +.endif + +DOCS= COPYING COPYRIGHT FAQ.txt HISTOIRE.txt LISEZMOI.txt README_IMINITEL.txt +PATCH_FILES= Imakefile + +post-patch: +.for FILE in ${PATCH_FILES} + @${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/${FILE} +.endfor + find ${WRKSRC} -type f | xargs ${PERL} -pi -e \ + "s@#include.*@#include @g" + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for FILE in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} +.endfor + @${ECHO} + @(if [ 0${LANGUE} = 0fr ] ; then \ + ${ECHO_MSG} "La documentation a été installée dans ${DOCSDIR}." ; \ + else \ + ${ECHO_MSG} "Documentation installed in ${DOCSDIR}." ; \ + fi) +.endif + @${TOUCH} ${PREFIX}/lib/X11/xtel/xtel.log + @(if [ 0${LANGUE} = 0fr ] ; then \ + ${CP} ${PKGMESSAGE}-fr ${WRKDIR}/pkg-message ; \ + else \ + ${CP} ${PKGMESSAGE} ${WRKDIR} ; \ + fi) + @${ECHO} + @${CAT} ${WRKDIR}/pkg-message | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" + @${ECHO} + +.include diff --git a/french/xtel/distinfo b/french/xtel/distinfo new file mode 100644 index 000000000000..291483bae48e --- /dev/null +++ b/french/xtel/distinfo @@ -0,0 +1 @@ +MD5 (xtel-3.3.0.tar.gz) = 9c26286ec7d4e2d893ddafdf755759bd diff --git a/french/xtel/files/patch-Config.tmpl b/french/xtel/files/patch-Config.tmpl new file mode 100644 index 000000000000..48e5954827cb --- /dev/null +++ b/french/xtel/files/patch-Config.tmpl @@ -0,0 +1,12 @@ +--- Config.tmpl.orig Tue Feb 13 09:53:03 2001 ++++ Config.tmpl Sat Jul 28 11:34:57 2001 +@@ -13,6 +13,9 @@ + * Pas de popup-menu DONT_USE_POPUP (pb LessTif) + */ + ++#define __FreeBSD__ ++#define i386BsdArchitecture ++ + /* Pour installer le démon */ + #define INSTALLDEMON + diff --git a/french/xtel/files/patch-Imakefile b/french/xtel/files/patch-Imakefile new file mode 100644 index 000000000000..84b60da6277a --- /dev/null +++ b/french/xtel/files/patch-Imakefile @@ -0,0 +1,33 @@ +--- Imakefile.orig Mon Feb 12 17:33:01 2001 ++++ Imakefile Sun Nov 11 21:12:45 2001 +@@ -23,6 +23,12 @@ + NETWORKCFLAGS = -DNO_NETWORK + #endif + ++#if defined(__FreeBSD__) ++EXTRA_INCLUDES = -I%%LOCALBASE%%/include -L%%LOCALBASE%%/lib ++#else ++EXTRA_INCLUDES= ++#endif ++ + #ifdef NO_TERMIO + TERMIOCFLAGS = -DNO_TERMIO + #else +@@ -91,7 +97,7 @@ + SVR4CFLAGS= -DSVR4 + #endif + +- XTELCFLAGS = $(NETWORKCFLAGS) $(TERMIOCFLAGS) $(SELFILECFLAGS) $(LOWMCFLAGS) $(XPMCFLAGS) $(MOTIFCFLAGS) $(SYSLOGCFLAGS) $(TVRCFLAGS) $(WINCFLAGS) $(XTELDFLAGS) $(POPUPFLAGS) ++ XTELCFLAGS = $(NETWORKCFLAGS) $(TERMIOCFLAGS) $(SELFILECFLAGS) $(LOWMCFLAGS) $(XPMCFLAGS) $(MOTIFCFLAGS) $(SYSLOGCFLAGS) $(TVRCFLAGS) $(WINCFLAGS) $(XTELDFLAGS) $(POPUPFLAGS) $(EXTRA_INCLUDES) + + DEPENDFLAGS = $(XTELCFLAGS) + +@@ -193,7 +199,7 @@ + + PROGRAMS = xtel xteld mdmdetect + +-SUBDIRS= Videotex $(WIDGETS) $(XSRA) fonts $(BITMAPSDIR) $(PIXMAPSDIR) iminitel ++SUBDIRS= Videotex $(WIDGETS) $(XSRA) fonts $(BITMAPSDIR) $(PIXMAPSDIR) + + #if !defined(MOTIF) && !defined(NO_SEL_FILE) + NamedMakeSubdirs(all, Xsra) diff --git a/french/xtel/files/patch-mdmdetect.c b/french/xtel/files/patch-mdmdetect.c new file mode 100644 index 000000000000..729449ef2ee9 --- /dev/null +++ b/french/xtel/files/patch-mdmdetect.c @@ -0,0 +1,19 @@ +--- mdmdetect.c.orig Sun Feb 11 01:02:58 2001 ++++ mdmdetect.c Tue Jul 24 00:10:05 2001 +@@ -37,7 +37,16 @@ + #include + #include + #include ++#ifdef NO_TERMIO ++#include ++#else ++#ifdef USE_TERMIOS ++#include ++#include ++#else + #include ++#endif /* USE_TERMIOS */ ++#endif + #ifdef SVR4 + #include + #endif /* SVR4 */ diff --git a/french/xtel/files/patch-modem.c b/french/xtel/files/patch-modem.c new file mode 100644 index 000000000000..ca91118f383a --- /dev/null +++ b/french/xtel/files/patch-modem.c @@ -0,0 +1,28 @@ +--- modem.c.orig Tue Feb 13 10:39:23 2001 ++++ modem.c Tue Jul 24 00:03:52 2001 +@@ -307,14 +307,14 @@ + * (comme le Hayes Optima par exemple)... + */ + #ifdef USE_TERMIOS +- ioctl (fd, TCIOCGETA, &term); ++ ioctl (fd, TIOCGETA, &term); + #else + ioctl (fd, TCGETA, &term); + #endif /* USE_TERMIOS */ + if ((term.c_cflag | CLOCAL) == 0) { + term.c_cflag |= CLOCAL; + #ifdef USE_TERMIOS +- ioctl (fd, TCIOCSETA, &term); ++ ioctl (fd, TIOCSETA, &term); + #else + ioctl (fd, TCSETA, &term); + #endif /* USE_TERMIOS */ +@@ -592,7 +592,7 @@ + if (cmodem) { + term.c_cflag &= ~CLOCAL; + #ifdef USE_TERMIOS +- ioctl (fd, TCIOCSETA, &term); ++ ioctl (fd, TIOCSETA, &term); + #else + ioctl (fd, TCSETA, &term); + #endif /* USE_TERMIOS */ diff --git a/french/xtel/pkg-comment b/french/xtel/pkg-comment new file mode 100644 index 000000000000..879b887a8dc2 --- /dev/null +++ b/french/xtel/pkg-comment @@ -0,0 +1 @@ +An emulator for the french Minitel diff --git a/french/xtel/pkg-descr b/french/xtel/pkg-descr new file mode 100644 index 000000000000..7952b198e29f --- /dev/null +++ b/french/xtel/pkg-descr @@ -0,0 +1,10 @@ +[please see english description below] + +XTEL permet d'émuler un Minitel 1B, 2. Xtel est aussi utilisable en réseau, +et il permet d'émuler les TVR et les I-Minitel, mais ceci n'est pas encore +pris en compte ce port FreeBSD. + +XTEL is an emulator for the Minitel. The Minitel is a passive terminal, used +in France to access to different network services via a telephone line. + +WWW: http://www.com1.fr/~pficheux/xtel/ diff --git a/french/xtel/pkg-message b/french/xtel/pkg-message new file mode 100644 index 000000000000..b9b8ae9e846f --- /dev/null +++ b/french/xtel/pkg-message @@ -0,0 +1,43 @@ +**************************************************************************** +Xtel has been installed on %%PREFIX%%/bin/xtel. + +In order to use it, you have to edit the file /etc/services +and add the line: + +xtel 1313/tcp #xtel Minitel emulator + +Then you have to edit the file /etc/inetd.conf (or its equivalent +if you run another internet services daemon) and add the line: + +xtel stream tcp nowait root %%PREFIX%%/bin/xteld xteld + +Force the super-daemon to re-read its configuration file by +killall -1 inetd + +If your modem is plugged to /dev/cuaax (where x = 0, 1, 2,...) +detect its initialization string by: + +mdmdetect cuaax + +After some time while your computer should be dialoguing with the +modem, you should get such a line + +ModemModel , 38400 \dat&fm1e0&k3f3\r-OK + +Take note of the second (speed) and last parameters, and report them +into the file %%PREFIX%%/lib/X11/xtel/xtel.lignes so that you have a +line like this one: + +modem0,/dev/cuaa0,38400,7,E,\dat&fm1e0&k3f3\r OK atdt\T\r CONNECT,30 + +where cuaa0 should be adjusted to your port number, 38400 to the speed +detected by mdmdetect, and where the string included between "E," and atdt +corresponds to the third parameter (Note that the "-" has been replaced by +a space). + +To end, you just have to install the fonts, either by entering +xset +fp %%PREFIX%%/lib/X11/fonts/xtel +xset fp rehash +or by adding %%PREFIX%%/lib/X11/fonts/xtel to FontPath in your +XF86Config. +**************************************************************************** diff --git a/french/xtel/pkg-message-fr b/french/xtel/pkg-message-fr new file mode 100644 index 000000000000..6b37143047bd --- /dev/null +++ b/french/xtel/pkg-message-fr @@ -0,0 +1,44 @@ +************************************************************************ +Xtel a été installé sur %%PREFIX%%/bin/xtel. + +Pour pouvoir l'utiliser, vous devez modifier le fichier /etc/services +et y ajouter la ligne : + +xtel 1313/tcp #xtel emulateur Minitel + +Vous devez ensuite modifier le fichier /etc/inetd.conf (ou son +équivalent si vous utilisez un autre super-démon) pour y ajouter la +ligne : + +xtel stream tcp nowait root %%PREFIX%%/bin/xteld xteld + +Forcez le super-démon à relire son fichier de configuration par +killall -1 inetd + +Si votre modem est connecté à /dev/cuaax (où x = 0, 1, 2,...) +détectez sa chaîne d'initialisation par : + +mdmdetect cuaax + +Après quelques instants pendant lesquels votre ordinateur doit dialoguer +avec le modem, une ligne semblable à la suivante doit s'afficher : + +ModèleModem , 38400 \dat&fm1e0&k3f3\r-OK + +Notez le deuxième paramètre (vitesse) et le dernier, et reportez-les +dans le fichier %%PREFIX%%/lib/X11/xtel/xtel.lignes de façon à avoir +une ligne telle que : + +modem0,/dev/cuaa0,38400,7,E,\dat&fm1e0&k3f3\r OK atdt\T\r CONNECT,30 + +où cuaa0 doit être adapté à votre n° de port, 38400 à la vitesse +détectée par mdmdetect, et où la chaîne comprise entre "E," et "atdt" +correspond au troisième paramètre (Notez que le "-" est remplacé par +un blanc). + +Il ne reste plus qu'à installer les polices, soit en entrant +xset +fp %%PREFIX%%/lib/X11/fonts/xtel +xset fp rehash +soit en ajoutant %%PREFIX%%/lib/X11/fonts/xtel au FontPath de votre +fichier de XF86Config. +************************************************************************ diff --git a/french/xtel/pkg-plist b/french/xtel/pkg-plist new file mode 100644 index 000000000000..d2cc1e953879 --- /dev/null +++ b/french/xtel/pkg-plist @@ -0,0 +1,40 @@ +bin/xtel +bin/xteld +bin/mdmdetect +bin/make_xtel_lignes +lib/X11/app-defaults/XTel +lib/X11/app-defaults/XTel-msg +lib/X11/xtel/modem.list +lib/X11/xtel/xtel.lignes +lib/X11/xtel/xtel.log +lib/X11/xtel/xtel.services +lib/X11/fonts/xtel/fonts.alias +lib/X11/fonts/xtel/fonts.dir +lib/X11/fonts/xtel/g016x10.pcf.gz +lib/X11/fonts/xtel/g016x20.pcf.gz +lib/X11/fonts/xtel/g016x40.pcf.gz +lib/X11/fonts/xtel/g032x20.pcf.gz +lib/X11/fonts/xtel/g032x40.pcf.gz +lib/X11/fonts/xtel/g08x10.pcf.gz +lib/X11/fonts/xtel/g08x20.pcf.gz +lib/X11/fonts/xtel/g0s16x10.pcf.gz +lib/X11/fonts/xtel/g0s16x20.pcf.gz +lib/X11/fonts/xtel/g0s16x40.pcf.gz +lib/X11/fonts/xtel/g0s32x20.pcf.gz +lib/X11/fonts/xtel/g0s32x40.pcf.gz +lib/X11/fonts/xtel/g0s8x10.pcf.gz +lib/X11/fonts/xtel/g0s8x20.pcf.gz +lib/X11/fonts/xtel/g116x20.pcf.gz +lib/X11/fonts/xtel/g18x10.pcf.gz +lib/X11/fonts/xtel/g1s16x20.pcf.gz +lib/X11/fonts/xtel/g1s8x10.pcf.gz +lib/X11/fonts/xtel/xteldigit.pcf.gz +%%PORTDOCS%%share/doc/xtel/COPYING +%%PORTDOCS%%share/doc/xtel/COPYRIGHT +%%PORTDOCS%%share/doc/xtel/FAQ.txt +%%PORTDOCS%%share/doc/xtel/HISTOIRE.txt +%%PORTDOCS%%share/doc/xtel/LISEZMOI.txt +%%PORTDOCS%%share/doc/xtel/README_IMINITEL.txt +@dirrm lib/X11/xtel +@dirrm lib/X11/fonts/xtel +%%PORTDOCS%%@dirrm share/doc/xtel