mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add xtel 3.3.0, an emulator for the french Minitel.
PR: 29286 Submitted by: Thierry Thomas (<thierry@thomas.as>)
This commit is contained in:
parent
64c7e3c56c
commit
015ee1e8e6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=52176
@ -1,5 +1,6 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
SUBDIR += xtel
|
||||
|
||||
SUBDIR += ispell
|
||||
SUBDIR += kde2-i18n
|
||||
|
65
french/xtel/Makefile
Normal file
65
french/xtel/Makefile
Normal file
@ -0,0 +1,65 @@
|
||||
# Ports collection makefile for: xtel
|
||||
# Date created: Wed Jul 11, 2001
|
||||
# Whom: Thierry Thomas (<thierry@thomas.as>)
|
||||
#
|
||||
# $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 <bsd.port.pre.mk>
|
||||
|
||||
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.*<malloc.h>@#include <stdlib.h>@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 <bsd.port.post.mk>
|
1
french/xtel/distinfo
Normal file
1
french/xtel/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xtel-3.3.0.tar.gz) = 9c26286ec7d4e2d893ddafdf755759bd
|
12
french/xtel/files/patch-Config.tmpl
Normal file
12
french/xtel/files/patch-Config.tmpl
Normal file
@ -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
|
||||
|
33
french/xtel/files/patch-Imakefile
Normal file
33
french/xtel/files/patch-Imakefile
Normal file
@ -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)
|
19
french/xtel/files/patch-mdmdetect.c
Normal file
19
french/xtel/files/patch-mdmdetect.c
Normal file
@ -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 <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
+#ifdef NO_TERMIO
|
||||
+#include <sgtty.h>
|
||||
+#else
|
||||
+#ifdef USE_TERMIOS
|
||||
+#include <sys/ioctl.h>
|
||||
+#include <termios.h>
|
||||
+#else
|
||||
#include <termio.h>
|
||||
+#endif /* USE_TERMIOS */
|
||||
+#endif
|
||||
#ifdef SVR4
|
||||
#include <sys/mkdev.h>
|
||||
#endif /* SVR4 */
|
28
french/xtel/files/patch-modem.c
Normal file
28
french/xtel/files/patch-modem.c
Normal file
@ -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 */
|
1
french/xtel/pkg-comment
Normal file
1
french/xtel/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
An emulator for the french Minitel
|
10
french/xtel/pkg-descr
Normal file
10
french/xtel/pkg-descr
Normal file
@ -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/
|
43
french/xtel/pkg-message
Normal file
43
french/xtel/pkg-message
Normal file
@ -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.
|
||||
****************************************************************************
|
44
french/xtel/pkg-message-fr
Normal file
44
french/xtel/pkg-message-fr
Normal file
@ -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.
|
||||
************************************************************************
|
40
french/xtel/pkg-plist
Normal file
40
french/xtel/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user