*** Makefile.in.orig	Thu Jan 21 16:31:18 1999
--- Makefile.in	Sun Jan 31 14:53:04 1999
***************
*** 6,11 ****
--- 6,19 ----
  	showq postalias postcat postconf postdrop postkick postlock postlog \
  	postmap # man html
  
+ PREFIX?=	/usr/local
+ SBINDIR= 	$(PREFIX)/sbin
+ LIBDIR=		$(PREFIX)/lib
+ MANDIR=		$(PREFIX)/man
+ HTMLDIR=	$(PREFIX)/share/doc
+ ETCDIR= 	/etc
+ SPOOLDIR=	/var/spool
+ 
  default: update
  
  makefiles Makefiles:
***************
*** 40,42 ****
--- 48,83 ----
  	find . -type s -print | xargs rm -f
  	find . -type d -print | xargs chmod 755
  	find . -type f -print | xargs chmod a+r
+ 
+ install:
+ 	@echo "-> Creating postfix config directory $(ETCDIR)/postfix"
+ 	@[ -d $(ETCDIR)/postfix ] || mkdir -p -m 755 $(ETCDIR)/postfix
+ 	@(cd conf ; for file in * ; do \
+ 	   if [ ! -f $(ETCDIR)/postfix/$$file ] ; then \
+ 	      install -m 644 -c $$file $(ETCDIR)/postfix ; \
+ 	   fi ; \
+ 	done)
+ 	@rm $(ETCDIR)/postfix/postfix-script*
+ 	@install -c -m 755 conf/postfix-script-sgid $(ETCDIR)/postfix/postfix-script
+ 	@echo
+ 	@echo "-> Installing postfix sample configs in $(LIBDIR)/postfix"
+ 	@[ -d $(LIBDIR)/postfix ] || mkdir -p -m 755 $(LIBDIR)/postfix
+ 	@install -m 644 -c conf/* $(LIBDIR)/postfix
+ 	@echo
+ 	@echo "-> Creating postfix spool directory $(SPOOLDIR)/postfix"
+ 	@[ -d $(SPOOLDIR)/postfix/etc ] || mkdir -p -m 755 $(SPOOLDIR)/postfix/etc
+ 	@(cd /etc ; cp localtime services resolv.conf $(SPOOLDIR)/postfix/etc)
+ 	@echo
+ 	@echo "-> Installing postfix binaries in $(SBINDIR)"
+ 	@[ -d $(SBINDIR) ] || mkdir -p -m 755 $(SBINDIR)
+ 	@install -m 755 -c -s bin/* $(SBINDIR)
+ 	@install -m 2755 -c -s -g maildrop bin/postdrop $(SBINDIR)
+ 	@echo
+ 	@echo "-> Installing postfix manpages in $(MANDIR)"
+ 	@install -m 644 -c man/man1/* $(MANDIR)/man1
+ 	@install -m 644 -c man/man5/* $(MANDIR)/man5
+ 	@install -m 644 -c man/man8/* $(MANDIR)/man8
+ 	@echo
+ 	@echo "-> Installing postfix HTML docs in $(HTMLDIR)/postfix"
+ 	@[ -d $(HTMLDIR)/postfix ] || mkdir -p -m 755 $(HTMLDIR)/postfix
+ 	@install -m 644 -c html/*.html html/*.gif html/*.fig $(HTMLDIR)/postfix
