--- Makefile +++ Makefile 1996/06/07 03:34:43 @@ -107,7 +107,7 @@ # prompt first. # #CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL -CFLAGS=-O2 -Wall -pipe +CFLAGS=-O6 -fomit-frame-pointer -Wall -pipe #CFLAGS=-O -DSVR4 #CFLAGS=-O -DSVR4 -DSVR42 #CFLAGS=-O -DUSE_POLL @@ -163,7 +163,7 @@ # # if your systems doesn't have one, use the shell script that I provide # in "inst.sh" (taken from X11R5). Needed on IRIX5.2 -INSTALL=install -c -o bin -g bin +INSTALL=install -c #INSTALL=install -c -o root -g wheel # NeXT/BSD #INSTALL=installbsd -c -o bin -g bin # OSF/1 #INSTALL=/usr/ucb/install -c -o bin -g bin # AIX, Solaris 2.x @@ -171,7 +171,7 @@ # # prefix, where most (all?) of the stuff lives, usually /usr/local or /usr # -prefix=/usr/local +prefix=/usr # # prefix for all the spool directories (usually /usr/spool or /var/spool) # @@ -251,7 +251,7 @@ # please use the "mg.echo" program provided in the compat/ subdirectory. # Set ECHO="mg.echo" and INSTALL_MECHO to mg.echo # -ECHO="echo" +ECHO="echo -e" # # INSTALL_MECHO=mg.echo @@ -535,8 +535,8 @@ -test -d $(SBINDIR) || ( mkdir $(SBINDIR) ; chmod 755 $(SBINDIR) ) -mv -f $(SBINDIR)/mgetty $(SBINDIR)/mgetty.old -mv -f $(SBINDIR)/sendfax $(SBINDIR)/sendfax.old - $(INSTALL) -s -m 700 mgetty $(SBINDIR) - $(INSTALL) -s -m 700 sendfax $(SBINDIR) + $(INSTALL) -s -m 755 mgetty $(SBINDIR) + $(INSTALL) -s -m 755 sendfax $(SBINDIR) # # data files + directories # --- Makefile.Linux +++ Makefile.Linux 1996/06/07 03:34:43 @@ -0,0 +1,21 @@ +# +# +# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux +# +# Copyright (C) 1996 S.u.S.E. GmbH Fuerth, Germany. +# +# Please send bug-fixes or comments to feedback@suse.de. +# +# Author: Florian La Roche +# +# + +policy.h: policy.h-dist + ln -s policy.h-dist policy.h + +compile: policy.h + make + +install: + make install + --- callback/Makefile +++ callback/Makefile 1996/06/07 03:34:43 @@ -36,7 +36,7 @@ # install programs # install: all - $(INSTALL) -s -m 700 -o root callback $(SBINDIR) + $(INSTALL) -s -m 755 -o root callback $(SBINDIR) $(INSTALL) -s -m 4711 -o root ct $(BINDIR) # source modules --- conf_mg.c +++ conf_mg.c 1996/06/07 03:34:43 @@ -137,7 +137,6 @@ int mgetty_parse_args _P2( (argc,argv), int argc, char ** argv ) { int opt; -extern boolean verbose; /* sanity check: * make sure that structs-in-struct can be handled exactly as if --- logname.c +++ logname.c 1996/06/07 03:34:43 @@ -238,8 +238,6 @@ TIO tio_save; char * final_prompt; - static int ppp_level = 0; - static boolean was_all_uc = FALSE; /* read character by character! */ --- policy.h-dist +++ policy.h-dist 1996/06/07 03:34:43 @@ -123,7 +123,7 @@ * e.g. "/usr/spool/log/mgetty.log.%s" * a "%s" will be replaced by the device name, e.g. "tty2a" */ -#define LOG_PATH "/tmp/log_mg.%s" +#define LOG_PATH "/var/log/mgetty.%s" /* Default log error level threshold. Possible error levels are * L_FATAL, L_ERROR, L_WARN, L_AUDIT, L_MESG, L_NOISE, L_JUNK (see mgetty.h) @@ -148,7 +148,7 @@ * mgetty will use the facility "LOG_AUTH", and the priorities * LOG_NOTICE, LOG_ERR and LOG_ALERT, respectively. */ -/* #define SYSLOG */ +#define SYSLOG /* Syslog facility * @@ -206,7 +206,7 @@ * If you define this, mgetty will create a file with the given name and * put its process ID in it. A "%s" will be replaced by the device id. */ -#define MGETTY_PID_FILE "/etc/mg-pid.%s" +#define MGETTY_PID_FILE "/var/run/mg-pid.%s" /* Path for the lock files. A %s will be replaced with the device name, * e.g. tty2a -> /usr/spool/uucp/LCK..tty2a @@ -232,7 +232,7 @@ /* if your system isn't listed above, change that line here */ #ifndef LOCK -#define LOCK "/usr/spool/uucp/LCK..%s" +#define LOCK "/var/lock/LCK..%s" #endif /* Set this to "1" if your system uses binary lock files (i.e., the pid @@ -346,7 +346,7 @@ /* incoming faxes will be chown()ed to this uid and gid. * if FAX_IN_GROUP is undefined, the group of ...OWNER is used. */ -#define FAX_IN_OWNER "uucp" +#define FAX_IN_OWNER "root" /* #define FAX_IN_GROUP "root" */ /* incoming faxes will be chmod()ed to this mode @@ -443,7 +443,7 @@ /* name of the logfile for outgoing faxes (e.g. /var/log/sendfax.log) */ -#define FAX_LOG "/usr/spool/fax/Faxlog" +#define FAX_LOG "/var/spool/fax/Faxlog" /* local station ID (your fax number) * 20 character string, most faxmodem allow all ascii characters 32..127, @@ -512,7 +512,7 @@ * If you don't adapt this for your needs, sendfax won't run (you can * set it from the sendfax.config file, though)! */ -#define FAX_MODEM_TTYS "tty4c:tty4d" +#define FAX_MODEM_TTYS "ttyS1:ttyS2" /* some modems, notably some GVC modems, all USR models, and the german * telecom approved ZyXEL EG+ have the annoying behaviour of lowering @@ -561,14 +561,14 @@ #endif #ifndef MAILER -# define MAILER "/usr/lib/sendmail" +# define MAILER "/usr/sbin/sendmail" # define NEED_MAIL_HEADERS #endif /* where to send notify mail about incoming faxes to * (remember to create an mail alias if no such user exists!) */ -#define MAIL_TO "faxadmin" +#define MAIL_TO "root" /* after a fax has arrived, mgetty can call a program for further * processing of this fax.