1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
|
#
# Copyright (c) 1991 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted provided
# that: (1) source distributions retain this entire copyright notice and
# comment, and (2) distributions including binaries display the following
# acknowledgement: ``This product includes software developed by the
# University of California, Berkeley and its contributors'' in the
# documentation or other materials provided with the distribution and in
# all advertising materials mentioning features or use of this software.
# Neither the name of the University nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# @(#)Config.generic 5.5 (Berkeley) 3/1/91
#
# This is the configuration file for building all of
# telnet/telnetd/libtelnet. If you want to add your
# own local configuration for a specific machine that
# is already listed here, it is best to create a new
# file called "Config.local", and put the definitions
# there. If you are adding definitions for a new system
# type, you can add them here. In this case, please send
# the new definition, and any changes you have to make to
# the code, back to "dab@cray.com" so that your changes
# can be put into the next release.
#
# Each definition must have the form:
#
# <target>:
# make -f Makefile.generic ${WHAT} \
# <definitions>
# DEFINES=
#
# Variables to be defined when actually compiling the source. Defined
# as: DEFINES="-D<var> -D<var2> ... -D<varn>"
#
# TELNET/TELNETD CONFIGURATION
#
# LINEMODE Turns on support in telnetd for the linemode option.
# (Linemode is always on in the client).
#
# KLUDGELINEMODE Define this to get the kludged up version of linemode
# that was in 4.3BSD. This is a good thing to have
# around for talking to older systems. This has no
# effect on telnetd if LINEMODE has not been defined.
#
# DIAGNOSTICS Turns on diagnostic code in telnetd; adds extra
# logic and checks, and debuging output if started
# with the -D option.
#
# NO_URGENT Define this if you don't want telnetd to send
# IAC DM in urgent mode when the pty output queue
# is flushed.
#
# GENERATE_GA Turns on code to allow the generation of Go Ahead(GA)
# if the server is WONT SGA. This code is imprecise,
# it generates the GA when two seconds have elapsed
# and no input or output has occurred.
#
# AUTHENTICATION Enable the AUTHENTICATION option.
#
# ENCRYPTION Enable the ENCRYPT option.
#
# KRB4 Enable Kerberos Version 4 Authentication code
# in libtelnet/libtelnet.a
#
# KRB5 Enable Kerberos Version 5 Authentication code
# in libtelnet/libtelnet.a
#
# SPX Enable SPX authentication code in.
# libtelnet/libtelnet.a
#
# RSA_ENCPWD
#
# KRB4_ENCPWD
#
#
# DES_ENCRYPTION Enable DES encryption/decryption, requires
# getting a the initial key from Kerberos. This
# works with both Kerberos Version 4 and 5.
#
# ENV_HACK Turn on code to recognize and allow
# interoperability with systems that have their
# definitions for ENV_VALUE and ENV_VAR reversed.
#
# LOCAL SYSYTEM PARAMATERS
#
# TERMCAP Define this if your system is termcap based,
# otherwise a terminfo based system is assumed.
#
# SYSV_TERMIO Use the System V termio structure. (implies USE_TERMIO)
#
# NO_CC_T Define this if your termio.h file does not have
# a typedef for cc_t.
#
# USE_TERMIO Define this if you have the POSIX termios structures.
# This code works under the BSD 4.4 terminal driver.
#
# HAS_GETTOS Define this if you have the setsockopt() option for
# setting the IP Type Of Service bits, (IP_TOS) and
# you have the gettosbyname() function.
#
# NEWINIT Turns on the new init code for UNICOS systems.
#
# STREAMS This system needs <sys/stream.h> for <sys/tty.h>
# (Sun 4.0.3)
#
# FILIO_H This system should use <sys/fileo.h> instead
# of <sys/ioctl.h> (Sun 4.0.3)
#
# HAVE_fd_set This system has a typedef for fd_set, but does
# not have FDSET() defined.
#
# NO_STRING_H If you don't have <string.h>, but have <strings.h>
#
# LOGIN_PROGRAM= Specifies the login program to use. By default,
# it is /bin/login, or whatever is specified by
# _PATH_LOGIN in <paths.h>
#
# NO_LOGIN_P If /bin/login doesn't understand the "-p"
# (preserve environment) option.
#
# LOGIN_ARGS if /bin/login understands environment variables
# after the login name. Only used if NO_LOGIN_P
# is defined.
#
# NO_LOGIN_F If /bin/login doesn't understand the "-f" option.
# Only used if AUTHENTICATION is defined.
#
# LOGIN_CAP_F If /bin/login understands the "-F" option (which
# works like "-f", but root logins are allowed).
# Only used if NO_LOGIN_F is not defined.
#
# LOGIN_R This says that /bin/login understands the "-r host"
# option. Only used if NO_LOGIN_F is defined (and
# the system supports the TIOCSTI ioctl).
#
# LOGIN_HOST Only applies if LOGIN_R is defined. This
# specifies the hostname to be passed to "login -r"
# for successfully authenticated logins. This
# defaults to "localhost" (don't forget to include
# the quotes, e.g. -DLOGIN_HOST=\"localhost\").
#
# It can also be set to host (-DLOGIN_HOST=host)
# to have the real hostname passed to "/bin/login -r".
# NOTE: If you do this, then anyone that wants to
# allow authenticated login access will have
# to add those remote hosts to their .rhosts,
# which sort of defeats the whole purpose of
# authenticated login...
#
# NO_BSD_SETJMP For UNICOS releases prior to 7.0. Turns off
# the inclusion of <bsdsetjmp.h>.
#
# STREAMS If the system has streams; causes <sys/stream.h>
# to be included instead of <sys/tty.h>
#
# MUST_ALIGN If !KRB & !HAVE_KRB4_DES_LIB and your words
# must be word aligned.
#
# STREAMSPTY Use /dev/ptmx to get a clean pty. Uses
# streams packet mode rather than Berkeley.
# Appropriate for SVr4 derivatives.
#
# UTMPX System has /etc/utmpx as well as /etc/utmp.
# Use makeutx and modutx to update utmp/x and wtmp/x.
# Appropriate for SVr4 derivatives.
#
# HAS_CGETENT If your system has the cgetent() and cgetstr()
# routines. This is a 4.4BSD feature, that
# eliminates grabbing the getty gettytab.c source.
# You need to include getent.o on the LIB_OBJ
# line if this is defined.
#
# OLD_ENVIRON Support for the old environment option.
# LIB_OBJ=
# This is a list of object files that are needed but are not in
# the standard C library.
#
# strcasecmp.o If you don't have strncasecmp(3)
# strdup.o If you don't have strdup(3)
# setenv.o If you don't have setenv(3) and unsetenv(3)
# setsid.o If you don't have the POSIX setsid() call
# strerror.o If you don't have strerror(3)
# strftime.o If you don't have strftime(3)
# getopt.o If you don't have getopt(3)
# herror.o If you don't have herror(3)
# gettytab.o If you can get gettytab.c from getty source.
# getent.o If you can't get gettytab.c (or have
# HAS_CGETENT defined...)
# mem.o If you don't have mem*(3) routines.
# LIB_SRC=
# This is a list of source modules for specificed in LIB_OBJ.
# This information is used by make for checking dependencies.
# LIBS=
# This is a list of libraries to be included. This will always
# include the telnet library, and will also include either -lcurses
# or -ltermcap, -lutil for 4.4bsd, and -lnet for UNICOS5.0 and earlier.
# Also -lkrb & -ldes if Kerberos.
# LIBPATH=
# This is a list of the paths to all the libraries listed in LIBS.
# This information is used by make for checking dependencies.
# Don't forget libc.a
# VPATH=
# Directory where gettytab.c can be found, if you have it.
# LIBEXEC=
# Directory where the telnetd executable should be installed.
# LCCFLAGS=
# Local flags for ${CC} (like -O)
# AR=
# Name of "ar" program, usually just "ar".
# ARFLAGS
# Flags to pass to ${AR}
# RANLIB
# Name of "ranlib" program, set it to "NONE" if you don't
# have a "ranlib".
all:
@echo "You must specify what type of system you are on,"
@echo "or setup a Config.local file for your system."
@echo "Known system types are:"
@echo
@echo " 4.4bsd 4.3reno 4.4bsd.auth 4.3reno.auth 4.3tahoe 4.3bsd"
@echo " bsdi1.0 bsdi1.0.auth"
@echo " unicos8.1 unicos8.0 unicos7.C unicos7.0"
@echo " unicos8.1.auth unicos8.0.auth unicos7.0.auth"
@echo " unicos7.C.auth unicos7.0.des.auth"
@echo " unicos6.1 unicos6.0 unicos5.1 unicos5.0"
@echo " sun3.5 sun4.0.3c sun4.0 sun4.1 sun4.1.auth"
@echo " solaris2.2 solaris2.2.auth"
@echo " dynix3.0.12 dynix3.0.17"
@echo " ultrix3.1 ultrix4.0 ultrix4.1 ultrix4.3 ultrix4.3.auth"
@echo " irix4.0.1"
@echo " hpux8.0"
@echo " next1.0"
@echo " convex"
4.4bsd:
make -f Makefile.generic ${WHAT} \
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
-DDEFAULT_IM='\"\r\n4.4 BSD UNIX (%h) (%t)\r\n\r\r\n\r\"' \
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
-DHAS_CGETENT" \
INCLUDES="-I.." \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/libexec \
CC="${CC}" LCCFLAGS="-O"
4.3reno:
make -f Makefile.generic ${WHAT} \
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
DEST=${DESTDIR}/usr/bin \
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
-DDEFAULT_IM='\"\r\n4.3BSD-Reno UNIX (%h) (%t)\r\n\r\r\n\r\"' \
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK \
-DOLD_ENVIRON ${AUTH_DEF}" \
INCLUDES="-I.. ${AUTH_INC}" \
LIB_OBJ="gettytab.o" \
LIB_SRC="gettytab.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
VPATH=/usr/src/libexec/getty \
LIBEXEC=${DESTDIR}/usr/libexec \
CC="${CC}" LCCFLAGS="-O"
4.4bsd.auth 4.3reno.auth:
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
AUTH_LIB="-lkrb -ldes" \
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION"
4.3tahoe:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
-DDEFAULT_IM='\"\r\n4.3BSD-Tahoe UNIX (%h) (%t)\r\n\r\r\n\r\"'\
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
INCLUDES="-I.." \
LIB_OBJ="strdup.o setsid.o strftime.o gettytab.o" \
LIB_SRC="strdup.c setsid.c strftime.c gettytab.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
VPATH=/usr/src/etc/getty \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
4.3bsd:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
-DDEFAULT_IM='\"\r\n4.3BSD UNIX (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
INCLUDES="-I.." \
LIB_OBJ="strdup.o setsid.o strftime.o \
gettytab.o getopt.o herror.o" \
LIB_SRC="strdup.c setsid.c strftime.c \
gettytab.c getopt.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
VPATH=/usr/src/etc/getty \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
bsdi1.0:
make -f Makefile.generic ${WHAT} \
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
DEST=${DESTDIR}/usr/bin \
DEFINES=${ODEFS}"-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
-DDEFAULT_IM='\"\r\nBSDI BSD/386 1.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DUSE_TERMIO -DDIAGNOSTICS -DENV_HACK \
-DOLD_ENVIRON ${AUTH_DEF}" \
INCLUDES="-I.. ${AUTH_INC}" \
LIB_OBJ="gettytab.o" \
LIB_SRC="gettytab.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
VPATH=/usr/src/libexec/getty \
LIBEXEC=${DESTDIR}/usr/libexec \
CC="${CC}" LCCFLAGS="-O"
bsdi1.0.auth:
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
AUTH_LIB="-lkrb -ldes" \
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION"
AUTH_INC=-I/usr/include/kerberosIV
unicos8.1:
make -f Makefile.generic ${WHAT} \
LIBS="-lcurses -L../libtelnet -ltelnet ${AUTH_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
-DLINEMODE -DKLUDGELINEMODE \
-DSYSV_TERMIO -DHAS_GETTOS ${AUTH_DEF} \
-DDEFAULT_IM='\"\r\nCray UNICOS 8.1 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.. ${AUTH_INC}" \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
unicos8.0:
make -f Makefile.generic ${WHAT} \
LIBS="-lcurses -L../libtelnet -ltelnet ${AUTH_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
-DLINEMODE -DKLUDGELINEMODE \
-DSYSV_TERMIO -DHAS_GETTOS ${AUTH_DEF} \
-DDEFAULT_IM='\"\r\nCray UNICOS 8.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.. ${AUTH_INC}" \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
CC="${CC}" LCCFLAGS="-O"
unicos7.C:
make -f Makefile.generic ${WHAT} \
LIBS="-lcurses -L../libtelnet -ltelnet ${AUTH_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a ${AUTH_LIBPATH}"\
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
-DLINEMODE -DKLUDGELINEMODE \
-DSYSV_TERMIO -DHAS_GETTOS ${AUTH_DEF} \
-DDEFAULT_IM='\"\r\nCray UNICOS 7.C (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.. ${AUTH_INC}" \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
CC="${CC}" LCCFLAGS="-O"
unicos7.0:
make -f Makefile.generic ${WHAT} \
LIBS="-lcurses -L../libtelnet -ltelnet -lkrb" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a /usr/lib/libkrb.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
-DLINEMODE -DKLUDGELINEMODE \
-DSYSV_TERMIO -DHAS_GETTOS \
-DDEFAULT_IM='\"\r\nCray UNICOS 7.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.." \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
CC="${CC}" LCCFLAGS="-O"
# As of UNICOS 7.0.5.2, there is no longer a /usr/lib/libdes.a
# If you still have a /usr/lib/libdes.a, use the "unicos7.0.des.auth"
# target instead of "unicos7.0.auth".
unicos8.1.auth unicos8.0.auth unicos7.0.auth:
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
AUTH_LIB=-lkrb AUTH_LIBPATH=/usr/lib/libkrb.a \
AUTH_INC=-I/usr/include/krb \
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION"
unicos7.C.auth unicos7.0.des.auth:
make -f ../Config.generic `basename $@ .des.auth` WHAT=${WHAT} \
AUTH_LIB="-lkrb -ldes" \
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
AUTH_INC=-I/usr/include/krb \
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION"
unicos6.1:
make -f Makefile.generic ${WHAT} \
LIBS="-lcurses -L../libtelnet -ltelnet" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
-DKLUDGELINEMODE -DUSE_TERMIO -DHAS_GETTOS \
-DLINEMODE -DSYSV_TERMIO -DNEWINIT \
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_BSD_SETJMP \
-DLOGIN_ARGS \
-DDEFAULT_IM='\"\r\nCray UNICOS 6.1 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.." \
LIB_OBJ="getent.o parsetos.o" \
LIB_SRC="getent.c parsetos.c" \
CC="${CC}" LCCFLAGS="-O"
unicos6.0:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-lcurses -L../libtelnet -ltelnet" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=bsdsignal \
-DKLUDGELINEMODE -DUSE_TERMIO -DHAS_GETTOS \
-DLINEMODE -DSYSV_TERMIO -DNEWINIT \
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_BSD_SETJMP \
-DLOGIN_ARGS \
-DDEFAULT_IM='\"\r\nCray UNICOS 6.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.." \
LIB_OBJ="getent.o parsetos.o" \
LIB_SRC="getent.c parsetos.c" \
CC="${CC}" LCCFLAGS="-O"
unicos5.1:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-lnet -lcurses -L../libtelnet -ltelnet" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=sigset \
-DKLUDGELINEMODE -DSYSV_TERMIO -DNO_CC_T \
-DUNICOS5 -DLINEMODE -DSYSV_TERMIO \
-DNEWINIT -DNO_LOGIN_F -DNO_LOGIN_P -DNO_BSD_SETJMP \
-DLOGIN_ARGS \
-DDEFAULT_IM='\"\r\nCray UNICOS 5.1 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strerror.o setsid.o strftime.o" \
LIB_SRC="getent.c strerror.c setsid.c strftime.c" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
unicos5.0:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-lnet -lcurses -L../libtelnet -ltelnet" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-Dvfork=fork -Dsignal=sigset \
-DKLUDGELINEMODE -DSYSV_TERMIO -DNO_CC_T \
-DUNICOS5 -DUNICOS50 -DLINEMODE -DSYSV_TERMIO \
-DNEWINIT -DNO_LOGIN_F -DNO_LOGIN_P -DNO_BSD_SETJMP \
-DLOGIN_ARGS \
-DDEFAULT_IM='\"\r\nCray UNICOS 5.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strerror.o setsid.o strftime.o" \
LIB_SRC="getent.c strerror.c setsid.c strftime.c" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
sun3.5:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
-DHAVE_fd_set \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
-DDEFAULT_IM='\"\r\nSunOS UNIX 3.5 (%h) (%t)\r\n\r\r\n\r\"' \
-DNO_LOGIN_P" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strdup.o strerror.o setsid.o \
setenv.o strftime.o strcasecmp.o herror.o" \
LIB_SRC="getent.c strdup.c strerror.c setsid.c \
setenv.c strftime.c strcasecmp.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-O"
sun4.0.3c sun4.0:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DFILIO_H -DTERMCAP -DUSE_TERMIO -DNO_CC_T \
-DKLUDGELINEMODE \
-DDEFAULT_IM='\"\r\nSunOS UNIX 4.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DSTREAMS -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strerror.o setsid.o setenv.o \
strcasecmp.o strftime.o herror.o" \
LIB_SRC="getent.c strerror.c setsid.c setenv.c \
strcasecmp.c strftime.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-O"
sun4.1:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DFILIO_H -DTERMCAP -DUSE_TERMIO \
-DKLUDGELINEMODE -DSTREAMS \
-DDEFAULT_IM='\"\r\nSunOS UNIX 4.1 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON ${AUTH_DEF}" \
INCLUDES="-I.. ${AUTH_INC}" \
LIB_OBJ="getent.o strerror.o setenv.o herror.o" \
LIB_SRC="getent.c strerror.c setenv.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-O"
sun4.1.auth:
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
AUTH_LIB="-lkrb -ldes" \
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
AUTH_DEF="-DAUTHENTICATION -DENCRYPTION -DKRB4 -DDES_ENCRYPTION"
sol2.2 solaris2.2:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermlib ../libtelnet/libtelnet.a" \
LIBPATH="/usr/ccs/lib/libtermlib.a ../libtelnet/libtelnet.a \
/usr/lib/libc.a /usr/ucblib/libucb.a \
/usr/lib/libsocket.a /usr/lib/libnsl.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DFILIO_H -DUSE_TERMIO -DKLUDGELINEMODE \
-DSTREAMS -DSTREAMSPTY -DDIAGNOSTICS -DSOLARIS \
-DENV_HACK -DOLD_ENVIRON -DNO_LOGIN_P -DUTMPX \
-DDEFAULT_IM='\"\r\n\r\nUNIX(r) System V Release 4.0 (%h)\r\n\r\n\"' \
-DLOGIN_ARGS" \
INCLUDES="-I.. -I/usr/ucbinclude" \
LIB_OBJ="getent.o strerror.o setenv.o herror.o" \
LIB_SRC="getent.c strerror.c setenv.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-O"
sol2.2.auth solaris2.2.auth:
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
AUTH_LIB="-lkrb" AUTH_LIBPATH="/usr/lib/libkrb.a" \
AUTH_INC=-I/usr/include/kerberos \
AUTH_DEF="-DAUTHENTICATION -DKRB4"
dynix3.0.12:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
-DDEFAULT_IM='\"\r\nDYNIX(R) V3.0.12 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DNO_STRING_H " \
INCLUDES="-I.." \
LIB_OBJ="getent.o strchr.o strrchr.o strdup.o strerror.o \
setsid.o setenv.o strcasecmp.o strftime.o getopt.o \
mem.o" \
LIB_SRC="getent.c strchr.c strrchr.c strdup.c strerror.c \
setsid.c setenv.c strcasecmp.c strftime.c getopt.c \
mem.o" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
dynix3.0.17:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a -lseq" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a /usr/lib/libseq.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DNO_STRING_H \
-DDEFAULT_IM='\"\r\nDYNIX(R) V3.0.17 (%h) (%t)\r\n\r\r\n\r\"' \
" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strchr.o strrchr.o strdup.o strerror.o \
setsid.o strftime.o mem.o" \
LIB_SRC="getent.c strchr.c strrchr.c strdup.c strerror.c \
setsid.c strftime.c mem.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
ultrix3.1:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DTERMCAP -DKLUDGELINEMODE \
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -DUSE_TERMIO \
-DDEFAULT_IM='\"\r\nULTRIX V3.1 (%h) (%t)\r\n\r\r\n\r\"' \
-YPOSIX" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strdup.o strerror.o setenv.o \
strftime.o herror.o" \
LIB_SRC="getent.c strdup.c strerror.c setenv.c \
strftime.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
ultrix4.0:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DUSE_TERMIO -DTERMCAP \
-DDEFAULT_IM='\"\r\nULTRIX V4.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DKLUDGELINEMODE -DDIAGNOSTICS \
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
-DENV_HACK -DOLD_ENVIRON" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strdup.o strerror.o setsid.o \
setenv.o strftime.o" \
LIB_SRC="getent.c strdup.c strerror.c setsid.c \
setenv.c strftime.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
ultrix4.1:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DUSE_TERMIO -DTERMCAP \
-DDEFAULT_IM='\"\r\nULTRIX V4.1 (%h) (%t)\r\n\r\r\n\r\"' \
-DKLUDGELINEMODE -DDIAGNOSTICS \
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
-DENV_HACK -DOLD_ENVIRON" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strdup.o" \
LIB_SRC="getent.c strdup.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
ultrix4.3:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a ${AUTH_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-DUSE_TERMIO -DTERMCAP \
-DDEFAULT_IM='\"\r\nULTRIX V4.3 (%h) (%t)\r\n\r\r\n\r\"' \
-DKLUDGELINEMODE -DDIAGNOSTICS \
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
-DENV_HACK -DOLD_ENVIRON ${AUTH_DEF}" \
INCLUDES="-I.. ${AUTH_INC}" \
LIB_OBJ="getent.o strdup.o" \
LIB_SRC="getent.c strdup.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-g"
ultrix4.3.auth:
make -f ../Config.generic `basename $@ .auth` WHAT=${WHAT} \
AUTH_LIB="-lkrb -ldes" \
AUTH_LIBPATH="/usr/lib/libkrb.a /usr/lib/libdes.a" \
AUTH_DEF="-DAUTHENTICATION -DKRB4"
irix4.0.1:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermlib ../libtelnet/libtelnet.a" \
LIBPATH="/usr/lib/libc.a /usr/lib/libtermlib.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES=${ODEFS}"-Dvfork=fork -DUSE_TERMIO \
-DDEFAULT_IM='\"\r\n\r\nIRIX System V.3 (%h) (%t)\r\n\r\r\n\r\"' \
-DNO_LOGIN_F -DNO_LOGIN_P \
-DDIAGNOSTICS " \
INCLUDES="-I.." \
LIB_OBJ="getent.o setenv.o" \
LIB_SRC="getent.c setenv.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
hpux8.0:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES=${ODEFS}"-Dvfork=fork -DUSE_TERMIO \
-DDEFAULT_IM='\"\r\n\r\nHP-UX 8.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DNO_LOGIN_F -DNO_LOGIN_P -DNO_LOGIN_H \
-DDIAGNOSTICS -DLOGIN_ARGS" \
INCLUDES="-I.." \
LIB_OBJ="getent.o setenv.o" \
LIB_SRC="getent.c setenv.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
next1.0:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="../libtelnet/libtelnet.a -ltermcap -lsys_s ${AUTH_LIB}" \
LIBPATH="/lib/libc.a /lib/libsys_s.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a ${AUTH_LIBPATH}" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=${ODEFS}"-bsd -DTERMCAP -DKLUDGELINEMODE \
-DDEFAULT_IM='\"\r\nNeXT 1.0 (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON \
-DNO_STRING_H -Dgetenv=getenv_ ${AUTH_DEF}" \
INCLUDES="-I.. ${AUTH_INC}" \
LIB_OBJ="strdup.o setenv.o setsid.o strftime.o \
strcasecmp.o gettytab.o" \
LIB_SRC=s"trdup.c setenv.c setsid.c strftime.c \
strcasecmp.c gettytab.c" \
CC="${CC}" LCCFLAGS="-O" \
VPATH=../../getty \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc
#
# For the convex, make symbolic links to the tc[sg]getattr.c routines,
# because we are using posix stuff, but not the posix library...
# Pass the stuff to Makefile.generic by passing the object/source names
# in through LIB_OBJ and LIB_SRC
#
convex:
@echo $@ is untested... it may or may not work..."
ln -s ../../rel_usr/src/lib/libc/posix/tcsetattr.c tcsetattr.c
ln -s ../../rel_usr/src/lib/libc/posix/tcgetattr.c tcgetattr.c
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="../libtelnet/libtelnet.a" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-g ${OPTLEV} -Dconvex" \
DEFINES=${ODEFS}"-DUSE_TERMIO -DLINEMODE \
-DDEFAULT_IM='\"\r\nConvex (%h) (%t)\r\n\r\r\n\r\"' \
-DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON" \
INCLUDES="-I.." \
LIB_OBJ="getent.o setsid.o strftime.o \
tcsetattr.o tcgetattr.o" \
LIB_SRC="getent.c setsid.c strftime.c \
tcsetattr.c tcgetattr.c"
clean cleandir:
make -f Makefile.generic $@
|