summaryrefslogtreecommitdiff
path: root/mail/faces
diff options
context:
space:
mode:
authorsimonb <simonb@pkgsrc.org>1999-10-01 05:09:14 +0000
committersimonb <simonb@pkgsrc.org>1999-10-01 05:09:14 +0000
commit9599fc7b0e47646ff03227386b033ad4ff7d359f (patch)
treea2fc5ef884aef4bc8c574d77053c0efaf546d5d1 /mail/faces
parent15a0e5e1d96da03607ca0302ff252a9100aacf62 (diff)
downloadpkgsrc-9599fc7b0e47646ff03227386b033ad4ff7d359f.tar.gz
Spilt patches into one-file-per-patch-file, and make this work on
the pmax (and other mips ports) - all the world is not IRIX...
Diffstat (limited to 'mail/faces')
-rw-r--r--mail/faces/patches/patch-aa726
-rw-r--r--mail/faces/patches/patch-ab806
-rw-r--r--mail/faces/patches/patch-ac166
-rw-r--r--mail/faces/patches/patch-ad135
-rw-r--r--mail/faces/patches/patch-ae111
-rw-r--r--mail/faces/patches/patch-af26
-rw-r--r--mail/faces/patches/patch-ag11
-rw-r--r--mail/faces/patches/patch-ah56
-rw-r--r--mail/faces/patches/patch-ai9
-rw-r--r--mail/faces/patches/patch-aj34
-rw-r--r--mail/faces/patches/patch-ak22
-rw-r--r--mail/faces/patches/patch-al12
-rw-r--r--mail/faces/patches/patch-am12
-rw-r--r--mail/faces/patches/patch-an42
-rw-r--r--mail/faces/patches/patch-ao13
-rw-r--r--mail/faces/patches/patch-ap30
-rw-r--r--mail/faces/patches/patch-aq12
-rw-r--r--mail/faces/patches/patch-ar12
-rw-r--r--mail/faces/patches/patch-as12
-rw-r--r--mail/faces/patches/patch-at96
-rw-r--r--mail/faces/patches/patch-au15
21 files changed, 1118 insertions, 1240 deletions
diff --git a/mail/faces/patches/patch-aa b/mail/faces/patches/patch-aa
index b755b605e06..2f710fe20bf 100644
--- a/mail/faces/patches/patch-aa
+++ b/mail/faces/patches/patch-aa
@@ -1,716 +1,10 @@
-$NetBSD: patch-aa,v 1.3 1998/08/07 11:09:34 agc Exp $
-
-diff -c -N ../faces/Faces.ad ./Faces.ad
-*** ../faces/Faces.ad Mon Jul 1 03:25:46 1991
---- ./Faces.ad Tue Dec 10 19:07:26 1996
-***************
-*** 13,17 ****
- faces.displayHostname: false
-
- faces.audioSupport: false
-! faces.audioCommand: play
- faces.bellAudioFile:
---- 13,17 ----
- faces.displayHostname: false
-
- faces.audioSupport: false
-! faces.audioCommand: rplay
- faces.bellAudioFile:
-diff -c -N ../faces/extern.h ./extern.h
-*** ../faces/extern.h Tue Nov 19 05:00:48 1991
---- ./extern.h Tue Dec 10 10:49:37 1996
-***************
-*** 82,87 ****
---- 82,88 ----
- extern int facetype ; /* Type of face file found. */
- extern int firsttime ; /* Zeroised after first mail/printer check. */
- extern int flashes ; /* Number of flashes for arrival of new mail. */
-+ extern int border_width ; /* Border width of window. */
- extern int fromc_found ; /* Set if "From:" line found during processing. */
- extern int froms_found ; /* Set if "From " line found during processing. */
- extern int height ; /* Height in pixels of faces display. */
-*** ../faces/faces.sendmail Mon Jul 1 03:25:50 1991
---- ./faces.sendmail Tue Dec 10 20:19:25 1996
-***************
-*** 37,40 ****
- -e ': copy' \
- -e p \
- -e n \
-! -e 'b copy' | /usr/lib/sendmail "$@"
---- 37,40 ----
- -e ': copy' \
- -e p \
- -e n \
-! -e 'b copy' | /usr/sbin/sendmail "$@"
-Common subdirectories: ../faces/filters and ./filters
-diff -c -N ../faces/main.c ./main.c
-*** ../faces/main.c Tue Nov 19 05:00:47 1991
---- ./main.c Wed Dec 11 09:26:19 1996
-***************
-*** 63,68 ****
---- 63,69 ----
- "period", /* Integer: period in seconds between checks. */
- "bell", /* Integer: number of beeps for new arrival. */
- "flash", /* Integer: number of flashes for new arrival. */
-+ "borderWidth", /* Integer: border width of window. */
- "lower", /* Boolean: lower window if no mail. */
- "raise", /* Boolean: raise window on update? */
- "button1clear", /* Boolean: mouse button 1 clear window? */
-***************
-*** 150,155 ****
---- 151,157 ----
- int facetype ; /* Type of face file found. */
- int firsttime = 1 ; /* Zeroised after first mail/printer check. */
- int flashes = 0 ; /* Number of flashes for arrival of new mail. */
-+ int border_width = 2 ; /* Border width of window. */
- int fromc_found = 0 ; /* Set if "From:" line found during processing. */
- int froms_found = 0 ; /* Set if "From " line found during processing. */
- int height ; /* Height in pixels of faces display. */
-***************
-*** 743,751 ****
- if (get_str_resource(R_FONT, str)) read_str(&fontname, str) ;
- if (get_str_resource(R_BGICON, str)) read_str(&bgicon, str) ;
-
-! if (get_int_resource(R_PERIOD, &intval)) period = intval ;
-! if (get_int_resource(R_BELL, &intval)) beeps = intval ;
-! if (get_int_resource(R_FLASH, &intval)) flashes = intval ;
-
- if (get_bool_resource(R_LOWER, &boolval)) lowerwindow = boolval ;
- if (get_bool_resource(R_RAISE, &boolval)) raisewindow = boolval ;
---- 745,754 ----
- if (get_str_resource(R_FONT, str)) read_str(&fontname, str) ;
- if (get_str_resource(R_BGICON, str)) read_str(&bgicon, str) ;
-
-! if (get_int_resource(R_PERIOD, &intval)) period = intval ;
-! if (get_int_resource(R_BELL, &intval)) beeps = intval ;
-! if (get_int_resource(R_FLASH, &intval)) flashes = intval ;
-! if (get_int_resource(R_BORDERWIDTH,&intval)) border_width = intval ;
-
- if (get_bool_resource(R_LOWER, &boolval)) lowerwindow = boolval ;
- if (get_bool_resource(R_RAISE, &boolval)) raisewindow = boolval ;
-Common subdirectories: ../faces/xface and ./xface
-diff -c -N ../faces/y.tab.h ./y.tab.h
-*** ../faces/y.tab.h Thu Jan 1 01:00:00 1970
---- ./y.tab.h Wed Dec 11 09:26:39 1996
-***************
-*** 0 ****
---- 1,11 ----
-+ #define EOL 257
-+ #define ATOM 258
-+ #define LIT_DOMAIN 259
-+ #define QUOTED_STRING 260
-+ typedef union {
-+ char yChar;
-+ char *yString;
-+ Dom *yDom;
-+ Addr *yAddr;
-+ } YYSTYPE;
-+ extern YYSTYPE yylval;
---- /dev/null Wed Feb 25 13:29:07 1998
-+++ Makefile Wed Feb 25 12:34:44 1998
-@@ -0,0 +1,478 @@
-+#
-+# Makefile for faces, an icon face server, plus associated software.
-+#
-+# Graphical versions for NeWS, SunView, X11 and XView.
-+#
-+# @(#)Makefile.dist 1.10 91/11/19
-+#
-+# Copyright (c) Rich Burridge.
-+# Sun Microsystems, Australia - All rights reserved.
-+#
-+# Permission is given to distribute these sources, as long as the
-+# copyright messages are not removed, and no monies are exchanged.
-+#
-+# No responsibility is taken for any errors inherent either
-+# to the comments or the code of this program, but if reported
-+# to me then an attempt will be made to fix them.
-+#
-+#========================================================================
-+#
-+# There are various small changes needed when compiling faces on
-+# different systems. These have been isolated here, and should be
-+# uncommented and set accordingly, if needed.
-+#
-+#========================================================================
-+# Installation prefix.
-+PREFIX ?=@localbase@
-+#------------------------------------------------------------------------
-+# If you want audio support, then the following line should be uncommented.
-+#
-+AUDIO_SUPPORT = -DAUDIO_SUPPORT
-+#========================================================================
-+# There is a default command (/usr/demo/SOUND/play), which is used to
-+# play audio files. Alternatively you can specify your own custom
-+# command here. Uncomment the following line and set appropriately.
-+#
-+AUDIO_CMD = -DAUDIO_CMD=\"@localbase@/bin/rplay\"
-+#========================================================================
-+# Faces displays a background pattern in its' window. When the window
-+# is not completely full, this gives the appearance of trying to blend
-+# in with the background. By default, this is a root gray color, but you
-+# can specify the name of a file containing an alternate pattern to use.
-+# Uncomment the next two lines and set appropriately.
-+#
-+#BACKNAME = @localbase@/sample-background
-+#BACKGROUND = -DBACKGROUND=\"$(BACKNAME)\"
-+#------------------------------------------------------------------------
-+# Uncomment the following two lines to use the Domain Name Service to
-+# attempt to convert unqualified hostnames, or hostnames with partial
-+# domains to fully qualified domain names.
-+#
-+# When used with NISLOOKUP, DNSLOOKUP will take precedance.
-+#
-+# NOTE that the domain name returned by DNS will be converted to lower
-+# case before attempting a machines.tab match, or constructing an icon
-+# file name.
-+#
-+# NOTE that for this to work you must have at least a minimal
-+# /etc/resolv.conf file containing a valid nameserver entry.
-+#
-+DNSLOOKUP = -DDNSLOOKUP
-+DNSLIB =
-+#------------------------------------------------------------------------
-+# If you do not want to show the number of messages on the face icon,
-+# then uncomment the next line.
-+#
-+#DONTSHOWNO = -DDONTSHOWNO
-+#------------------------------------------------------------------------
-+# If you do not want to show the timestamp on the face icon, then
-+# uncomment the next line.
-+#
-+#DONTSHOWTIME = -DDONTSHOWTIME
-+#------------------------------------------------------------------------
-+# If you do not want to show the username on the face icon, then
-+# uncomment the next line.
-+#
-+#DONTSHOWUSER = -DDONTSHOWUSER
-+#------------------------------------------------------------------------
-+# By default, faces looks for the face images in @localbase@/faces. If
-+# you wish to specify an alternate location, then these two lines should
-+# be uncommented and set appropriately. Note that the value must be
-+# a single directory name, not a colon separated list of paths.
-+#
-+FACEDIR = @localbase@/share/faces
-+CFACEDIR = -DFACEDIR=\"$(FACEDIR)\"
-+#------------------------------------------------------------------------
-+# It is possible to determine what type of monitoring faces does at
-+# run time with different command line options, but it is also possible
-+# to define it at compile time.
-+#
-+# Monitor type (0 = mail (new), 1 = mail (all), 2 = print queue).
-+# 3 = custom prog, 4 = users).
-+#
-+#FMONTYPE = -DFMONTYPE=0
-+#------------------------------------------------------------------------
-+# If you have the poll(2) system call, then uncomment the following
-+# definition. Note that you will also have to uncomment the NOSELECT
-+# definition. This is needed for SVR4 machines.
-+#
-+#HASPOLL = -DHASPOLL
-+#------------------------------------------------------------------------
-+# Some users on monochrome screens display everything in reverse video.
-+# If you would like faces to do the same, then this line needs to be
-+# uncommented.
-+#
-+#INVERT = -DINVERT
-+#------------------------------------------------------------------------
-+# When no icon is found for a given user, the unknown icon may be displayed
-+# either with the user name, or labeled as `unknown'. The former case
-+# provides the most information, the latter allows all unknown users
-+# within a given community to be lumped into a single image. To select
-+# the latter case uncomment the following line.
-+#
-+#NAMEUNKNOWN = -DNAMEUNKNOWN
-+#------------------------------------------------------------------------
-+# If you are compiling the NeWS version, then the following two lines
-+# should be uncommented, and set appropriately.
-+#
-+#NEWSINCDIR = -I$(OPENWINHOME)/include
-+#NEWSLIBDIR = -L$(OPENWINHOME)/lib
-+#------------------------------------------------------------------------
-+# Uncomment the following line to use the Sun Network Information
-+# Services (NIS, formerly YP) to look for hosts which do not explicitly
-+# appear in the machines.tab file. When used with DNSLOOKUP, DNSLOOKUP
-+# takes precedance.
-+#
-+# Note that the domain name will be converted to lower case before
-+# attempting to match in the machines file, or create an icon filename.
-+#
-+NISLOOKUP = -DNISLOOKUP
-+#------------------------------------------------------------------------
-+# If you don't want faces to use full domain names for extracting face
-+# icons, then you should uncomment the NODOMAINS definition below.
-+#
-+#NODOMAINS = -DNODOMAINS
-+#------------------------------------------------------------------------
-+# If your system doesn't have the gethostname() system call, then this
-+# might be a useful alternative. This is needed for SVR4 machines.
-+#
-+#NOGETHOSTNAME = -DNOGETHOSTNAME
-+#------------------------------------------------------------------------
-+# By default, faces will check the "From " line first for username and
-+# hostname, and then the "From:" line.
-+# Not all machines have the index() string library function. If you
-+# don't have this function then you should uncomment the NOINDEX
-+# definition below.
-+#
-+#NOINDEX = -DNOINDEX
-+#--------------------------------------------------------------------------
-+# It appears that not every Unix system defines MAXPATHLEN, which indicates
-+# the maximum length of a Unix pathname. If your system doesn't, then
-+# you need to uncomment this definition.
-+#
-+#NOMAXPATHLEN = -DNOMAXPATHLEN
-+#--------------------------------------------------------------------------
-+# Not every version of Unix (in particular System V derivitives) has the
-+# select() system call. If your machine doesn't have this call, then you
-+# need to uncomment the following definition.
-+#
-+#NOSELECT = -DNOSELECT
-+#--------------------------------------------------------------------------
-+# If your system lacks the utime() library call and definition, then
-+# uncomment the following definition.
-+#
-+#NOUTIME = -DNOUTIME
-+#--------------------------------------------------------------------------
-+# By default, faces rechecks for new mail or print jobs every sixty
-+# seconds. If you would like to specify an alternate period, then uncomment
-+# the following line and set appropriately.
-+#
-+#PERIOD = -DPERIOD=30
-+#------------------------------------------------------------------------
-+# By default, faces will examine printer queues a la Berkeley Style.
-+# Alternatively, if you have the PLP printer spooling system running, then
-+# uncomment the next line.
-+#
-+#PLP = -DPLP
-+#-------------------------------------------------------------------------
-+# If you are using the RAND mailer which uses four ^A characters to mark
-+# the beginning and end of messages, then you will need to uncomment the
-+# following line.
-+#
-+#RAND = -DRAND
-+#-------------------------------------------------------------------------
-+# Faces is designed to work on a big-endian machine by default. If you
-+# are compiling for a little-endian machine (such as the Sun 386i), then
-+# you need to uncomment the following line.
-+#
-+#REVORDER = -DREVORDER
-+#------------------------------------------------------------------------
-+# If you not running under a BSD4.3 derived system, the parameters
-+# to the select call are different, and this definition should be
-+# uncommented. You need to uncomment this for SunOS v3.x.
-+#
-+SELTYPE = -DNO_43SELECT
-+#------------------------------------------------------------------------
-+# If you are building faces on a Silicon Graphics machine, then you will
-+# need to uncomment the following two definitions.
-+#
-+#SGIDEF = -Umips
-+#SGILIBS = -lsun -lc_s
-+#------------------------------------------------------------------------
-+# If the pending mail for users is in a different directory than
-+# /usr/spool/mail, uncomment the following and set appropriately.
-+#
-+SPOOLDIR = -DSPOOLDIR=\"/var/mail\"
-+#------------------------------------------------------------------------
-+# If faces is setup to monitor mail, then the name of the default
-+# spoolfile is /usr/spool/mail/username. An alternative spoolfile name
-+# can be given by uncommenting the following line and setting
-+# appropriately.
-+#
-+#SPOOLFILE = -DSPOOLFILE=\"/usr/richb/Mail/pending\"
-+#--------------------------------------------------------------------------
-+# If you are trying to build faces on an SVR4 machine, then you should
-+# uncomment the following entry, and set SVR4LIBS to the list of SVR4
-+# specific libraries needed to link reve.
-+#
-+#SVR4LIBS = -lnsl -lsocket -lgen
-+#--------------------------------------------------------------------------
-+# If you are running on a Unix System V machine, then you should uncomment
-+# the next definition.
-+#
-+#SYSV = -DSYSV32
-+#--------------------------------------------------------------------------
-+# If you are running SunOS v3.x, then pr_ttext doesn't exist, and
-+# you must uncomment this definition.
-+#
-+#TTEXT = -DNO_PR_TTEXT
-+#------------------------------------------------------------------------
-+# Uncomment if building faces under Sequoia's operating system.
-+#
-+#TOPIX = -DTOPIX
-+#--------------------------------------------------------------------------
-+# If the -U command line option is given to faces, then mail is sent to
-+# a special mail alias. This alias is really a shell script, which will
-+# take the given information, and try to update the faces database. By
-+# default that alias is called "facemaker", but it is possible to give an
-+# alternative alias here. This might be useful if a collection of machines
-+# were remotely mounting the faces database from a file server.
-+#
-+#UPDATE = -DUPDATE=\"facemaker@fileserver\"
-+#------------------------------------------------------------------------
-+# If your system does not have the memset() library call, but instead
-+# uses the bzero() library call, then the following definition needs to
-+# be uncommented.
-+#
-+#USE_BZERO = -DUSE_BZERO
-+#------------------------------------------------------------------------
-+# If your system does not have the getcwd() library call, but instead
-+# uses the getwd() library call, then the following definition needs to
-+# be uncommented.
-+#
-+#USE_GETWD = -DUSE_GETWD
-+#------------------------------------------------------------------------
-+# If you are compiling the X11 version under MIT X11R3, you will need to
-+# uncomment the following definition:
-+#
-+#X11R3 = -DX11R3
-+#------------------------------------------------------------------------
-+# If you are compiling the X11 version and the X11 include and
-+# library files are not in a standard place, then the following
-+# two lines should be uncommented, and set appropriately.
-+#
-+X11INCDIR = -I$(X11BASE)/include
-+X11LIBDIR = -L$(X11BASE)/lib
-+#------------------------------------------------------------------------
-+# If you are compiling the XView version, then the following two lines
-+# should be uncommented, and set appropriately.
-+#
-+#XVIEWINCDIR = -I$(OPENWINHOME)/include
-+#XVIEWLIBDIR = -L$(OPENWINHOME)/lib
-+#
-+#=======================================================================
-+#
-+# Default locations where faces files will be installed.
-+# You might wish to alter these values.
-+#
-+BINDIR = $(PREFIX)/bin
-+LIBDIR = $(PREFIX)/lib
-+INCDIR = $(PREFIX)/include
-+MANDIR = $(PREFIX)/man
-+MANSECT = 1
-+
-+#
-+# Options for submakes
-+#
-+MAKEOPTS = $(MFLAGS) BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) \
-+ INCDIR=$(INCDIR) MANDIR=$(MANDIR) CC=$(CC) \
-+ NOINDEX=$(NOINDEX) SYSV=$(SYSV)
-+
-+#
-+# Override DEBUG on the command line as `DEBUG=-DDEBUG' to enable various
-+# additional checking diagnostic output options.
-+#
-+DEBUG =
-+
-+#
-+# Compilation flags and standard macro definitions.
-+#
-+CDEFS = $(AUDIO_SUPPORT) $(AUDIO_CMD) $(BACKGROUND) \
-+ $(DNSLOOKUP) $(DONTSHOWNO) $(DONTSHOWTIME) $(DONTSHOWUSER) \
-+ $(CFACEDIR) $(FMONTYPE) $(HASPOLL) $(INVERT) \
-+ $(NAMEUNKNOWN) $(NEWSINCDIR) $(NISLOOKUP) $(NODOMAINS) \
-+ $(NOGETHOSTNAME) $(NOINDEX) $(NOMAXPATHLEN) $(NOSELECT) \
-+ $(NOUTIME) $(PERIOD) $(PLP) $(RAND) $(REVORDER) \
-+ $(SELTYPE) $(SGIDEF) $(SPOOLDIR) $(SPOOLFILE) $(SYSV) \
-+ $(TTEXT) $(TOPIX) $(UPDATE) $(USE_BZERO) $(USE_GETWD) \
-+ $(X11R3) $(X11INCDIR) $(XVIEWINCDIR) $(DEBUG)
-+CCOMP = -pipe -O2
-+CFLAGS = $(CCOMP) $(CDEFS)
-+#
-+#=======================================================================
-+
-+.KEEP_STATE:
-+
-+BINARIES = psfaces svfaces xfaces xvfaces
-+
-+CC = cc
-+MAKE = make
-+
-+STDSRCS = address.c get.c main.c mon.c parsefrom.c rec.c
-+STDOBJS = address.o get.o main.o mon.o parsefrom.o rec.o
-+STDLIBS = -L./compface -lcompface $(DNSLIB) $(SGILIBS)
-+
-+COMPFACE = compface
-+FACES = facedir
-+FILTERS = filters
-+SCRIPTS = scripts
-+GSRCS = news.c sunview.c x11.c xview.c
-+HDRS = addr.h extern.h faces.h patchlevel.h
-+IMAGES = noface.xbm nomail.xbm noprint.xbm \
-+ nopaper.xbm nothing.xbm nousers.xbm
-+OTHERS = CHANGES CHANGES-v1.4 README TODO MANIFEST FILES \
-+ faces.man.text faces.man face_update.1 faces_cps.cps \
-+ Faces.ad Makefile.dist face_update
-+XFACE = xface
-+
-+SFILES1 = mon.c rec.c
-+SFILES2 = main.c parsefrom.c
-+SFILES3 = get.c news.c sunview.c
-+SFILES4 = x11.c $(HDRS)
-+SFILES5 = xview.c
-+SFILES6 = CHANGES-v1.4
-+SFILES7 = CHANGES README TODO
-+SFILES8 = MANIFEST FILES Makefile.dist faces_cps.cps face_update \
-+ faces.sendmail
-+SFILES9 = faces.man face_update.1 $(IMAGES)
-+SFILES10 = faces.man.text Faces.ad
-+SFILES11 = $(FACES)
-+SFILES12 = $(COMPFACE)
-+SFILES13 = $(FILTERS)
-+SFILES14 = $(SCRIPTS)
-+SFILES15 = address.y $(XFACE)
-+
-+NEWSLIBS = $(NEWSLIBDIR) -lcps
-+SVIEWLIBS = -lsuntool -lsunwindow -lpixrect
-+#
-+# The following definition can vary. Here are a few examples:
-+#
-+# Sun/MIT X11R4: $(X11LIBDIR) -lX11
-+# Dell Unix (Interactive 386/ix): $(X11LIBDIR) -lX11 -linet
-+# AT&T's XWIN: $(X11LIBDIR) -lX11_s -lc_s -lnsl_s -lpt
-+#
-+X11LIBS = -L/usr/X11R6/lib -lX11
-+XVIEWLIBS = $(XVIEWLIBDIR) -lxview -lolgx -lX11
-+
-+help:
-+ @echo
-+ @echo "You need to specify one of the following options:"
-+ @echo
-+ @echo " make sunview - to make the SunView version."
-+ @echo " make news - to make the NeWS version."
-+ @echo " make x11 - to make the X11 version."
-+ @echo " make xview - to make the XView version."
-+ @echo
-+ @echo "This should be followed by:"
-+ @echo
-+ @echo " make install"
-+ @echo " make clean"
-+ @echo
-+
-+all: x11
-+
-+news: $(STDOBJS) news.o faces_cps.h
-+ (cd compface; $(MAKE) $(MAKEOPTS))
-+ (cd filters; $(MAKE) $(MAKEOPTS))
-+ $(CC) -o psfaces $(CFLAGS) $(STDOBJS) news.o \
-+ $(STDLIBS) $(NEWSLIBS)
-+ -cp psfaces faces
-+
-+sunview: $(STDOBJS) sunview.o
-+ (cd compface; $(MAKE) $(MAKEOPTS))
-+ (cd filters; $(MAKE) $(MAKEOPTS))
-+ $(CC) -o svfaces $(CFLAGS) $(STDOBJS) sunview.o \
-+ $(STDLIBS) $(SVIEWLIBS)
-+ -cp svfaces faces
-+
-+x11: $(STDOBJS) x11.o
-+ (cd compface; $(MAKE) $(MAKEOPTS))
-+ (cd filters; $(MAKE) $(MAKEOPTS))
-+ $(CC) -o xfaces $(CFLAGS) $(STDOBJS) x11.o \
-+ $(STDLIBS) $(X11LIBS) $(SVR4LIBS)
-+ -cp xfaces faces
-+
-+xview: $(STDOBJS) xview.o
-+ (cd compface; $(MAKE) $(MAKEOPTS))
-+ (cd filters; $(MAKE) $(MAKEOPTS))
-+ $(CC) -o xvfaces $(CFLAGS) $(STDOBJS) xview.o \
-+ $(STDLIBS) $(XVIEWLIBS) $(SVR4LIBS)
-+ -cp xvfaces faces
-+
-+tables:
-+ -mkdir $(FACEDIR)
-+ -install -c -m 644 machine.tab $(FACEDIR)
-+ -install -c -m 644 people.tab $(FACEDIR)
-+
-+install:
-+ make tables
-+ (cd compface; $(MAKE) $(MAKEOPTS) install)
-+ (cd filters; $(MAKE) $(MAKEOPTS) install)
-+ (cd scripts; $(MAKE) $(MAKEOPTS) install)
-+ install -c -s -m 751 faces $(BINDIR)
-+ install -c -m 755 face_update $(BINDIR)
-+ install -c -m 755 faces.sendmail $(BINDIR)
-+ install -c -m 644 faces.man \
-+ $(MANDIR)/man$(MANSECT)/faces.$(MANSECT)
-+ install -c -m 444 face_update.1 \
-+ $(MANDIR)/man$(MANSECT)/face_update.$(MANSECT)
-+ install -c -m 444 -o bin Faces.ad /usr/X11R6/lib/X11/app-defaults/Faces
-+
-+clean:
-+ (cd compface; $(MAKE) $(MAKEOPTS) clean)
-+ (cd filters; $(MAKE) $(MAKEOPTS) clean)
-+ rm -f *.o Part* *~ $(BINARIES) faces core
-+
-+saber:
-+ #load $(CDEFS) $(STDSRCS) x11.c $(STDLIBS) $(X11LIBS)
-+
-+lint: lint-news lint-sunview lint-x11 lint-xview
-+lint-news:; lint $(CDEFS) $(STDSRCS) news.c $(NEWSLIBS)
-+lint-sunview:; lint $(CDEFS) $(STDSRCS) sunview.c $(SVIEWLIBS)
-+lint-x11:; lint $(CDEFS) $(STDSRCS) x11.c
-+lint-xview:; lint $(CDEFS) $(STDSRCS) xview.c
-+
-+shar:; shar.script $(SFILES1) > faces.part1
-+ shar.script $(SFILES2) > faces.part2
-+ shar.script $(SFILES3) > faces.part3
-+ shar.script $(SFILES4) > faces.part4
-+ shar.script $(SFILES5) > faces.part5
-+ shar.script $(SFILES6) > faces.part6
-+ shar.script $(SFILES7) > faces.part7
-+ shar.script $(SFILES8) > faces.part8
-+ shar.script $(SFILES9) > faces.part9
-+ shar.script $(SFILES10) > faces.part10
-+ shar.script $(SFILES11) > faces.part11
-+ shar.script $(SFILES12) > faces.part12
-+ shar.script $(SFILES13) > faces.part13
-+ shar.script $(SFILES14) > faces.part14
-+ shar.script $(SFILES15) > faces.part15
-+
-+create: SCCS
-+ -sccs create $(STDSRCS) $(GSRCS) $(HDRS) $(IMAGES) $(OTHERS)
-+
-+SCCS:
-+ mkdir SCCS
-+ chmod 755 SCCS
-+
-+faces_cps.h: faces_cps.cps
-+ cps $<
-+
-+get.o: get.c faces.h extern.h patchlevel.h
-+main.o: main.c faces.h $(IMAGES)
-+mon.o: mon.c faces.h extern.h
-+news.o: news.c faces.h extern.h faces_cps.h
-+rec.o: rec.c faces.h extern.h
-+sunview.o: sunview.c faces.h extern.h
-+x11.o: x11.c faces.h extern.h
-+xview.o: xview.c faces.h extern.h
---- x11.c.orig Tue Nov 19 04:00:50 1991
-+++ x11.c Wed Feb 25 12:33:23 1998
-@@ -39,6 +39,8 @@
- #include "faces.h"
- #include "extern.h"
-
-+#include <sys/param.h>
-+
- #ifdef HASPOLL
- #include <poll.h>
- #endif /*HASPOLL*/
-@@ -58,7 +60,6 @@
-
- #define F_ICON 0 /* Icon index to frame array. */
- #define F_WINDOW 1 /* Window index to frame array. */
--#define FACES_BORDER_WIDTH 2
- #define FRAME_MASK (ButtonPressMask | ExposureMask | \
- ButtonMotionMask | KeyPressMask)
- #define ICON_MASK ExposureMask
-@@ -364,11 +365,13 @@
- init_font() ;
- gc_mask = GCFont | GCForeground | GCBackground | GCGraphicsExposures ;
- gc_val.font = sfont->fid ;
-- gc_val.foreground = foregnd ;
-- gc_val.background = backgnd ;
-+ gc_val.foreground = BlackPixel(dpy, screen) ;
-+ gc_val.background = WhitePixel(dpy, screen) ;
- gc_val.graphics_exposures = False ;
- gc = XCreateGC(dpy, root, gc_mask, &gc_val) ;
-
-+ gc_val.foreground = foregnd ;
-+ gc_val.background = backgnd ;
- tilegc = XCreateGC(dpy, root, gc_mask, &gc_val) ;
- if (depth == 1) XSetFillStyle(dpy, tilegc, FillOpaqueStippled) ;
- else XSetFillStyle(dpy, tilegc, FillTiled) ;
-@@ -459,7 +462,11 @@
-
- home = getenv("HOME") ;
- XrmInitialize() ;
-+#if (defined(BSD) && BSD >= 199306)
-+ STRCPY(name, "@x11base@/lib/X11/app-defaults/Faces") ;
-+#else
- STRCPY(name, "/usr/lib/X11/app-defaults/Faces") ;
-+#endif
-
- /* Get applications defaults file, if any. */
-
-@@ -576,14 +583,14 @@
- winattrs.event_mask = FRAME_MASK ;
-
- frame[F_WINDOW] = XCreateWindow(dpy, root, size.x, size.y,
-- size.width, size.height, FACES_BORDER_WIDTH,
-+ size.width, size.height, border_width,
- CopyFromParent, InputOutput, CopyFromParent,
- CWBackPixel | CWBorderPixel | CWEventMask, &winattrs) ;
-
- winattrs.event_mask = ICON_MASK ;
-
- frame[F_ICON] = XCreateWindow(dpy, root,
-- ix, iy, imagewidth, imageheight, FACES_BORDER_WIDTH,
-+ ix, iy, imagewidth, imageheight, border_width,
- CopyFromParent, InputOutput, CopyFromParent,
- CWBackPixel | CWBorderPixel | CWEventMask, &winattrs) ;
-
-@@ -856,6 +863,7 @@
- XFillRectangle(dpy, pr[(int) dtype], gc, x, y-9,
- (unsigned int) textwidth+2, 13) ;
- XSetFunction(dpy, gc, GXxor) ;
-+ XSetForeground(dpy, gc, WhitePixel(dpy, screen));
- XDrawImageString(dpy, pr[(int) dtype], gc, x, y, str, len) ;
- XSetFunction(dpy, gc, GXcopy) ;
- }
---- faces.h.orig Tue Nov 19 04:00:49 1991
-+++ faces.h Wed Feb 25 12:34:53 1998
-@@ -44,7 +44,7 @@
- #endif /* STDC */
-
- #ifndef FACEDIR
--#define FACEDIR "/usr/local/faces"
-+#define FACEDIR "@localbase@/faces"
- #endif /*FACEDIR*/
-
- #define CLOSE (void) close /* To make line happy. */
-@@ -102,9 +102,10 @@
- enum mon_type { MONNEW, MONALL, MONPRINTER, MONPROG, MONUSERS } ;
-
- /* X resources used by faces. */
--enum res_type { R_WINGEOM, R_ICONGEOM, R_FGCOLOR, R_BGCOLOR,
-- R_FONT, R_BGICON, R_PERIOD, R_BELL,
-- R_FLASH, R_LOWER, R_RAISE, R_BUT1CLR, R_DISPHOST,
-+enum res_type { R_WINGEOM, R_ICONGEOM, R_FGCOLOR, R_BGCOLOR,
-+ R_FONT, R_BGICON, R_PERIOD, R_BELL,
-+ R_FLASH, R_BORDERWIDTH, R_LOWER, R_RAISE,
-+ R_BUT1CLR, R_DISPHOST,
- #ifdef AUDIO_SUPPORT
- R_AUDIO, R_AUDIOCMD, R_BELLFILE
- #endif /*AUDIO_SUPPORT*/
-@@ -193,8 +194,6 @@
- #endif /*NOUTIME*/
-
- extern char *getenv P(()) ;
--extern char *malloc P(()) ;
--extern char *realloc P(()) ;
- extern char *index P(()) ;
- extern char *rindex P(()) ;
- extern char *strcpy P(()) ;
-@@ -204,6 +203,8 @@
- extern FILE *popen P(()) ;
- #endif /*SYSV32*/
-
-+#include <sys/param.h>
-+
- /* Various programs that are used by faces.
- * You might need to change these on some machines.
- */
-@@ -217,7 +218,11 @@
- #define PRINTDEF "lpq -P %s"
-
- /* Updating the faces database: %s replaced with mail update alias name. */
-+#if (defined(BSD) && BSD >= 199306)
-+#define UPDATEDEF "/usr/sbin/sendmail -oeq -oi %s"
-+#else
- #define UPDATEDEF "/usr/lib/sendmail -oeq -oi %s"
-+#endif
-
- /* Monitoring users on a machine: %s replaced with hostname. */
- #define USERSDEF "rusers -l %s"
+diff -ur ../faces-DIST/Faces.ad ./Faces.ad
+--- ../faces-DIST/Faces.ad Mon Jul 1 11:25:46 1991
++++ ./Faces.ad Fri Oct 1 14:32:02 1999
+@@ -13,5 +13,5 @@
+ faces.displayHostname: false
+
+ faces.audioSupport: false
+-faces.audioCommand: play
++faces.audioCommand: rplay
+ faces.bellAudioFile:
diff --git a/mail/faces/patches/patch-ab b/mail/faces/patches/patch-ab
index 1ad4af42e73..1123ba4e221 100644
--- a/mail/faces/patches/patch-ab
+++ b/mail/faces/patches/patch-ab
@@ -1,324 +1,482 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 11:09:35 agc Exp $
-
-*** compface/Makefile.orig Thu Oct 24 11:28:06 1991
---- compface/Makefile Sat May 17 23:23:52 1997
-***************
-*** 19,80 ****
- #
- #SYSV = -DSYSV32
- #--------------------------------------------------------------------------
-! # BINDIR, LIBDIR, and MANDIR are expected to be overridden by the
- # calling Makefile
-
- BINDIR = /usr/local/bin
- LIBDIR = /usr/local/lib
-! MANDIR = /usr/manl
-
- NAME = compface
- UNNAME = uncompface
- EXECUTABLE = $(BINDIR)/$(NAME)
- UNEXECUTABLE = $(BINDIR)/$(UNNAME)
- LIBNAME = lib$(NAME).a
-! LIBRARY = $(LIBDIR)/$(LIBNAME)
- MAN1DIR = $(MANDIR)/man1
- MAN3DIR = $(MANDIR)/man3
- OBJECTS = arith.o file.o compress.o gen.o uncompface.o
- SOURCES = compface.c uncompface.o arith.c file.c compress.c gen.c \
- cmain.c uncmain.c
- HDRS = compface.h data.h
- OTHERS = README $(NAME).1 $(NAME).3 Makefile
-
- CC = cc
- CDEFS = $(SYSV)
-! CCOMP = -g
- CFLAGS = $(CDEFS) $(CCOMP)
-
-! all: $(NAME) $(UNNAME)
-
-! $(NAME) : cmain.o compface.o $(LIBNAME)
-! $(CC) $(CFLAGS) -o $(NAME) cmain.o compface.o $(LIBNAME)
-
- $(UNNAME) : uncmain.o $(LIBNAME)
-! $(CC) $(CFLAGS) -o $(UNNAME) uncmain.o $(LIBNAME)
-!
-! $(LIBNAME) : $(OBJECTS)
-! ar rc $(LIBNAME) $(OBJECTS)
-! -ranlib $(LIBNAME)
-
- lint :
- lint -abchx $(SOURCES)
-
- clean :
-! rm -f *.o *.a *.sh core a.out $(NAME) $(UNNAME)
-
- install : $(NAME) $(UNNAME) $(LIBNAME)
-! -cp $(NAME) $(EXECUTABLE)
-! strip $(EXECUTABLE)
-! -cp $(UNNAME) $(UNEXECUTABLE)
-! strip $(UNEXECUTABLE)
-! -cp $(NAME).1 $(MAN1DIR)
-! rm -f $(MAN1DIR)/$(UNNAME).1
-! -ln $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1
-! -cp $(LIBNAME) $(LIBRARY)
-! -cp $(NAME).3 $(MAN3DIR)
-! rm -f $(MAN3DIR)/$(UNNAME).3
-! -ln $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3
-
- shar :
- shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh
---- 19,82 ----
- #
- #SYSV = -DSYSV32
- #--------------------------------------------------------------------------
-! # BINDIR, LIBDIR, INCDIR and MANDIR are expected to be overridden by the
- # calling Makefile
-
- BINDIR = /usr/local/bin
- LIBDIR = /usr/local/lib
-! INCDIR = /usr/local/include
-! MANDIR = /usr/local/man
-
- NAME = compface
- UNNAME = uncompface
- EXECUTABLE = $(BINDIR)/$(NAME)
- UNEXECUTABLE = $(BINDIR)/$(UNNAME)
- LIBNAME = lib$(NAME).a
-! SHLIB_MAJOR = 1
-! SHLIB_MINOR = 0
-! LIB = $(NAME)
-! NOPROFILE = ''
-! LIBRARY = $(LIBDIR)
- MAN1DIR = $(MANDIR)/man1
- MAN3DIR = $(MANDIR)/man3
- OBJECTS = arith.o file.o compress.o gen.o uncompface.o
- SOURCES = compface.c uncompface.o arith.c file.c compress.c gen.c \
- cmain.c uncmain.c
-+ SRCS = arith.c file.c compress.c gen.c uncompface.c
- HDRS = compface.h data.h
- OTHERS = README $(NAME).1 $(NAME).3 Makefile
-
- CC = cc
- CDEFS = $(SYSV)
-! CCOMP = -pipe -O2
- CFLAGS = $(CDEFS) $(CCOMP)
-
-! all: lib$(NAME).a lib$(NAME).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) $(NAME) $(UNNAME)
-
-! $(NAME) : cmain.o compface.o
-! $(CC) $(CFLAGS) -o $(NAME) cmain.o compface.o -L./ -lcompface
-
- $(UNNAME) : uncmain.o $(LIBNAME)
-! $(CC) $(CFLAGS) -o $(UNNAME) uncmain.o -L./ -lcompface
-
- lint :
- lint -abchx $(SOURCES)
-
- clean :
-! rm -f *.o *po *so *.a *.so.* *.sh core a.out $(NAME) $(UNNAME)
-
- install : $(NAME) $(UNNAME) $(LIBNAME)
-! install -c -s -o bin -m 755 $(NAME) $(EXECUTABLE)
-! install -c -s -o bin -m 755 $(UNNAME) $(UNEXECUTABLE)
-! install -c -g bin -o bin -m 444 $(NAME).1 $(MAN1DIR)
-! -rm -f $(MAN1DIR)/$(UNNAME).1*
-! ln -fs $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1
-! install -c -o bin -m 444 $(LIBNAME) $(LIBRARY)
-! install -c -o bin -m 444 lib$(NAME).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) $(LIBRARY)
-! install -c -g bin -o bin -m 444 $(NAME).3 $(MAN3DIR)
-! rm -f $(MAN3DIR)/$(UNNAME).3*
-! ln -fs $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3
-! install -m 444 -o bin -g bin -c compface.h $(INCDIR)
-
- shar :
- shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh
-***************
-*** 88,90 ****
---- 90,94 ----
- gen.o: gen.c compface.h data.h
- uncmain.o: uncmain.c compface.h data.h
- uncompface.o: uncompface.c compface.h data.h
-+
-+ .include <bsd.lib.mk>
-diff -c -N ../faces/compface/compface.1 ./compface/compface.1
-*** ../faces/compface/compface.1 Fri Mar 15 06:10:29 1991
---- ./compface/compface.1 Tue Dec 10 17:28:10 1996
-***************
-*** 12,17 ****
---- 12,19 ----
- .LP
- .B uncompface
- [
-+ .B \-X
-+ ] [
- .I infile
- [
- .I outfile
-***************
-*** 25,31 ****
- face image files.
- .I uncompface
- is an inverse filter which performs an inverse transformation with no
-! loss of data.
- The algorithm used is highly tuned for its purpose and achieves better
- than a five to one compression ratio on average.
- Arguments operate identically for both programmes.
---- 27,33 ----
- face image files.
- .I uncompface
- is an inverse filter which performs an inverse transformation with no
-! loss of data.
- The algorithm used is highly tuned for its purpose and achieves better
- than a five to one compression ratio on average.
- Arguments operate identically for both programmes.
-***************
-*** 56,61 ****
---- 58,69 ----
- .I compface
- averages less than 200 characters.
- The average number of output lines is three.
-+ .SH OPTIONS
-+ .TP 12
-+ .B \-X
-+ The same as
-+ .I uncompface
-+ | ikon2xbm. Usefull for exmh!
- .SH DIAGNOSTICS
- Exit status is normally 0.
- Possible errors include IO errors when opening, reading or writing
-diff -c -N ../faces/compface/file.c ./compface/file.c
-*** ../faces/compface/file.c Wed Jun 19 08:29:13 1991
---- ./compface/file.c Wed Dec 11 09:25:17 1996
-***************
-*** 15,20 ****
---- 15,22 ----
-
- #include "compface.h"
-
-+ int xbitmap=0;
-+
- void
- BigRead(fbuf)
- register char *fbuf;
-***************
-*** 127,136 ****
---- 129,147 ----
- {
- register char *s, *t;
- register int i, bits, digits, words;
-+ extern int xbitmap;
-+ int digsperword = DIGSPERWORD;
-+ int wordsperline = WORDSPERLINE;
-
- s = F;
- t = fbuf;
- bits = digits = words = i = 0;
-+ if (xbitmap) {
-+ sprintf(t,"#define noname_width 48\n#define noname_height 48\nstatic char noname_bits[] = {\n ");
-+ while (*t) t++;
-+ digsperword = 2;
-+ wordsperline = 15;
-+ }
- while (s < F + PIXELS)
- {
- if ((bits == 0) && (digits == 0))
-***************
-*** 138,162 ****
- *(t++) = '0';
- *(t++) = 'x';
- }
-! if (*(s++))
-! i = i * 2 + 1;
-! else
-! i *= 2;
- if (++bits == BITSPERDIG)
- {
-! *(t++) = *(i + HexDigits);
- bits = i = 0;
-! if (++digits == DIGSPERWORD)
- {
- *(t++) = ',';
- digits = 0;
-! if (++words == WORDSPERLINE)
- {
- *(t++) = '\n';
- words = 0;
- }
- }
- }
- }
- *(t++) = '\0';
- }
---- 149,191 ----
- *(t++) = '0';
- *(t++) = 'x';
- }
-! if (xbitmap) {
-! if (*(s++))
-! i = (i >> 1) | 0x8;
-! else
-! i >>= 1;
-! }
-! else {
-! if (*(s++))
-! i = i * 2 + 1;
-! else
-! i *= 2;
-! }
- if (++bits == BITSPERDIG)
- {
-! if (xbitmap) {
-! t++;
-! t[-(digits & 1) * 2] = *(i + HexDigits);
-! }
-! else *(t++) = *(i + HexDigits);
- bits = i = 0;
-! if (++digits == digsperword)
- {
-+ if (xbitmap && (s >= F + PIXELS)) break;
- *(t++) = ',';
- digits = 0;
-! if (++words == wordsperline)
- {
- *(t++) = '\n';
-+ if (xbitmap) *(t++) = ' ';
- words = 0;
- }
- }
- }
-+ }
-+ if (xbitmap) {
-+ sprintf(t, "}\n");
-+ while (*t) t++;
- }
- *(t++) = '\0';
- }
-diff -c -N ../faces/compface/uncmain.c ./compface/uncmain.c
-*** ../faces/compface/uncmain.c Thu Oct 24 03:28:07 1991
---- ./compface/uncmain.c Wed Dec 11 09:27:47 1996
-***************
-*** 18,23 ****
---- 18,25 ----
- #include <fcntl.h>
- #include "compface.h"
-
-+ extern int xbitmap;
-+
- /* the buffer is longer than needed to handle sparse input formats */
- #define FACEBUFLEN 2048
- char fbuf[FACEBUFLEN];
-***************
-*** 59,64 ****
---- 61,73 ----
- while (**argv)
- if (*((*argv)++) == '/')
- cmdname = *argv; /* find the command's basename */
-+
-+ if (argc > 1 && !strcmp(argv[1], "-X"))
-+ {
-+ xbitmap++;
-+ argc--;
-+ argv++;
-+ }
-
- if (argc > 3)
- {
+diff -ur ../faces-DIST/Makefile ./Makefile
+--- ../faces-DIST/Makefile Fri Oct 1 14:36:38 1999
++++ ./Makefile Fri Oct 1 14:32:03 1999
+@@ -0,0 +1,478 @@
++#
++# Makefile for faces, an icon face server, plus associated software.
++#
++# Graphical versions for NeWS, SunView, X11 and XView.
++#
++# @(#)Makefile.dist 1.10 91/11/19
++#
++# Copyright (c) Rich Burridge.
++# Sun Microsystems, Australia - All rights reserved.
++#
++# Permission is given to distribute these sources, as long as the
++# copyright messages are not removed, and no monies are exchanged.
++#
++# No responsibility is taken for any errors inherent either
++# to the comments or the code of this program, but if reported
++# to me then an attempt will be made to fix them.
++#
++#========================================================================
++#
++# There are various small changes needed when compiling faces on
++# different systems. These have been isolated here, and should be
++# uncommented and set accordingly, if needed.
++#
++#========================================================================
++# Installation prefix.
++PREFIX ?=@localbase@
++#------------------------------------------------------------------------
++# If you want audio support, then the following line should be uncommented.
++#
++AUDIO_SUPPORT = -DAUDIO_SUPPORT
++#========================================================================
++# There is a default command (/usr/demo/SOUND/play), which is used to
++# play audio files. Alternatively you can specify your own custom
++# command here. Uncomment the following line and set appropriately.
++#
++AUDIO_CMD = -DAUDIO_CMD=\"@localbase@/bin/rplay\"
++#========================================================================
++# Faces displays a background pattern in its' window. When the window
++# is not completely full, this gives the appearance of trying to blend
++# in with the background. By default, this is a root gray color, but you
++# can specify the name of a file containing an alternate pattern to use.
++# Uncomment the next two lines and set appropriately.
++#
++#BACKNAME = @localbase@/sample-background
++#BACKGROUND = -DBACKGROUND=\"$(BACKNAME)\"
++#------------------------------------------------------------------------
++# Uncomment the following two lines to use the Domain Name Service to
++# attempt to convert unqualified hostnames, or hostnames with partial
++# domains to fully qualified domain names.
++#
++# When used with NISLOOKUP, DNSLOOKUP will take precedance.
++#
++# NOTE that the domain name returned by DNS will be converted to lower
++# case before attempting a machines.tab match, or constructing an icon
++# file name.
++#
++# NOTE that for this to work you must have at least a minimal
++# /etc/resolv.conf file containing a valid nameserver entry.
++#
++DNSLOOKUP = -DDNSLOOKUP
++DNSLIB =
++#------------------------------------------------------------------------
++# If you do not want to show the number of messages on the face icon,
++# then uncomment the next line.
++#
++#DONTSHOWNO = -DDONTSHOWNO
++#------------------------------------------------------------------------
++# If you do not want to show the timestamp on the face icon, then
++# uncomment the next line.
++#
++#DONTSHOWTIME = -DDONTSHOWTIME
++#------------------------------------------------------------------------
++# If you do not want to show the username on the face icon, then
++# uncomment the next line.
++#
++#DONTSHOWUSER = -DDONTSHOWUSER
++#------------------------------------------------------------------------
++# By default, faces looks for the face images in @localbase@/faces. If
++# you wish to specify an alternate location, then these two lines should
++# be uncommented and set appropriately. Note that the value must be
++# a single directory name, not a colon separated list of paths.
++#
++FACEDIR = @localbase@/share/faces
++CFACEDIR = -DFACEDIR=\"$(FACEDIR)\"
++#------------------------------------------------------------------------
++# It is possible to determine what type of monitoring faces does at
++# run time with different command line options, but it is also possible
++# to define it at compile time.
++#
++# Monitor type (0 = mail (new), 1 = mail (all), 2 = print queue).
++# 3 = custom prog, 4 = users).
++#
++#FMONTYPE = -DFMONTYPE=0
++#------------------------------------------------------------------------
++# If you have the poll(2) system call, then uncomment the following
++# definition. Note that you will also have to uncomment the NOSELECT
++# definition. This is needed for SVR4 machines.
++#
++#HASPOLL = -DHASPOLL
++#------------------------------------------------------------------------
++# Some users on monochrome screens display everything in reverse video.
++# If you would like faces to do the same, then this line needs to be
++# uncommented.
++#
++#INVERT = -DINVERT
++#------------------------------------------------------------------------
++# When no icon is found for a given user, the unknown icon may be displayed
++# either with the user name, or labeled as `unknown'. The former case
++# provides the most information, the latter allows all unknown users
++# within a given community to be lumped into a single image. To select
++# the latter case uncomment the following line.
++#
++#NAMEUNKNOWN = -DNAMEUNKNOWN
++#------------------------------------------------------------------------
++# If you are compiling the NeWS version, then the following two lines
++# should be uncommented, and set appropriately.
++#
++#NEWSINCDIR = -I$(OPENWINHOME)/include
++#NEWSLIBDIR = -L$(OPENWINHOME)/lib
++#------------------------------------------------------------------------
++# Uncomment the following line to use the Sun Network Information
++# Services (NIS, formerly YP) to look for hosts which do not explicitly
++# appear in the machines.tab file. When used with DNSLOOKUP, DNSLOOKUP
++# takes precedance.
++#
++# Note that the domain name will be converted to lower case before
++# attempting to match in the machines file, or create an icon filename.
++#
++NISLOOKUP = -DNISLOOKUP
++#------------------------------------------------------------------------
++# If you don't want faces to use full domain names for extracting face
++# icons, then you should uncomment the NODOMAINS definition below.
++#
++#NODOMAINS = -DNODOMAINS
++#------------------------------------------------------------------------
++# If your system doesn't have the gethostname() system call, then this
++# might be a useful alternative. This is needed for SVR4 machines.
++#
++#NOGETHOSTNAME = -DNOGETHOSTNAME
++#------------------------------------------------------------------------
++# By default, faces will check the "From " line first for username and
++# hostname, and then the "From:" line.
++# Not all machines have the index() string library function. If you
++# don't have this function then you should uncomment the NOINDEX
++# definition below.
++#
++#NOINDEX = -DNOINDEX
++#--------------------------------------------------------------------------
++# It appears that not every Unix system defines MAXPATHLEN, which indicates
++# the maximum length of a Unix pathname. If your system doesn't, then
++# you need to uncomment this definition.
++#
++#NOMAXPATHLEN = -DNOMAXPATHLEN
++#--------------------------------------------------------------------------
++# Not every version of Unix (in particular System V derivitives) has the
++# select() system call. If your machine doesn't have this call, then you
++# need to uncomment the following definition.
++#
++#NOSELECT = -DNOSELECT
++#--------------------------------------------------------------------------
++# If your system lacks the utime() library call and definition, then
++# uncomment the following definition.
++#
++#NOUTIME = -DNOUTIME
++#--------------------------------------------------------------------------
++# By default, faces rechecks for new mail or print jobs every sixty
++# seconds. If you would like to specify an alternate period, then uncomment
++# the following line and set appropriately.
++#
++#PERIOD = -DPERIOD=30
++#------------------------------------------------------------------------
++# By default, faces will examine printer queues a la Berkeley Style.
++# Alternatively, if you have the PLP printer spooling system running, then
++# uncomment the next line.
++#
++#PLP = -DPLP
++#-------------------------------------------------------------------------
++# If you are using the RAND mailer which uses four ^A characters to mark
++# the beginning and end of messages, then you will need to uncomment the
++# following line.
++#
++#RAND = -DRAND
++#-------------------------------------------------------------------------
++# Faces is designed to work on a big-endian machine by default. If you
++# are compiling for a little-endian machine (such as the Sun 386i), then
++# you need to uncomment the following line.
++#
++#REVORDER = -DREVORDER
++#------------------------------------------------------------------------
++# If you not running under a BSD4.3 derived system, the parameters
++# to the select call are different, and this definition should be
++# uncommented. You need to uncomment this for SunOS v3.x.
++#
++SELTYPE = -DNO_43SELECT
++#------------------------------------------------------------------------
++# If you are building faces on a Silicon Graphics machine, then you will
++# need to uncomment the following two definitions.
++#
++#SGIDEF = -Umips
++#SGILIBS = -lsun -lc_s
++#------------------------------------------------------------------------
++# If the pending mail for users is in a different directory than
++# /usr/spool/mail, uncomment the following and set appropriately.
++#
++SPOOLDIR = -DSPOOLDIR=\"/var/mail\"
++#------------------------------------------------------------------------
++# If faces is setup to monitor mail, then the name of the default
++# spoolfile is /usr/spool/mail/username. An alternative spoolfile name
++# can be given by uncommenting the following line and setting
++# appropriately.
++#
++#SPOOLFILE = -DSPOOLFILE=\"/usr/richb/Mail/pending\"
++#--------------------------------------------------------------------------
++# If you are trying to build faces on an SVR4 machine, then you should
++# uncomment the following entry, and set SVR4LIBS to the list of SVR4
++# specific libraries needed to link reve.
++#
++#SVR4LIBS = -lnsl -lsocket -lgen
++#--------------------------------------------------------------------------
++# If you are running on a Unix System V machine, then you should uncomment
++# the next definition.
++#
++#SYSV = -DSYSV32
++#--------------------------------------------------------------------------
++# If you are running SunOS v3.x, then pr_ttext doesn't exist, and
++# you must uncomment this definition.
++#
++#TTEXT = -DNO_PR_TTEXT
++#------------------------------------------------------------------------
++# Uncomment if building faces under Sequoia's operating system.
++#
++#TOPIX = -DTOPIX
++#--------------------------------------------------------------------------
++# If the -U command line option is given to faces, then mail is sent to
++# a special mail alias. This alias is really a shell script, which will
++# take the given information, and try to update the faces database. By
++# default that alias is called "facemaker", but it is possible to give an
++# alternative alias here. This might be useful if a collection of machines
++# were remotely mounting the faces database from a file server.
++#
++#UPDATE = -DUPDATE=\"facemaker@fileserver\"
++#------------------------------------------------------------------------
++# If your system does not have the memset() library call, but instead
++# uses the bzero() library call, then the following definition needs to
++# be uncommented.
++#
++#USE_BZERO = -DUSE_BZERO
++#------------------------------------------------------------------------
++# If your system does not have the getcwd() library call, but instead
++# uses the getwd() library call, then the following definition needs to
++# be uncommented.
++#
++#USE_GETWD = -DUSE_GETWD
++#------------------------------------------------------------------------
++# If you are compiling the X11 version under MIT X11R3, you will need to
++# uncomment the following definition:
++#
++#X11R3 = -DX11R3
++#------------------------------------------------------------------------
++# If you are compiling the X11 version and the X11 include and
++# library files are not in a standard place, then the following
++# two lines should be uncommented, and set appropriately.
++#
++X11INCDIR = -I$(X11BASE)/include
++X11LIBDIR = -L$(X11BASE)/lib
++#------------------------------------------------------------------------
++# If you are compiling the XView version, then the following two lines
++# should be uncommented, and set appropriately.
++#
++#XVIEWINCDIR = -I$(OPENWINHOME)/include
++#XVIEWLIBDIR = -L$(OPENWINHOME)/lib
++#
++#=======================================================================
++#
++# Default locations where faces files will be installed.
++# You might wish to alter these values.
++#
++BINDIR = $(PREFIX)/bin
++LIBDIR = $(PREFIX)/lib
++INCDIR = $(PREFIX)/include
++MANDIR = $(PREFIX)/man
++MANSECT = 1
++
++#
++# Options for submakes
++#
++MAKEOPTS = $(MFLAGS) BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) \
++ INCDIR=$(INCDIR) MANDIR=$(MANDIR) CC=$(CC) \
++ NOINDEX=$(NOINDEX) SYSV=$(SYSV)
++
++#
++# Override DEBUG on the command line as `DEBUG=-DDEBUG' to enable various
++# additional checking diagnostic output options.
++#
++DEBUG =
++
++#
++# Compilation flags and standard macro definitions.
++#
++CDEFS = $(AUDIO_SUPPORT) $(AUDIO_CMD) $(BACKGROUND) \
++ $(DNSLOOKUP) $(DONTSHOWNO) $(DONTSHOWTIME) $(DONTSHOWUSER) \
++ $(CFACEDIR) $(FMONTYPE) $(HASPOLL) $(INVERT) \
++ $(NAMEUNKNOWN) $(NEWSINCDIR) $(NISLOOKUP) $(NODOMAINS) \
++ $(NOGETHOSTNAME) $(NOINDEX) $(NOMAXPATHLEN) $(NOSELECT) \
++ $(NOUTIME) $(PERIOD) $(PLP) $(RAND) $(REVORDER) \
++ $(SELTYPE) $(SGIDEF) $(SPOOLDIR) $(SPOOLFILE) $(SYSV) \
++ $(TTEXT) $(TOPIX) $(UPDATE) $(USE_BZERO) $(USE_GETWD) \
++ $(X11R3) $(X11INCDIR) $(XVIEWINCDIR) $(DEBUG)
++CCOMP = -pipe -O2
++CFLAGS = $(CCOMP) $(CDEFS)
++#
++#=======================================================================
++
++.KEEP_STATE:
++
++BINARIES = psfaces svfaces xfaces xvfaces
++
++CC = cc
++MAKE = make
++
++STDSRCS = address.c get.c main.c mon.c parsefrom.c rec.c
++STDOBJS = address.o get.o main.o mon.o parsefrom.o rec.o
++STDLIBS = -L./compface -lcompface $(DNSLIB) $(SGILIBS)
++
++COMPFACE = compface
++FACES = facedir
++FILTERS = filters
++SCRIPTS = scripts
++GSRCS = news.c sunview.c x11.c xview.c
++HDRS = addr.h extern.h faces.h patchlevel.h
++IMAGES = noface.xbm nomail.xbm noprint.xbm \
++ nopaper.xbm nothing.xbm nousers.xbm
++OTHERS = CHANGES CHANGES-v1.4 README TODO MANIFEST FILES \
++ faces.man.text faces.man face_update.1 faces_cps.cps \
++ Faces.ad Makefile.dist face_update
++XFACE = xface
++
++SFILES1 = mon.c rec.c
++SFILES2 = main.c parsefrom.c
++SFILES3 = get.c news.c sunview.c
++SFILES4 = x11.c $(HDRS)
++SFILES5 = xview.c
++SFILES6 = CHANGES-v1.4
++SFILES7 = CHANGES README TODO
++SFILES8 = MANIFEST FILES Makefile.dist faces_cps.cps face_update \
++ faces.sendmail
++SFILES9 = faces.man face_update.1 $(IMAGES)
++SFILES10 = faces.man.text Faces.ad
++SFILES11 = $(FACES)
++SFILES12 = $(COMPFACE)
++SFILES13 = $(FILTERS)
++SFILES14 = $(SCRIPTS)
++SFILES15 = address.y $(XFACE)
++
++NEWSLIBS = $(NEWSLIBDIR) -lcps
++SVIEWLIBS = -lsuntool -lsunwindow -lpixrect
++#
++# The following definition can vary. Here are a few examples:
++#
++# Sun/MIT X11R4: $(X11LIBDIR) -lX11
++# Dell Unix (Interactive 386/ix): $(X11LIBDIR) -lX11 -linet
++# AT&T's XWIN: $(X11LIBDIR) -lX11_s -lc_s -lnsl_s -lpt
++#
++X11LIBS = -L/usr/X11R6/lib -lX11
++XVIEWLIBS = $(XVIEWLIBDIR) -lxview -lolgx -lX11
++
++help:
++ @echo
++ @echo "You need to specify one of the following options:"
++ @echo
++ @echo " make sunview - to make the SunView version."
++ @echo " make news - to make the NeWS version."
++ @echo " make x11 - to make the X11 version."
++ @echo " make xview - to make the XView version."
++ @echo
++ @echo "This should be followed by:"
++ @echo
++ @echo " make install"
++ @echo " make clean"
++ @echo
++
++all: x11
++
++news: $(STDOBJS) news.o faces_cps.h
++ (cd compface; $(MAKE) $(MAKEOPTS))
++ (cd filters; $(MAKE) $(MAKEOPTS))
++ $(CC) -o psfaces $(CFLAGS) $(STDOBJS) news.o \
++ $(STDLIBS) $(NEWSLIBS)
++ -cp psfaces faces
++
++sunview: $(STDOBJS) sunview.o
++ (cd compface; $(MAKE) $(MAKEOPTS))
++ (cd filters; $(MAKE) $(MAKEOPTS))
++ $(CC) -o svfaces $(CFLAGS) $(STDOBJS) sunview.o \
++ $(STDLIBS) $(SVIEWLIBS)
++ -cp svfaces faces
++
++x11: $(STDOBJS) x11.o
++ (cd compface; $(MAKE) $(MAKEOPTS))
++ (cd filters; $(MAKE) $(MAKEOPTS))
++ $(CC) -o xfaces $(CFLAGS) $(STDOBJS) x11.o \
++ $(STDLIBS) $(X11LIBS) $(SVR4LIBS)
++ -cp xfaces faces
++
++xview: $(STDOBJS) xview.o
++ (cd compface; $(MAKE) $(MAKEOPTS))
++ (cd filters; $(MAKE) $(MAKEOPTS))
++ $(CC) -o xvfaces $(CFLAGS) $(STDOBJS) xview.o \
++ $(STDLIBS) $(XVIEWLIBS) $(SVR4LIBS)
++ -cp xvfaces faces
++
++tables:
++ -mkdir $(FACEDIR)
++ -install -c -m 644 machine.tab $(FACEDIR)
++ -install -c -m 644 people.tab $(FACEDIR)
++
++install:
++ make tables
++ (cd compface; $(MAKE) $(MAKEOPTS) install)
++ (cd filters; $(MAKE) $(MAKEOPTS) install)
++ (cd scripts; $(MAKE) $(MAKEOPTS) install)
++ install -c -s -m 751 faces $(BINDIR)
++ install -c -m 755 face_update $(BINDIR)
++ install -c -m 755 faces.sendmail $(BINDIR)
++ install -c -m 644 faces.man \
++ $(MANDIR)/man$(MANSECT)/faces.$(MANSECT)
++ install -c -m 444 face_update.1 \
++ $(MANDIR)/man$(MANSECT)/face_update.$(MANSECT)
++ install -c -m 444 -o bin Faces.ad /usr/X11R6/lib/X11/app-defaults/Faces
++
++clean:
++ (cd compface; $(MAKE) $(MAKEOPTS) clean)
++ (cd filters; $(MAKE) $(MAKEOPTS) clean)
++ rm -f *.o Part* *~ $(BINARIES) faces core
++
++saber:
++ #load $(CDEFS) $(STDSRCS) x11.c $(STDLIBS) $(X11LIBS)
++
++lint: lint-news lint-sunview lint-x11 lint-xview
++lint-news:; lint $(CDEFS) $(STDSRCS) news.c $(NEWSLIBS)
++lint-sunview:; lint $(CDEFS) $(STDSRCS) sunview.c $(SVIEWLIBS)
++lint-x11:; lint $(CDEFS) $(STDSRCS) x11.c
++lint-xview:; lint $(CDEFS) $(STDSRCS) xview.c
++
++shar:; shar.script $(SFILES1) > faces.part1
++ shar.script $(SFILES2) > faces.part2
++ shar.script $(SFILES3) > faces.part3
++ shar.script $(SFILES4) > faces.part4
++ shar.script $(SFILES5) > faces.part5
++ shar.script $(SFILES6) > faces.part6
++ shar.script $(SFILES7) > faces.part7
++ shar.script $(SFILES8) > faces.part8
++ shar.script $(SFILES9) > faces.part9
++ shar.script $(SFILES10) > faces.part10
++ shar.script $(SFILES11) > faces.part11
++ shar.script $(SFILES12) > faces.part12
++ shar.script $(SFILES13) > faces.part13
++ shar.script $(SFILES14) > faces.part14
++ shar.script $(SFILES15) > faces.part15
++
++create: SCCS
++ -sccs create $(STDSRCS) $(GSRCS) $(HDRS) $(IMAGES) $(OTHERS)
++
++SCCS:
++ mkdir SCCS
++ chmod 755 SCCS
++
++faces_cps.h: faces_cps.cps
++ cps $<
++
++get.o: get.c faces.h extern.h patchlevel.h
++main.o: main.c faces.h $(IMAGES)
++mon.o: mon.c faces.h extern.h
++news.o: news.c faces.h extern.h faces_cps.h
++rec.o: rec.c faces.h extern.h
++sunview.o: sunview.c faces.h extern.h
++x11.o: x11.c faces.h extern.h
++xview.o: xview.c faces.h extern.h
diff --git a/mail/faces/patches/patch-ac b/mail/faces/patches/patch-ac
index 3d12f2e4000..f50a473fb0e 100644
--- a/mail/faces/patches/patch-ac
+++ b/mail/faces/patches/patch-ac
@@ -1,68 +1,98 @@
-$NetBSD: patch-ac,v 1.3 1998/08/07 11:09:35 agc Exp $
-
-*** ../faces/filters/Makefile Thu Oct 24 03:26:14 1991
---- ./filters/Makefile Tue Dec 10 17:17:50 1996
-***************
-*** 34,40 ****
-
- CC = cc
- CDEFS = $(NOINDEX) $(SYSV)
-! CCOMP = -g
- CFLAGS = $(CCOMP) $(CDEFS)
-
- all: $(BINARIES)
---- 34,40 ----
-
- CC = cc
- CDEFS = $(NOINDEX) $(SYSV)
-! CCOMP = -pipe -O2
- CFLAGS = $(CCOMP) $(CDEFS)
-
- all: $(BINARIES)
-***************
-*** 55,66 ****
- rm -f *.o $(BINARIES)
-
- install: $(BINARIES)
-! install -s -m 751 icon2ikon $(BINDIR)
-! install -s -m 751 ikon2icon $(BINDIR)
-! install -s -m 751 rs2icon $(BINDIR)
-! install -c -m 755 fs2ikon $(BINDIR)
-! install -c -m 755 fs2xbm $(BINDIR)
-! install -c -m 755 ikon2xbm $(BINDIR)
-! install -c -m 755 xbm2ikon $(BINDIR)
-! install -c -m 755 xbmcut48 $(BINDIR)
-! install -c -m 755 xbmsize48 $(BINDIR)
---- 55,66 ----
- rm -f *.o $(BINARIES)
-
- install: $(BINARIES)
-! install -s -o bin -m 751 icon2ikon $(BINDIR)
-! install -s -o bin -m 751 ikon2icon $(BINDIR)
-! install -s -o bin -m 751 rs2icon $(BINDIR)
-! install -c -o bin -m 755 fs2ikon $(BINDIR)
-! install -c -o bin -m 755 fs2xbm $(BINDIR)
-! install -c -o bin -m 755 ikon2xbm $(BINDIR)
-! install -c -o bin -m 755 xbm2ikon $(BINDIR)
-! install -c -o bin -m 755 xbmcut48 $(BINDIR)
-! install -c -o bin -m 755 xbmsize48 $(BINDIR)
-diff -c -N ../faces/filters/ikon2xbm ./filters/ikon2xbm
-*** ../faces/filters/ikon2xbm Tue May 7 00:51:50 1991
---- ./filters/ikon2xbm Tue Dec 10 19:45:55 1996
-***************
-*** 26,32 ****
- \2\
- \3/' > $tmp
-
-! dim=`wc -l < $tmp | awk '{ print 4 * sqrt }'`
-
- pr -l1 -t -8 -s, < $tmp |
- (cat << EOF
---- 26,32 ----
- \2\
- \3/' > $tmp
-
-! dim=`wc -l < $tmp | awk '{ print 4 * sqrt(144) }'`
-
- pr -l1 -t -8 -s, < $tmp |
- (cat << EOF
+diff -ur ../faces-DIST/compface/Makefile ./compface/Makefile
+--- ../faces-DIST/compface/Makefile Thu Oct 24 12:28:06 1991
++++ ./compface/Makefile Fri Oct 1 14:32:06 1999
+@@ -19,62 +19,64 @@
+ #
+ #SYSV = -DSYSV32
+ #--------------------------------------------------------------------------
+-# BINDIR, LIBDIR, and MANDIR are expected to be overridden by the
++# BINDIR, LIBDIR, INCDIR and MANDIR are expected to be overridden by the
+ # calling Makefile
+
+ BINDIR = /usr/local/bin
+ LIBDIR = /usr/local/lib
+-MANDIR = /usr/manl
++INCDIR = /usr/local/include
++MANDIR = /usr/local/man
+
+ NAME = compface
+ UNNAME = uncompface
+ EXECUTABLE = $(BINDIR)/$(NAME)
+ UNEXECUTABLE = $(BINDIR)/$(UNNAME)
+ LIBNAME = lib$(NAME).a
+-LIBRARY = $(LIBDIR)/$(LIBNAME)
++SHLIB_MAJOR = 1
++SHLIB_MINOR = 0
++LIB = $(NAME)
++NOPROFILE = ''
++LIBRARY = $(LIBDIR)
+ MAN1DIR = $(MANDIR)/man1
+ MAN3DIR = $(MANDIR)/man3
+ OBJECTS = arith.o file.o compress.o gen.o uncompface.o
+ SOURCES = compface.c uncompface.o arith.c file.c compress.c gen.c \
+ cmain.c uncmain.c
++SRCS = arith.c file.c compress.c gen.c uncompface.c
+ HDRS = compface.h data.h
+ OTHERS = README $(NAME).1 $(NAME).3 Makefile
+
+ CC = cc
+ CDEFS = $(SYSV)
+-CCOMP = -g
++CCOMP = -pipe -O2
+ CFLAGS = $(CDEFS) $(CCOMP)
+
+-all: $(NAME) $(UNNAME)
++all: lib$(NAME).a lib$(NAME).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) $(NAME) $(UNNAME)
+
+-$(NAME) : cmain.o compface.o $(LIBNAME)
+- $(CC) $(CFLAGS) -o $(NAME) cmain.o compface.o $(LIBNAME)
++$(NAME) : cmain.o compface.o
++ $(CC) $(CFLAGS) -o $(NAME) cmain.o compface.o -L./ -lcompface
+
+ $(UNNAME) : uncmain.o $(LIBNAME)
+- $(CC) $(CFLAGS) -o $(UNNAME) uncmain.o $(LIBNAME)
+-
+-$(LIBNAME) : $(OBJECTS)
+- ar rc $(LIBNAME) $(OBJECTS)
+- -ranlib $(LIBNAME)
++ $(CC) $(CFLAGS) -o $(UNNAME) uncmain.o -L./ -lcompface
+
+ lint :
+ lint -abchx $(SOURCES)
+
+ clean :
+- rm -f *.o *.a *.sh core a.out $(NAME) $(UNNAME)
++ rm -f *.o *po *so *.a *.so.* *.sh core a.out $(NAME) $(UNNAME)
+
+ install : $(NAME) $(UNNAME) $(LIBNAME)
+- -cp $(NAME) $(EXECUTABLE)
+- strip $(EXECUTABLE)
+- -cp $(UNNAME) $(UNEXECUTABLE)
+- strip $(UNEXECUTABLE)
+- -cp $(NAME).1 $(MAN1DIR)
+- rm -f $(MAN1DIR)/$(UNNAME).1
+- -ln $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1
+- -cp $(LIBNAME) $(LIBRARY)
+- -cp $(NAME).3 $(MAN3DIR)
+- rm -f $(MAN3DIR)/$(UNNAME).3
+- -ln $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3
++ install -c -s -o bin -m 755 $(NAME) $(EXECUTABLE)
++ install -c -s -o bin -m 755 $(UNNAME) $(UNEXECUTABLE)
++ install -c -g bin -o bin -m 444 $(NAME).1 $(MAN1DIR)
++ -rm -f $(MAN1DIR)/$(UNNAME).1*
++ ln -fs $(MAN1DIR)/$(NAME).1 $(MAN1DIR)/$(UNNAME).1
++ install -c -o bin -m 444 $(LIBNAME) $(LIBRARY)
++ install -c -o bin -m 444 lib$(NAME).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) $(LIBRARY)
++ install -c -g bin -o bin -m 444 $(NAME).3 $(MAN3DIR)
++ rm -f $(MAN3DIR)/$(UNNAME).3*
++ ln -fs $(MAN3DIR)/$(NAME).3 $(MAN3DIR)/$(UNNAME).3
++ install -m 444 -o bin -g bin -c compface.h $(INCDIR)
+
+ shar :
+ shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh
+@@ -88,3 +90,5 @@
+ gen.o: gen.c compface.h data.h
+ uncmain.o: uncmain.c compface.h data.h
+ uncompface.o: uncompface.c compface.h data.h
++
++.include <bsd.lib.mk>
diff --git a/mail/faces/patches/patch-ad b/mail/faces/patches/patch-ad
index 54b77d87cd5..5e5e6d5bd54 100644
--- a/mail/faces/patches/patch-ad
+++ b/mail/faces/patches/patch-ad
@@ -1,101 +1,34 @@
-$NetBSD: patch-ad,v 1.2 1998/08/07 11:09:35 agc Exp $
-
-diff -c -N ../faces/scripts/Makefile ./scripts/Makefile
-*** ../faces/scripts/Makefile Tue May 7 00:55:26 1991
---- ./scripts/Makefile Wed Dec 11 09:30:23 1996
-***************
-*** 15,30 ****
- BINDIR = /usr/local/faces/bin
-
- install:
-! install -c -m 755 addxface $(BINDIR)
-! install -c -m 755 mailq.faces $(BINDIR)
-! install -c -m 755 from.faces $(BINDIR)
-! install -c -m 755 lpqall.faces $(BINDIR)
-! install -c -m 755 rotary.faces $(BINDIR)
-! install -c -m 755 facesaddr $(BINDIR)
-! install -c -m 755 facesall $(BINDIR)
-! install -c -m 755 mkfacesindex $(BINDIR)
-! install -c -m 755 newscheck.faces $(BINDIR)
-! install -c -m 755 newsfrom.faces $(BINDIR)
-
- install2:
- install -c -m 755 faces $(LBINDIR)
---- 15,30 ----
- BINDIR = /usr/local/faces/bin
-
- install:
-! install -c -o bin -m 755 addxface $(BINDIR)
-! install -c -o bin -m 755 mailq.faces $(BINDIR)
-! install -c -o bin -m 755 from.faces $(BINDIR)
-! install -c -o bin -m 755 lpqall.faces $(BINDIR)
-! install -c -o bin -m 755 rotary.faces $(BINDIR)
-! install -c -o bin -m 755 facesaddr $(BINDIR)
-! install -c -o bin -m 755 facesall $(BINDIR)
-! install -c -o bin -m 755 mkfacesindex $(BINDIR)
-! install -c -o bin -m 755 newscheck.faces $(BINDIR)
-! install -c -o bin -m 755 newsfrom.faces $(BINDIR)
-
- install2:
- install -c -m 755 faces $(LBINDIR)
-diff -c -N ../faces/scripts/addxface ./scripts/addxface
-*** ../faces/scripts/addxface Tue Nov 19 05:05:58 1991
---- ./scripts/addxface Tue Dec 10 17:52:45 1996
-***************
-*** 15,21 ****
- # than version v1.6.0:
- #$olddb = 1;
-
-! $faces = '/usr/local/faces';
- $umask = 000;
-
- # addxface - install any X-Face: in the header of the given mail message
---- 15,21 ----
- # than version v1.6.0:
- #$olddb = 1;
-
-! $faces = '/usr/local/share/faces';
- $umask = 000;
-
- # addxface - install any X-Face: in the header of the given mail message
-diff -c -N ../faces/scripts/facesall ./scripts/facesall
-*** ../faces/scripts/facesall Mon Nov 25 01:30:24 1991
---- ./scripts/facesall Tue Dec 10 17:57:49 1996
-***************
-*** 20,26 ****
- #$olddb = 1;
-
- $cols = 15; $rows = 13;
-! $FACEDIR = '/usr/local/faces';
-
- # facesall - show all available faces in the given faces bitmap directory
- # usage: facesall [ -a ] [ bitmap_directory ]
---- 20,26 ----
- #$olddb = 1;
-
- $cols = 15; $rows = 13;
-! $FACEDIR = '/usr/local/share/faces';
-
- # facesall - show all available faces in the given faces bitmap directory
- # usage: facesall [ -a ] [ bitmap_directory ]
-diff -c -N ../faces/scripts/mkfacesindex ./scripts/mkfacesindex
-*** ../faces/scripts/mkfacesindex Tue Nov 19 05:05:58 1991
---- ./scripts/mkfacesindex Tue Dec 10 17:58:16 1996
-***************
-*** 15,21 ****
- # than version v1.6.0:
- #$olddb = 1;
-
-! $FACEDIR = '/usr/local/faces';
-
- # mkfacesindex - make a .index file at the root of a faces database that
- # facesall can use more speedily instead of tabulating the
---- 15,21 ----
- # than version v1.6.0:
- #$olddb = 1;
-
-! $FACEDIR = '/usr/local/share/faces';
-
- # mkfacesindex - make a .index file at the root of a faces database that
- # facesall can use more speedily instead of tabulating the
-Common subdirectories: ../faces/scripts/rotary and ./scripts/rotary
+diff -ur ../faces-DIST/compface/compface.1 ./compface/compface.1
+--- ../faces-DIST/compface/compface.1 Fri Mar 15 15:10:29 1991
++++ ./compface/compface.1 Fri Oct 1 14:32:06 1999
+@@ -12,6 +12,8 @@
+ .LP
+ .B uncompface
+ [
++.B \-X
++] [
+ .I infile
+ [
+ .I outfile
+@@ -25,7 +27,7 @@
+ face image files.
+ .I uncompface
+ is an inverse filter which performs an inverse transformation with no
+-loss of data.
++loss of data.
+ The algorithm used is highly tuned for its purpose and achieves better
+ than a five to one compression ratio on average.
+ Arguments operate identically for both programmes.
+@@ -56,6 +58,12 @@
+ .I compface
+ averages less than 200 characters.
+ The average number of output lines is three.
++.SH OPTIONS
++.TP 12
++.B \-X
++The same as
++.I uncompface
++| ikon2xbm. Usefull for exmh!
+ .SH DIAGNOSTICS
+ Exit status is normally 0.
+ Possible errors include IO errors when opening, reading or writing
diff --git a/mail/faces/patches/patch-ae b/mail/faces/patches/patch-ae
index 501eeb8d3bb..016326a1b08 100644
--- a/mail/faces/patches/patch-ae
+++ b/mail/faces/patches/patch-ae
@@ -1,34 +1,83 @@
-$NetBSD: patch-ae,v 1.2 1998/08/07 11:09:35 agc Exp $
-
---- filters/rs2icon.c 1998/02/25 13:51:18 1.1
-+++ filters/rs2icon.c 1998/02/25 13:51:55
-@@ -21,7 +21,7 @@
- */
+diff -ur ../faces-DIST/compface/file.c ./compface/file.c
+--- ../faces-DIST/compface/file.c Wed Jun 19 16:29:13 1991
++++ ./compface/file.c Fri Oct 1 14:32:06 1999
+@@ -15,6 +15,8 @@
- #include <stdio.h>
--#ifdef SYSV32 || hpux
-+#if defined(SYSV32) || defined(hpux)
- #include <string.h>
- #else
- #include <strings.h>
---- filters/ikon2icon.c 1998/02/25 13:51:11 1.1
-+++ filters/ikon2icon.c 1998/02/25 13:57:09
-@@ -13,12 +13,17 @@
- * either to the comments or the code of this program, but if reported
- * to me, then an attempt will be made to fix them.
- */
-+#include <sys/param.h>
+ #include "compface.h"
- #include <stdio.h>
++int xbitmap=0;
++
+ void
+ BigRead(fbuf)
+ register char *fbuf;
+@@ -127,10 +129,19 @@
+ {
+ register char *s, *t;
+ register int i, bits, digits, words;
++ extern int xbitmap;
++ int digsperword = DIGSPERWORD;
++ int wordsperline = WORDSPERLINE;
- #define PATCHLEVEL 1
-
--#define GETS (void) gets /* To make lint happy. */
-+#if (defined(BSD) && BSD >= 199306)
-+#define GETS(s) { (void)fgets(s, sizeof(s), stdin); s[sizeof(s) - 1] = 0; }
-+#else
-+#define GETS(s) (void) gets(s) /* To make lint happy. */
-+#endif
- #define PRINTF (void) printf
- #define SPRINTF (void) sprintf
- #define SSCANF (void) sscanf
+ s = F;
+ t = fbuf;
+ bits = digits = words = i = 0;
++ if (xbitmap) {
++ sprintf(t,"#define noname_width 48\n#define noname_height 48\nstatic char noname_bits[] = {\n ");
++ while (*t) t++;
++ digsperword = 2;
++ wordsperline = 15;
++ }
+ while (s < F + PIXELS)
+ {
+ if ((bits == 0) && (digits == 0))
+@@ -138,25 +149,43 @@
+ *(t++) = '0';
+ *(t++) = 'x';
+ }
+- if (*(s++))
+- i = i * 2 + 1;
+- else
+- i *= 2;
++ if (xbitmap) {
++ if (*(s++))
++ i = (i >> 1) | 0x8;
++ else
++ i >>= 1;
++ }
++ else {
++ if (*(s++))
++ i = i * 2 + 1;
++ else
++ i *= 2;
++ }
+ if (++bits == BITSPERDIG)
+ {
+- *(t++) = *(i + HexDigits);
++ if (xbitmap) {
++ t++;
++ t[-(digits & 1) * 2] = *(i + HexDigits);
++ }
++ else *(t++) = *(i + HexDigits);
+ bits = i = 0;
+- if (++digits == DIGSPERWORD)
++ if (++digits == digsperword)
+ {
++ if (xbitmap && (s >= F + PIXELS)) break;
+ *(t++) = ',';
+ digits = 0;
+- if (++words == WORDSPERLINE)
++ if (++words == wordsperline)
+ {
+ *(t++) = '\n';
++ if (xbitmap) *(t++) = ' ';
+ words = 0;
+ }
+ }
+ }
++ }
++ if (xbitmap) {
++ sprintf(t, "}\n");
++ while (*t) t++;
+ }
+ *(t++) = '\0';
+ }
diff --git a/mail/faces/patches/patch-af b/mail/faces/patches/patch-af
new file mode 100644
index 00000000000..2f4a9d7e079
--- /dev/null
+++ b/mail/faces/patches/patch-af
@@ -0,0 +1,26 @@
+diff -ur ../faces-DIST/compface/uncmain.c ./compface/uncmain.c
+--- ../faces-DIST/compface/uncmain.c Thu Oct 24 12:28:07 1991
++++ ./compface/uncmain.c Fri Oct 1 14:32:06 1999
+@@ -18,6 +18,8 @@
+ #include <fcntl.h>
+ #include "compface.h"
+
++extern int xbitmap;
++
+ /* the buffer is longer than needed to handle sparse input formats */
+ #define FACEBUFLEN 2048
+ char fbuf[FACEBUFLEN];
+@@ -59,6 +61,13 @@
+ while (**argv)
+ if (*((*argv)++) == '/')
+ cmdname = *argv; /* find the command's basename */
++
++ if (argc > 1 && !strcmp(argv[1], "-X"))
++ {
++ xbitmap++;
++ argc--;
++ argv++;
++ }
+
+ if (argc > 3)
+ {
diff --git a/mail/faces/patches/patch-ag b/mail/faces/patches/patch-ag
new file mode 100644
index 00000000000..cb6c1814063
--- /dev/null
+++ b/mail/faces/patches/patch-ag
@@ -0,0 +1,11 @@
+diff -ur ../faces-DIST/extern.h ./extern.h
+--- ../faces-DIST/extern.h Tue Nov 19 15:00:48 1991
++++ ./extern.h Fri Oct 1 14:32:02 1999
+@@ -82,6 +82,7 @@
+ extern int facetype ; /* Type of face file found. */
+ extern int firsttime ; /* Zeroised after first mail/printer check. */
+ extern int flashes ; /* Number of flashes for arrival of new mail. */
++extern int border_width ; /* Border width of window. */
+ extern int fromc_found ; /* Set if "From:" line found during processing. */
+ extern int froms_found ; /* Set if "From " line found during processing. */
+ extern int height ; /* Height in pixels of faces display. */
diff --git a/mail/faces/patches/patch-ah b/mail/faces/patches/patch-ah
new file mode 100644
index 00000000000..4cff3ebdbbe
--- /dev/null
+++ b/mail/faces/patches/patch-ah
@@ -0,0 +1,56 @@
+diff -ur ../faces-DIST/faces.h ./faces.h
+--- ../faces-DIST/faces.h Tue Nov 19 15:00:49 1991
++++ ./faces.h Fri Oct 1 14:32:03 1999
+@@ -44,7 +44,7 @@
+ #endif /* STDC */
+
+ #ifndef FACEDIR
+-#define FACEDIR "/usr/local/faces"
++#define FACEDIR "@localbase@/faces"
+ #endif /*FACEDIR*/
+
+ #define CLOSE (void) close /* To make line happy. */
+@@ -102,9 +102,10 @@
+ enum mon_type { MONNEW, MONALL, MONPRINTER, MONPROG, MONUSERS } ;
+
+ /* X resources used by faces. */
+-enum res_type { R_WINGEOM, R_ICONGEOM, R_FGCOLOR, R_BGCOLOR,
+- R_FONT, R_BGICON, R_PERIOD, R_BELL,
+- R_FLASH, R_LOWER, R_RAISE, R_BUT1CLR, R_DISPHOST,
++enum res_type { R_WINGEOM, R_ICONGEOM, R_FGCOLOR, R_BGCOLOR,
++ R_FONT, R_BGICON, R_PERIOD, R_BELL,
++ R_FLASH, R_BORDERWIDTH, R_LOWER, R_RAISE,
++ R_BUT1CLR, R_DISPHOST,
+ #ifdef AUDIO_SUPPORT
+ R_AUDIO, R_AUDIOCMD, R_BELLFILE
+ #endif /*AUDIO_SUPPORT*/
+@@ -193,8 +194,6 @@
+ #endif /*NOUTIME*/
+
+ extern char *getenv P(()) ;
+-extern char *malloc P(()) ;
+-extern char *realloc P(()) ;
+ extern char *index P(()) ;
+ extern char *rindex P(()) ;
+ extern char *strcpy P(()) ;
+@@ -204,6 +203,8 @@
+ extern FILE *popen P(()) ;
+ #endif /*SYSV32*/
+
++#include <sys/param.h>
++
+ /* Various programs that are used by faces.
+ * You might need to change these on some machines.
+ */
+@@ -217,7 +218,11 @@
+ #define PRINTDEF "lpq -P %s"
+
+ /* Updating the faces database: %s replaced with mail update alias name. */
++#if (defined(BSD) && BSD >= 199306)
++#define UPDATEDEF "/usr/sbin/sendmail -oeq -oi %s"
++#else
+ #define UPDATEDEF "/usr/lib/sendmail -oeq -oi %s"
++#endif
+
+ /* Monitoring users on a machine: %s replaced with hostname. */
+ #define USERSDEF "rusers -l %s"
diff --git a/mail/faces/patches/patch-ai b/mail/faces/patches/patch-ai
new file mode 100644
index 00000000000..d6d0eafee9b
--- /dev/null
+++ b/mail/faces/patches/patch-ai
@@ -0,0 +1,9 @@
+diff -ur ../faces-DIST/faces.sendmail ./faces.sendmail
+--- ../faces-DIST/faces.sendmail Mon Jul 1 11:25:50 1991
++++ ./faces.sendmail Fri Oct 1 14:32:02 1999
+@@ -37,4 +37,4 @@
+ -e ': copy' \
+ -e p \
+ -e n \
+- -e 'b copy' | /usr/lib/sendmail "$@"
++ -e 'b copy' | /usr/sbin/sendmail "$@"
diff --git a/mail/faces/patches/patch-aj b/mail/faces/patches/patch-aj
new file mode 100644
index 00000000000..de1cdb7066e
--- /dev/null
+++ b/mail/faces/patches/patch-aj
@@ -0,0 +1,34 @@
+diff -ur ../faces-DIST/filters/Makefile ./filters/Makefile
+--- ../faces-DIST/filters/Makefile Thu Oct 24 12:26:14 1991
++++ ./filters/Makefile Fri Oct 1 14:32:09 1999
+@@ -34,7 +34,7 @@
+
+ CC = cc
+ CDEFS = $(NOINDEX) $(SYSV)
+-CCOMP = -g
++CCOMP = -pipe -O2
+ CFLAGS = $(CCOMP) $(CDEFS)
+
+ all: $(BINARIES)
+@@ -55,12 +55,12 @@
+ rm -f *.o $(BINARIES)
+
+ install: $(BINARIES)
+- install -s -m 751 icon2ikon $(BINDIR)
+- install -s -m 751 ikon2icon $(BINDIR)
+- install -s -m 751 rs2icon $(BINDIR)
+- install -c -m 755 fs2ikon $(BINDIR)
+- install -c -m 755 fs2xbm $(BINDIR)
+- install -c -m 755 ikon2xbm $(BINDIR)
+- install -c -m 755 xbm2ikon $(BINDIR)
+- install -c -m 755 xbmcut48 $(BINDIR)
+- install -c -m 755 xbmsize48 $(BINDIR)
++ install -s -o bin -m 751 icon2ikon $(BINDIR)
++ install -s -o bin -m 751 ikon2icon $(BINDIR)
++ install -s -o bin -m 751 rs2icon $(BINDIR)
++ install -c -o bin -m 755 fs2ikon $(BINDIR)
++ install -c -o bin -m 755 fs2xbm $(BINDIR)
++ install -c -o bin -m 755 ikon2xbm $(BINDIR)
++ install -c -o bin -m 755 xbm2ikon $(BINDIR)
++ install -c -o bin -m 755 xbmcut48 $(BINDIR)
++ install -c -o bin -m 755 xbmsize48 $(BINDIR)
diff --git a/mail/faces/patches/patch-ak b/mail/faces/patches/patch-ak
new file mode 100644
index 00000000000..ad0b01a59ea
--- /dev/null
+++ b/mail/faces/patches/patch-ak
@@ -0,0 +1,22 @@
+diff -ur ../faces-DIST/filters/ikon2icon.c ./filters/ikon2icon.c
+--- ../faces-DIST/filters/ikon2icon.c Mon Apr 15 13:40:02 1991
++++ ./filters/ikon2icon.c Fri Oct 1 14:32:15 1999
+@@ -13,12 +13,17 @@
+ * either to the comments or the code of this program, but if reported
+ * to me, then an attempt will be made to fix them.
+ */
++#include <sys/param.h>
+
+ #include <stdio.h>
+
+ #define PATCHLEVEL 1
+
+-#define GETS (void) gets /* To make lint happy. */
++#if (defined(BSD) && BSD >= 199306)
++#define GETS(s) { (void)fgets(s, sizeof(s), stdin); s[sizeof(s) - 1] = 0; }
++#else
++#define GETS(s) (void) gets(s) /* To make lint happy. */
++#endif
+ #define PRINTF (void) printf
+ #define SPRINTF (void) sprintf
+ #define SSCANF (void) sscanf
diff --git a/mail/faces/patches/patch-al b/mail/faces/patches/patch-al
new file mode 100644
index 00000000000..a3c713c7ffa
--- /dev/null
+++ b/mail/faces/patches/patch-al
@@ -0,0 +1,12 @@
+diff -ur ../faces-DIST/filters/ikon2xbm ./filters/ikon2xbm
+--- ../faces-DIST/filters/ikon2xbm Tue May 7 08:51:50 1991
++++ ./filters/ikon2xbm Fri Oct 1 14:32:09 1999
+@@ -26,7 +26,7 @@
+ \2\
+ \3/' > $tmp
+
+-dim=`wc -l < $tmp | awk '{ print 4 * sqrt }'`
++dim=`wc -l < $tmp | awk '{ print 4 * sqrt(144) }'`
+
+ pr -l1 -t -8 -s, < $tmp |
+ (cat << EOF
diff --git a/mail/faces/patches/patch-am b/mail/faces/patches/patch-am
new file mode 100644
index 00000000000..f204f475eac
--- /dev/null
+++ b/mail/faces/patches/patch-am
@@ -0,0 +1,12 @@
+diff -ur ../faces-DIST/filters/rs2icon.c ./filters/rs2icon.c
+--- ../faces-DIST/filters/rs2icon.c Mon Apr 15 13:40:03 1991
++++ ./filters/rs2icon.c Fri Oct 1 14:32:15 1999
+@@ -21,7 +21,7 @@
+ */
+
+ #include <stdio.h>
+-#ifdef SYSV32 || hpux
++#if defined(SYSV32) || defined(hpux)
+ #include <string.h>
+ #else
+ #include <strings.h>
diff --git a/mail/faces/patches/patch-an b/mail/faces/patches/patch-an
new file mode 100644
index 00000000000..71d93f2021b
--- /dev/null
+++ b/mail/faces/patches/patch-an
@@ -0,0 +1,42 @@
+diff -ur ../faces-DIST/main.c ./main.c
+--- ../faces-DIST/main.c Tue Nov 19 15:00:47 1991
++++ ./main.c Fri Oct 1 14:32:02 1999
+@@ -25,7 +25,7 @@
+ #include <sys/param.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#if !defined(mips) || defined(ultrix)
++#if !defined(mips) || defined(ultrix) || (defined(BSD) && BSD >= 199306)
+ #include <netdb.h>
+ #else
+ #ifdef SYSTYPE_BSD43
+@@ -63,6 +63,7 @@
+ "period", /* Integer: period in seconds between checks. */
+ "bell", /* Integer: number of beeps for new arrival. */
+ "flash", /* Integer: number of flashes for new arrival. */
++ "borderWidth", /* Integer: border width of window. */
+ "lower", /* Boolean: lower window if no mail. */
+ "raise", /* Boolean: raise window on update? */
+ "button1clear", /* Boolean: mouse button 1 clear window? */
+@@ -150,6 +151,7 @@
+ int facetype ; /* Type of face file found. */
+ int firsttime = 1 ; /* Zeroised after first mail/printer check. */
+ int flashes = 0 ; /* Number of flashes for arrival of new mail. */
++int border_width = 2 ; /* Border width of window. */
+ int fromc_found = 0 ; /* Set if "From:" line found during processing. */
+ int froms_found = 0 ; /* Set if "From " line found during processing. */
+ int height ; /* Height in pixels of faces display. */
+@@ -743,9 +745,10 @@
+ if (get_str_resource(R_FONT, str)) read_str(&fontname, str) ;
+ if (get_str_resource(R_BGICON, str)) read_str(&bgicon, str) ;
+
+- if (get_int_resource(R_PERIOD, &intval)) period = intval ;
+- if (get_int_resource(R_BELL, &intval)) beeps = intval ;
+- if (get_int_resource(R_FLASH, &intval)) flashes = intval ;
++ if (get_int_resource(R_PERIOD, &intval)) period = intval ;
++ if (get_int_resource(R_BELL, &intval)) beeps = intval ;
++ if (get_int_resource(R_FLASH, &intval)) flashes = intval ;
++ if (get_int_resource(R_BORDERWIDTH,&intval)) border_width = intval ;
+
+ if (get_bool_resource(R_LOWER, &boolval)) lowerwindow = boolval ;
+ if (get_bool_resource(R_RAISE, &boolval)) raisewindow = boolval ;
diff --git a/mail/faces/patches/patch-ao b/mail/faces/patches/patch-ao
new file mode 100644
index 00000000000..c9c577ee6b3
--- /dev/null
+++ b/mail/faces/patches/patch-ao
@@ -0,0 +1,13 @@
+diff -ur ../faces-DIST/mon.c ./mon.c
+--- ../faces-DIST/mon.c Tue Nov 19 15:00:48 1991
++++ ./mon.c Fri Oct 1 14:32:18 1999
+@@ -23,7 +23,8 @@
+ #endif /* SYSV32 || hpux */
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#if ( !defined(mips) && !defined(TOPIX) ) || defined(ultrix)
++#include <sys/param.h>
++#if ( !defined(mips) && !defined(TOPIX) ) || defined(ultrix) || (defined(BSD) && BSD >= 199306)
+ #include <sys/time.h>
+ #else
+ #ifdef SYSTYPE_BSD43
diff --git a/mail/faces/patches/patch-ap b/mail/faces/patches/patch-ap
new file mode 100644
index 00000000000..107be1c06d6
--- /dev/null
+++ b/mail/faces/patches/patch-ap
@@ -0,0 +1,30 @@
+diff -ur ../faces-DIST/scripts/Makefile ./scripts/Makefile
+--- ../faces-DIST/scripts/Makefile Tue May 7 08:55:26 1991
++++ ./scripts/Makefile Fri Oct 1 14:32:12 1999
+@@ -15,16 +15,16 @@
+ BINDIR = /usr/local/faces/bin
+
+ install:
+- install -c -m 755 addxface $(BINDIR)
+- install -c -m 755 mailq.faces $(BINDIR)
+- install -c -m 755 from.faces $(BINDIR)
+- install -c -m 755 lpqall.faces $(BINDIR)
+- install -c -m 755 rotary.faces $(BINDIR)
+- install -c -m 755 facesaddr $(BINDIR)
+- install -c -m 755 facesall $(BINDIR)
+- install -c -m 755 mkfacesindex $(BINDIR)
+- install -c -m 755 newscheck.faces $(BINDIR)
+- install -c -m 755 newsfrom.faces $(BINDIR)
++ install -c -o bin -m 755 addxface $(BINDIR)
++ install -c -o bin -m 755 mailq.faces $(BINDIR)
++ install -c -o bin -m 755 from.faces $(BINDIR)
++ install -c -o bin -m 755 lpqall.faces $(BINDIR)
++ install -c -o bin -m 755 rotary.faces $(BINDIR)
++ install -c -o bin -m 755 facesaddr $(BINDIR)
++ install -c -o bin -m 755 facesall $(BINDIR)
++ install -c -o bin -m 755 mkfacesindex $(BINDIR)
++ install -c -o bin -m 755 newscheck.faces $(BINDIR)
++ install -c -o bin -m 755 newsfrom.faces $(BINDIR)
+
+ install2:
+ install -c -m 755 faces $(LBINDIR)
diff --git a/mail/faces/patches/patch-aq b/mail/faces/patches/patch-aq
new file mode 100644
index 00000000000..2ce42c087b2
--- /dev/null
+++ b/mail/faces/patches/patch-aq
@@ -0,0 +1,12 @@
+diff -ur ../faces-DIST/scripts/addxface ./scripts/addxface
+--- ../faces-DIST/scripts/addxface Tue Nov 19 15:05:58 1991
++++ ./scripts/addxface Fri Oct 1 14:32:12 1999
+@@ -15,7 +15,7 @@
+ # than version v1.6.0:
+ #$olddb = 1;
+
+-$faces = '/usr/local/faces';
++$faces = '/usr/local/share/faces';
+ $umask = 000;
+
+ # addxface - install any X-Face: in the header of the given mail message
diff --git a/mail/faces/patches/patch-ar b/mail/faces/patches/patch-ar
new file mode 100644
index 00000000000..178202302b2
--- /dev/null
+++ b/mail/faces/patches/patch-ar
@@ -0,0 +1,12 @@
+diff -ur ../faces-DIST/scripts/facesall ./scripts/facesall
+--- ../faces-DIST/scripts/facesall Mon Nov 25 11:30:24 1991
++++ ./scripts/facesall Fri Oct 1 14:32:12 1999
+@@ -20,7 +20,7 @@
+ #$olddb = 1;
+
+ $cols = 15; $rows = 13;
+-$FACEDIR = '/usr/local/faces';
++$FACEDIR = '/usr/local/share/faces';
+
+ # facesall - show all available faces in the given faces bitmap directory
+ # usage: facesall [ -a ] [ bitmap_directory ]
diff --git a/mail/faces/patches/patch-as b/mail/faces/patches/patch-as
new file mode 100644
index 00000000000..0b868736e05
--- /dev/null
+++ b/mail/faces/patches/patch-as
@@ -0,0 +1,12 @@
+diff -ur ../faces-DIST/scripts/mkfacesindex ./scripts/mkfacesindex
+--- ../faces-DIST/scripts/mkfacesindex Tue Nov 19 15:05:58 1991
++++ ./scripts/mkfacesindex Fri Oct 1 14:32:12 1999
+@@ -15,7 +15,7 @@
+ # than version v1.6.0:
+ #$olddb = 1;
+
+-$FACEDIR = '/usr/local/faces';
++$FACEDIR = '/usr/local/share/faces';
+
+ # mkfacesindex - make a .index file at the root of a faces database that
+ # facesall can use more speedily instead of tabulating the
diff --git a/mail/faces/patches/patch-at b/mail/faces/patches/patch-at
new file mode 100644
index 00000000000..86e990f557a
--- /dev/null
+++ b/mail/faces/patches/patch-at
@@ -0,0 +1,96 @@
+diff -ur ../faces-DIST/x11.c ./x11.c
+--- ../faces-DIST/x11.c Tue Nov 19 15:00:50 1991
++++ ./x11.c Fri Oct 1 14:32:03 1999
+@@ -18,10 +18,10 @@
+
+ #include <stdio.h>
+ #include <ctype.h>
+-#if ( !defined(mips) && !defined(TOPIX) ) || defined(ultrix)
++#include <sys/param.h>
++#if ( !defined(mips) && !defined(TOPIX) ) || defined(ultrix) || (defined(BSD) && BSD >= 199306)
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/param.h>
+ #else
+ #ifdef SYSTYPE_BSD43
+ #include <sys/types.h>
+@@ -30,15 +30,16 @@
+ #ifndef TOPIX
+ #include <bsd/sys/types.h>
+ #include <bsd/sys/time.h>
+-#include <sys/param.h>
+ #else
+ #include <sys/bsd_time.h>
+ #endif /*TOPIX*/
+ #endif /*SYSTYPE_BSD43*/
+-#endif /*( !defined(mips) && !defined(TOPIX) ) || defined(ultrix)*/
++#endif /*( !defined(mips) && !defined(TOPIX) ) || defined(ultrix) || (defined(BSD) && BSD >= 199306) */
+ #include "faces.h"
+ #include "extern.h"
+
++#include <sys/param.h>
++
+ #ifdef HASPOLL
+ #include <poll.h>
+ #endif /*HASPOLL*/
+@@ -58,7 +59,6 @@
+
+ #define F_ICON 0 /* Icon index to frame array. */
+ #define F_WINDOW 1 /* Window index to frame array. */
+-#define FACES_BORDER_WIDTH 2
+ #define FRAME_MASK (ButtonPressMask | ExposureMask | \
+ ButtonMotionMask | KeyPressMask)
+ #define ICON_MASK ExposureMask
+@@ -364,11 +364,13 @@
+ init_font() ;
+ gc_mask = GCFont | GCForeground | GCBackground | GCGraphicsExposures ;
+ gc_val.font = sfont->fid ;
+- gc_val.foreground = foregnd ;
+- gc_val.background = backgnd ;
++ gc_val.foreground = BlackPixel(dpy, screen) ;
++ gc_val.background = WhitePixel(dpy, screen) ;
+ gc_val.graphics_exposures = False ;
+ gc = XCreateGC(dpy, root, gc_mask, &gc_val) ;
+
++ gc_val.foreground = foregnd ;
++ gc_val.background = backgnd ;
+ tilegc = XCreateGC(dpy, root, gc_mask, &gc_val) ;
+ if (depth == 1) XSetFillStyle(dpy, tilegc, FillOpaqueStippled) ;
+ else XSetFillStyle(dpy, tilegc, FillTiled) ;
+@@ -459,7 +461,11 @@
+
+ home = getenv("HOME") ;
+ XrmInitialize() ;
++#if (defined(BSD) && BSD >= 199306)
++ STRCPY(name, "/usr/X11R6/lib/X11/app-defaults/Faces") ;
++#else
+ STRCPY(name, "/usr/lib/X11/app-defaults/Faces") ;
++#endif
+
+ /* Get applications defaults file, if any. */
+
+@@ -576,14 +582,14 @@
+ winattrs.event_mask = FRAME_MASK ;
+
+ frame[F_WINDOW] = XCreateWindow(dpy, root, size.x, size.y,
+- size.width, size.height, FACES_BORDER_WIDTH,
++ size.width, size.height, border_width,
+ CopyFromParent, InputOutput, CopyFromParent,
+ CWBackPixel | CWBorderPixel | CWEventMask, &winattrs) ;
+
+ winattrs.event_mask = ICON_MASK ;
+
+ frame[F_ICON] = XCreateWindow(dpy, root,
+- ix, iy, imagewidth, imageheight, FACES_BORDER_WIDTH,
++ ix, iy, imagewidth, imageheight, border_width,
+ CopyFromParent, InputOutput, CopyFromParent,
+ CWBackPixel | CWBorderPixel | CWEventMask, &winattrs) ;
+
+@@ -856,6 +862,7 @@
+ XFillRectangle(dpy, pr[(int) dtype], gc, x, y-9,
+ (unsigned int) textwidth+2, 13) ;
+ XSetFunction(dpy, gc, GXxor) ;
++ XSetForeground(dpy, gc, WhitePixel(dpy, screen));
+ XDrawImageString(dpy, pr[(int) dtype], gc, x, y, str, len) ;
+ XSetFunction(dpy, gc, GXcopy) ;
+ }
diff --git a/mail/faces/patches/patch-au b/mail/faces/patches/patch-au
new file mode 100644
index 00000000000..379acf93783
--- /dev/null
+++ b/mail/faces/patches/patch-au
@@ -0,0 +1,15 @@
+diff -ur ../faces-DIST/y.tab.h ./y.tab.h
+--- ../faces-DIST/y.tab.h Fri Oct 1 14:36:35 1999
++++ ./y.tab.h Fri Oct 1 14:32:03 1999
+@@ -0,0 +1,11 @@
++#define EOL 257
++#define ATOM 258
++#define LIT_DOMAIN 259
++#define QUOTED_STRING 260
++typedef union {
++ char yChar;
++ char *yString;
++ Dom *yDom;
++ Addr *yAddr;
++} YYSTYPE;
++extern YYSTYPE yylval;