summaryrefslogtreecommitdiff
path: root/debian/local/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/local/Makefile.in')
-rw-r--r--debian/local/Makefile.in143
1 files changed, 143 insertions, 0 deletions
diff --git a/debian/local/Makefile.in b/debian/local/Makefile.in
new file mode 100644
index 0000000..be8f93f
--- /dev/null
+++ b/debian/local/Makefile.in
@@ -0,0 +1,143 @@
+#!/usr/bin/make -f
+#------------------------------------------------------------------------------
+# vim: syntax=make
+#
+# $Sendmail: Makefile,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $
+#
+# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved.
+#
+# @configure_input@
+#
+# Rules file for Sendmail @sm_version@@sm_revision@(@sm_version_math@)
+# on @sm_dist_name@ @sm_dist_vers@
+# via Debhelper V@DEBIAN_DH@
+#
+# Note: the .in file supports Sendmail @SM_MINVERS@ - @SM_MAXVERS@
+# on Debian slink, potato, woody, testing, sid, ...
+# but the generated file is customized to the version noted above.
+#
+# Richard Nelson <cowboy@debian.org> @sm_date@ @sm_time@ (@sm_utc@)
+#------------------------------------------------------------------------------
+#SHELL=/bin/sh -x
+
+# Include Debian Autoconf settings
+-include ../build/autoconf.mk
+
+SCRIPTS := \
+ parse_mc \
+ Parse_mc.pm \
+ sendmailconfig \
+ sendmail \
+ update_auth \
+ update_conf \
+ update_db \
+ update_mc \
+ update_ldap \
+ update_mk \
+ update_notices \
+ update_sendmail \
+ update_smrsh \
+ update_sys \
+ update_tcpd \
+ update_tls \
+
+all: ;
+
+clean:
+ rm -rf core *~ qtool.new;
+
+setup:
+ for file in $${SCRIPTS}; do \
+ chmod ug+x $$file; \
+ done;
+
+build-indep: setup
+build-arch: setup
+
+install-indep: build-indep
+install-arch: build-arch
+ #
+ # Debian Local additions / changes
+ #
+ # ${sysconfdir}/mail - unconditional
+ #
+ $(INSTALL) -d -o mail -g mail ${sysconfdir}/mail/peers;
+ $(INSTALL_DATA) -o mail -g mail provider \
+ ${sysconfdir}/mail/peers/provider;
+ $(INSTALL_DATA) -o mail -g mail service.switch* ${sysconfdir}/mail/;
+ #
+ # ${bindir} - unconditional
+ #
+ $(INSTALL) -d ${bindir};
+ ln -sf ../share/sendmail/sendmail ${bindir}/mailq;
+ #
+ # ${sbindir} - unconditional
+ #
+ $(INSTALL) -d ${sbindir};
+ $(INSTALL) -d ${mandir}/man8;
+ ln -sf ../share/sendmail/sendmail ${sbindir}/mailstats;
+ ln -sf ../share/sendmail/sendmail ${sbindir}/purgestat;
+ ln -sf ../share/sendmail/sendmail ${sbindir}/runq;
+ $(INSTALL_DATA) runq.8 ${mandir}/man8;
+ $(INSTALL_SCRIPT) sendmailconfig ${sbindir};
+ $(INSTALL_DATA) sendmailconfig.8 ${mandir}/man8;
+ #
+ # ${datadir} - conditional
+ #
+ if (grep -qEe "^#LDAP:[[:space:]]*yes" ../build/site.config.m4); then \
+ $(INSTALL_SCRIPT) update_ldap ${datadir}/sendmail; \
+ fi;
+ if (grep -qEe "^#AUTH:[[:space:]]*yes" ../build/site.config.m4); then \
+ $(INSTALL_SCRIPT) update_auth ${datadir}/sendmail; \
+ fi;
+ if (grep -qEe "^#TLS:[[:space:]]*yes" ../build/site.config.m4); then \
+ $(INSTALL_SCRIPT) update_tls ${datadir}/sendmail; \
+ fi;
+ #
+ # ${datadir}/sendmail - unconditional
+ #
+ $(INSTALL) -d ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) parse_mc ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) Parse_mc.pm ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) sendmail ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_conf ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_db ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_mc ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_mk ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_notices ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_sendmail ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_smrsh ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_sys ${datadir}/sendmail;
+ $(INSTALL_SCRIPT) update_tcpd ${datadir}/sendmail;
+ #
+ # ${datadir}/sendmail - conditional
+ #
+ $(INSTALL) -d ${datadir}/sendmail;
+ if [ ! -f ${datadir}/sendmail/qtool.pl ]; then \
+ sed -e 's?/usr/bin/env perl?/usr/bin/perl?g' \
+ qtool.pl > qtool.new; \
+ $(INSTALL_SCRIPT) qtool.new ${datadir}/sendmail/qtool.pl; \
+ $(INSTALL_DATA) qtool.8 ${mandir}/man8; \
+ fi;
+ #
+ # ${datadir}/sendmail/cf/feature - conditional
+ #
+ $(INSTALL) -d ${datadir}/sendmail/cf/feature;
+ if [ ! -e ${datadir}/sendmail/cf/feature/local_no_masquerade.m4 ]; then \
+ $(INSTALL_DATA) local_no_masquerade.m4 \
+ ${datadir}/sendmail/cf/feature; \
+ fi;
+
+#-------------
+# Below here is fairly generic really
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+build: build-indep build-arch
+install: install-indep install-arch
+.PHONY: all
+.PHONY: setup
+.PHONY: clean build build-indep build-arch
+.PHONY: install install-indep install-arch
+.PHONY: source diff