# HG changeset patch # User meillo@marmaro.de # Date 1277106016 -7200 # Node ID 3e7136221104f83267c1b2662bac29957e579bd7 # Parent d3e39ba684a351099d4acce69ebdc082abd22782 correct masqmail path in rmail script; remove docs on uninstall on install the correct path to the masqmail executable gets inserted into the rmail script now. now documentation, examples, and the templates are removed on uninstall. Empty directories are the only thing that may remain if one installs masqmail into an unusual path. diff -r d3e39ba684a3 -r 3e7136221104 Makefile.am --- a/Makefile.am Sat Jun 19 19:18:46 2010 +0200 +++ b/Makefile.am Mon Jun 21 09:40:16 2010 +0200 @@ -2,9 +2,9 @@ SUBDIRS = src man -bin_SCRIPTS = contrib/rmail +install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail -install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir +uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir conf_dir: $(DESTDIR)@with_confdir@ @@ -56,3 +56,22 @@ install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl + +rmail: + [ -d "$(DESTDIR)@prefix@/bin" ] || mkdir -p "$(DESTDIR)@prefix@/bin" + sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ + contrib/rmail >$(DESTDIR)@prefix@/bin/rmail + chmod 755 $(DESTDIR)@prefix@/bin/rmail + +rm-rmail: + rm -f $(DESTDIR)@prefix@/bin/rmail + +rm-doc_dir: + cd $(DESTDIR)@docdir@ ;\ + rm -rf docs examples ;\ + rm -f ChangeLog NEWS AUTHORS COPYING README TODO + rmdir $(DESTDIR)@docdir@ + +rm-tpl_dir: + cd $(DESTDIR)@datadir@ ;\ + rm -rf masqmail diff -r d3e39ba684a3 -r 3e7136221104 Makefile.in --- a/Makefile.in Sat Jun 19 19:18:46 2010 +0200 +++ b/Makefile.in Mon Jun 21 09:40:16 2010 +0200 @@ -14,7 +14,6 @@ # PARTICULAR PURPOSE. @SET_MAKE@ - VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ @@ -48,29 +47,6 @@ CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__installdirs = "$(DESTDIR)$(bindir)" -SCRIPTS = $(bin_SCRIPTS) SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -230,7 +206,6 @@ with_user = @with_user@ EXTRA_DIST = examples docs man tpl tests misc SUBDIRS = src man -bin_SCRIPTS = contrib/rmail all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive @@ -286,40 +261,6 @@ distclean-hdr: -rm -f config.h stamp-h1 -install-binSCRIPTS: $(bin_SCRIPTS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e 'h;s|.*|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) { files[d] = files[d] " " $$1; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$4, $$1 } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-binSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 's,.*/,,;$(transform)'`; \ - test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(bindir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. @@ -633,12 +574,9 @@ exit 1; } >&2 check-am: all-am check: check-recursive -all-am: Makefile $(SCRIPTS) config.h +all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: - for dir in "$(DESTDIR)$(bindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive @@ -691,7 +629,7 @@ install-dvi-am: -install-exec-am: install-binSCRIPTS +install-exec-am: install-html: install-html-recursive @@ -731,7 +669,7 @@ ps-am: -uninstall-am: uninstall-binSCRIPTS +uninstall-am: uninstall-local .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive @@ -742,18 +680,32 @@ dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ distclean distclean-generic distclean-hdr distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-binSCRIPTS \ - install-data install-data-am install-data-local install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ - tags-recursive uninstall uninstall-am uninstall-binSCRIPTS + html-am info info-am install install-am install-data \ + install-data-am install-data-local install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am uninstall-local -install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir +#bin_SCRIPTS = contrib/rmail + +install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail + +uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir + +rm-doc_dir: + cd $(DESTDIR)@docdir@ ;\ + rm -rf docs examples ;\ + rm -f ChangeLog NEWS AUTHORS COPYING README TODO + rmdir $(DESTDIR)@docdir@ + +rm-tpl_dir: + cd $(DESTDIR)@datadir@ ;\ + rm -rf masqmail conf_dir: $(DESTDIR)@with_confdir@ @@ -796,6 +748,15 @@ install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl +rmail: + [ -d "$(DESTDIR)@prefix@/bin" ] || mkdir -p "$(DESTDIR)@prefix@/bin" + sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ + contrib/rmail >$(DESTDIR)@prefix@/bin/rmail + chmod 755 $(DESTDIR)@prefix@/bin/rmail + +rm-rmail: + rm -f $(DESTDIR)@prefix@/bin/rmail + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: