1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# This file is part of Mailfromd.
# Copyright (C) 2005, 2007, 2008, 2009, 2010 Sergey Poznyakoff
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
EXTRA_DIST = \
mailfromd.mf\
rc.in\
sendmail-8.13.7.connect.diff\
sendmail-8.14.3.connect.diff\
postfix-macros.sed
noinst_SCRIPTS = rc.mailfromd
pkgdata_DATA = postfix-macros.sed
DEFAULT_PIDFILE = $(DEFAULT_STATE_DIR)/mailfromd.pid
CLEANFILES = rc.mailfromd
.in.mailfromd:
$(AM_V_GEN)\
f=$(sbindir)/`echo "mailfromd" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
sed "s,<DEFAULT_PIDFILE>,$(DEFAULT_PIDFILE),;s,<DEFAULT_DAEMON>,$$f," $< > $@ && chmod +x $@
MF_LINT = $(MF_LINT_$(V))
MF_LINT_ = $(MF_LINT_$(AM_DEFAULT_VERBOSITY))
MF_LINT_0 = @echo LINT $<;
SUFFIXES = .mf .lint
.mf.lint:
$(MF_LINT)$(top_builddir)/src/mailfromd \
--no-site-config --no-user-config \
-I$(top_srcdir)/src -I$(top_srcdir)/mflib \
-I$(top_builddir)/mflib \
--lint $<
check-am: mailfromd.lint
install-data-local:
@test -z "$(DESTDIR)$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
@if [ -r $(DESTDIR)$(sysconfdir)/mailfromd.rc ]; then \
echo >&2 '================================================================='; \
echo >&2 " Found a legacy script file located in:"; \
echo >&2 " $(DESTDIR)$(sysconfdir)/mailfromd.rc"; \
echo >&2 " Not installing mailfromd.mf."; \
echo >&2 " Please read FIXME-xref for more info about upgrading mailfromd"; \
echo >&2 '================================================================='; \
elif [ -r $(DESTDIR)$(sysconfdir)/mailfromd.mf ]; then :; \
else ${INSTALL} -m 644 $(top_srcdir)/etc/mailfromd.mf \
$(DESTDIR)$(sysconfdir)/mailfromd.mf; fi
|