1 --- mgetty-1.1.30.orig/Makefile 2002-12-16 08:08:23.000000000 -0500
2 +++ mgetty-1.1.30/Makefile 2003-04-28 00:25:24.000000000 -0400
4 # prompt first. Don't forget to activate the /AutoPPP/ line in login.config!
6 #CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL
7 -CFLAGS=-O2 -Wall -pipe
8 +CFLAGS=-O2 -Wall -pipe -DAUTO_PPP -DFIDO
10 #CFLAGS=-O -DSVR4 -DSVR42
14 # if your systems doesn't have one, use the shell script that I provide
15 # in "inst.sh" (taken from X11R5). Needed on IRIX5.2
16 -INSTALL=install -c -o bin -g bin
18 #INSTALL=install -c -o root -g wheel # NeXT/BSD
19 #INSTALL=/usr/ucb/install -c -o bin -g bin # AIX, Solaris 2.x
20 #INSTALL=installbsd -c -o bin -g bin # OSF/1, AIX 4.1, 4.2
23 # prefix, where most (all?) of the stuff lives, usually /usr/local or /usr
26 +prefix=$(DESTDIR)/usr
28 # prefix for all the spool directories (usually /usr/spool or /var/spool)
31 +spool=$(DESTDIR)/var/spool
33 # where the mgetty + sendfax binaries live (used for "make install")
37 # where the font+coverpage files go
39 -LIBDIR=$(prefix)/lib/mgetty+sendfax
40 +LIBDIR=$(prefix)/lib/mgetty-fax
42 # where the configuration files (*.config, aliases, fax.allow/deny) go to
44 -CONFDIR=$(prefix)/etc/mgetty+sendfax
45 +CONFDIR=$(DESTDIR)/etc/mgetty
46 #CONFDIR=/etc/default/
50 # (it's possible to run faxrunq(d) as root, but the FAX_OUT_USER
51 # MUST NOT BE root or any other privileged account).
57 # Where section 1 manual pages should be placed
58 -MAN1DIR=$(prefix)/man/man1
59 +MAN1DIR=$(prefix)/share/man/man1
61 # Where section 4 manual pages (mgettydefs.4) should be placed
62 -MAN4DIR=$(prefix)/man/man4
63 +MAN4DIR=$(prefix)/share/man/man4
65 # Section 5 man pages (faxqueue.5)
66 -MAN5DIR=$(prefix)/man/man5
67 +MAN5DIR=$(prefix)/share/man/man5
69 # Section 8 man pages (sendfax.8)
70 -MAN8DIR=$(prefix)/man/man8
71 +MAN8DIR=$(prefix)/share/man/man8
73 # Where the GNU Info-Files are located
75 -INFODIR=$(prefix)/info
76 +INFODIR=$(prefix)/share/info
79 # A shell that understands bourne-shell syntax
80 # Usually this will be /bin/sh or /usr/bin/sh, but bash or ksh are fine.
81 # (on some ultrix systems, you may need /bin/sh5 here)
84 +# On Debian GNU/Linux, bash is a required package so we can use it to solve
88 # If you have problems with the awk-programs in the fax/ shell scripts,
89 # try using "nawk" or "gawk" (or whatever works...) here
91 # please use the "mg.echo" program provided in the compat/ subdirectory.
92 # Set ECHO="mg.echo" and INSTALL_MECHO to mg.echo
97 # INSTALL_MECHO=mg.echo
101 # To maintain security, I recommend creating a new group for
102 # users who are allowed to manipulate the recorded voice messages.
107 # Add -DNO_STRSTR to CFLAGS if you don't have strstr().
109 -test -d $(SBINDIR) || ( ./mkidirs $(SBINDIR) ; chmod 755 $(SBINDIR) )
110 -mv -f $(SBINDIR)/mgetty $(SBINDIR)/mgetty.old
111 -mv -f $(SBINDIR)/sendfax $(SBINDIR)/sendfax.old
112 - $(INSTALL) -s -m 700 mgetty $(SBINDIR)
113 + $(INSTALL) -s -m 755 mgetty $(SBINDIR)
114 $(INSTALL) -s -m 755 sendfax $(SBINDIR)
116 # data files + directories
117 @@ -663,12 +665,15 @@
122 - cd doc ; $(MAKE) install INSTALL="$(INSTALL)" \
124 + cd doc ; $(MAKE) install.man INSTALL="$(INSTALL)" \
128 - MAN8DIR=$(MAN8DIR) \
132 + cd doc ; $(MAKE) install.info INSTALL="$(INSTALL)" \
138 tio.o : tio.c mgetty.h ugly.h tio.h
139 utmp.o : utmp.c mgetty.h ugly.h mg_utmp.h
141 +.PHONY: install install.bin install.man install.info