--- Makefile +++ Makefile 1996/08/23 10:36:02 @@ -24,22 +24,22 @@ # path for configuration files and to install binaries / manpages SLIP = /etc/slip -SBIN = /usr/local/sbin -MAN = /usr/local/man +SBIN = /usr/sbin +MAN = /usr/man VERSION = 2.1.0 CC = gcc LINK = $(CC) -CFLAGS = -O2 -pipe -fomit-frame-pointer -m486 #-Wall -EFLAGS = -DESLIPLOGIN -DESLIP_AUTO +CFLAGS = -O6 -pipe -fomit-frame-pointer +EFLAGS = -DESLIPLOGIN -DESLIP_AUTO -DFUNMESSAGE DEFINES = -DSLIPPATH=\"$(SLIP)\" $(EFLAGS) LDFLAGS = -s # if you want to use the access library just uncomment the following lines -# and define -DLINE-ACCESS in EFLAGS above; +# and define -DLINE_ACCESS in EFLAGS above; # than type 'make all', 'make install_all' -EACCESS = -DLINE_ACCESS access.o +#EACCESS = -DLINE_ACCESS access.o EOBJ = access.o access_test express check_access watch_access #SRC = sliplogin.c statistic.c scanfile.c translate.c @@ -61,7 +61,7 @@ #You should really edit /etc/group to limit access to sliplogin #otherwise sliplogin has to be executable for the world. # -SLIPGROUP = slip +SLIPGROUP = uucp TARGETS = access sliplogin @@ -84,19 +84,12 @@ # move the old binary to another name install_slip: sliplogin - install -m4754 sliplogin $(SBIN) + test -d $(SLIP) || mkdir -p $(SLIP) + install -s -g $(SLIPGROUP) -m754 sliplogin $(SBIN) @if [ -f sliplogin.8 ]; then \ install -m644 sliplogin.8 $(MAN)/man8; fi - chgrp $(SLIPGROUP) $(SBIN)/sliplogin - touch $(SLIP)/.hushlogin - @if [ ! -f $(SLIP)/slip.login ]; then \ - echo install -m755 slip.login $(SLIP); \ - install -m755 slip.login $(SLIP); \ - ln -s slip.login $(SLIP)/slip.logout; \ - else \ - echo "WARNING: with version $(VERSION) comes a new slip.login," 1>&2;\ - echo " because the argument list has been changed." 1>&2;\ - fi + install slip.login $(SLIP) + ln -sf slip.login $(SLIP)/slip.logout @echo "Don't forget to edit slip.hosts, slip.route, slip.passwd" @echo "and copy these files to the proper place ($(SLIP))." --- Makefile.Linux +++ Makefile.Linux 1996/08/23 10:36:02 @@ -0,0 +1,23 @@ +# +# +# 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 +# +# + +doc=/usr/doc/packages/sliplogin + +compile: + make + +install: + make install + test -d $(doc) || mkdir -p $(doc) + install -m 644 [RT]* *.conf access.conf.later passwd.example \ + slip.* *.lsm $(doc)/ + --- sliplogin.8 +++ sliplogin.8 1996/08/23 10:37:53 @@ -48,7 +48,7 @@ .Pq Tn SLIP link to a remote host. To do this, the program searches the file -.Pa /etc/slip.hosts +.Pa /etc/slip/slip.hosts for an entry matching .Ar loginname (which defaults to the current login name if omitted). @@ -80,9 +80,9 @@ options which will be passed to slip.login. .Pp The usual initialization script is -.Pa /etc/slip.login +.Pa /etc/slip/slip.login but, if particular hosts need special initialization, the file -.Pa /etc/slip.login. Ns Ar loginname +.Pa /etc/slip/slip.login. Ns Ar loginname will be executed instead if it exists. If you use the default user '*' sliplogin looks for slip.login.*, but '*' is not used as a wildcard. If no slip.login.* exists, @@ -98,7 +98,7 @@ The process id of sliplogin. .It Em args The arguments from the -.Pa /etc/slip.hosts +.Pa /etc/slip/slip.hosts entry: .Ar loginname, local address, remote address, netmask, slip-mode .Ar and the options. @@ -109,17 +109,17 @@ automatically detached when the other end hangs up, the .Nm sliplogin process dies or the client didn't send a packet while the specified -timeout in /etc/slip.hosts. If the kernel slip +timeout in /etc/slip/slip.hosts. If the kernel slip module has been configured for it, all routes through that interface will also disappear at the same time. If there is other processing a site would like done on hangup, the file -.Pa /etc/slip.logout +.Pa /etc/slip/slip.logout or -.Pa /etc/slip.logout. Ns Ar loginname +.Pa /etc/slip/slip.logout. Ns Ar loginname is executed if it exists. It is given the same arguments as the login script. For default user '*' sliplogin looks for slip.logout.* and if it doesn't exist, it uses slip.logout. -.Ss Format of /etc/slip.hosts +.Ss Format of /etc/slip/slip.hosts Comments (lines starting with a `#') and blank lines are ignored. Other lines must start with a .Ar loginname @@ -158,12 +158,12 @@ terminates. .Em Opt-args are optional arguments used to configure the line. -.Ss Format of /etc/slip.route +.Ss Format of /etc/slip/slip.route To perform an easy way to route additional hosts and networks you may create a file -.Em /etc/slip.route +.Em /etc/slip/slip.route which contents are evaluated by -.Em /etc/slip.log{in|out} +.Em /etc/slip/slip.log{in|out} to add or remove the given routes. The format is as follows .Bd -literal -offset indent gateway network [netmask] @@ -172,7 +172,7 @@ Netmask defaults to .Em 0xffffffff if not given. -.Ss The Format of /etc/slip.tty +.Ss The Format of /etc/slip/slip.tty is simple. A line that starts with '#' is treated as a comment otherwise .Nm sliplogin expects in column 1 the name of the slipdevice and in column 2 the @@ -183,9 +183,9 @@ .Em slip , sliplogin will ask for the user and an additional password. If the given user and password matches an entry in -.Em /etc/slip.passwd +.Em /etc/slip/slip.passwd the line is configured for that user. If a user-name starts with - '+' in /etc/slip.passwd sliplogin will try to read NIS-map + '+' in /etc/slip/slip.passwd sliplogin will try to read NIS-map slip.passwd instead of slip.passwd. .Pp One advantage of this method is, that you don't need a /etc/passwd @@ -284,16 +284,16 @@ .Fn ioctl to set the line parameters failed. .Pp -.It Sy /etc/slip.hosts: Em reason +.It Sy /etc/slip/slip.hosts: Em reason The -.Pa /etc/slip.hosts +.Pa /etc/slip/slip.hosts file could not be opened. .Pp .It Sy access denied for Em user No entry for .Em user was found in -.Pa /etc/slip.hosts . +.Pa /etc/slip/slip.hosts . .El .Pp .Sy Notice Severity --- Makefile.orig Sun Jun 22 22:37:54 1997 +++ Makefile Sun Jun 22 22:38:02 1997 @@ -45,7 +45,7 @@ #SRC = sliplogin.c statistic.c scanfile.c translate.c SRC = sliplogin.c statistic.c scanfile.c translate.c esliplogin.c OBJ = $(SRC:.c=.o) -#LIBS = -lshadow # for Linux with shadow passwd +LIBS = -lshadow # for Linux with shadow passwd #LIBS = -lutil # for FreeBSD 1.x #LIBS = -lkvm # for FreeBSD 2.x