update to 1.1.9, make port non-interactive.
This commit is contained in:
parent
6127c27c82
commit
393870ccb6
@ -1,46 +1,33 @@
|
||||
# $OpenBSD: Makefile,v 1.7 1998/12/07 20:47:27 marc Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 1998/12/18 02:55:46 form Exp $
|
||||
# $FreeBSD: Makefile,v 1.25 1998/07/16 06:44:37 vanilla Exp $
|
||||
#
|
||||
|
||||
DISTNAME= mgetty1.1.17-Aug07
|
||||
PKGNAME= mgetty-1.1.17
|
||||
DISTNAME= mgetty1.1.19-Nov24
|
||||
PKGNAME= mgetty-1.1.19
|
||||
CATEGORIES= comms
|
||||
|
||||
#BROKEN= "newer version available"
|
||||
MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/
|
||||
|
||||
MAINTAINER= form@OpenBSD.ORG
|
||||
|
||||
MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/
|
||||
WRKSRC= ${WRKDIR}/${PKGNAME}
|
||||
MAKE_ENV+= prefix=${PREFIX} spool=/var/spool \
|
||||
CONFDIR=/etc/mgetty+sendfax \
|
||||
PHONE_GROUP=wheel PHONE_PERMS=700
|
||||
|
||||
IS_INTERACTIVE= yes
|
||||
MAN1= coverpg.1 fax.1 faxq.1 faxrm.1 faxrunq.1 faxspool.1 g3cat.1 \
|
||||
g32pbm.1 pbm2g3.1 pvf.1 zplay.1
|
||||
MAN4= mgettydefs.4
|
||||
MAN5= faxqueue.5
|
||||
MAN8= callback.8 faxrunqd.8 mgetty.8 sendfax.8
|
||||
|
||||
# Needs site specific setup info
|
||||
#
|
||||
NO_PACKAGE= yes
|
||||
post-build:
|
||||
${SED} -e "s,@prefix@,${PREFIX},g" ${FILESDIR}/setup >${WRKDIR}/setup
|
||||
|
||||
WRKSRC= ${WRKDIR}/mgetty-1.1.17
|
||||
MAKE_FLAGS= prefix=${PREFIX} -f
|
||||
|
||||
MGETTY_ETC?= /etc
|
||||
|
||||
pre-build:
|
||||
.if defined(AUTO_PPP)
|
||||
CFLAGS+= "-DAUTO_PPP"
|
||||
.else
|
||||
@${ECHO} "***"
|
||||
@${ECHO} "*** You're building mgetty without PPP detection support."
|
||||
@${ECHO} "*** If you want to enable it, type \"make AUTO_PPP=yes\""
|
||||
@${ECHO} "***"
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
@(cd ${WRKSRC}/doc; ${MAKE} manpages)
|
||||
|
||||
.if !defined(BATCH)
|
||||
post-install:
|
||||
@(cd ${PKGDIR}; \
|
||||
export PKG_PREFIX=${PREFIX} MGETTY_ETC=${MGETTY_ETC}; \
|
||||
/usr/bin/perl INSTALL _ POST-INSTALL)
|
||||
.endif
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/setup ${PREFIX}/lib/mgetty+sendfax
|
||||
@${ECHO} "***"
|
||||
@${ECHO} "*** Finished installing mgetty+sendfax."
|
||||
@${ECHO} "*** To complete the install, run ${PREFIX}/lib/mgetty+sendfax/setup"
|
||||
@${ECHO} "*** script."
|
||||
@${ECHO} "***"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mgetty1.1.17-Aug07.tar.gz) = c096723f09ea5af7f7908663bce903ae
|
||||
MD5 (mgetty1.1.19-Nov24.tar.gz) = 67cc819004b210c7f48db6decb1ed5e5
|
||||
|
49
comms/mgetty+sendfax/pkg/INSTALL → comms/mgetty+sendfax/files/setup
Executable file → Normal file
49
comms/mgetty+sendfax/pkg/INSTALL → comms/mgetty+sendfax/files/setup
Executable file → Normal file
@ -1,24 +1,17 @@
|
||||
#!/usr/bin/perl
|
||||
$confdir = "/etc/mgetty+sendfax";
|
||||
$defport = "tty00";
|
||||
|
||||
exit 0 if $ARGV[1] ne "POST-INSTALL";
|
||||
print STDERR "\n\n*** mgetty+sendfax configuration program ***\n\n";
|
||||
|
||||
print STDERR "\n\n\n =========== mgetty+sendfax configuration ================\n\n";
|
||||
$prefix = $ENV{'PKG_PREFIX'} ? $ENV{'PKG_PREFIX'} : "/usr/local";
|
||||
$etcdir = $ENV{'MGETTY_ETC'} ? $ENV{'MGETTY_ETC'} : "/etc";
|
||||
$sep = "~";
|
||||
|
||||
&read_config ("$etcdir/mgetty+sendfax/mgetty.config");
|
||||
foreach (keys(%var)) {
|
||||
$var_m{$_} = $var{$_};
|
||||
delete $var{$_};
|
||||
}
|
||||
&read_config ("$etcdir/mgetty+sendfax/sendfax.config");
|
||||
foreach (keys(%var)) {
|
||||
$var_f{$_} = $var{$_};
|
||||
}
|
||||
&read_config ("$confdir/mgetty.config");
|
||||
foreach (keys(%var)) { $var_m{$_} = $var{$_}; delete $var{$_}; }
|
||||
&read_config ("$confdir/sendfax.config");
|
||||
foreach (keys(%var)) { $var_f{$_} = $var{$_}; }
|
||||
|
||||
$a = 1;
|
||||
$devices = $var{'ports'} ? $var{'ports'} : "cuaa1";
|
||||
$devices = $var{'ports'} ? $var{'ports'} : "${defport}";
|
||||
while ($a) {
|
||||
$devices = &ask ("list of devices", $devices);
|
||||
|
||||
@ -60,19 +53,19 @@ again:
|
||||
|
||||
close (TMP1);
|
||||
close (TMP2);
|
||||
if ( -e "$etcdir/mgetty+sendfax/mgetty.config") {
|
||||
system ("mv -f $etcdir/mgetty+sendfax/mgetty.config $etcdir/mgetty+sendfax/mgetty.config.old");
|
||||
system ("rm -f $etcdir/mgetty+sendfax/mgetty.config");
|
||||
if ( -e "$confdir/mgetty.config") {
|
||||
system ("mv -f $confdir/mgetty.config $confdir/mgetty.config.old");
|
||||
system ("rm -f $confdir/mgetty.config");
|
||||
}
|
||||
if ( -e "$etcdir/mgetty+sendfax/sendfax.config") {
|
||||
system ("mv -f $etcdir/mgetty+sendfax/sendfax.config $etcdir/mgetty+sendfax/sendfax.config.old");
|
||||
system ("rm -f $etcdir/mgetty+sendfax/sendfax.config");
|
||||
if ( -e "$confdir/sendfax.config") {
|
||||
system ("mv -f $confdir/sendfax.config $confdir/sendfax.config.old");
|
||||
system ("rm -f $confdir/sendfax.config");
|
||||
}
|
||||
system ("mv -f /tmp/mgetty.config.$$ $etcdir/mgetty+sendfax/mgetty.config");
|
||||
system ("mv -f /tmp/sendfax.config.$$ $etcdir/mgetty+sendfax/sendfax.config");
|
||||
system ("mv -f /tmp/mgetty.config.$$ $confdir/mgetty.config");
|
||||
system ("mv -f /tmp/sendfax.config.$$ $confdir/sendfax.config");
|
||||
|
||||
open (F, ">$etcdir/mgetty+sendfax/faxheader");
|
||||
print F "\n FAX FROM: **not configured** $def{fax-id} TO: \@T@ PAGE: \@P@ OF \@M@ \n";
|
||||
open (F, ">$confdir/faxheader");
|
||||
print F "\n FAX FROM: **not configured** $def{fax-id} TO: \@T\@ PAGE: \@P\@ OF \@M\@ \n";
|
||||
close (F);
|
||||
|
||||
|
||||
@ -87,7 +80,7 @@ foreach $tty (@ttys) {
|
||||
foreach $port (split) {
|
||||
if ($tty =~ /^\s*$port/) {
|
||||
print STDERR "replacing line $tty";
|
||||
$tty = "$port\t\"$prefix/sbin/mgetty\"\tunknown on insecure\n";
|
||||
$tty = "$port\t\"@prefix@/sbin/mgetty\"\tunknown\ton\n";
|
||||
$replaced{$port} = 1;
|
||||
}
|
||||
}
|
||||
@ -96,7 +89,7 @@ $_ = $devices;
|
||||
foreach $port (split) {
|
||||
if (!$replaced{$port}) {
|
||||
print STDERR "adding port $port\n";
|
||||
push (@ttys, "$port\t\"$prefix/sbin/mgetty\"\tunknown on insecure\n");
|
||||
push (@ttys, "$port\t\"@prefix@/sbin/mgetty\"\tunknown\ton\n");
|
||||
}
|
||||
}
|
||||
system ("mv -f /etc/ttys /etc/ttys.old");
|
||||
@ -331,7 +324,7 @@ sub inq_m {
|
||||
modem setup command.", $def{'answer-chat-timeout'});
|
||||
|
||||
$settings .= " autobauding";
|
||||
$def{'autobauding'} = "YES" if !$def{'autobauding'};
|
||||
$def{'autobauding'} = "NO" if !$def{'autobauding'};
|
||||
$def{'autobauding'} = &ask (" - `autobauding'
|
||||
Some modems switch their DTE line speed to the communication line
|
||||
speed after connecting, e.g., after sending `CONNECT 2400', the
|
@ -1,104 +1,301 @@
|
||||
--- Makefile.orig Fri Aug 7 10:42:08 1998
|
||||
+++ Makefile Thu Aug 27 21:06:00 1998
|
||||
@@ -4,8 +4,8 @@
|
||||
#
|
||||
# this is the C compiler to use (on SunOS, the standard "cc" does not
|
||||
# grok my code, so please use gcc there. On ISC 4.0, use "icc".).
|
||||
-CC=gcc
|
||||
-#CC=cc
|
||||
+#CC=gcc
|
||||
+CC=cc
|
||||
#
|
||||
#### C Compiler Flags ####
|
||||
#
|
||||
@@ -107,7 +107,7 @@
|
||||
# prompt first. Don't forget to activate the /AutoPPP/ line in login.config!
|
||||
#
|
||||
#CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL
|
||||
-CFLAGS=-O2 -Wall -pipe
|
||||
+#CFLAGS=-O2 -Wall -pipe
|
||||
#CFLAGS=-O -DSVR4
|
||||
#CFLAGS=-O -DSVR4 -DSVR42
|
||||
#CFLAGS=-O -DUSE_POLL
|
||||
@@ -149,7 +149,7 @@
|
||||
# For Linux, add "-lutil" if the linker complains about "updwtmp".
|
||||
#
|
||||
LDFLAGS=
|
||||
-LIBS=
|
||||
+LIBS=-lutil
|
||||
#LIBS=-lprot -lsocket # SCO Unix
|
||||
#LIBS=-lsocket
|
||||
#LIBS=-lbsd # OSF/1
|
||||
@@ -197,7 +197,7 @@
|
||||
#
|
||||
# where the configuration files (*.config, aliases, fax.allow/deny) go to
|
||||
#
|
||||
-CONFDIR=$(prefix)/etc/mgetty+sendfax
|
||||
+CONFDIR=/etc/mgetty+sendfax
|
||||
#CONFDIR=/etc/default/
|
||||
#
|
||||
#
|
||||
@@ -259,9 +259,9 @@
|
||||
# please use the "mg.echo" program provided in the compat/ subdirectory.
|
||||
# Set ECHO="mg.echo" and INSTALL_MECHO to mg.echo
|
||||
#
|
||||
-ECHO="echo"
|
||||
+ECHO="mg.echo"
|
||||
#
|
||||
-# INSTALL_MECHO=mg.echo
|
||||
+INSTALL_MECHO=mg.echo
|
||||
|
||||
#
|
||||
# for mgetty, that's it. If you want to use the voice
|
||||
@@ -269,7 +269,7 @@
|
||||
|
||||
# To maintain security, I recommend creating a new group for
|
||||
# users who are allowed to manipulate the recorded voice messages.
|
||||
-PHONE_GROUP=phone
|
||||
+PHONE_GROUP=dialer
|
||||
PHONE_PERMS=770
|
||||
|
||||
# Add -DNO_STRSTR to CFLAGS if you don't have strstr().
|
||||
@@ -301,7 +301,7 @@
|
||||
|
||||
all: bin-all doc-all
|
||||
|
||||
-bin-all: mgetty sendfax newslock subdirs call-back
|
||||
+bin-all: mgetty sendfax newslock subdirs call-back vgetty
|
||||
|
||||
# a few C files need extra compiler arguments
|
||||
|
||||
@@ -560,15 +560,15 @@
|
||||
cd bindist; gtar cvvfz mgetty$(MR).$(SR)-bin.tgz *
|
||||
|
||||
|
||||
-install: install.bin install.doc
|
||||
+install: install.bin install.doc install-vgetty
|
||||
|
||||
install.bin: mgetty sendfax newslock \
|
||||
- login.config mgetty.config sendfax.config
|
||||
+ login.config #mgetty.config sendfax.config
|
||||
#
|
||||
# binaries
|
||||
#
|
||||
-test -d $(BINDIR) || ( ./mkidirs $(BINDIR) ; chmod 755 $(BINDIR) )
|
||||
- $(INSTALL) -m 755 newslock $(BINDIR)
|
||||
+ $(INSTALL) -s -m 755 newslock $(BINDIR)
|
||||
|
||||
-test -d $(SBINDIR) || ( ./mkidirs $(SBINDIR) ; chmod 755 $(SBINDIR) )
|
||||
-mv -f $(SBINDIR)/mgetty $(SBINDIR)/mgetty.old
|
||||
@@ -584,10 +584,10 @@
|
||||
( ./mkidirs $(CONFDIR); chmod 755 $(CONFDIR))
|
||||
test -f $(CONFDIR)/login.config || \
|
||||
$(INSTALL) -o root -m 600 login.config $(CONFDIR)/
|
||||
- test -f $(CONFDIR)/mgetty.config || \
|
||||
- $(INSTALL) -o root -m 600 mgetty.config $(CONFDIR)/
|
||||
- test -f $(CONFDIR)/sendfax.config || \
|
||||
- $(INSTALL) -o root -m 644 sendfax.config $(CONFDIR)/
|
||||
+# test -f $(CONFDIR)/mgetty.config || \
|
||||
+# $(INSTALL) -o root -m 600 mgetty.config $(CONFDIR)/
|
||||
+# test -f $(CONFDIR)/sendfax.config || \
|
||||
+# $(INSTALL) -o root -m 644 sendfax.config $(CONFDIR)/
|
||||
test -f $(CONFDIR)/dialin.config || \
|
||||
$(INSTALL) -o root -m 600 dialin.config $(CONFDIR)/
|
||||
test -f $(CONFDIR)/faxrunq.config || \
|
||||
*** Makefile.orig Sun Nov 22 05:19:06 1998
|
||||
--- Makefile Thu Dec 17 06:29:46 1998
|
||||
***************
|
||||
*** 4,11 ****
|
||||
#
|
||||
# this is the C compiler to use (on SunOS, the standard "cc" does not
|
||||
# grok my code, so please use gcc there. On ISC 4.0, use "icc".).
|
||||
! CC=gcc
|
||||
! #CC=cc
|
||||
#
|
||||
#### C Compiler Flags ####
|
||||
#
|
||||
--- 4,11 ----
|
||||
#
|
||||
# this is the C compiler to use (on SunOS, the standard "cc" does not
|
||||
# grok my code, so please use gcc there. On ISC 4.0, use "icc".).
|
||||
! #CC=gcc
|
||||
! CC=cc
|
||||
#
|
||||
#### C Compiler Flags ####
|
||||
#
|
||||
***************
|
||||
*** 107,113 ****
|
||||
# prompt first. Don't forget to activate the /AutoPPP/ line in login.config!
|
||||
#
|
||||
#CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL
|
||||
! CFLAGS=-O2 -Wall -pipe
|
||||
#CFLAGS=-O -DSVR4
|
||||
#CFLAGS=-O -DSVR4 -DSVR42
|
||||
#CFLAGS=-O -DUSE_POLL
|
||||
--- 107,113 ----
|
||||
# prompt first. Don't forget to activate the /AutoPPP/ line in login.config!
|
||||
#
|
||||
#CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL
|
||||
! CFLAGS+=-DAUTO_PPP
|
||||
#CFLAGS=-O -DSVR4
|
||||
#CFLAGS=-O -DSVR4 -DSVR42
|
||||
#CFLAGS=-O -DUSE_POLL
|
||||
***************
|
||||
*** 144,155 ****
|
||||
#
|
||||
# On SCO Xenix, add -ldir -lx
|
||||
#
|
||||
! # For FreeBSD, add "-lutil" if the linker complains about
|
||||
# "utmp.o: unresolved symbod _login"
|
||||
# For Linux, add "-lutil" if the linker complains about "updwtmp".
|
||||
#
|
||||
LDFLAGS=
|
||||
! LIBS=
|
||||
#LIBS=-lprot -lsocket # SCO Unix
|
||||
#LIBS=-lsocket
|
||||
#LIBS=-lbsd # OSF/1
|
||||
--- 144,155 ----
|
||||
#
|
||||
# On SCO Xenix, add -ldir -lx
|
||||
#
|
||||
! # For FreeBSD and OpenBSD, add "-lutil" if the linker complains about
|
||||
# "utmp.o: unresolved symbod _login"
|
||||
# For Linux, add "-lutil" if the linker complains about "updwtmp".
|
||||
#
|
||||
LDFLAGS=
|
||||
! LIBS=-lutil
|
||||
#LIBS=-lprot -lsocket # SCO Unix
|
||||
#LIBS=-lsocket
|
||||
#LIBS=-lbsd # OSF/1
|
||||
***************
|
||||
*** 169,175 ****
|
||||
#
|
||||
# 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 -o root -g wheel # NeXT/BSD
|
||||
#INSTALL=/usr/ucb/install -c -o bin -g bin # AIX, Solaris 2.x
|
||||
#INSTALL=installbsd -c -o bin -g bin # OSF/1, AIX 4.1, 4.2
|
||||
--- 169,176 ----
|
||||
#
|
||||
# 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 root -g wheel
|
||||
! INSTALL_PROGRAM=install -s -c -o root -g wheel
|
||||
#INSTALL=install -c -o root -g wheel # NeXT/BSD
|
||||
#INSTALL=/usr/ucb/install -c -o bin -g bin # AIX, Solaris 2.x
|
||||
#INSTALL=installbsd -c -o bin -g bin # OSF/1, AIX 4.1, 4.2
|
||||
***************
|
||||
*** 177,187 ****
|
||||
#
|
||||
# prefix, where most (all?) of the stuff lives, usually /usr/local or /usr
|
||||
#
|
||||
! prefix=/usr/local
|
||||
#
|
||||
# prefix for all the spool directories (usually /usr/spool or /var/spool)
|
||||
#
|
||||
! spool=/var/spool
|
||||
#
|
||||
# where the mgetty + sendfax binaries live (used for "make install")
|
||||
#
|
||||
--- 178,188 ----
|
||||
#
|
||||
# prefix, where most (all?) of the stuff lives, usually /usr/local or /usr
|
||||
#
|
||||
! prefix?=/usr/local
|
||||
#
|
||||
# prefix for all the spool directories (usually /usr/spool or /var/spool)
|
||||
#
|
||||
! spool?=/var/spool
|
||||
#
|
||||
# where the mgetty + sendfax binaries live (used for "make install")
|
||||
#
|
||||
***************
|
||||
*** 197,203 ****
|
||||
#
|
||||
# where the configuration files (*.config, aliases, fax.allow/deny) go to
|
||||
#
|
||||
! CONFDIR=$(prefix)/etc/mgetty+sendfax
|
||||
#CONFDIR=/etc/default/
|
||||
#
|
||||
#
|
||||
--- 198,204 ----
|
||||
#
|
||||
# where the configuration files (*.config, aliases, fax.allow/deny) go to
|
||||
#
|
||||
! CONFDIR?=$(prefix)/etc/mgetty+sendfax
|
||||
#CONFDIR=/etc/default/
|
||||
#
|
||||
#
|
||||
***************
|
||||
*** 247,253 ****
|
||||
# If you have Perl with TK extentions, define it here. This may be the
|
||||
# same as PERL=... above, or different, if you have TkPerl statically
|
||||
# linked.
|
||||
! TKPERL=/usr/bin/tkperl
|
||||
#
|
||||
#
|
||||
# An echo program that understands escapes like "\n" for newline or
|
||||
--- 248,254 ----
|
||||
# If you have Perl with TK extentions, define it here. This may be the
|
||||
# same as PERL=... above, or different, if you have TkPerl statically
|
||||
# linked.
|
||||
! #TKPERL=/usr/bin/tkperl
|
||||
#
|
||||
#
|
||||
# An echo program that understands escapes like "\n" for newline or
|
||||
***************
|
||||
*** 259,267 ****
|
||||
# please use the "mg.echo" program provided in the compat/ subdirectory.
|
||||
# Set ECHO="mg.echo" and INSTALL_MECHO to mg.echo
|
||||
#
|
||||
! ECHO="echo"
|
||||
#
|
||||
! # INSTALL_MECHO=mg.echo
|
||||
|
||||
#
|
||||
# for mgetty, that's it. If you want to use the voice
|
||||
--- 260,268 ----
|
||||
# please use the "mg.echo" program provided in the compat/ subdirectory.
|
||||
# Set ECHO="mg.echo" and INSTALL_MECHO to mg.echo
|
||||
#
|
||||
! ECHO="mg.echo"
|
||||
#
|
||||
! INSTALL_MECHO=mg.echo
|
||||
|
||||
#
|
||||
# for mgetty, that's it. If you want to use the voice
|
||||
***************
|
||||
*** 269,276 ****
|
||||
|
||||
# To maintain security, I recommend creating a new group for
|
||||
# users who are allowed to manipulate the recorded voice messages.
|
||||
! PHONE_GROUP=phone
|
||||
! PHONE_PERMS=770
|
||||
|
||||
# Add -DNO_STRSTR to CFLAGS if you don't have strstr().
|
||||
|
||||
--- 270,277 ----
|
||||
|
||||
# To maintain security, I recommend creating a new group for
|
||||
# users who are allowed to manipulate the recorded voice messages.
|
||||
! PHONE_GROUP?=wheel
|
||||
! PHONE_PERMS?=700
|
||||
|
||||
# Add -DNO_STRSTR to CFLAGS if you don't have strstr().
|
||||
|
||||
***************
|
||||
*** 301,307 ****
|
||||
|
||||
all: bin-all doc-all
|
||||
|
||||
! bin-all: mgetty sendfax newslock subdirs call-back
|
||||
|
||||
# a few C files need extra compiler arguments
|
||||
|
||||
--- 302,308 ----
|
||||
|
||||
all: bin-all doc-all
|
||||
|
||||
! bin-all: mgetty sendfax newslock subdirs call-back vgetty
|
||||
|
||||
# a few C files need extra compiler arguments
|
||||
|
||||
***************
|
||||
*** 560,580 ****
|
||||
cd bindist; gtar cvvfz mgetty$(MR).$(SR)-bin.tgz *
|
||||
|
||||
|
||||
! install: install.bin install.doc
|
||||
|
||||
install.bin: mgetty sendfax newslock \
|
||||
! login.config mgetty.config sendfax.config
|
||||
#
|
||||
# binaries
|
||||
#
|
||||
-test -d $(BINDIR) || ( ./mkidirs $(BINDIR) ; chmod 755 $(BINDIR) )
|
||||
! $(INSTALL) -m 755 newslock $(BINDIR)
|
||||
|
||||
-test -d $(SBINDIR) || ( ./mkidirs $(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)
|
||||
#
|
||||
# data files + directories
|
||||
#
|
||||
--- 561,581 ----
|
||||
cd bindist; gtar cvvfz mgetty$(MR).$(SR)-bin.tgz *
|
||||
|
||||
|
||||
! install: install.bin install.doc install-vgetty
|
||||
|
||||
install.bin: mgetty sendfax newslock \
|
||||
! login.config #mgetty.config sendfax.config
|
||||
#
|
||||
# binaries
|
||||
#
|
||||
-test -d $(BINDIR) || ( ./mkidirs $(BINDIR) ; chmod 755 $(BINDIR) )
|
||||
! $(INSTALL_PROGRAM) -m 755 newslock $(BINDIR)
|
||||
|
||||
-test -d $(SBINDIR) || ( ./mkidirs $(SBINDIR) ; chmod 755 $(SBINDIR) )
|
||||
-mv -f $(SBINDIR)/mgetty $(SBINDIR)/mgetty.old
|
||||
-mv -f $(SBINDIR)/sendfax $(SBINDIR)/sendfax.old
|
||||
! $(INSTALL_PROGRAM) -m 700 mgetty $(SBINDIR)
|
||||
! $(INSTALL_PROGRAM) -m 700 sendfax $(SBINDIR)
|
||||
#
|
||||
# data files + directories
|
||||
#
|
||||
***************
|
||||
*** 584,593 ****
|
||||
( ./mkidirs $(CONFDIR); chmod 755 $(CONFDIR))
|
||||
test -f $(CONFDIR)/login.config || \
|
||||
$(INSTALL) -o root -m 600 login.config $(CONFDIR)/
|
||||
! test -f $(CONFDIR)/mgetty.config || \
|
||||
! $(INSTALL) -o root -m 600 mgetty.config $(CONFDIR)/
|
||||
! test -f $(CONFDIR)/sendfax.config || \
|
||||
! $(INSTALL) -o root -m 644 sendfax.config $(CONFDIR)/
|
||||
test -f $(CONFDIR)/dialin.config || \
|
||||
$(INSTALL) -o root -m 600 dialin.config $(CONFDIR)/
|
||||
test -f $(CONFDIR)/faxrunq.config || \
|
||||
--- 585,594 ----
|
||||
( ./mkidirs $(CONFDIR); chmod 755 $(CONFDIR))
|
||||
test -f $(CONFDIR)/login.config || \
|
||||
$(INSTALL) -o root -m 600 login.config $(CONFDIR)/
|
||||
! # test -f $(CONFDIR)/mgetty.config || \
|
||||
! # $(INSTALL) -o root -m 600 mgetty.config $(CONFDIR)/
|
||||
! # test -f $(CONFDIR)/sendfax.config || \
|
||||
! # $(INSTALL) -o root -m 644 sendfax.config $(CONFDIR)/
|
||||
test -f $(CONFDIR)/dialin.config || \
|
||||
$(INSTALL) -o root -m 600 dialin.config $(CONFDIR)/
|
||||
test -f $(CONFDIR)/faxrunq.config || \
|
||||
***************
|
||||
*** 618,624 ****
|
||||
#
|
||||
# g3 tool programs
|
||||
#
|
||||
! cd g3 ; $(MAKE) install INSTALL="$(INSTALL)" \
|
||||
BINDIR=$(BINDIR) \
|
||||
LIBDIR=$(LIBDIR) CONFDIR=$(CONFDIR)
|
||||
#
|
||||
--- 619,625 ----
|
||||
#
|
||||
# g3 tool programs
|
||||
#
|
||||
! cd g3 ; $(MAKE) install INSTALL="$(INSTALL_PROGRAM)" \
|
||||
BINDIR=$(BINDIR) \
|
||||
LIBDIR=$(LIBDIR) CONFDIR=$(CONFDIR)
|
||||
#
|
||||
***************
|
||||
*** 633,639 ****
|
||||
if [ ! -z "$(INSTALL_MECHO)" ] ; then \
|
||||
cd compat ; \
|
||||
$(CC) $(CFLAGS) -o mg.echo mg.echo.c && \
|
||||
! $(INSTALL) -s -m 755 mg.echo $(BINDIR) ; \
|
||||
fi
|
||||
|
||||
#
|
||||
--- 634,640 ----
|
||||
if [ ! -z "$(INSTALL_MECHO)" ] ; then \
|
||||
cd compat ; \
|
||||
$(CC) $(CFLAGS) -o mg.echo mg.echo.c && \
|
||||
! $(INSTALL_PROGRAM) -m 755 mg.echo $(BINDIR) ; \
|
||||
fi
|
||||
|
||||
#
|
||||
|
@ -1,6 +1,26 @@
|
||||
--- voice/Makefile.orig Sun Apr 19 10:18:37 1998
|
||||
+++ voice/Makefile Thu Aug 27 21:06:50 1998
|
||||
@@ -90,11 +90,11 @@
|
||||
--- voice/Makefile.orig Thu Sep 10 05:06:12 1998
|
||||
+++ voice/Makefile Tue Dec 1 01:39:38 1998
|
||||
@@ -13,6 +13,8 @@
|
||||
LN=ln
|
||||
MV=mv
|
||||
RM=rm
|
||||
+INSTALL=install -c -o root -g wheel
|
||||
+INSTALL_PROGRAM=install -s -c -o root -g wheel
|
||||
|
||||
MGETTYLIB=../../getdisk.o ../../goodies.o ../../io.o \
|
||||
../../locks.o ../../tio.o ../../modem.o \
|
||||
@@ -82,19 +84,19 @@
|
||||
@echo " Installing the voice extensions"
|
||||
@echo " -------------------------------"
|
||||
@echo ""
|
||||
- $(INSTALL) -m 700 vgetty/vgetty $(SBINDIR)
|
||||
- $(INSTALL) -m 755 vm/vm $(BINDIR)
|
||||
+ $(INSTALL_PROGRAM) -m 700 vgetty/vgetty $(SBINDIR)
|
||||
+ $(INSTALL_PROGRAM) -m 755 vm/vm $(BINDIR)
|
||||
for i in $(PVFTOOLS); \
|
||||
do \
|
||||
- $(INSTALL) -m 755 pvftools/$$i $(BINDIR); \
|
||||
+ $(INSTALL_PROGRAM) -m 755 pvftools/$$i $(BINDIR); \
|
||||
done
|
||||
$(INSTALL) -m 644 man/man1/zplay.1 $(MAN1DIR)
|
||||
$(INSTALL) -m 644 man/man1/pvf.1 $(MAN1DIR)
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- doc/Makefile.orig Thu Nov 27 12:33:26 1997
|
||||
+++ doc/Makefile Thu Aug 27 21:07:31 1998
|
||||
--- doc/Makefile.orig Fri Nov 28 04:33:26 1997
|
||||
+++ doc/Makefile Tue Dec 1 00:49:56 1998
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
all:
|
||||
@ -9,3 +9,12 @@
|
||||
|
||||
manpages: $(MANSRC)
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
-texi2html -verbose mgetty.texi
|
||||
|
||||
mgetty.info: mgetty.texi
|
||||
- -makeinfo mgetty.texi
|
||||
+ -makeinfo --no-split mgetty.texi
|
||||
|
||||
mgetty.ps: mgetty.dvi
|
||||
-dvips -o mgetty.ps mgetty.dvi
|
||||
|
@ -1,11 +1,24 @@
|
||||
--- logfile.c.orig Tue Dec 16 03:39:51 1997
|
||||
+++ logfile.c Thu Aug 27 21:08:49 1998
|
||||
@@ -53,7 +53,7 @@
|
||||
of those systems that _do_ declare them, it won't hurt */
|
||||
|
||||
extern int sys_nerr;
|
||||
-#if !defined(__NetBSD__) && !defined( __FreeBSD__ ) && !defined(__GLIBC__)
|
||||
+#if !defined(__NetBSD__) && !defined( __FreeBSD__ ) && !defined(__GLIBC__) && !defined(__OpenBSD__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
*** logfile.c.orig Thu Dec 17 06:12:16 1998
|
||||
--- logfile.c Thu Dec 17 06:13:05 1998
|
||||
***************
|
||||
*** 52,59 ****
|
||||
/* Most systems have these variables but do not declare them. On many
|
||||
of those systems that _do_ declare them, it won't hurt */
|
||||
|
||||
extern int sys_nerr;
|
||||
! #if !defined(__NetBSD__) && !defined( __FreeBSD__ ) && !defined(__GLIBC__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
--- 52,62 ----
|
||||
/* Most systems have these variables but do not declare them. On many
|
||||
of those systems that _do_ declare them, it won't hurt */
|
||||
|
||||
+ #ifndef __OpenBSD__
|
||||
extern int sys_nerr;
|
||||
! #endif
|
||||
!
|
||||
! #if !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined( __FreeBSD__ ) && !defined(__GLIBC__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
|
@ -1,71 +1,72 @@
|
||||
bin/autopvf
|
||||
bin/basictopvf
|
||||
bin/faxspool
|
||||
bin/faxq
|
||||
bin/faxrm
|
||||
bin/faxrunq
|
||||
bin/newslock
|
||||
bin/pbm2g3
|
||||
bin/g3cat
|
||||
bin/g32pbm
|
||||
bin/g3topbm
|
||||
bin/newslock
|
||||
bin/lintopvf
|
||||
bin/faxspool
|
||||
bin/faxrunq
|
||||
bin/faxq
|
||||
bin/faxrm
|
||||
bin/mg.echo
|
||||
bin/pbm2g3
|
||||
bin/vm
|
||||
bin/pvfamp
|
||||
bin/pvfcut
|
||||
bin/pvfecho
|
||||
bin/pvffft
|
||||
bin/pvffile
|
||||
bin/pvffilter
|
||||
bin/pvffft
|
||||
bin/pvfmix
|
||||
bin/pvfnoise
|
||||
bin/pvfreverse
|
||||
bin/pvfsine
|
||||
bin/pvfspeed
|
||||
bin/pvftoau
|
||||
bin/pvftobasic
|
||||
bin/pvftolin
|
||||
bin/pvftormd
|
||||
bin/pvftovoc
|
||||
bin/pvftowav
|
||||
bin/rmdfile
|
||||
bin/rmdtopvf
|
||||
bin/vm
|
||||
bin/rmdfile
|
||||
bin/pvftovoc
|
||||
bin/voctopvf
|
||||
bin/pvftolin
|
||||
bin/lintopvf
|
||||
bin/pvftobasic
|
||||
bin/basictopvf
|
||||
bin/pvftoau
|
||||
bin/autopvf
|
||||
bin/pvftowav
|
||||
bin/wavtopvf
|
||||
@unexec install-info --delete %D/info/mgetty.info %D/info/dir
|
||||
info/mgetty.info
|
||||
info/mgetty.info-1
|
||||
info/mgetty.info-2
|
||||
info/mgetty.info-3
|
||||
info/mgetty.info-4
|
||||
@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
@exec install-info %D/info/mgetty.info %D/info/dir
|
||||
lib/mgetty+sendfax/cour25.pbm
|
||||
lib/mgetty+sendfax/cour25n.pbm
|
||||
man/man1/coverpg.1
|
||||
lib/mgetty+sendfax/setup
|
||||
man/man1/g32pbm.1
|
||||
man/man1/g3cat.1
|
||||
man/man1/pbm2g3.1
|
||||
man/man1/fax.1
|
||||
man/man1/faxspool.1
|
||||
man/man1/faxrunq.1
|
||||
man/man1/faxq.1
|
||||
man/man1/faxrm.1
|
||||
man/man1/faxrunq.1
|
||||
man/man1/faxspool.1
|
||||
man/man1/g3cat.1
|
||||
man/man1/g32pbm.1
|
||||
man/man1/pbm2g3.1
|
||||
man/man1/pvf.1
|
||||
man/man1/coverpg.1
|
||||
man/man1/zplay.1
|
||||
man/man1/pvf.1
|
||||
man/man4/mgettydefs.4
|
||||
man/man5/faxqueue.5
|
||||
man/man8/sendfax.8
|
||||
man/man8/mgetty.8
|
||||
man/man8/callback.8
|
||||
man/man8/faxrunqd.8
|
||||
man/man8/mgetty.8
|
||||
man/man8/sendfax.8
|
||||
sbin/faxrunqd
|
||||
sbin/mgetty
|
||||
sbin/sendfax
|
||||
sbin/faxrunqd
|
||||
sbin/vgetty
|
||||
@dirrm lib/mgetty+sendfax
|
||||
@exec echo "***"
|
||||
@exec echo "*** Finished installing mgetty+sendfax."
|
||||
@exec echo "*** To complete the install, run %D/lib/mgetty+sendfax/setup"
|
||||
@exec echo "*** script."
|
||||
@exec echo "***"
|
||||
@unexec echo "***"
|
||||
@unexec echo "*** Mgetty binaries, libraries and documentation files"
|
||||
@unexec echo "*** have been removed. You should remove /etc/mgetty+sendfax"
|
||||
@unexec echo "*** directory manually to complete uninstall mgetty."
|
||||
@unexec echo "*** Don't forget to update /etc/ttys."
|
||||
@unexec echo "*** Finished uninstalling mgetty+sendfax."
|
||||
@unexec echo "*** Please remove /etc/mgetty+sendfax directory if you"
|
||||
@unexec echo "*** don't want to keep mgetty configuration files."
|
||||
@unexec echo "*** Don't forget to edit /etc/ttys files."
|
||||
@unexec echo "***"
|
||||
|
Loading…
Reference in New Issue
Block a user