diff options
author | tron <tron@pkgsrc.org> | 1998-11-15 18:04:25 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1998-11-15 18:04:25 +0000 |
commit | 7f9d5fc7cc41c8bd7709f2c6cf8a6ea83d04f61f (patch) | |
tree | f6df80579d063558e8b4e00a92d6b5e6c585f56d /comms/mgetty+sendfax/patches | |
parent | 989799bb5a3f9099efb4e0d4bb67e9fae62f9a21 (diff) | |
download | pkgsrc-7f9d5fc7cc41c8bd7709f2c6cf8a6ea83d04f61f.tar.gz |
Initial import of FreeBSD "mgetty+sendfax" port:
Handle external logins, send and receive faxes.
Diffstat (limited to 'comms/mgetty+sendfax/patches')
-rw-r--r-- | comms/mgetty+sendfax/patches/patch-aa | 17 | ||||
-rw-r--r-- | comms/mgetty+sendfax/patches/patch-ab | 104 | ||||
-rw-r--r-- | comms/mgetty+sendfax/patches/patch-ac | 19 | ||||
-rw-r--r-- | comms/mgetty+sendfax/patches/patch-ad | 11 |
4 files changed, 151 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/patches/patch-aa b/comms/mgetty+sendfax/patches/patch-aa new file mode 100644 index 00000000000..089b30176af --- /dev/null +++ b/comms/mgetty+sendfax/patches/patch-aa @@ -0,0 +1,17 @@ +--- fax/faxspool.in.orig Fri Aug 8 21:43:55 1997 ++++ fax/faxspool.in Mon Dec 29 22:31:59 1997 +@@ -299,11 +299,11 @@ + # user name (for authentification) + ########## + +-if user=`logname 2>/dev/null` +-then : ++if [ `id -u` = 0 ]; then ++ user=root + else + id=`id` +- user=`expr "$id" : "[^( ]*(\([^)]*\)"` ++ user=`logname` + fi + test -z "$user" && user=$LOGNAME + test -z "$user" && user=$USER diff --git a/comms/mgetty+sendfax/patches/patch-ab b/comms/mgetty+sendfax/patches/patch-ab new file mode 100644 index 00000000000..eb725772d96 --- /dev/null +++ b/comms/mgetty+sendfax/patches/patch-ab @@ -0,0 +1,104 @@ +--- Makefile.orig Mon Jul 6 05:24:36 1998 ++++ Makefile Thu Jul 16 14:04:54 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+=-DAUTO_PPP + #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 +@@ -247,7 +247,7 @@ + # 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 ++#TKPERL=/usr/bin/tkperl + # + # + # An echo program that understands escapes like "\n" for newline or +@@ -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=uucp + 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 || \ diff --git a/comms/mgetty+sendfax/patches/patch-ac b/comms/mgetty+sendfax/patches/patch-ac new file mode 100644 index 00000000000..7890b81826b --- /dev/null +++ b/comms/mgetty+sendfax/patches/patch-ac @@ -0,0 +1,19 @@ +--- voice/Makefile.orig Mon Dec 29 23:06:36 1997 ++++ voice/Makefile Mon Dec 29 23:07:18 1997 +@@ -89,11 +89,11 @@ + done + $(INSTALL) -m 644 man/man1/zplay.1 $(MAN1DIR) + $(INSTALL) -m 644 man/man1/pvf.1 $(MAN1DIR) +- cd $(MAN1DIR); \ +- for i in $(PVFTOOLS); \ +- do \ +- $(RM) -f $$i.1; $(LN) -s pvf.1 $$i.1; \ +- done ++# cd $(MAN1DIR); \ ++# for i in $(PVFTOOLS); \ ++# do \ ++# $(RM) -f $$i.1; $(LN) -s pvf.1 $$i.1; \ ++# done + # [ -d $(VOICE_DIR) ] || mkdir $(VOICE_DIR) + # [ -d $(VOICE_DIR)/incoming ] || mkdir $(VOICE_DIR)/incoming + # chown 0 $(VOICE_DIR)/incoming diff --git a/comms/mgetty+sendfax/patches/patch-ad b/comms/mgetty+sendfax/patches/patch-ad new file mode 100644 index 00000000000..24ded4ca74e --- /dev/null +++ b/comms/mgetty+sendfax/patches/patch-ad @@ -0,0 +1,11 @@ +--- doc/Makefile.orig Fri Nov 28 04:33:26 1997 ++++ doc/Makefile Mon Dec 29 22:31:59 1997 +@@ -26,7 +26,7 @@ + + all: + +-doc-all: mgetty.asc mgetty.info mgetty.dvi mgetty.ps fmt-manpages $(MANSRC) ++doc-all: mgetty.asc mgetty.info fmt-manpages $(MANSRC) + + manpages: $(MANSRC) + |