View | Details | Raw Unified | Return to bug 34313
Collapse All | Expand All

(-)/usr/ports/french/xtel/Makefile (-3 / +1 lines)
Lines 7-19 Link Here
7
7
8
PORTNAME=	xtel
8
PORTNAME=	xtel
9
PORTVERSION=	3.3.0
9
PORTVERSION=	3.3.0
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	french comms emulators
11
CATEGORIES=	french comms emulators
12
MASTER_SITES=	http://pficheux.free.fr/xtel/download/
12
MASTER_SITES=	http://pficheux.free.fr/xtel/download/
13
13
14
MAINTAINER=	thierry@pompo.net
14
MAINTAINER=	thierry@pompo.net
15
16
FORBIDDEN=	"Lots of buffer overflows yielding setuid root"
17
15
18
LIB_DEPENDS+=	jpeg.9:${PORTSDIR}/graphics/jpeg
16
LIB_DEPENDS+=	jpeg.9:${PORTSDIR}/graphics/jpeg
19
17
(-)/usr/ports/french/xtel/files/patch-Config.tmpl (-2 / +19 lines)
Lines 1-5 Link Here
1
--- Config.tmpl.orig	Tue Feb 13 09:53:03 2001
1
--- Config.tmpl.orig	Sat Jan 26 17:48:22 2002
2
+++ Config.tmpl	Sat Jul 28 11:34:57 2001
2
+++ Config.tmpl	Sat Jan 26 17:50:24 2002
3
@@ -13,6 +13,9 @@
3
@@ -13,6 +13,9 @@
4
  * 	Pas de popup-menu		DONT_USE_POPUP  (pb LessTif)
4
  * 	Pas de popup-menu		DONT_USE_POPUP  (pb LessTif)
5
  */
5
  */
Lines 10-12 Link Here
10
 /* Pour installer le démon */
10
 /* Pour installer le démon */
11
 #define INSTALLDEMON
11
 #define INSTALLDEMON
12
 
12
 
13
@@ -41,13 +44,13 @@
14
 /*#define PURE*/
15
 
16
 /* Pas de Télétel vitesse rapide */
17
-/*#define NO_TVR*/
18
+#define NO_TVR
19
 
20
 /* Pour debug du demon "xteld" */
21
-#define DEBUG_XTELD
22
+/*#define DEBUG_XTELD*/
23
 
24
 /* Pour la distribution RedHat Linux */
25
-#define REDHAT
26
+/*#define REDHAT*/
27
 
28
 /* Pas de popup-menu (pb LessTif) */
29
 #define DONT_USE_POPUP
(-)/usr/ports/french/xtel/files/patch-README_IMINITEL.txt (+8 lines)
Line 0 Link Here
1
--- README_IMINITEL.txt.orig	Fri Jan  4 21:59:14 2002
2
+++ README_IMINITEL.txt	Fri Jan  4 23:10:53 2002
3
@@ -74,4 +74,4 @@
4
                           de la connexion PPP (login/password)
5
 
6
  /etc/ppp/peers/iminitel  Script de lancement de pppd, contient le nom de
7
-                          la ligne série utilisée (par défaut ttyS0)
8
+                          la ligne série utilisée (par défaut cuaa0)
(-)/usr/ports/french/xtel/files/patch-iminitel (+10 lines)
Line 0 Link Here
1
--- iminitel/iminitel.orig	Fri Jan  4 21:59:14 2002
2
+++ iminitel/iminitel	Fri Jan  4 23:06:29 2002
3
@@ -1,5 +1,5 @@
4
-ttyS0 115200 crtscts usepeerdns noipdefault nodefaultroute
5
-connect '/usr/sbin/chat -v -f /etc/ppp/chat-iminitel'
6
+cuaa0 115200 crtscts noipdefault nodefaultroute
7
+connect '/usr/bin/chat -v -f /etc/ppp/chat-iminitel'
8
 noauth
9
 lock
10
 idle 120
(-)/usr/ports/french/xtel/files/patch-ip-down.iminitel (+8 lines)
Line 0 Link Here
1
--- iminitel/ip-down.iminitel.orig	Fri Jan  4 21:59:14 2002
2
+++ iminitel/ip-down.iminitel	Fri Jan  4 22:38:55 2002
3
@@ -1,4 +1,4 @@
4
-#!/bin/bash
5
+#!%%LOCALBASE%%/bin/bash
6
 # $Id: ip-down.iminitel,v 1.1 2001/02/05 09:34:59 pierre Exp $
7
 # I-Minitel
8
 if [ "$6" = "iminitel" ]; then
(-)/usr/ports/french/xtel/files/patch-ip-up.iminitel (+8 lines)
Line 0 Link Here
1
--- iminitel/ip-up.iminitel.orig	Fri Jan  4 21:59:14 2002
2
+++ iminitel/ip-up.iminitel	Fri Jan  4 23:01:04 2002
3
@@ -1,4 +1,4 @@
4
-#!/bin/bash
5
+#!%%LOCALBASE%%/bin/bash
6
 # $Id: ip-up.iminitel,v 1.1 2001/02/05 09:34:59 pierre Exp $
7
 # I-Minitel
8
 if [ "$6" = "iminitel" ]; then
(-)/usr/ports/french/xtel/files/patch-mdmdetect.c (-2 / +50 lines)
Lines 1-5 Link Here
1
--- mdmdetect.c.orig	Sun Feb 11 01:02:58 2001
1
--- mdmdetect.c.orig	Sat Jan 26 22:38:32 2002
2
+++ mdmdetect.c	Tue Jul 24 00:10:05 2001
2
+++ mdmdetect.c	Sat Jan 26 22:44:35 2002
3
@@ -37,7 +37,16 @@
3
@@ -37,7 +37,16 @@
4
 #include <sys/types.h>
4
 #include <sys/types.h>
5
 #include <sys/socket.h>
5
 #include <sys/socket.h>
Lines 17-19 Link Here
17
 #ifdef SVR4
17
 #ifdef SVR4
18
 #include <sys/mkdev.h>
18
 #include <sys/mkdev.h>
19
 #endif /* SVR4 */
19
 #endif /* SVR4 */
20
@@ -71,6 +80,18 @@
21
     exit (1);
22
 }
23
 
24
+char *CtrlArg (arg)
25
+char *arg;
26
+{
27
+  static char ret[240];
28
+
29
+  if(strlcpy(ret, arg, 240) >= 240) {
30
+	fprintf(stderr, "Argument trop long: %s\n", arg);
31
+	exit (1);
32
+  }
33
+  return (ret);
34
+}
35
+
36
 /* Sortie */
37
 static void the_end (r)
38
 int r;
39
@@ -228,23 +249,24 @@
40
 
41
   progname = xtel_basename(av[0]);
42
 
43
-  if (ac < 2)
44
+  if (ac < 2 || ac > 7)
45
     Usage (progname);
46
 
47
   /* Lecture de la ligne de commande */
48
   while (--ac) {
49
-    if ((cp = *++av) == NULL)
50
+    if ((cp = CtrlArg(*++av)) == NULL) {
51
       break;
52
+    }
53
     if (*cp == '-' && *++cp) {
54
       switch(*cp) {
55
       case 'b' :
56
-	builder = *++av; break;
57
+	builder = CtrlArg(*++av); break;
58
 
59
       case 'd' :
60
 	++debug; break;
61
 
62
       case 'l' :
63
-	modem_list = *++av; break;
64
+	modem_list = CtrlArg(*++av); break;
65
 
66
       case 'q' :
67
 	query = 1; break;
(-)/usr/ports/french/xtel/pkg-descr (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
XTEL permet d'émuler un Minitel 1B, 2. Xtel est aussi utilisable en réseau,
3
XTEL permet d'émuler un Minitel 1B, 2. Xtel est aussi utilisable en réseau,
4
et il permet d'émuler les TVR et les I-Minitel, mais ceci n'est pas encore
4
et il permet d'émuler les TVR et les I-Minitel, mais ceci n'est pas encore
5
pris en compte ce port FreeBSD.
5
pris en compte dans ce port FreeBSD.
6
6
7
XTEL is an emulator for the Minitel. The Minitel is a passive terminal, used
7
XTEL is an emulator for the Minitel. The Minitel is a passive terminal, used
8
in France to access to different network services via a telephone line.
8
in France to access to different network services via a telephone line.

Return to bug 34313