view Makefile.am @ 179:ec3fe72a3e99

Fixed an important bug with folded headers! g_strconcat() returns a *copy* of the string, but hdr->value still pointed to the old header (which probably was a memory leak, too). If the folded part had been quite small it was likely that the new string was at the same position as the old one, thus making everything go well. But if pretty long headers were folded several times it was likely that the new string was allocated somewhere else in memory, thus breaking things. In result mails to lots of recipients (folded header) were frequently only sent to the ones in the first line. Sorry for the inconvenience.
author meillo@marmaro.de
date Fri, 03 Jun 2011 09:52:17 +0200
parents 1db6e1b91ead
children
line wrap: on
line source

EXTRA_DIST = examples docs man tpl misc

SUBDIRS = src man

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-conf_dir rm-run_dir rm-spool_dir rm-log_dir


conf_dir:
	install -d $(DESTDIR)@with_confdir@

rm-conf_dir:
	rmdir $(DESTDIR)@with_confdir@  # removes only if empty


tpl_dir:
	install -d $(DESTDIR)@datadir@/masqmail/tpl
	cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
	chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*

rm-tpl_dir:
	rm -rf $(DESTDIR)@datadir@/masqmail/


doc_dir:
	install -d $(DESTDIR)@docdir@
	cp -r docs $(DESTDIR)@docdir@
	cp -r examples $(DESTDIR)@docdir@
	cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@

rm-doc_dir:
	cd $(DESTDIR)@docdir@ && ( \
	    rm -rf docs examples ; \
	    rm -f ChangeLog NEWS AUTHORS COPYING README TODO ; \
	)
	rmdir $(DESTDIR)@docdir@


run_dir:
	install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail

rm-run_dir:
	rm -rf $(DESTDIR)/var/run/masqmail


log_dir:
	install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@

rm-log_dir:
	rmdir $(DESTDIR)@with_logdir@  # removes only if empty


spool_dir:
	install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@
	install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock
	install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input
	install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl

rm-spool_dir:
	: # removal fails if the dirs are non-empty
	: # this prevents losing spooled files
	rmdir $(DESTDIR)@with_spooldir@/lock
	rmdir $(DESTDIR)@with_spooldir@/input
	rmdir $(DESTDIR)@with_spooldir@/popuidl
	rmdir $(DESTDIR)@with_spooldir@

rmail:
	[ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin"
	sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\
	    contrib/rmail >$(DESTDIR)@prefix@/sbin/rmail
	chmod 755 $(DESTDIR)@prefix@/sbin/rmail

rm-rmail:
	rm -f $(DESTDIR)@prefix@/sbin/rmail


uid_bit: $(DESTDIR)@prefix@/sbin/masqmail
	chmod u+s $(DESTDIR)@prefix@/sbin/masqmail