--- sendmail-8.14.4.orig/debian/Debian-specific +++ sendmail-8.14.4/debian/Debian-specific @@ -0,0 +1,212 @@ +Please take a gander at /usr/share/doc/sendmail-doc/sendmail/README.Debian.gz +(for which you need to install sendmail-doc) + - it has a quick overview of important matters. + +Changes: Items that cause a functional difference in the way + sendmail works. + + These items *may* bite you if you aren't careful ! + +Removed: Items that are not shipped + +Enhancements: Items above and beyond the base sendmail distribution + These will be Debian add ons, or items the sendmail folk + consider *not ready for prime time* (the _FFR_'s). + + These items should *not* bite you, but be aware that + other distributions may not have anything comparable. + +Patches: Items correcting flaws in the original sendmail distribution + these items are culled from c.m.s, notes from developers, + and user input. + ++++++++++++++++++++++++++++++Sendmail 8.12.0:++++++++++++++++++++++++++++++++ + + Changes:------------------------------------------------------------- + 1) rmail/rmail.c: Deliver mail foreground, not queued + Roland Rosenfeld (closes: bug #31138) + + 2) cf/feature/local_procmail.m4: Remove -Y from procmail + (closes: bug #25639) + + 3) sendmail/control.c: Make control socket mode 0660 + + 4) cf/mailer/cyrus.m4 Support cyrus-deliver + + 5) cf/mailer/local.m4 Support FEATURE(dont_masquerade_local) + + Removed:------------------------------------------------------------- + + 1) TLS support disabled because the maintainer is in the US, + he'll need to wait until Debian supports crypto export from US. + + 2) smtpd alias for sendmail (in smtpd package) + moved to /usr/lib/sm.bin + + 3) hoststat alias for sendmail (in newscache package) + moved to /usr/lib/sm.bin + + 4) vacation vacation program (in vacation package) + moved to /usr/lib/sm.bin + + Enhancements:-------------------------------------------------------- + 1) cf/cf/debproto.m4: Sample, mimimal sendmail.mc file + cf/ostype/debian.m4: Debian customizations for OSTYPE(debian) + + 2) cf/feature/dont_masquerade_local.m4 -- superceded by + FEATURE(local_no_masquerade) + + 3) cf/hack/nodns.m4: /etc/mail/service.switch-nodns + (closes: bug#24608) + + 4) /etc/mail/sendmail.conf + /etc/init.d/sendmail Nice, powerfull means to control sendmail + + Patches:------------------------------------------------------------- + 1) cf/mailer/cyrus.m4: Support Debian cyrus delivery agent pkg + Manoj Srivastava (closes: bug #63441) + ++++++++++++++++++++++++++++++Sendmail 8.11.6:++++++++++++++++++++++++++++++++ + + Changes:------------------------------------------------------------- + 1) rmail/rmail.c: Deliver mail foreground, not queued + Roland Rosenfeld (closes: bug #31138) + + 2) cf/feature/local_procmail.m4: Remove -Y from procmail + (closes: bug #25639) + + 3) sendmail/control.c: Make control socket mode 0660 + + 4) cf/mailer/cyrus.m4 Support cyrus-deliver + + 5) cf/mailer/local.m4 Support FEATURE(dont_masquerade_local) + + Removed:------------------------------------------------------------- + 1) TLS support disabled because the maintainer is in the US, + he'll need to wait until Debian supports crypto export from US. + 2) smtpd alias for sendmail (in smtpd package) + moved to /usr/lib/sm.bin + 3) hoststat alias for sendmail (in newscache package) + moved to /usr/lib/sm.bin + 4) vacation vacation program (in vacation package) + moved to /usr/lib/sm.bin + + Enhancements:-------------------------------------------------------- + 1) cf/cf/debproto.m4: Sample, mimimal sendmail.mc file + cf/ostype/debian.m4: Debian customizations for OSTYPE(debian) + + 2) cf/feature/dont_masquerade_local.m4 + cf/mailer/local.m4: Don't masquerade local to local delivery + Wichert Akkerman + + 3) cf/hack/nodns.m4: /etc/mail/service.switch-nodns + (closes: bug#24608) + + 4) /etc/default/sendmail + /etc/init.d/sendmail Nice, powerfull means to control sendmail + + Patches:------------------------------------------------------------- + 1) cf/mailer/cyrus.m4: Support Debian cyrus delivery agent pkg + Manoj Srivastava (closes: bug #63441) + + ++++++++++++++++++++++++++++++Sendmail 8.10.2:++++++++++++++++++++++++++++++++ + + Changes:------------------------------------------------------------- + 1) rmail/rmail.c: Deliver mail foreground, not queued + Roland Rosenfeld (closes: bug #31138) + + 2) cf/feature/local_procmail.m4: Remove -Y from procmail + (closes: bug #25639) + + 3) sendmail/control.c: Make control socket mode 0660 + + Removed:------------------------------------------------------------- + 1) smtpd alias for sendmail (in smtpd package) + 2) hoststat alias for sendmail (in newscache package) + 3) vacation vacation program (in vacation package) + + Enhancements:-------------------------------------------------------- + 1) cf/cf/debproto.m4: Sample, mimimal sendmail.mc file + cf/ostype/debian.m4: Debian customizations for OSTYPE(debian) + + 2) cf/feature/dont_masquerade_local.m4 + cf/mailer/local.m4: Don't masquerade local to local delivery + Wichert Akkerman + + 3) cf/hack/nodns.m4: /etc/mail/service.switch-nodns + (closes: bug#24608) + + 4) cf/feature/dssl.m4 + cf/feature/imrss.m4 + cf/feature/orbs.m4 Note, these are deprecated and will + cf/feature/orca.m4 be removed soon, please update to use + cf/feature/rbl.m4 the FEATURE(dnsbl,[addr],[message]) + + 5) /etc/default/sendmail + /etc/init.d/sendmail Nice, powerfull means to control sendmail + + Patches:------------------------------------------------------------- + 1) cf/mailer/cyrus.m4: Support Debian cyrus delivery agent pkg + Manoj Srivastava (closes: bug #63441) + + 2) mail.local/mail.local.c: Fix unsafe fgets in mail.local + Wichert Akkerman (closes: bug #63715) + + ++++++++++++++++++++++++++++++Sendmail 8.9.3:+++++++++++++++++++++++++++++++++ + + Changes:------------------------------------------------------------- + 1) rmail/rmail.c: Deliver mail foreground, not queued + Roland Rosenfeld (closes: bug #31138) + + 2) cf/feature/local_procmail.m4: Remove -Y from procmail + (closes: bug #25639) + + Removed:------------------------------------------------------------- + 1) smtpd alias for sendmail (in smtpd package) + 2) hoststat alias for sendmail (in newscache package) + 3) vacation vacation program (in vacation package) + + Enhancements:-------------------------------------------------------- + 1) cf/cf/debproto.m4: Sample, mimimal sendmail.mc file + cf/ostype/debian.m4: Debian customizations for OSTYPE(debian) + + 2) cf/feature/dont_masquerade_local.m4 + cf/mailer/local.m4: Don't masquerade local to local delivery + Wichert Akkerman + + 3) cf/hack/nodns.m4: /etc/mail/service.switch-nodns + (closes: bug#24608) + + 4) cf/feature/dssl.m4 + cf/feature/imrss.m4 + cf/feature/orbs.m4 + cf/feature/orca.m4 + cf/feature/rbl.m4 + cf/m4/cfhead.m4 + cf/m4/proto.m4: Anti spam/relay/etc + Claus Assmann + + 5) cf/m4/proto.m4 (patch) + cf/feature/ldap.m4: Better support of LDAP maps + + 6) cf/feature/local_procmail.m4: FEATURE(local_procmail) before MAILER(local) + + Patches:------------------------------------------------------------- + 1) cf/mailer/cyrus/m4: Support Debian cyrus delivery agent pkg + Manoj Srivastava (closes: bug #63441) + + 2) mail.local/mail.local.c: Fix unsafe fgets in mail.local + Wichert Akkerman (closes: bug #63715) + + 3) src/mime.c + src/headers.c: Duplicate "Content-Transfer-Encoding" + Per Hedeland/c.m.s (closes: bug #28279) + + 4) src/ldap_map.h + src/map.c: Correct LDAP mapping + + 5) src/main.c: sendmail -bi(newalias) DOS + c.m.s (closes: bug #51126) +vim: noautoindent --- sendmail-8.14.4.orig/debian/Makefile.in +++ sendmail-8.14.4/debian/Makefile.in @@ -0,0 +1,998 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = . +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in \ + $(top_srcdir)/./build/debian/libmilter-dev.dirs.in \ + $(top_srcdir)/./build/debian/libmilter-dev.links.in \ + $(top_srcdir)/./build/debian/libmilter-dev.postrm.in \ + $(top_srcdir)/./build/debian/libmilter-dev.preinst.in \ + $(top_srcdir)/./build/debian/libmilter.dirs.in \ + $(top_srcdir)/./build/debian/libmilter.links.in \ + $(top_srcdir)/./build/debian/libmilter.lintian-overrides.in \ + $(top_srcdir)/./build/debian/libmilter.postrm.in \ + $(top_srcdir)/./build/debian/libmilter.preinst.in \ + $(top_srcdir)/./build/debian/rmail.dirs.in \ + $(top_srcdir)/./build/debian/rmail.postrm.in \ + $(top_srcdir)/./build/debian/rmail.preinst.in \ + $(top_srcdir)/./build/debian/sendmail-base.dirs.in \ + $(top_srcdir)/./build/debian/sendmail-base.postinst.in \ + $(top_srcdir)/./build/debian/sendmail-base.postrm.in \ + $(top_srcdir)/./build/debian/sendmail-base.preinst.in \ + $(top_srcdir)/./build/debian/sendmail-base.prerm.in \ + $(top_srcdir)/./build/debian/sendmail-bin.dirs.in \ + $(top_srcdir)/./build/debian/sendmail-bin.postinst.in \ + $(top_srcdir)/./build/debian/sendmail-bin.postrm.in \ + $(top_srcdir)/./build/debian/sendmail-bin.preinst.in \ + $(top_srcdir)/./build/debian/sendmail-bin.prerm.in \ + $(top_srcdir)/./build/debian/sendmail-bin.suid.in \ + $(top_srcdir)/./build/debian/sendmail-cf.dirs.in \ + $(top_srcdir)/./build/debian/sendmail-cf.postrm.in \ + $(top_srcdir)/./build/debian/sendmail-cf.preinst.in \ + $(top_srcdir)/./build/debian/sendmail-doc.dirs.in \ + $(top_srcdir)/./build/debian/sendmail-doc.postrm.in \ + $(top_srcdir)/./build/debian/sendmail-doc.preinst.in \ + $(top_srcdir)/./build/debian/sendmail.cron.daily.in \ + $(top_srcdir)/./build/debian/sendmail.dirs.in \ + $(top_srcdir)/./build/debian/sendmail.init.d.in \ + $(top_srcdir)/./build/debian/sensible-mda.dirs.in \ + $(top_srcdir)/./build/debian/sensible-mda.postrm.in \ + $(top_srcdir)/./build/debian/sensible-mda.preinst.in \ + $(top_srcdir)/./local/sendmail.in \ + $(top_srcdir)/build/autoconf.mk.in \ + $(top_srcdir)/build/autoconf.pl.in \ + $(top_srcdir)/build/autoconf.sh.in \ + $(top_srcdir)/build/debian/changelog.in \ + $(top_srcdir)/build/debian/changelog.sh.in \ + $(top_srcdir)/build/debian/control.m4.in \ + $(top_srcdir)/build/site.config.m4.in \ + $(top_srcdir)/build/update_chaos.in \ + $(top_srcdir)/cf/debian/autoconf.m4.in \ + $(top_srcdir)/cf/debian/sendmail.mc.in \ + $(top_srcdir)/cf/debian/submit.mc.in \ + $(top_srcdir)/cf/domain/debian-msp.m4.in \ + $(top_srcdir)/cf/domain/debian-mta.m4.in \ + $(top_srcdir)/cf/hack/debian_auth.m4.in \ + $(top_srcdir)/cf/hack/virthost_by_ip.m4.in \ + $(top_srcdir)/cf/ostype/debian.m4.in $(top_srcdir)/configure \ + $(top_srcdir)/examples/dhcp/dhclient-exit-hooks.d/sendmail.in \ + $(top_srcdir)/examples/network/if-down.d/sendmail.in \ + $(top_srcdir)/examples/network/if-up.d/sendmail.in \ + $(top_srcdir)/examples/ppp/ip-down.d/sendmail.in \ + $(top_srcdir)/examples/ppp/ip-up.d/sendmail.in \ + $(top_srcdir)/examples/resolvconf/update-libc.d/sendmail.in \ + $(top_srcdir)/examples/sasl/sasl.m4.in \ + $(top_srcdir)/examples/tls/starttls.m4.in \ + $(top_srcdir)/local/bug/sendmail/script.in \ + ./build/config.guess ./build/config.sub ./build/depcomp \ + ./build/install-sh ./build/missing ./build/mkinstalldirs \ + AUTHORS COPYING ChangeLog INSTALL NEWS TODO +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/./build/mkinstalldirs +CONFIG_CLEAN_FILES = build/autoconf.mk build/autoconf.pl \ + build/autoconf.sh build/debian/changelog.sh \ + build/debian/changelog build/update_chaos build/site.config.m4 \ + build/debian/control.m4 libmilter${sm_libmilter_version}.dirs \ + libmilter${sm_libmilter_version}.links \ + libmilter${sm_libmilter_version}.lintian-overrides \ + libmilter${sm_libmilter_version}.postrm \ + libmilter${sm_libmilter_version}.preinst libmilter-dev.dirs \ + libmilter-dev.links libmilter-dev.postrm libmilter-dev.preinst \ + rmail.dirs rmail.postrm rmail.preinst sendmail.dirs \ + sendmail-base.dirs sendmail-base.postinst sendmail-base.postrm \ + sendmail-base.preinst sendmail-base.prerm sendmail-doc.dirs \ + sendmail-doc.postrm sendmail-doc.preinst sendmail-cf.dirs \ + sendmail-cf.postrm sendmail-cf.preinst sendmail.cron.daily \ + sendmail-bin.dirs sendmail.init.d sendmail-bin.postinst \ + sendmail-bin.postrm sendmail-bin.preinst sendmail-bin.prerm \ + sendmail-bin.suid sensible-mda.dirs sensible-mda.postrm \ + sensible-mda.preinst cf/debian/autoconf.m4 \ + cf/debian/sendmail.mc cf/debian/submit.mc \ + cf/domain/debian-msp.m4 cf/domain/debian-mta.m4 \ + cf/hack/debian_auth.m4 cf/hack/virthost_by_ip.m4 \ + cf/ostype/debian.m4 \ + examples/dhcp/dhclient-exit-hooks.d/sendmail \ + examples/network/if-down.d/sendmail \ + examples/network/if-up.d/sendmail \ + examples/ppp/ip-down.d/sendmail examples/ppp/ip-up.d/sendmail \ + examples/resolvconf/update-libc.d/sendmail \ + examples/sasl/sasl.m4 examples/tls/starttls.m4 \ + local/bug/sendmail/script +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEBIAN = @DEBIAN@ +DEBIAN_DH = @DEBIAN_DH@ +DEB_BUILD_ARCH = @DEB_BUILD_ARCH@ +DEB_BUILD_GNU_CPU = @DEB_BUILD_GNU_CPU@ +DEB_BUILD_GNU_SYSTEM = @DEB_BUILD_GNU_SYSTEM@ +DEB_BUILD_GNU_TYPE = @DEB_BUILD_GNU_TYPE@ +DEB_HOST_ARCH = @DEB_HOST_ARCH@ +DEB_HOST_GNU_CPU = @DEB_HOST_GNU_CPU@ +DEB_HOST_GNU_SYSTEM = @DEB_HOST_GNU_SYSTEM@ +DEB_HOST_GNU_TYPE = @DEB_HOST_GNU_TYPE@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SM_CPYRT = @SM_CPYRT@ +SM_DATE = @SM_DATE@ +SM_MAXVERS = @SM_MAXVERS@ +SM_MINVERS = @SM_MINVERS@ +SM_VERS = @SM_VERS@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_version = @ac_version@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +am_version = @am_version@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +buildtree = @buildtree@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sm_auth_lib = @sm_auth_lib@ +sm_badepends = @sm_badepends@ +sm_build_arch = @sm_build_arch@ +sm_custom = @sm_custom@ +sm_custom_s = @sm_custom_s@ +sm_databases = @sm_databases@ +sm_date = @sm_date@ +sm_depends = @sm_depends@ +sm_dist_name = @sm_dist_name@ +sm_dist_vers = @sm_dist_vers@ +sm_editmap_envdef = @sm_editmap_envdef@ +sm_editmap_libs = @sm_editmap_libs@ +sm_enable_auth = @sm_enable_auth@ +sm_enable_bind = @sm_enable_bind@ +sm_enable_hesiod = @sm_enable_hesiod@ +sm_enable_ipv6 = @sm_enable_ipv6@ +sm_enable_ldap = @sm_enable_ldap@ +sm_enable_maillock = @sm_enable_maillock@ +sm_enable_milter = @sm_enable_milter@ +sm_enable_ndbm = @sm_enable_ndbm@ +sm_enable_newdb = @sm_enable_newdb@ +sm_enable_nis = @sm_enable_nis@ +sm_enable_nisplus = @sm_enable_nisplus@ +sm_enable_regex = @sm_enable_regex@ +sm_enable_sfio = @sm_enable_sfio@ +sm_enable_shm = @sm_enable_shm@ +sm_enable_tcpd = @sm_enable_tcpd@ +sm_enable_tls = @sm_enable_tls@ +sm_envdef = @sm_envdef@ +sm_features = @sm_features@ +sm_ffr = @sm_ffr@ +sm_hesiod_parms = @sm_hesiod_parms@ +sm_host_arch = @sm_host_arch@ +sm_incdirs = @sm_incdirs@ +sm_ldap_lib = @sm_ldap_lib@ +sm_libmilter_envdef = @sm_libmilter_envdef@ +sm_libmilter_libs = @sm_libmilter_libs@ +sm_libmilter_version = @sm_libmilter_version@ +sm_libs = @sm_libs@ +sm_libsm_envdef = @sm_libsm_envdef@ +sm_libsm_libs = @sm_libsm_libs@ +sm_libsmdb_envdef = @sm_libsmdb_envdef@ +sm_libsmdb_libs = @sm_libsmdb_libs@ +sm_libsmutil_envdef = @sm_libsmutil_envdef@ +sm_libsmutil_libs = @sm_libsmutil_libs@ +sm_m4_ffr = @sm_m4_ffr@ +sm_mail_local_envdef = @sm_mail_local_envdef@ +sm_mail_local_libs = @sm_mail_local_libs@ +sm_mailstats_envdef = @sm_mailstats_envdef@ +sm_mailstats_libs = @sm_mailstats_libs@ +sm_makemap_envdef = @sm_makemap_envdef@ +sm_makemap_libs = @sm_makemap_libs@ +sm_mapdef = @sm_mapdef@ +sm_newdb_lib = @sm_newdb_lib@ +sm_praliases_envdef = @sm_praliases_envdef@ +sm_praliases_libs = @sm_praliases_libs@ +sm_recommends = @sm_recommends@ +sm_revision = @sm_revision@ +sm_rmail_envdef = @sm_rmail_envdef@ +sm_rmail_libs = @sm_rmail_libs@ +sm_sendmail_envdef = @sm_sendmail_envdef@ +sm_sendmail_libs = @sm_sendmail_libs@ +sm_smrsh_envdef = @sm_smrsh_envdef@ +sm_smrsh_libs = @sm_smrsh_libs@ +sm_suggests = @sm_suggests@ +sm_time = @sm_time@ +sm_utc = @sm_utc@ +sm_vacation_envdef = @sm_vacation_envdef@ +sm_vacation_libs = @sm_vacation_libs@ +sm_version = @sm_version@ +sm_version_beta = @sm_version_beta@ +sm_version_major = @sm_version_major@ +sm_version_math = @sm_version_math@ +sm_version_minor = @sm_version_minor@ +sm_version_r = @sm_version_r@ +sm_version_v = @sm_version_v@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ + +# +# AutoMake +# +ACLOCAL_AMFLAGS = -I build +# +# Subdirectories to process +# +SUBDIRS = cf examples local sensible_mda +# +# Kluge to get my own targets include as recursive +# +RECURSIVE_TARGETS = build-arch-recursive build-indep-recursive \ + install-arch-recursive install-indep-recursive +all: all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): +build/autoconf.mk: $(top_builddir)/config.status $(top_srcdir)/build/autoconf.mk.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +build/autoconf.pl: $(top_builddir)/config.status $(top_srcdir)/build/autoconf.pl.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +build/autoconf.sh: $(top_builddir)/config.status $(top_srcdir)/build/autoconf.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +build/debian/changelog.sh: $(top_builddir)/config.status $(top_srcdir)/build/debian/changelog.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +build/debian/changelog: $(top_builddir)/config.status $(top_srcdir)/build/debian/changelog.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +build/update_chaos: $(top_builddir)/config.status $(top_srcdir)/build/update_chaos.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +build/site.config.m4: $(top_builddir)/config.status $(top_srcdir)/build/site.config.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +build/debian/control.m4: $(top_builddir)/config.status $(top_srcdir)/build/debian/control.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter${sm_libmilter_version}.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter${sm_libmilter_version}.links: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter.links.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter${sm_libmilter_version}.lintian-overrides: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter.lintian-overrides.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter${sm_libmilter_version}.postrm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter.postrm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter${sm_libmilter_version}.preinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter.preinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter-dev.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter-dev.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter-dev.links: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter-dev.links.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter-dev.postrm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter-dev.postrm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libmilter-dev.preinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/libmilter-dev.preinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +rmail.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/rmail.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +rmail.postrm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/rmail.postrm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +rmail.preinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/rmail.preinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-base.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-base.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-base.postinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-base.postinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-base.postrm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-base.postrm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-base.preinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-base.preinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-base.prerm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-base.prerm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-doc.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-doc.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-doc.postrm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-doc.postrm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-doc.preinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-doc.preinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-cf.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-cf.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-cf.postrm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-cf.postrm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-cf.preinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-cf.preinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail.cron.daily: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail.cron.daily.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-bin.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-bin.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail.init.d: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail.init.d.in $(top_srcdir)/./local/sendmail.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-bin.postinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-bin.postinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-bin.postrm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-bin.postrm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-bin.preinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-bin.preinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-bin.prerm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-bin.prerm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sendmail-bin.suid: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sendmail-bin.suid.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sensible-mda.dirs: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sensible-mda.dirs.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sensible-mda.postrm: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sensible-mda.postrm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +sensible-mda.preinst: $(top_builddir)/config.status $(top_srcdir)/./build/debian/sensible-mda.preinst.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +cf/debian/autoconf.m4: $(top_builddir)/config.status $(top_srcdir)/cf/debian/autoconf.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +cf/debian/sendmail.mc: $(top_builddir)/config.status $(top_srcdir)/cf/debian/sendmail.mc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +cf/debian/submit.mc: $(top_builddir)/config.status $(top_srcdir)/cf/debian/submit.mc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +cf/domain/debian-msp.m4: $(top_builddir)/config.status $(top_srcdir)/cf/domain/debian-msp.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +cf/domain/debian-mta.m4: $(top_builddir)/config.status $(top_srcdir)/cf/domain/debian-mta.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +cf/hack/debian_auth.m4: $(top_builddir)/config.status $(top_srcdir)/cf/hack/debian_auth.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +cf/hack/virthost_by_ip.m4: $(top_builddir)/config.status $(top_srcdir)/cf/hack/virthost_by_ip.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +cf/ostype/debian.m4: $(top_builddir)/config.status $(top_srcdir)/cf/ostype/debian.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +examples/dhcp/dhclient-exit-hooks.d/sendmail: $(top_builddir)/config.status $(top_srcdir)/examples/dhcp/dhclient-exit-hooks.d/sendmail.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +examples/network/if-down.d/sendmail: $(top_builddir)/config.status $(top_srcdir)/examples/network/if-down.d/sendmail.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +examples/network/if-up.d/sendmail: $(top_builddir)/config.status $(top_srcdir)/examples/network/if-up.d/sendmail.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +examples/ppp/ip-down.d/sendmail: $(top_builddir)/config.status $(top_srcdir)/examples/ppp/ip-down.d/sendmail.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +examples/ppp/ip-up.d/sendmail: $(top_builddir)/config.status $(top_srcdir)/examples/ppp/ip-up.d/sendmail.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +examples/resolvconf/update-libc.d/sendmail: $(top_builddir)/config.status $(top_srcdir)/examples/resolvconf/update-libc.d/sendmail.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +examples/sasl/sasl.m4: $(top_builddir)/config.status $(top_srcdir)/examples/sasl/sasl.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +examples/tls/starttls.m4: $(top_builddir)/config.status $(top_srcdir)/examples/tls/starttls.m4.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +local/bug/sendmail/script: $(top_builddir)/config.status $(top_srcdir)/local/bug/sendmail/script.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @$(am__cd) '$(distuninstallcheck_dir)' \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ + distclean distclean-generic distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + 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 + +# +# Debian targets, phase out +# +.PHONY: build-indep build-indep-am +.PHONY: build-arch build-arch-am +.PHONY: install-indep install-indep-am +.PHONY: install-arch install-arch-am +build-indep: build-indep-recursive +build-indep-am: +build-arch: build-arch-recursive +build-arch-am: +install-indep: install-indep-recursive +install-indep-am: +install-arch: install-arch-recursive +install-arch-am: + +# 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: --- sendmail-8.14.4.orig/debian/README.Build +++ sendmail-8.14.4/debian/README.Build @@ -0,0 +1,114 @@ + Welcome to the badlands production of Sendmail + 2001/08/07 12:00:00 + +If you're reading this, I'll assume you'd like to build your own private +copy of sendmail using the Debian supplied version as a starting point. + +I've tried (hard) to make this as easy as possible, and would greatly +appreciate any feedback. + +I've built sendmail 8.7.6 - 8.12.0 +on Debian slink - sid with this setup. + +I see a few reasons to build sendmail yourself: + 1) You want to build the current package on an older/newer Debian release + 2) You want to port to a different architecture + 3) You want additional features not included in the stock distribution + 4) You want to remove features from the stock distribution + 5) You want to further customize/patch the stock distribution + +First, you'll need to locate, download, and unpack the source from a +Debian site (which, I guess you've already done that if you are reading this). + +Then, what you do depends upon why you're building: + + 1) You want to build the current package on an older/newer Debian release: + Hopefully, autoconf will automagically take care of things for you! + A) Build the package using whatever tools you're used to: + dpkg-buildpackage -rfakeroot -uc -us + debuild -rfakeroot -uc -us + etc. + B) If you get a successful build, great ! install it and enjoy !!! + C) If you get any build errors, contact me and we'll figure out what + to do... probably will be a simple update to the autoconf setup. + + 2) You want to port to a different architecture: + This is pretty much like 1) except that you're more likely to run + into problems ;-( Likely error candidates are kernel/library headers + and lack of support for desired add-ons (other -dev packages). + + See Known Issues below and Follow the directions for 1) above. + + 3) You want additional features not included in the stock distribution: + This should be fairly rare, as the stock distribution includes just + about everything !!! + + Follow the directions for 5) below and let me know - I'll most likely + add the support to the stock package, especially if it doesn't conflict + with other options. + + 4) You want to remove features from the stock distribution: + This is likely to be due to some kind of library conflict, or a + desire to reduce the package size. + + To remove most features, just make sure you *DO NOT* have the -dev + package for that feature installed - autoconf will do the rest ! + In these cases, Follow the directions for 1) above. + + Otherwise, Follow the directions for 5) below. + + 5) You want to further customize/patch the stock distribution: + A) Decide which features you wish to support (LDAP,SASL,TLS, etc.) + B) Install the apropriate -dev packages (libssl-dev, etc.) + C) Evaluate the following files for updates: + debian/build/site.config.m4.in ==> Sendmail compile config + debian/cf/ostype/debian.m4.in ==> Common .mc file config + debian/cf/domain/debian-msp.m4.in ==> MSP .mc file config + debian/cf/domain/debian-mta.m4.in ==> MTA .mc file config + D) Examine debian/rules for possible overrides (listed in the + header... Don't change debian/rules because it will get replaced + by the configure step. + E) Create any necessary patches (or contact me for assistance). + Patches go in debian/patches/${version}/ and must be able + to be applied with -p0 from debian/.. There's almost always + at least one existing patch you can peek at for an example. + F) Build the package as outlined in 1) above. + G) Please pass the patch on to me, with any description you have + so that if it is common, it can get added to the Debian stock + distribution, and maybe forwarded upstream (with your approval). + +Known issues: + Arch: + arm: 1) + m68k: 2) + Sendmail: + <8.10.0 3) + Misc: + IPV6 4) + + 1) Shared memory support requires a 2.2.x; x>=19 or 2.4.x kernel to + compile on. Runtime support also requires said kernels, but the + support can be turned on/off at runtime, so the real constraint + is having an appropriate kernel for building on. + - Can be overridden via configure option (see top of debia/rules) + - Defaulted by a arch test in configure - if you hit this on + your arch, let me know and I'll update the test. + + 2) Compiler miss-optimizing long-long values + - Supported via a patch making the test variables volatile so + the beast builds. I don't know of any runtime problems, but hey... + + 3) Sendmail <8.10.0 will *NOT* compile against libdb3-dev! + - Install libdb2-dev for the compilation (db2 and db3 can coexist + with newer libc/libdbx packages) - you can then reinstall libdb3-dev + if you need it for other things. + + 4) IPV6 support requires the bind-8 developement package (bind-dev) + because the libc folk have changed things above and beyond bind-8, + and sendmail can't figure out what to do. + +PS: This is obviously a *very* rough draft, please let me know how to make + it more useful for you! + +-- +Rick Nelson (cowboy@debian.org) --- sendmail-8.14.4.orig/debian/README.potato +++ sendmail-8.14.4/debian/README.potato @@ -0,0 +1,128 @@ +# +# COMPILING THE DEBIAN SENDMAIL PACKAGE ON POTATO +# +I am writing this document to summarize the assistance that Richard A +Nelson (Rick) gave me in getting the +sendmail-8.12.1-1 package to compile under Potato. Hopefully this +will save him the effort of responding to other email from people as +clueless as myself. + +Pre-requisites (supplied by potato): + Linux 2.2.19 or 2.4.7+ for shm support. + m4 + debhelper 1.1.17+ + groff + bsdmainutils + libopenldap-dev + libwrap0-dev + liblockfile-dev + libpam0g-dev + automake + libtool + libdb2-dev + dpkg-dev + +Pre-requisites (that you must fulfill on your own): + libsasl-dev + +Instructions on how to fulfill above dependency: +1) download from your nearest Debian source mirror the cyrus-sasl + source. At the point of the writing of this document that was version + 1.5.24-9. The source should be in "debian/pool/main/c/cyrus-sasl", + you will need the following files (possibly replacing the version): + cyrus-sasl_1.5.24-9.diff.gz + cyrus-sasl_1.5.24-9.dsc + cyrus-sasl_1.5.24.orig.tar.gz + +2) extract the source using dpkg-source -x cyrus-sasl_1.5.24-9.dsc + This should create a directory cyrus-sasl-1.5.24/ +3) compile+package sasl, this can be accomplished in different + ways. For either of them you will need to cd into the source + directory you just extracted (cd cyrus-sasl-1.5.24). Then you will + need to execute one of the following sets of commands: + debian/rules build as a normal user + debian/rules binary as root + or + debian/rules binary as root + or + dpkg-buildpackage +4) install the resulting packages with a command similar to: + cd ..;dpkg --install *1.5.24-9*deb + +At this time, all of the prerequisites should be fulfilled to build the +sendmail-8.12.1-1 packages. + +Note: to get a functional sendmail binary, I had to uninstall +libdb2-dev at this point. See note on libdb at the end of this +document. If your sendmail binary segfaults on startup, try removing +libdb2-dev and going through all the remaining steps again. + + +Now on to the real reason why you are reading this, making a sendmail +binary package: +1) download the sendmail source from your nearest Debian source + mirror. At the point of the writing of this document that was + version 8.12.1-1. The source should be in "debian/pool/main/s/sendmail", + you will need the following files (possibly replacing the version): + sendmail_8.12.1-1.diff.gz + sendmail_8.12.1-1.dsc + sendmail_8.12.1.orig.tar.gz +2) extract the source using dpkg-source -x sendmail_8.12.1-1.dsc + This should create a directory named sendmail-8.12.1/ +3) modify debian portion to remove perl-5.6.1 dependancy and to fix a + typo. Some or all of this step will possibly disappear from future + versions. First cd sendmail-8.12.1/debian + a) Fix typo in the debian rules file + Search for the string "dh_testversion 2" + if dh_testversion is immediately preceded by a / remove it. + i.e. if you see /dh_testversion change it to dh_testversion + *** Note: you no longer need to do this as of 8.12.1-2 ! + b) Change directory into sendmail-8.12.1/debian/local. Edit the + following files: + Parse_mc.pm.in + parse_mc.in + update_conf.in + update_mk.in + commenting out the following lines: + use warnings; + no warnings qw(once); + you may optionally also with to remove the -w for the first line + of those files. +4) compile+package sendmail, this can be accomplished in different + ways. For either of them you will need to cd into the source + directory you extracted (cd sendmail-8.12.1). Then you will + need to execute one of the following sets of commands: + debian/rules build as a normal user + debian/rules binary as root + or + debian/rules binary as root + or + dpkg-buildpackage +5) install the resulting packages with a command similar to: + cd ..;dpkg --install *8.12.1-1*deb + +At this point you should have a working sendmail binary installed. It +is time to start testing. If sendmail seg faults on start up (verify +with sendmail -bD), you should read the following note on libdb, +libdb2, and libdb3). + + +Yours, + +William R Thomas + + +A note on libdb, libdb2, and libdb3: + Sendmail and all of the various libraries it uses must all use + the same version of libdb. The quick, dirty, easy way to verify + this is to use ldd to determine which libdb library is being + used in the finished binaries: + ldd /usr/lib/sendmail + ldd /usr/lib/libnss_db.so + ldd /usr/sbin/saslpasswd (if available) + ldd /usr/sbin/slapd (if available) + if everything has gone well, you should see that all of the + above files are using the same version of libdb. + + To get everything on the same version of libdb, I needed to + uninstall libdb2-dev previous to compiling the sendmail package. --- sendmail-8.14.4.orig/debian/TODO +++ sendmail-8.14.4/debian/TODO @@ -0,0 +1,52 @@ +Important: + * qualify /usr/lib/sm.bin/sendmail with version number for coexistance +> react=rvrs_name, ret=0, name=broadcast.localhost. +FAIL: t-smar-3.sh +* compile with tls, posix thread, pmilter + * Parse_mc.pm: scan include() and add as dependancies + * Complete RunAsUser setup for MTA + * udpate_mc: update stats file and RunAsUser accordingly +Misc: + * MSP/MTA split related + - -Am -bs failure if not root (can't write to /var/spool/mqueue) + would have to make queue dir 0660 + * Don't do that ;-) + - queue cleaning for MSP -- do queue cleaning by subdirs + * 8.12 related ? + - recheck milter (Beta9+, its no longer _FFR_) + - debian/examples/milter needs looking at + * Debian stuff + - removing /etc/cron.d/sendmail to stop gid mismatch errors doesn't + work because cron may not see the update before scheduling... + shipping binary suid may solve this (and removes a small window + where calls to sendmail binary fail) + - rules.in: why doesn't a failure in lower make propogate up? + - update debian/patches/patches.index + - create an LDAP migration script + - cleanup/extend sendmailconfig (debconf) + - support submit.mc updates (nullclient, etc) + - put stuff in sendmail.mc appropriately + above/below MAILER_DEFINITIONS + - sendmail -> mgetty/fax linkage + - sensible-mda: make sure mbox exists, setgid mail, drop suid + +Doc: + +FHS: + * /usr/lib/sendmail (obsolete link used by rmail/pine/others) + +IRC comments: +* cowboy: I use a LUSER_RELAY here, which sends everything to another machine. That other machine uses a different maildomain, so I would like the luserrelay to rewrite the from-address when relaying + wichert: does genericstable work with the relay? + cowboy: that probably, but that will rewrite _all_ outgoing mail + wichert: so you want it rewritten *only* when going through the relay? + cowboy: indeed. And only for the receiving persons + wichert: hrm... I guess a new mailer def for the relay eh? + cowboy: probably, FEATUER(luser_relay,host,rewrite_to) or so, with the 3rd param being optional + wichert: hrm... so you using aliases now? + cowboy: no, people who do a group-reply to something I sent just get errors now + wichert: interesting... have you considered masquerading as your luser_relay, and then using generictable/user db to override for the uids that actually exist? + cowboy: sounds like a hack and certainly does not scale very well + wichert: most definetly true ;-{ + +* cowboy: another thing: you might want to make a /usr/doc/sendmail/README.spam or so with info about all spam/relay-control hacks/features that are in the Debian package, with a couple of examples --- sendmail-8.14.4.orig/debian/aclocal.m4 +++ sendmail-8.14.4/debian/aclocal.m4 @@ -0,0 +1,1011 @@ +# generated automatically by aclocal 1.11.6 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, +# Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software +# Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.6], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.11.6])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, +# 2010, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 12 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 16 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, +# Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, +# 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_MAINTAINER_MODE([DEFAULT-MODE]) +# ---------------------------------- +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless `enable' is passed literally. +# For symmetry, `disable' may be passed as well. Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), + [enable], [m4_define([am_maintainer_other], [disable])], + [disable], [m4_define([am_maintainer_other], [enable])], + [m4_define([am_maintainer_other], [enable]) + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode's default is 'disable' unless 'enable' is passed + AC_ARG_ENABLE([maintainer-mode], +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful + (and sometimes confusing) to the casual installer], + [USE_MAINTAINER_MODE=$enableval], + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST([MAINT])dnl +] +) + +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, +# Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software +# Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + --- sendmail-8.14.4.orig/debian/build/Build +++ sendmail-8.14.4/debian/build/Build @@ -0,0 +1,23 @@ +#!/bin/sh +#----------------------------------------------------------------------------- +# $Sendmail: build/Build,v 8.12.0 2001/03/21 11:41:31 cowboy Exp $ +# +# Copyright (c) 2001-2001 Richard Nelson. All Rights Reserved. +# +# Debian script to rationalize builds for Sendmail prior to 8.9.0 +# +#----------------------------------------------------------------------------- +set -e; + +# If ./Makefiles is a directory, we need to use makesendmail +if [ -d Makefiles ]; then + sh makesendmail; + +# If ./Makefile.dist exists, use it +elif [ -f Makefile.dist ]; then + (cd obj* && make;); + +# Otherwise, well, there's not much we can do +else + :; + fi; --- sendmail-8.14.4.orig/debian/build/autoconf.mk.in +++ sendmail-8.14.4/debian/build/autoconf.mk.in @@ -0,0 +1,108 @@ +#!/usr/bin/make -f +#------------------------------------------------------------------------------ +# vim: syntax=make +# +# $Sendmail: autoconf.mk,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 @sm_date@ @sm_time@ (@sm_utc@) +#------------------------------------------------------------------------------ +#SHELL := /bin/sh -x + +# Variables for, and by, Autoconf (Don't touch these! edit config step) +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = ${DESTDIR}@bindir@ +sbindir = ${DESTDIR}@sbindir@ +libexecdir = ${DESTDIR}@libexecdir@ +sysconfdir = ${DESTDIR}@sysconfdir@ +sharedstatedir = ${DESTDIR}@sharedstatedir@ +localstatedir = ${DESTDIR}@localstatedir@ +libdir = ${DESTDIR}@libdir@ +includedir = ${DESTDIR}@includedir@ +oldincludedir = ${DESTDIR}@oldincludedir@ +datarootdir = ${DESTDIR}@datarootdir@ +datadir = ${DESTDIR}@datadir@ +infodir = ${DESTDIR}@infodir@ +mandir = ${DESTDIR}@mandir@ +docdir = ${DESTDIR}@docdir@ +srcdir = @srcdir@ +abs_srcdir = @abs_srcdir@ +top_srcdir = @top_srcdir@ +abs_top_srcdir = @abs_top_srcdir@ +builddir = @builddir@ +abs_builddir = @abs_builddir@ +top_builddir = @top_builddir@ +abs_top_builddir = @abs_top_builddir@ +VPATH = @srcdir@ + +# My private variables +buildtree = @buildtree@ +sm_custom = @sm_custom@ +sm_custom_s = @sm_custom_s@ +sm_version = @sm_version@ +sm_revision = @sm_revision@ + +# I like to preserve timestamps... +INSTALL := @INSTALL@ -p +INSTALL_PROGRAM := @INSTALL_PROGRAM@ +# We'll let the dh_strip program take care of this for us... +#ifeq (,$(findstring nostrip,${DEB_BUILD_OPTIONS})) +# override INSTALL_PROGRAM += -s +# endif +INSTALL_DATA := @INSTALL_DATA@ +# Scripts need to be executable also +INSTALL_SCRIPT := @INSTALL_SCRIPT@ -m 0755 + +# AutoConfig generated +#AC_CC := @CC@ +#AC_CFLAGS := @CFLAGS@ +#AC_DEFS := @CPPFLAGS@ @DEFS@ +#AC_LDFLAGS := @LDFLAGS@ +#AC_LIBS := @LIBS@ + +# Private AutoConfig generated +sm_libmilter_version := @sm_libmilter_version@ + +# Define standard compile/install flags (skip if not yet configured) +DUMMY_CC := $(shell echo '-CC-' | tr '-' '@') +#ifeq ("cc", "${AC_CC}") +# ifeq ("y", "$(shell test -x /usr/bin/gcc-3.2 && echo 'y' || echo 'n')") +# AC_CC := gcc-3.2 +# else +# ifeq ("y", "$(shell test -x /usr/bin/gcc-3.1 && echo 'y' || echo 'n')") +# AC_CC := gcc-3.1 +# endif +# endif +# endif +#ifneq ("${DUMMY_CC}", "${AC_CC}") +# CC := ${AC_CC} +# #DEFS := ${AC_DEFS} ${DEFINES} +# DEFS := ${DEFINES} +# LDFLAGS := ${AC_LDFLAGS} +# LIBS := ${AC_LIBS} +# endif +ifeq (,${CFLAGS}) + CFLAGS := -O2 -g -Wall ${DEFS} + endif +# No longer needed, left as an example: +# Force no optimization for arm - buggy compiler... +#ifeq ("arm", "${DEB_HOST_ARCH}") +# override CFLAGS := -O0 -Wall +# endif +#ifneq (,$(findstring noopt,${DEB_BUILD_OPTIONS})) +# override CFLAGS += -O0 +# endif --- sendmail-8.14.4.orig/debian/build/autoconf.pl.in +++ sendmail-8.14.4/debian/build/autoconf.pl.in @@ -0,0 +1,41 @@ +#------------------------------------------------------------------------------ +# Autoconf variables - in a form suitable for sh, perl +# @configure_input@ +#------------------------------------------------------------------------------ +# Variables for, and by, Autoconf (Don't touch these! edit config step) +my ($PACKAGE_NAME, $PACKAGE_VERSION, $prefix, $exec_prefix, $bindir, + $sbindir, $libexecdir, $datadir, $sysconfdir, $sharedstatedir, + $localstatedir, $libdir, $includedir, $infodir, $mandir, $docdir, + $srcdir, $abs_srcdir, $top_srcdir, $abs_top_srcdir, + $builddir, $abs_builddir, $top_builddir, $abs_top_builddir, + $VPATH); +BEGIN { + $PACKAGE_NAME = "@PACKAGE_NAME@"; + $PACKAGE_VERSION = "@PACKAGE_VERSION@"; + $prefix = "@prefix@"; + $exec_prefix = "@exec_prefix@"; + $bindir = "@bindir@"; + $sbindir = "@sbindir@"; + $libexecdir = "@libexecdir@"; + $sysconfdir = "@sysconfdir@"; + $sharedstatedir = "@sharedstatedir@"; + $localstatedir = "@localstatedir@"; + $libdir = "@libdir@"; + $includedir = "@includedir@"; + $oldincludedir = "@oldincludedir@"; + $datarootdir = "@datarootdir@"; + $datadir = "@datadir@"; + $infodir = "@infodir@"; + $mandir = "@mandir@"; + $docdir = "@docdir@"; + $srcdir = "@srcdir@"; + $abs_srcdir = "@abs_srcdir@"; + $top_srcdir = "@top_srcdir@"; + $abs_top_srcdir = "@abs_top_srcdir@"; + $builddir = "@builddir@"; + $abs_builddir = "@abs_builddir@"; + $top_builddir = "@top_builddir@"; + $abs_top_builddir = "@abs_top_builddir@"; + $VPATH = "@srcdir@"; + }; + --- sendmail-8.14.4.orig/debian/build/autoconf.sh.in +++ sendmail-8.14.4/debian/build/autoconf.sh.in @@ -0,0 +1,33 @@ +#------------------------------------------------------------------------------ +# Autoconf variables - in a form suitable for sh, perl +# @configure_input@ +#------------------------------------------------------------------------------ +# Variables for, and by, Autoconf (Don't touch these! edit config step) +PACKAGE_NAME="@PACKAGE_NAME@"; +PACKAGE_VERSION="@PACKAGE_VERSION@"; +prefix="@prefix@"; +exec_prefix="@exec_prefix@"; +bindir="@bindir@"; +sbindir="@sbindir@"; +libexecdir="@libexecdir@"; +sysconfdir="@sysconfdir@"; +sharedstatedir="@sharedstatedir@"; +localstatedir="@localstatedir@"; +libdir="@libdir@"; +includedir="@includedir@"; +oldincludedir="@oldincludedir@"; +datarootdir="@datarootdir@"; +datadir="@datadir@"; +infodir="@infodir@"; +mandir="@mandir@"; +docdir="@docdir@"; +srcdir="@srcdir@"; +abs_srcdir="@abs_srcdir@" +top_srcdir="@top_srcdir@" +abs_top_srcdir="@abs_top_srcdir@" +builddir="@builddir@" +abs_builddir="@abs_builddir@" +top_builddir="@top_builddir@" +abs_top_builddir="@abs_top_builddir@" +VPATH="@srcdir@" + --- sendmail-8.14.4.orig/debian/build/config.guess +++ sendmail-8.14.4/debian/build/config.guess @@ -0,0 +1,1516 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, +# Inc. + +timestamp='2007-03-06' + +# This file 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 2 of the License, 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, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep __ELF__ >/dev/null + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[45]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep __LP64__ >/dev/null + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:[3456]*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + EM64T | authenticamd) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + arm*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-gnu + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + mips:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #else + CPU= + #endif + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + or32:Linux:*:*) + echo or32-unknown-linux-gnu + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit ;; + xtensa:Linux:*:*) + echo xtensa-unknown-linux-gnu + exit ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-gnucoff" + exit ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit ;; + esac + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^LIBC/{ + s: ::g + p + }'`" + test x"${LIBC}" != x && { + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit + } + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: --- sendmail-8.14.4.orig/debian/build/config.sub +++ sendmail-8.14.4/debian/build/config.sub @@ -0,0 +1,1622 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, +# Inc. + +timestamp='2007-01-18' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file 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 2 of the License, 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, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray) + os= + basic_machine=$1 + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | mt \ + | msp430 \ + | nios | nios2 \ + | ns16k | ns32k \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | score \ + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa-* \ + | ymp-* \ + | z8k-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16c) + basic_machine=cr16c-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: --- sendmail-8.14.4.orig/debian/build/debian/changelog.sh.in +++ sendmail-8.14.4/debian/build/debian/changelog.sh.in @@ -0,0 +1,71 @@ +#!/bin/sh -e +#----------------------------------------------------------------------------- +# $Sendmail: changelog.sh,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# Debian script to generate changelogs for sendmail @sm_version@@sm_revision@ +# +# Note: this file supports @SM_MINVERS@ - @SM_MAXVERS@ +# +#----------------------------------------------------------------------------- +set -e; +# +# Initialization +PACKAGE='sendmail'; + +# +# Remove old combined changelog +rm -f build/debian/changelog; + +echo "Building @PACKAGE_NAME@ @sm_version@@sm_custom_s@@sm_revision@ (@sm_version_math@) changelog."; + +# +# Start with Custom changelog (if any) +if [ -n "@sm_custom@" ]; then + if [ -f @sm_custom@.changelog ]; then + cat @sm_custom@.changelog \ + >> build/debian/changelog; + fi; + fi; + +# +# Create a combined changelog *IFF* we have the pieces/parts... +if [ ! -d private/changelogs ]; then + cat changelog >>build/debian/changelog; +else + # + # v.r.m changelogs + if [ -f private/changelogs/@sm_version@ ]; then + cat private/changelogs/@sm_version@ \ + >> build/debian/changelog; + # + # v.r changelogs + elif [ -f private/changelogs/@sm_version_major@ ]; then + cat private/changelogs/@sm_version_major@ >> build/debian/changelog; + + # + # v changelogs + elif [ -f private/changelogs/@sm_version_v@ ]; then + cat private/changelogs/@sm_version_v@ >> build/debian/changelog; + fi; + # + # Variable definitions + cat private/changelogs/vars >> build/debian/changelog; + fi; + +# +# Update 1st line to add --with-custom (defaults to null) +if [ -z "@sm_custom@" ]; then + mv build/debian/changelog build/debian/changelog.in; +else + sed \ + -e '1s/sendmail (@sm_version@-/sendmail (@sm_version@@sm_custom_s@-/' \ + -e '1s/sendmail (@sm_custom@.@sm_version@-/sendmail (@sm_version@@sm_custom_s@-/' \ + build/debian/changelog \ + > build/debian/changelog.in; + rm build/debian/changelog; + fi; + --- sendmail-8.14.4.orig/debian/build/debian/control.m4.in +++ sendmail-8.14.4/debian/build/debian/control.m4.in @@ -0,0 +1,259 @@ +dnl #-------------------------------------------------------------------------- +dnl # $Sendmail: control.m4,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +dnl # +dnl # Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +dnl # +dnl # @configure_input@ +dnl # +dnl # Debian control.m4 for sendmail @sm_version@@sm_revision@(@sm_version_math@) +dnl # +dnl # Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +dnl # file is customized to the version noted above. +dnl # +dnl # Note: Exercise care in the feeding of this file, especially wrt quoting! +dnl # +dnl #-------------------------------------------------------------------------- +changequote([[, ]])dnl +dnl # +dnl # The source package description +dnl # Always built +dnl # +[[Source: sendmail +Priority: extra +Section: mail +Maintainer: Jakub Safarik +Standards-Version: 3.8.3 +]]dnl # Sigh... build daemons ignore B-D-I, so replicate in B-D :( +[[Build-Depends-Indep: groff, bsdmainutils +Build-Depends: make (>> 3.79.1-14), m4, cdbs, quilt, patchutils, dh-buildinfo, debhelper (>= 5), linux-libc-dev (>= 2.6.21-3) [linux-any], groff, bsdmainutils, libdb-dev @sm_badepends@ +Build-Conflicts: libbind-dev, bind-dev, fakeroot (<< 0.4.5) +Homepage: http://www.sendmail.org +Vcs-Git: git://anonscm.debian.org/collab-maint/sendmail.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/sendmail.git]]dnl +dnl # +dnl # The arch=any package: sendmail-bin +dnl # Always built +dnl # +[[ + +Package: sendmail-bin +Architecture: any +Replaces: mail-transport-agent +Provides: mail-transport-agent +Conflicts: mail-transport-agent +Pre-Depends: + debconf, +Depends: sendmail-base, sendmail-cf, procps, ${shlibs:Depends}, ${perl:Depends} @sm_depends@, + ${misc:Depends} +Recommends: @sm_recommends@ +Suggests: sendmail-doc, @sm_suggests@ +Description: powerful, efficient, and scalable Mail Transport Agent + Sendmail is an alternative Mail Transport Agent (MTA) for Debian. + It is suitable for handling sophisticated mail configurations, + although this means that its configuration can also be complex. + . + Fortunately, simple thing can be done easily, and complex things + are possible, even if not easily understood ;) Sendmail is the *ONLY* + MTA with a Turing complete language to control *ALL* aspects of delivery! + . + Sendmail provides Security and SPAM/UCE/UBE protection via several means. + . + Sendmail includes *no* Mail User Agents (MUA), you'll have to + pick from the plethora of available MUAs (mutt, vm, etc.) + . + This package supports @sm_databases@ maps, + and has enabled @sm_features@.]]dnl +dnl # +dnl # The arch=any package: rmail +dnl # Always built +dnl # +[[ + +Package: rmail +Architecture: any +Conflicts: postfix, exim, exim-tls, exim4-daemon-custom, exim4-daemon-heavy, exim4-daemon-light, courier-mta, smail, zmailer, masqmail +Depends: sendmail-bin | mail-transport-agent, + ${shlibs:Depends}, + ${misc:Depends} +Description: MTA->UUCP remote mail handler + Rmail handles mail received via uucp and passes it to the local + sendmail (or workalike). + . + This version comes from the sendmail source package and the only + change is the call to sendmail (from -obq to -obi).]]dnl +dnl # +dnl # The arch=any package: sensible-mda (debian private) +dnl # Always built +dnl # +[[ + +Package: sensible-mda +Architecture: any +Depends: sendmail-bin | mail-transport-agent, procmail | maildrop | deliver, + ${shlibs:Depends}, + ${misc:Depends} +Description: Mail Delivery Agent wrapper + Sensible-mda is a Debian addition in the sendmail package and has been + split out in hopes that it might be useful for other MTA packages. + . + Sensible-mda is called by the MTA, and will in turn call whichever of + the following MDAs that it finds (in this order): + procmail, maildrop, deliver, mail.local]]dnl +dnl # +dnl # The arch=any package: libmilter +dnl # Only built if MILTER is enabled +dnl # +ifelse([[@sm_enable_milter@]], [[yes]], [[[[ + +Package: libmilter@sm_libmilter_version@ +Architecture: any +Section: libs +Depends: + ${shlibs:Depends}, + ${misc:Depends} +Description: Sendmail Mail Filter API (Milter) + The Sendmail Mail Filter API (Milter) is designed to allow third-party + programs access to mail messages as they are being processed in order + to filter meta-information(headers) and content. + . + The Debian Sendmail package is built to support libmilter. + . + This package contains libmilter.so + +Package: libmilter@sm_libmilter_version@-dbg +Architecture: any +Section: debug +Depends: libmilter@sm_libmilter_version@ (= ${binary:Version}), + ${shlibs:Depends}, + ${misc:Depends} +Description: Sendmail Mail Filter API (Milter) + The Sendmail Mail Filter API (Milter) is designed to allow third-party + programs access to mail messages as they are being processed in order + to filter meta-information(headers) and content. + . + The Debian Sendmail package is built to support libmilter. + . + This package contains debugging information for libmilter.so]]dnl +dnl # +dnl # The arch=any package: libmilter-dev +dnl # Only built if MILTER is enabled +dnl # +[[ + +Package: libmilter-dev +Architecture: any +Section: libdevel +Depends: libmilter@sm_libmilter_version@ (= ${binary:Version}), + ${misc:Depends} +Suggests: sendmail-doc +Description: Sendmail Mail Filter API (Milter) + The Sendmail Mail Filter API (Milter) is designed to allow third-party + programs access to mail messages as they are being processed in order + to filter meta-information (headers) and content. + . + The Debian Sendmail package is built to support libmilter. + . + This is the libmilter static library and include files for development. + . + The documentation on building a Milter is in the sendmail-doc package.]]]])dnl +dnl # +dnl # The arch=all package: sendmail-doc +dnl # Always built +dnl # +[[ + +Package: sendmail-doc +Architecture: all +Section: doc +Depends: + ${misc:Depends} +Description: powerful, efficient, and scalable Mail Transport Agent + Sendmail is an alternative Mail Transport Agent (MTA) for + Debian. It is suitable for handling sophisticated mail + configurations, although this means that its configuration + can also be complex. + . + Don't try anything fancy in sendmail without using this for guidance. + . + Because of the complexity, you may find yourself wanting to peruse + the documentation files included herein. The main files are: + cf.README.gz -- A reference for all things in sendmail.{mc,cf} + op.{ps,txt}.gz -- The care and feeding of Sendmail. + faq.txt.gz -- Sendmail FAQ, current as of the package date. + . + Other files include the references for smrsh and libmilter.]]dnl +dnl # +dnl # The arch=all package: sendmail +dnl # Always built +dnl # +[[ + +Package: sendmail +Architecture: all +Replaces: sendmail-tls, sendmail-base (<< 8.14.4-2.2~) +Depends: sendmail-base, sendmail-bin, sendmail-cf, sensible-mda, + ${misc:Depends} +Breaks: sendmail-base (<< 8.14.4-2.2~) +Suggests: sendmail-doc, rmail +Description: powerful, efficient, and scalable Mail Transport Agent + Sendmail is an alternative Mail Transport Agent (MTA) for Debian. + It is suitable for handling sophisticated mail configurations, + although this means that its configuration can also be complex. + . + Fortunately, simple thing can be done easily, and complex things + are possible, even if not easily understood ;) Sendmail is the *ONLY* + MTA with a Turing complete language to control *ALL* aspects of delivery! + . + Sendmail provides Security and SPAM/UCE/UBE protection via several means. + . + Sendmail includes *no* Mail User Agents (MUA), you'll have to + pick from the plethora of available MUAs (mutt, vm, etc.) + . + This package supports @sm_databases@ maps, + and has enabled @sm_features@. + . + This package is to make installation/upgrading easier (Do NOT delete it)]]dnl +dnl # +dnl # The arch=all package: sendmail-base +dnl # Always built +dnl # +[[ + +Package: sendmail-base +Architecture: all +Depends: m4, make, adduser, + ${perl:Depends}, + ${misc:Depends} +Suggests: sendmail-doc, ca-certificates, logcheck, logrotate, resolvconf +Description: powerful, efficient, and scalable Mail Transport Agent + Sendmail is an alternative Mail Transport Agent (MTA) for + Debian. It is suitable for handling sophisticated mail + configurations, although this means that its configuration + can also be complex. + . + This package contains the base, architecture independent, portions + of the sendmail packages.]]dnl +dnl # +dnl # The arch=all package: sendmail-cf +dnl # Always built +dnl # +[[ + +Package: sendmail-cf +Architecture: all +Suggests: sendmail-doc +Depends: m4, + ${misc:Depends} +Description: powerful, efficient, and scalable Mail Transport Agent + Sendmail is an alternative Mail Transport Agent (MTA) for + Debian. It is suitable for handling sophisticated mail + configurations, although this means that its configuration + can also be complex. + . + This package contains the .m4 (configuration files) for the + sendmail packages.]]dnl +dnl # +dnl # Provide the requisite trailing newline +dnl # + + --- sendmail-8.14.4.orig/debian/build/debian/libmilter-dev.dirs.in +++ sendmail-8.14.4/debian/build/debian/libmilter-dev.dirs.in @@ -0,0 +1,5 @@ +.@includedir@/libmilter +.@libdir@ +.@libdir@/libmilter +.@docdir@/libmilter-dev +.@datadir@/lintian/overrides --- sendmail-8.14.4.orig/debian/build/debian/libmilter-dev.links.in +++ sendmail-8.14.4/debian/build/debian/libmilter-dev.links.in @@ -0,0 +1,2 @@ +usr/lib/libmilter.so.@sm_libmilter_version@ usr/lib/libmilter/libmilter.so.@sm_libmilter_version@ +usr/lib/libmilter/libmilter.so.@sm_libmilter_version@ usr/lib/libmilter/libmilter.so --- sendmail-8.14.4.orig/debian/build/debian/libmilter-dev.lintian-overrides +++ sendmail-8.14.4/debian/build/debian/libmilter-dev.lintian-overrides @@ -0,0 +1 @@ +libmilter-dev: description-synopsis-starts-with-a-capital-letter --- sendmail-8.14.4.orig/debian/build/debian/libmilter-dev.preinst.in +++ sendmail-8.14.4/debian/build/debian/libmilter-dev.preinst.in @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +PACKAGE=libmilter-dev; + +if [ -L @docdir@/$PACKAGE ]; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm @docdir@/$PACKAGE +fi +if [ -L /usr/share/bug/$PACKAGE ]; then + rm /usr/share/bug/$PACKAGE +fi + +#DEBHELPER# --- sendmail-8.14.4.orig/debian/build/debian/libmilter.dirs.in +++ sendmail-8.14.4/debian/build/debian/libmilter.dirs.in @@ -0,0 +1,3 @@ +.@libdir@/libmilter +.@docdir@/libmilter@sm_libmilter_version@ +.@datadir@/lintian/overrides --- sendmail-8.14.4.orig/debian/build/debian/libmilter.lintian-overrides.in +++ sendmail-8.14.4/debian/build/debian/libmilter.lintian-overrides.in @@ -0,0 +1 @@ +libmilter@sm_libmilter_version@: description-synopsis-starts-with-a-capital-letter --- sendmail-8.14.4.orig/debian/build/debian/libmilter.preinst.in +++ sendmail-8.14.4/debian/build/debian/libmilter.preinst.in @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +PACKAGE=libmilter@sm_libmilter_version@; + +if [ -L @docdir@/$PACKAGE ]; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm @docdir@/$PACKAGE +fi +if [ -L /usr/share/bug/$PACKAGE ]; then + rm /usr/share/bug/$PACKAGE +fi + +#DEBHELPER# --- sendmail-8.14.4.orig/debian/build/debian/rmail.dirs.in +++ sendmail-8.14.4/debian/build/debian/rmail.dirs.in @@ -0,0 +1,4 @@ +.@sbindir@ +.@mandir@ +.@mandir@/man8 +.@datadir@/lintian/overrides --- sendmail-8.14.4.orig/debian/build/debian/rmail.lintian-overrides +++ sendmail-8.14.4/debian/build/debian/rmail.lintian-overrides @@ -0,0 +1 @@ +rmail: description-synopsis-starts-with-a-capital-letter --- sendmail-8.14.4.orig/debian/build/debian/rmail.preinst.in +++ sendmail-8.14.4/debian/build/debian/rmail.preinst.in @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +PACKAGE=rmail; + +if [ -L @docdir@/$PACKAGE ]; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm @docdir@/$PACKAGE +fi +if [ -L /usr/share/bug/$PACKAGE ]; then + rm /usr/share/bug/$PACKAGE +fi + +#DEBHELPER# --- sendmail-8.14.4.orig/debian/build/debian/sendmail-base.dirs.in +++ sendmail-8.14.4/debian/build/debian/sendmail-base.dirs.in @@ -0,0 +1,57 @@ +.@sysconfdir@/cron.d +.@sysconfdir@/cron.daily +.@sysconfdir@/default +.@sysconfdir@/dhcp +.@sysconfdir@/dhcp/dhclient-exit-hooks.d +.@sysconfdir@/logcheck +.@sysconfdir@/logcheck/ignore.d.paranoid +.@sysconfdir@/logcheck/ignore.d.server +.@sysconfdir@/logcheck/ignore.d.workstation +.@sysconfdir@/logcheck/violations.ignore.d +.@sysconfdir@/logrotate.d +.@sysconfdir@/mail +.@sysconfdir@/mail/m4 +.@sysconfdir@/mail/peers +.@sysconfdir@/mail/smrsh +.@sysconfdir@/mail/sasl +.@sysconfdir@/mail/tls +.@sysconfdir@/network +.@sysconfdir@/network/if-down.d +.@sysconfdir@/network/if-post-down.d +.@sysconfdir@/network/if-up.d +.@sysconfdir@/pam.d +.@sysconfdir@/ppp/ip-down.d +.@sysconfdir@/ppp/ip-up.d +.@sysconfdir@/resolvconf +.@sysconfdir@/resolvconf/update-libc.d +.@bindir@ +.@sbindir@ +.@docdir@/sendmail-base +.@mandir@ +.@mandir@/man1 +.@mandir@/man8 +.@datadir@/sendmail +.@datadir@/sendmail/examples +.@datadir@/sendmail/examples/db +.@datadir@/sendmail/examples/dhcp +.@datadir@/sendmail/examples/dhcp/dhclient-exit-hooks.d +.@datadir@/sendmail/examples/ppp +.@datadir@/sendmail/examples/ppp/ip-down.d +.@datadir@/sendmail/examples/ppp/ip-up.d +.@datadir@/sendmail/examples/ldap +.@datadir@/sendmail/examples/logcheck +.@datadir@/sendmail/examples/logcheck/ignore.d.paranoid +.@datadir@/sendmail/examples/logcheck/ignore.d.server +.@datadir@/sendmail/examples/logcheck/ignore.d.workstation +.@datadir@/sendmail/examples/logcheck/violations.ignore.d +.@datadir@/sendmail/examples/milter +.@datadir@/sendmail/examples/network +.@datadir@/sendmail/examples/network/if-down.d +.@datadir@/sendmail/examples/network/if-post-down.d +.@datadir@/sendmail/examples/network/if-up.d +.@datadir@/sendmail/examples/pam.d +.@datadir@/sendmail/examples/resolvconf +.@datadir@/sendmail/examples/resolvconf/update-libc.d +.@datadir@/sendmail/examples/sasl +.@datadir@/sendmail/examples/tls +.@datadir@/lintian/overrides --- sendmail-8.14.4.orig/debian/build/debian/sendmail-base.lintian-overrides +++ sendmail-8.14.4/debian/build/debian/sendmail-base.lintian-overrides @@ -0,0 +1 @@ +sendmail-base: manpage-has-bad-whatis-entry usr/share/man/man8/etrn.8.gz --- sendmail-8.14.4.orig/debian/build/debian/sendmail-base.postinst.in +++ sendmail-8.14.4/debian/build/debian/sendmail-base.postinst.in @@ -0,0 +1,116 @@ +#!/bin/sh -e +# +# Debian post installation script +# +# Install of already installed package: +# 1) old-prerm upgrade new-version +# *) new-prerm failed-upgrade old-version +# *) old-postinst abort-upgrade new-version +# +# If a `conflicting' package is being removed at the same time: +# 1) forall packages depending on conflicting package and --auto-deconfigure +# deconfigured's-prerm deconfigure \ +# in-favour package-being-installed version \ +# removing conflicting-package version +# *) deconfigured's-postinst abort-deconfigure \ +# in-favour package-being-installed-but-failed version \ +# removing conflicting-package version +# 2) To prepare for removal of the conflicting package +# conflictor's-prerm remove \ +# in-favour package new-version +# *) conflictor's-postinst abort-remove \ +# in-favour package new-version +# +# Configuration of package: +# postinst configure most-recently-configured-version +# +set -e; + +PACKAGE=sendmail-base; + +# do we have debconf? +if [ -f /usr/share/debconf/confmodule ]; then + DEBCONF=true; + #. /usr/share/debconf/confmodule; + #db_stop; # For testing +else + DEBCONF=''; + fi; + +case "$1" in + configure) + #----------------------------------------------------------- + if [ "$2" = "" ]; then + :; + #echo " "; + #echo "A new sendmail user, welcome!"; + fi; + + #----------------------------------------------------------- + # Tell users about new and interesting things... + if [ -x @datadir@/sendmail/update_notices ]; then + @datadir@/sendmail/update_notices $2; + fi; + + #----------------------------------------------------------- + # Create group/user smmta/smmsp iff needed + touch @sysconfdir@/mail/tsmmta; + if ! chown root:smmta @sysconfdir@/mail/tsmmta 2>/dev/null; then + addgroup --system --quiet smmta; + fi; + if ! chown smmta:smmta @sysconfdir@/mail/tsmmta 2>/dev/null; then + adduser --system --ingroup smmta --home "/var/lib/sendmail" \ + --disabled-password \ + --quiet --gecos 'Mail Transfer Agent' smmta; + fi; + rm @sysconfdir@/mail/tsmmta; + touch @sysconfdir@/mail/tsmmsp; + if ! chown root:smmsp @sysconfdir@/mail/tsmmsp 2>/dev/null; then + addgroup --system --quiet smmsp; + fi; + if ! chown smmsp:smmsp @sysconfdir@/mail/tsmmsp 2>/dev/null; then + adduser --system --ingroup smmsp --home "/var/lib/sendmail" \ + --disabled-password \ + --quiet --gecos 'Mail Submission Program' smmsp; + fi; + rm @sysconfdir@/mail/tsmmsp; + + #----------------------------------------------------------- + # With a dynamic uid/gid, have to set appropriate ownership herein + chown root:smmsp @sysconfdir@/mail/sasl; + chown root:smmsp @sysconfdir@/mail/tls; + + #----------------------------------------------------------- + # Save the current configuration files in safe place... + if [ -x @sysconfdir@/cron.daily/sendmail ]; then + echo "Saving current /etc/mail/sendmail.mc,cf to /var/backups"; + @sysconfdir@/cron.daily/sendmail || true; + fi; + + #----------------------------------------------------------- + # Make sure inetd.conf has sendmail in it (but disabled) + if [ -x /usr/sbin/update-inetd ]; then + update-inetd --remove "^587"; + update-inetd --group MAIL --add \ + "smtp\tstream\ttcp\tnowait\troot\t@sbindir@/sendmail sendmail -Am -bs"; + update-inetd --group MAIL --add \ + "submission\tstream\ttcp\tnowait\troot\t@sbindir@/sendmail sendmail -Am -bs"; + update-inetd --group MAIL --add \ + "smtps\tstream\ttcp\tnowait\troot\t@sbindir@/sendmail sendmail -Am -bs"; + update-inetd --group MAIL --multi --disable smtp,smtps,submission; + fi; + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0; + ;; + + *) + echo "$PACKAGE postinst called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +#DEBHELPER# +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-base.postrm.in +++ sendmail-8.14.4/debian/build/debian/sendmail-base.postrm.in @@ -0,0 +1,113 @@ +#!/bin/sh -e +# +# Debian post removal script +# +# Install of already installed package: +# 1) Upgrade of package: +# new-preinst upgrade old-version +# *) new-postrm abort-upgrade old-version +# 2) package had some configuration files from a previous version installed +# new-preinst install old-version +# *) new-postrm abort-install old-version +# 3) Otherwise (i.e., the package was completely purged) +# new-preinst install +# *) new-postrm abort-install +# +# Removal of a package: +# 1) prerm remove +# 2) The package's files are removed (except conffiles). +# 3) postrm remove +# 4) All the maintainer scripts except the postrm are removed. +# 5) The conffiles and any backup files +# (~-files, #*# files, %-files, .dpkg-{old,new,tmp}, etc.) are removed. +# 6) postrm purge +# 7) The package's file list is removed +# +set -e; + +PACKAGE=sendmail-base; + +case "$1" in + remove) + if [ ! -z "$2" ]; then + echo "Removing $PACKAGE $2 $3($4)"; + fi; + + if [ -x /usr/sbin/update-inetd ]; then + update-inetd --remove "^smtp"; + update-inetd --remove "^smtps"; + update-inetd --remove "^submission"; + fi; + ;; + + purge) + # Currently, dh_installdebconf doesn't do db_stop... ensure it is done! + if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule ]; then + # Source debconf library. + . /usr/share/debconf/confmodule; + # Make sure we're done + #db_stop; + # Remove my changes to the db. + db_purge; + fi; + + # Remove user/group smmsp + if [ -x /usr/sbin/deluser ]; then + deluser --quiet smmta || true; + deluser --quiet smmsp || true; + fi; + userdel smmta 2>/dev/null || true; + groupdel smmta 2>/dev/null || true; + userdel smmsp 2>/dev/null || true; + groupdel smmsp 2>/dev/null || true; + + # Purge those files installed in other package directories + rm -f @libdir@/lib/sasl/Sendmail.conf; + rm -f @sysconfdir@/certs/sendmail.pem; + rm -f @datadir@/bug/sendmail*; + rmdir --ignore-fail-on-non-empty @datadir@/bug; + rm -f @sysconfdir@/logrotate.d/sendmail; + rmdir --ignore-fail-on-non-empty @sysconfdir@/logrotate.d; + rm -f @sysconfdir@/logcheck/violations.ignore.d/sendmail; + rmdir --ignore-fail-on-non-empty @sysconfdir@/logcheck/violations.ignore.d; + rmdir --ignore-fail-on-non-empty @sysconfdir@/logcheck; + # Can't touch these as they may be included in slapd.conf + #rm -rf @sysconfdir@/ldap/schema/sendmail.schema; + #rm -rf @sysconfdir@/openldap/sendmail.schema; + #rm -rf @sysconfdir@/umich-ldap/sendmail.schema; + # Purge psuedo conffiles (managed by sendmail) + rm -f @sysconfdir@/mail/sendmail.conf; + # Purge sendmail configuration files + rm -f @sysconfdir@/mail/sendmail.mc \ + @sysconfdir@/mail/submit.mc \ + @sysconfdir@/mail/m4/dialup.m4 \ + @sysconfdir@/mail/m4/provider.m4 \ + @sysconfdir@/mail/local-host-names \ + @sysconfdir@/mail/relay-domains \ + @sysconfdir@/mail/trusted-users \ + @sysconfdir@/mail/default-auth-info \ + @sysconfdir@/mail/access \ + ; + rmdir @sysconfdir@/mail/peers 2>/dev/null || true; + rmdir @sysconfdir@/mail 2>/dev/null || true; + + ;; + + upgrade) + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + echo "$1 of $PACKAGE $2"; + ;; + + *) + echo "$PACKAGE postrm called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +# NOTE WELL: If we fall through here during purge, update-rc.d will be +# called with remove... and /etc/init.d/$PACKAGE goes away! +#DEBHELPER# + +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-base.preinst.in +++ sendmail-8.14.4/debian/build/debian/sendmail-base.preinst.in @@ -0,0 +1,59 @@ +#!/bin/sh -e +# +# Debian pre install script +# +# Install of already installed package: +# 1) Upgrade of package: +# new-preinst upgrade old-version +# *) new-postrm abort-upgrade old-version +# 2) package had some configuration files from a previous version installed +# new-preinst install old-version +# *) new-postrm abort-install old-version +# 3) Otherwise (i.e., the package was completely purged) +# new-preinst install +# *) new-postrm abort-install +# +set -e; + +PACKAGE=sendmail-base; + +if [ -L @docdir@/$PACKAGE ]; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm @docdir@/$PACKAGE +fi +if [ -L /usr/share/bug/$PACKAGE ]; then + rm /usr/share/bug/$PACKAGE +fi + +if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "8.14.4-2.2~"; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm -rf @docdir@/sendmail/examples + rm -f @docdir@/sendmail/Debian-specific.gz + rm -f @docdir@/sendmail/site.config.m4.gz +fi + + +case "$1" in + upgrade) + # Prevent cronjob from running during upgrade... + if [ -f @sysconfdir@/cron.d/sendmail ]; then + echo "#preinst" > @sysconfdir@/cron.d/sendmail; + fi; + + # Move files to new home + if [ -d @sysconfdir@/mail/ssl ]; then + mv -f @sysconfdir@/mail/ssl @sysconfdir@/mail/tls; + fi; + ;; + + install|abort-upgrade) + ;; + + *) + echo "$PACKAGE preinst called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +#DEBHELPER# +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-base.prerm.in +++ sendmail-8.14.4/debian/build/debian/sendmail-base.prerm.in @@ -0,0 +1,138 @@ +#!/bin/sh -e +# +# Debian pre removal script +# +# Install of already installed package: +# 1) old-prerm upgrade new-version +# *) new-prerm failed-upgrade old-version +# *) old-postinst abort-upgrade new-version +# +# If a `conflicting' package is being removed at the same time: +# 1) forall packages depending on conflicting package and --auto-deconfigure +# deconfigured's-prerm deconfigure \ +# in-favour package-being-installed version \ +# removing conflicting-package version +# *) deconfigured's-postinst abort-deconfigure \ +# in-favour package-being-installed-but-failed version \ +# removing conflicting-package version +# 2) To prepare for removal of the conflicting package +# conflictor's-prerm remove \ +# in-favour package new-version +# *) conflictor's-postinst abort-remove \ +# in-favour package new-version +# +# Removal of a package: +# 1) prerm remove +# 2) The package's files are removed (except conffiles). +# 3) postrm remove +# 4) All the maintainer scripts except the postrm are removed. +# +set -e; + +PACKAGE=sendmail-base; + +case "$1" in + remove) + if [ ! -z "$2" ]; then + echo "Removing $PACKAGE $2 $3($4)"; + fi; + + if [ -x /usr/sbin/update-inetd ]; then + update-inetd --group MAIL --disable smtp,smtps,submission; + fi; + + # Make sure /etc/aliases is left (move it from /etc/mail if needed) + if [ -L @sysconfdir@/mail/aliases ]; then + rm -f @sysconfdir@/mail/aliases; + elif [ -f @sysconfdir@/mail/aliases ] \ + && [ -L /etc/aliases ]; then + mv @sysconfdir@/mail/aliases /etc/aliases; + fi; + + # Remove psuedo conffiles (managed by sendmail) + rm -f @sysconfdir@/cron.d/sendmail; + + # Remove files scattered across the system that + # happened to be created by sendmail + rm -f @libdir@/sasl/Sendmail.conf; + + # Remove those files created by sendmail + rm -rf @localstatedir@/lib/sendmail; + rm -rf @localstatedir@/run/sendmail; + # Note: syslog really owns these files + #rm -f @localstatedir@/log/mail/*; + #rm -f @localstatedir@/log/mail.log; + # Note: these can lead to a loss of mail!!!! + if [ -x @sysconfdir@/init.d/sendmail ]; then + @sysconfdir@/init.d/sendmail clean; + fi; + if [ -L @localstatedir@/spool/mqueue ]; then + rmdir --ignore-fail-on-non-empty \ + `readlink -fn @localstatedir@/spool/mqueue`; + elif [ -d @localstatedir@/spool/mqueue ]; then + rmdir --ignore-fail-on-non-empty \ + @localstatedir@/spool/mqueue; + fi; + if [ -L @localstatedir@/spool/mqueue-client ]; then + rmdir --ignore-fail-on-non-empty \ + `readlink -fn @localstatedir@/spool/mqueue-client`; + elif [ -d @localstatedir@/spool/mqueue-client ]; then + rmdir --ignore-fail-on-non-empty \ + @localstatedir@/spool/mqueue-client; + fi; + + # Remove sendmail built configuration files + rm -f @sysconfdir@/mail/*.db \ + @sysconfdir@/mail/*.dir \ + @sysconfdir@/mail/*.pag; + rm -f @sysconfdir@/mail/sendmail.cf \ + @sysconfdir@/mail/sendmail.cf.old \ + @sysconfdir@/mail/sendmail.cf.errors \ + @sysconfdir@/mail/sendmail.mc.old \ + @sysconfdir@/mail/submit.cf \ + @sysconfdir@/mail/submit.cf.errors \ + @sysconfdir@/mail/submit.mc.old \ + @sysconfdir@/mail/databases \ + @sysconfdir@/mail/Makefile \ + ; + rm -rf @sysconfdir@/mail/smrsh \ + @sysconfdir@/mail/sasl \ + @sysconfdir@/mail/tls; + + # Remove empty files (probably touched databases) + find @sysconfdir@/mail -maxdepth 1 -size 0 | xargs -r rm; + ;; + + upgrade) + # Potentially move the old configuration file to the new name - + # before it gets deleted (for not existing in the new package) + mv -f @sysconfdir@/default/sendmail \ + @sysconfdir@/mail/sendmail.conf 2>/dev/null || true; + + # Prevent cronjob from running during upgrade... + if [ -f /etc/cron.d/sendmail ]; then + echo "#prerm" > @sysconfdir@/cron.d/sendmail; + fi; + ;; + + failed-upgrade) + ;; + + deconfigure) + echo "Deconfigure of $PACKAGE $2 $3($4) $5 $6($7) "; + ;; + + *) + echo "$PACKAGE prerm called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +# The @DEBHELPER@ stuff causes problems with upgrades because of the +# length of time that Sendmail is stopped... + +# +# Included for sanity checks +# +#DEBHELPER# +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-bin.dirs.in +++ sendmail-8.14.4/debian/build/debian/sendmail-bin.dirs.in @@ -0,0 +1,13 @@ +.@sysconfdir@/cron.daily +.@sysconfdir@/init.d +.@bindir@ +.@sbindir@ +.@libexecdir@ +.@docdir@/sendmail-bin +.@mandir@ +.@mandir@/man1 +.@mandir@/man5 +.@mandir@/man8 +.@localstatedir@/spool/mqueue +.@localstatedir@/spool/mqueue-client +.@datadir@/lintian/overrides --- sendmail-8.14.4.orig/debian/build/debian/sendmail-bin.lintian-overrides +++ sendmail-8.14.4/debian/build/debian/sendmail-bin.lintian-overrides @@ -0,0 +1,15 @@ +sendmail-bin: duplicate-updaterc.d-calls-in-postinst sendmail +sendmail-bin: suidregister-used-in-maintainer-script postinst +sendmail-bin: suidregister-used-in-maintainer-script postinst +sendmail-bin: duplicate-updaterc.d-calls-in-postinst sendmail +sendmail-bin: setgid-binary usr/lib/sm.bin/sendmail 2755 root/mail +sendmail-bin: setgid-binary usr/lib/sm.bin/mailstats 2755 root/mail +sendmail-bin: manpage-section-mismatch usr/share/man/man8/newaliases.sendmail.8.gz:14 8 != 1 +# sendmail-mta is managed via alternatives +package-contains-broken-symlink usr/sbin/hoststat sendmail-mta +package-contains-broken-symlink usr/sbin/newaliases sendmail-mta +package-contains-broken-symlink usr/sbin/purgestat sendmail-mta +package-contains-broken-symlink usr/share/man/man8/hoststat.8.gz sendmail-mta.8.gz +package-contains-broken-symlink usr/share/man/man8/purgestat.8.gz sendmail-mta.8.gz +binary-without-manpage usr/bin/mailq +binary-without-manpage usr/sbin/newaliases --- sendmail-8.14.4.orig/debian/build/debian/sendmail-bin.postinst.in +++ sendmail-8.14.4/debian/build/debian/sendmail-bin.postinst.in @@ -0,0 +1,320 @@ +#!/bin/sh -e +# +# Debian post installation script +# +# Install of already installed package: +# 1) old-prerm upgrade new-version +# *) new-prerm failed-upgrade old-version +# *) old-postinst abort-upgrade new-version +# +# If a `conflicting' package is being removed at the same time: +# 1) forall packages depending on conflicting package and --auto-deconfigure +# deconfigured's-prerm deconfigure \ +# in-favour package-being-installed version \ +# removing conflicting-package version +# *) deconfigured's-postinst abort-deconfigure \ +# in-favour package-being-installed-but-failed version \ +# removing conflicting-package version +# 2) To prepare for removal of the conflicting package +# conflictor's-prerm remove \ +# in-favour package new-version +# *) conflictor's-postinst abort-remove \ +# in-favour package new-version +# +# Configuration of package: +# postinst configure most-recently-configured-version +# +set -e; + +PACKAGE=sendmail-bin; + +#----------------------------------------------------------- +#stop(): stop sendmail +stop_mta () { + # Account for varying PIDfile locations of older sendmail packages + if [ -f /var/run/sendmail/mta/sendmail.pid ]; then + start-stop-daemon --stop --oknodo --quiet \ + --pidfile /var/run/sendmail/msp/sendmail.pid > /dev/null; + start-stop-daemon --stop --oknodo --quiet \ + -pidfile /var/run/sendmail/mta/sendmail.pid > /dev/null; + elif [ -f /var/run/sendmail/sendmail.pid ]; then + start-stop-daemon --stop --oknodo --quiet \ + --pidfile /var/run/sendmail/sendmail.pid > /dev/null; + elif [ -f /var/run/sendmail.pid ]; then + start-stop-daemon --stop --oknodo --quiet \ + --pidfile /var/run/sendmail.pid > /dev/null; + fi; + # Since we changed the executable, do one more try - using the old name + if [ -f /var/run/sendmail/mta/sendmail.pid ]; then + start-stop-daemon --stop --oknodo --quiet \ + --pidfile /var/run/sendmail/mta/sendmail.pid > /dev/null; + fi; + start-stop-daemon --stop --oknodo --quiet \ + --name sendmail > /dev/null; + if [ -x @sysconfdir@/init.d/sendmail ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + /usr/sbin/invoke-rc.d --quiet --force sendmail stop; + else + @sysconfdir@/init.d/sendmail stop; + fi; + fi; + }; + +#----------------------------------------------------------- +#start(): start sendmail +start_mta () { + if [ -x /usr/sbin/invoke-rc.d ]; then + /usr/sbin/invoke-rc.d sendmail start; + else + @sysconfdir@/init.d/sendmail start; + fi; + }; + +#----------------------------------------------------------- +# configure(): save sendmail.cf, call sendmailconfig +configure_mta () { + local enter; + echo -n "Configure now ? (y/N) "; + read yn; + yn=$(echo -n "$yn" | sed -e "s/^\ *//" -e "s/^\t*//"); + test -n "$yn" || yn="N"; + case "$yn" in + [Yy]*) + stop_mta; + @sbindir@/sendmailconfig --no-reload; + start_mta; + ;; + + [Nn]*) + echo ''; + echo "To configure sendmail later, type" \ + "sendmailconfig"; + echo "After configuring sendmail, you can" \ + "start it via @sysconfdir@/init.d/sendmail start"; + echo -n "Press [ENTER] "; + read enter; + ;; + esac; + }; + +# do we have debconf? +if [ -f /usr/share/debconf/confmodule ]; then + DEBCONF=true; + #. /usr/share/debconf/confmodule; + #db_stop; # For testing +else + DEBCONF=''; + fi; + +case "$1" in + configure) + # continue below + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0; + ;; + + *) + echo "$PACKAGE postinst called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +#-------------------------------------------------------------------- +# Continuation of "$1" = "configure" + +# Note: can't use debhelper here because the actions aren't contiguous +#xxxHELPER# + +# Automatically added by dh_installinit +if [ -x "@sysconfdir@/init.d/sendmail" ]; then + update-rc.d -f sendmail remove >/dev/null; + update-rc.d sendmail defaults 21 19 >/dev/null; + #/etc/init.d/sendmail start +fi +# End automatically added section + +#----------------------------------------------------------- +# Create (or update) MTA, MSP alternatives +# This way, we'll be able to install 2 MTAs on the same box :) +update-alternatives \ + --install @sbindir@/sendmail-mta sendmail-mta @libexecdir@/sendmail 25 \ + --slave @mandir@/man8/sendmail-mta.8.gz sendmail-mta.8.gz \ + @mandir@/man8/sendmail.sendmail.8.gz \ + --slave @sbindir@/runq runq @datadir@/sendmail/runq \ + --slave @mandir@/man8/runq.8.gz runq.8.gz \ + @mandir@/man8/runq.sendmail.8.gz \ + --slave @sbindir@/newaliases newaliases \ + @datadir@/sendmail/newaliases \ + --slave @mandir@/man8/newaliases.8.gz newaliases.8.gz \ + @mandir@/man8/newaliases.sendmail.8.gz \ + --slave @bindir@/mailq mailq @datadir@/sendmail/mailq \ + --slave @mandir@/man1/mailq.1.gz mailq.1.gz \ + @mandir@/man1/mailq.sendmail.1.gz \ + --slave @mandir@/man5/aliases.5.gz aliases.5.gz \ + @mandir@/man5/aliases.sendmail.5.gz \ + ; +update-alternatives \ + --install @sbindir@/sendmail-msp sendmail-msp @libexecdir@/sendmail 25 \ + --slave @mandir@/man8/sendmail-msp.8.gz sendmail-msp.8.gz \ + @mandir@/man8/sendmail.sendmail.8.gz \ + --slave @sbindir@/sendmail sendmail @libexecdir@/sendmail \ + --slave @libdir@/sendmail lib.sendmail @libexecdir@/sendmail \ + --slave @mandir@/man8/sendmail.8.gz sendmail.8.gz \ + @mandir@/man8/sendmail.sendmail.8.gz \ + ; + +#----------------------------------------------------------- +# With a dynamic uid/gid, have to set appropriate ownership herein +if command -v suidregister >/dev/null 2>&1 && test -s /etc/suid.conf; then + suidregister -s sendmail @sbindir@/sendmail root smmsp 02755; + suidregister -s sendmail @libexecdir@/mailstats root smmsp 02755; +elif [ -x @sbindir@/sendmail ]; then + chown root:smmsp @libexecdir@/sendmail; + chmod 02755 @libexecdir@/sendmail; + chown root:smmsp @libexecdir@/mailstats; + chmod 02755 @libexecdir@/mailstats; + fi; + +#----------------------------------------------------------- +# Create backups of /etc/mail/{sendmail,submit}.mc +if [ -f @sysconfdir@/mail/sendmail.cf ]; then + echo "Saving old /etc/mail/sendmail.cf" \ + "as /etc/mail/sendmail.cf.old ..."; + cp -f @sysconfdir@/mail/sendmail.cf \ + @sysconfdir@/mail/sendmail.cf.old; + chown root:root @sysconfdir@/mail/sendmail.cf.old; + chmod 0644 @sysconfdir@/mail/sendmail.cf.old; + fi; +if [ -f @sysconfdir@/mail/submit.cf ]; then + cp -f @sysconfdir@/mail/submit.cf \ + @sysconfdir@/mail/submit.cf.old; + chown root:root @sysconfdir@/mail/submit.cf.old; + chmod 0644 @sysconfdir@/mail/submit.cf.old; + fi; + +start_ask=0; + +#----------------------------------------------------------- +# Create /etc/mail/sendmail.mc if it doesn't exist +if [ ! -f @sysconfdir@/mail/sendmail.mc ]; then + cat <<-EOT + + You are doing a new install, or have erased /etc/mail/sendmail.mc. + If you've accidentaly erased /etc/mail/sendmail.mc, check /var/backups. + + I am creating a safe, default sendmail.mc for you and you can + run sendmailconfig later if you need to change the defaults. + + EOT + fi; + +if [ -x @datadir@/sendmail/update_sendmail ]; then + stop_mta; + echo "Updating sendmail environment ..."; + @datadir@/sendmail/update_sendmail || true; + start_mta; + fi; +exit 0; + + +#----------------------------------------------------------- +# See if we can do this automagically... +cat <<-EOT + +It is a good idea to regenerate the sendmail configuration +file with each new spin of the sendmail package. + +But, if you hand edit sendmail.cf instead of making changes through +sendmail.mc, then you want to say no, save your old sendmail.cf, run +sendmailconfig, then migrate your changes into the new version. + +EOT +echo -n "Automagically regenerate the sendmail.cf configuration file? (Y/n) "; +read yn; +yn=$(echo -n "$yn" | sed -e "s/^\ *//" -e "s/^\t*//"); +test -n "$yn" || yn="Y"; +case "$yn" in + [Yy]*) + if [ -f @sysconfdir@/mail/sendmail.cf ]; then + echo "Saving old /etc/mail/sendmail.cf" \ + "as /etc/mail/sendmail.cf.old ..."; + cp -f @sysconfdir@/mail/sendmail.cf \ + @sysconfdir@/mail/sendmail.cf.old; + chown root:root @sysconfdir@/mail/sendmail.cf.old; + chmod 0644 @sysconfdir@/mail/sendmail.cf.old; + fi; + if [ -f @sysconfdir@/mail/submit.cf ]; then + cp -f @sysconfdir@/mail/submit.cf \ + @sysconfdir@/mail/submit.cf.old; + chown root:root @sysconfdir@/mail/submit.cf.old; + chmod 0644 @sysconfdir@/mail/submit.cf.old; + fi; + if [ -x @datadir@/sendmail/update_sendmail ]; then + stop_mta; + echo "Updating sendmail environment ..."; + @datadir@/sendmail/update_sendmail || true; + fi; + ;; + + [Nn]*) + cat <<-EOT + + Your files (sendmail.mc,cf, etc) have *not* been altered. + + *** Warning *** Warning *** Warning *** Warning *** Warning *** Warning *** + + There have been changes in + * Paths of some databases and executables + * FEATUREs, DOMAIN, includes + * Internal Database storage + + These changes were *NOT* made for you ... And will not be + until you run sendmailconfig! + + Until you update /etc/mail/sendmail.cf via sendmailconfig, + you should expect to have problems running sendmail! + + "Well, a pet peeve of mine is people who directly edit the + .cf file instead of using the m4 configuration files. + Don't do it! [laughs] I treat the .cf file as a binary + file - you should too." + -- Eric Allman 1999/10/18 + + *** Warning *** Warning *** Warning *** Warning *** Warning *** Warning *** + + EOT + echo "Do you wish to run sendmailconfig now, or later"; + start_ask=0; + configure_mta; + case "$yn" in + [Yy]*) + cat <<-EOT + + Do you wish to start sendmail with the new sendmail.cf, + or do you wish to delay until you can merge any changes + from your older sendmail.cf.old? + EOT + start_ask=1; + start_mta; + ;; + esac; + exit 0; + esac; + +#----------------------------------------------------------- +# If we're still here, we're going the automagic path... +# Now, liberal application of smoke and mirrors +if [ -f @sysconfdir@/mail/sendmail.mc ]; then + start_ask=1; + start_mta; + fi; + +exit 0; + +#----------------------------------------------------------- +# +# List herein (for reference) what debhelper would've done: +#DEBHELPER# +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-bin.postrm.in +++ sendmail-8.14.4/debian/build/debian/sendmail-bin.postrm.in @@ -0,0 +1,88 @@ +#!/bin/sh -e +# +# Debian post removal script +# +# Install of already installed package: +# 1) Upgrade of package: +# new-preinst upgrade old-version +# *) new-postrm abort-upgrade old-version +# 2) package had some configuration files from a previous version installed +# new-preinst install old-version +# *) new-postrm abort-install old-version +# 3) Otherwise (i.e., the package was completely purged) +# new-preinst install +# *) new-postrm abort-install +# +# Removal of a package: +# 1) prerm remove +# 2) The package's files are removed (except conffiles). +# 3) postrm remove +# 4) All the maintainer scripts except the postrm are removed. +# 5) The conffiles and any backup files +# (~-files, #*# files, %-files, .dpkg-{old,new,tmp}, etc.) are removed. +# 6) postrm purge +# 7) The package's file list is removed +# +set -e; + +PACKAGE=sendmail-bin; + +case "$1" in + remove) + if [ ! -z "$2" ]; then + echo "Removing $PACKAGE $2 $3($4)"; + if [ "$PACKAGE" = 'sendmail' ] && [ "$3" = 'sendmail-tls' ] || \ + [ "$PACKAGE" = 'sendmail-tls' ] && [ "$3" = 'sendmail' ]; then + echo '...Nothing to do...'; + exit 0; + fi; + fi; + ;; + + purge) + # If postrm is called *AND* there are no files, exit quickly + # (This is a *GROSS* hack... beter use the test below) + #if [ ! -s `echo "$0" | sed -e 's/postrm$/list/'` ]; then + # echo "Purging replaced package $PACKAGE, nothing to do..."; + # exit 0; + # fi; + + # We're *really* purging; neither sendmail nor sendmail-tls + # is currently installed + if [ -f @libexecdir@/sendmail ]; then + echo "Purging replaced package $PACKAGE, nothing to do..."; + exit 0; + fi; + + # Currently, dh_installdebconf doesn't do db_stop... ensure it is done! + if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule ]; then + # Source debconf library. + . /usr/share/debconf/confmodule; + # Make sure we're done + #db_stop; + # Remove my changes to the db. + db_purge; + fi; + + rm -f @sysconfdir@/mail/sendmail.cf.old + rm -f @sysconfdir@/mail/submit.cf.old + ;; + + upgrade) + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + echo "$1 of $PACKAGE $2"; + ;; + + *) + echo "$PACKAGE postrm called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +# NOTE WELL: If we fall through here during purge, update-rc.d will be +# called with remove... and /etc/init.d/$PACKAGE goes away! +#DEBHELPER# + +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-bin.preinst.in +++ sendmail-8.14.4/debian/build/debian/sendmail-bin.preinst.in @@ -0,0 +1,52 @@ +#!/bin/sh -e +# +# Debian pre install script +# +# Install of already installed package: +# 1) Upgrade of package: +# new-preinst upgrade old-version +# *) new-postrm abort-upgrade old-version +# 2) package had some configuration files from a previous version installed +# new-preinst install old-version +# *) new-postrm abort-install old-version +# 3) Otherwise (i.e., the package was completely purged) +# new-preinst install +# *) new-postrm abort-install +# +set -e; + +PACKAGE=sendmail-bin; + +# do we have debconf? +if [ -f /usr/share/debconf/confmodule ]; then + DEBCONF=true; + . /usr/share/debconf/confmodule; +else + DEBCONF=''; + fi; + +case "$1" in + install) + ;; + + upgrade) + # DPKG doesn't overwrite directories with symlinks... + rm -rf @libdir@/sendmail 2>/dev/null || true; + + # Prevent cronjob from running during upgrade... + if [ -f /etc/cron.d/sendmail ]; then + echo "#preinst" > @sysconfdir@/cron.d/sendmail; + fi; + ;; + + abort-upgrade) + ;; + + *) + echo "$PACKAGE preinst called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +#DEBHELPER# +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-bin.prerm.in +++ sendmail-8.14.4/debian/build/debian/sendmail-bin.prerm.in @@ -0,0 +1,90 @@ +#!/bin/sh -e +# +# Debian pre removal script +# +# Install of already installed package: +# 1) old-prerm upgrade new-version +# *) new-prerm failed-upgrade old-version +# *) old-postinst abort-upgrade new-version +# +# If a `conflicting' package is being removed at the same time: +# 1) forall packages depending on conflicting package and --auto-deconfigure +# deconfigured's-prerm deconfigure \ +# in-favour package-being-installed version \ +# removing conflicting-package version +# *) deconfigured's-postinst abort-deconfigure \ +# in-favour package-being-installed-but-failed version \ +# removing conflicting-package version +# 2) To prepare for removal of the conflicting package +# conflictor's-prerm remove \ +# in-favour package new-version +# *) conflictor's-postinst abort-remove \ +# in-favour package new-version +# +# Removal of a package: +# 1) prerm remove +# 2) The package's files are removed (except conffiles). +# 3) postrm remove +# 4) All the maintainer scripts except the postrm are removed. +# +set -e; + +PACKAGE=sendmail-bin; + +case "$1" in + remove) + if [ ! -z "$2" ]; then + echo "Removing $PACKAGE $2 $3($4)"; + if [ "$PACKAGE" = 'sendmail' ] && [ "$3" = 'sendmail-tls' ] || \ + [ "$PACKAGE" = 'sendmail-tls' ] && [ "$3" = 'sendmail' ]; then + echo '...Nothing to do...'; + exit 0; + fi; + fi; + # Remove alternatives for MTA, MSP + update-alternatives --remove sendmail-mta @libexecdir@/sendmail; + update-alternatives --remove sendmail-msp @libexecdir@/sendmail; + if [ -x @sysconfdir@/init.d/sendmail ] && \ + [ -x @datadir@/sendmail/sendmail ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + /usr/sbin/invoke-rc.d --quiet --force sendmail stop; + else + @sysconfdir@/init.d/sendmail stop; + fi; + fi; + # Prevent cronjob from running during upgrade... + if [ -f /etc/cron.d/sendmail ]; then + rm -f @sysconfdir@/cron.d/sendmail; + fi; + ;; + + upgrade) + # Prevent cronjob from running during upgrade... + if [ -f /etc/cron.d/sendmail ]; then + echo "#prerm" > @sysconfdir@/cron.d/sendmail; + fi; + + # NOTE NOTE NOTE NOTE NOTE + # If we fall through to DEBHELPER, sendmail will be stopped + # much earlier than necessary !!! + exit 0; + ;; + + failed-upgrade) + ;; + + deconfigure) + echo "Deconfigure of $PACKAGE $2 $3($4) $5 $6($7) "; + ;; + + *) + echo "$PACKAGE prerm called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +# +# Included for sanity checks +# +#DEBHELPER# +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-bin.suid.in +++ sendmail-8.14.4/debian/build/debian/sendmail-bin.suid.in @@ -0,0 +1,2 @@ +@sbindir@/sendmail +@libexecdir@/mailstats --- sendmail-8.14.4.orig/debian/build/debian/sendmail-cf.dirs.in +++ sendmail-8.14.4/debian/build/debian/sendmail-cf.dirs.in @@ -0,0 +1,11 @@ +.@docdir@/sendmail-cf +.@datadir@/sendmail/cf +.@datadir@/sendmail/cf/cf +.@datadir@/sendmail/cf/debian +.@datadir@/sendmail/cf/domain +.@datadir@/sendmail/cf/feature +.@datadir@/sendmail/cf/hack +.@datadir@/sendmail/cf/m4 +.@datadir@/sendmail/cf/mailer +.@datadir@/sendmail/cf/ostype +.@datadir@/sendmail/cf/sh --- sendmail-8.14.4.orig/debian/build/debian/sendmail-cf.postrm.in +++ sendmail-8.14.4/debian/build/debian/sendmail-cf.postrm.in @@ -0,0 +1,52 @@ +#!/bin/sh -e +# +# Debian post removal script +# +# Install of already installed package: +# 1) Upgrade of package: +# new-preinst upgrade old-version +# *) new-postrm abort-upgrade old-version +# 2) package had some configuration files from a previous version installed +# new-preinst install old-version +# *) new-postrm abort-install old-version +# 3) Otherwise (i.e., the package was completely purged) +# new-preinst install +# *) new-postrm abort-install +# +# Removal of a package: +# 1) prerm remove +# 2) The package's files are removed (except conffiles). +# 3) postrm remove +# 4) All the maintainer scripts except the postrm are removed. +# 5) The conffiles and any backup files +# (~-files, #*# files, %-files, .dpkg-{old,new,tmp}, etc.) are removed. +# 6) postrm purge +# 7) The package's file list is removed +# +set -e; + +PACKAGE=sendmail-cf; + +case "$1" in + remove) + # Make sure the data directory is *clean* + rm -rf @datadir@/sendmail/cf + ;; + + purge) + ;; + + upgrade) + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "$PACKAGE postrm called with unknown argument \`$1'" >&2; + exit 1; + ;; + esac; + +#DEBHELPER# +exit 0; --- sendmail-8.14.4.orig/debian/build/debian/sendmail-cf.preinst.in +++ sendmail-8.14.4/debian/build/debian/sendmail-cf.preinst.in @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +PACKAGE=sendmail-cf; + +if [ -L @docdir@/$PACKAGE ]; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm @docdir@/$PACKAGE +fi +if [ -L /usr/share/bug/$PACKAGE ]; then + rm /usr/share/bug/$PACKAGE +fi + +#DEBHELPER# --- sendmail-8.14.4.orig/debian/build/debian/sendmail-doc.dirs.in +++ sendmail-8.14.4/debian/build/debian/sendmail-doc.dirs.in @@ -0,0 +1,5 @@ +.@docdir@/sendmail-doc +.@docdir@/sendmail-doc/libmilter +.@docdir@/sendmail-doc/libmilter/html +.@docdir@/sendmail-doc/op +.@docdir@/sendmail-doc/sendmail --- sendmail-8.14.4.orig/debian/build/debian/sendmail-doc.preinst.in +++ sendmail-8.14.4/debian/build/debian/sendmail-doc.preinst.in @@ -0,0 +1,28 @@ +#!/bin/sh +set -e + +PACKAGE=sendmail-doc; + +if [ -L @docdir@/$PACKAGE ]; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm @docdir@/$PACKAGE +fi +if [ -L /usr/share/bug/$PACKAGE ]; then + rm /usr/share/bug/$PACKAGE +fi + +if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "8.14.4-2.2~"; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm -rf @docdir@/sendmail/libmilter/ + rm -rf @docdir@/sendmail/op/ + rm -rf @docdir@/sendmail/sendmail/ + rm -f @docdir@/sendmail/Debian-specific.gz + rm -f @docdir@/sendmail/KNOWNBUGS.gz + rm -f @docdir@/sendmail/README.Debian.sendmail-doc + rm -f @docdir@/sendmail/cf.README.gz + rm -f @docdir@/sendmail/faq.txt.gz + rm -f @docdir@/sendmail/site.config.m4.gz + rm -f @docdir@/sendmail/smrsh.README.gz +fi + +#DEBHELPER# --- sendmail-8.14.4.orig/debian/build/debian/sendmail.cron.daily.in +++ sendmail-8.14.4/debian/build/debian/sendmail.cron.daily.in @@ -0,0 +1,101 @@ +#!/bin/sh +set +e; + +#------------------------------------------------------------------------------ +# Autoconf variables - in a form suitable for sh, perl +# Generated automatically from autoconf.sh.in by configure. +#------------------------------------------------------------------------------ +# Variables for, and by, Autoconf (Don't touch these! edit config step) +PACKAGE_NAME="@PACKAGE_NAME@"; +PACKAGE_VERSION="@PACKAGE_VERSION@"; +prefix="@prefix@"; +exec_prefix="@exec_prefix@"; +bindir="@bindir@"; +sbindir="@sbindir@"; +libexecdir="@libexecdir@"; +datadir="@datadir@"; +sysconfdir="@sysconfdir@"; +sharedstatedir="@sharedstatedir@"; +localstatedir="@localstatedir@"; +libdir="@libdir@"; +includedir="@includedir@"; +infodir="@infodir@"; +mandir="@mandir@"; +docdir="@docdir@"; +srcdir="@srcdir@"; + +copies=2; + +# backup "/etc/mail/sendmail.mc" +if [ -f ${sysconfdir}/mail/sendmail.mc ]; then + if [ ! -f ${localstatedir}/backups/sendmail.mc.bak ]; then + cp -pf ${sysconfdir}/mail/sendmail.mc \ + ${localstatedir}/backups/sendmail.mc.bak; + fi; + if ! cmp -s ${localstatedir}/backups/sendmail.mc.bak \ + ${sysconfdir}/mail/sendmail.mc ; then + cd ${localstatedir}/backups; + /usr/bin/savelog -p -c $copies sendmail.mc.bak > /dev/null; + cp -pf ${sysconfdir}/mail/sendmail.mc \ + ${localstatedir}/backups/sendmail.mc.bak; + fi; + fi; + +# backup "/etc/mail/submit.mc" +if [ -f ${sysconfdir}/mail/submit.mc ]; then + if [ ! -f ${localstatedir}/backups/submit.mc.bak ]; then + cp -pf ${sysconfdir}/mail/submit.mc \ + ${localstatedir}/backups/submit.mc.bak; + fi; + if ! cmp -s ${localstatedir}/backups/submit.mc.bak \ + ${sysconfdir}/mail/submit.mc ; then + cd ${localstatedir}/backups; + /usr/bin/savelog -p -c $copies submit.mc.bak > /dev/null; + cp -pf ${sysconfdir}/mail/submit.mc \ + ${localstatedir}/backups/submit.mc.bak; + fi; + fi; + +# while we're here, might as well do sendmail.cf +if [ -f ${sysconfdir}/mail/sendmail.cf ]; then + if [ ! -f ${localstatedir}/backups/sendmail.cf.bak ]; then + cp -pf ${sysconfdir}/mail/sendmail.cf \ + ${localstatedir}/backups/sendmail.cf.bak; + fi; + if ! cmp -s ${localstatedir}/backups/sendmail.cf.bak \ + ${sysconfdir}/mail/sendmail.cf ; then + cd ${localstatedir}/backups; + # save previous generation only if differences are significant + diff -bBwI "^\#\#\#\#\# " \ + ${localstatedir}/backups/sendmail.cf.bak \ + ${sysconfdir}/mail/sendmail.cf > /dev/null; + if [ $? -ne 0 ]; then + /usr/bin/savelog -p -c $copies sendmail.cf.bak \ + > /dev/null; + fi; + cp -pf ${sysconfdir}/mail/sendmail.cf \ + ${localstatedir}/backups/sendmail.cf.bak; + fi; + fi; + +# while we're here, might as well do submit.cf +if [ -f ${sysconfdir}/mail/submit.cf ]; then + if [ ! -f ${localstatedir}/backups/submit.cf.bak ]; then + cp -pf ${sysconfdir}/mail/submit.cf \ + ${localstatedir}/backups/submit.cf.bak; + fi; + if ! cmp -s ${localstatedir}/backups/submit.cf.bak \ + ${sysconfdir}/mail/submit.cf ; then + cd ${localstatedir}/backups; + # save previous generation only if differences are significant + diff -bBwI "^\#\#\#\#\# " \ + ${localstatedir}/backups/submit.cf.bak \ + ${sysconfdir}/mail/submit.cf > /dev/null; + if [ $? -ne 0 ]; then + /usr/bin/savelog -p -c $copies submit.cf.bak \ + > /dev/null; + fi; + cp -pf ${sysconfdir}/mail/submit.cf \ + ${localstatedir}/backups/submit.cf.bak; + fi; + fi; --- sendmail-8.14.4.orig/debian/build/debian/sendmail.dirs.in +++ sendmail-8.14.4/debian/build/debian/sendmail.dirs.in @@ -0,0 +1 @@ +.@docdir@/sendmail --- sendmail-8.14.4.orig/debian/build/debian/sendmail.init.d.in +++ sendmail-8.14.4/debian/build/debian/sendmail.init.d.in @@ -0,0 +1,39 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: sendmail +# Required-Start: $remote_fs $network $syslog +# Required-Stop: $remote_fs $network $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: powerful, efficient, and scalable Mail Transport Agent +# Description: Sendmail is an alternative Mail Transport Agent (MTA) +# for Debian. It is suitable for handling sophisticated +# mail configurations, although this means that its +# configuration can also be complex. Fortunately, simple +# thing can be done easily, and complex thing are possible, +# even if not easily understood ;) Sendmail is the *ONLY* +# MTA with a Turing complete language to control *ALL* +# aspects of delivery! +### END INIT INFO + +# Author: Marc-Christian Petersen + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +DESC="Mail Transport Agent (MTA)" +NAME=sendmail +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="" +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/sendmail ] && . /etc/default/sendmail + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +. /lib/lsb/init-functions + --- sendmail-8.14.4.orig/debian/build/debian/sensible-mda.dirs.in +++ sendmail-8.14.4/debian/build/debian/sensible-mda.dirs.in @@ -0,0 +1,4 @@ +.@sbindir@ +.@mandir@ +.@mandir@/man8 +.@datadir@/lintian/overrides --- sendmail-8.14.4.orig/debian/build/debian/sensible-mda.lintian-overrides +++ sendmail-8.14.4/debian/build/debian/sensible-mda.lintian-overrides @@ -0,0 +1,2 @@ +sensible-mda: setuid-binary usr/sbin/sensible-mda 4755 root/root +sensible-mda: description-synopsis-starts-with-a-capital-letter --- sendmail-8.14.4.orig/debian/build/debian/sensible-mda.preinst.in +++ sendmail-8.14.4/debian/build/debian/sensible-mda.preinst.in @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +PACKAGE=sensible-mda; + +if [ -L @docdir@/$PACKAGE ]; then + # /usr/share/doc/$PACKAGE was a symlink to /usr/share/doc/sendmail + rm @docdir@/$PACKAGE +fi +if [ -L /usr/share/bug/$PACKAGE ]; then + rm /usr/share/bug/$PACKAGE +fi + +#DEBHELPER# --- sendmail-8.14.4.orig/debian/build/depcomp +++ sendmail-8.14.4/debian/build/depcomp @@ -0,0 +1,464 @@ +#! /bin/sh + +# depcomp - compile a program generating dependencies as side-effects +# Copyright 1999, 2000 Free Software Foundation, Inc. + +# 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 2, 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, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi +# `libtool' can also be set to `yes' or `no'. + +if test -z "$depfile"; then + base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` + dir=`echo "$object" | sed 's,/.*$,/,'` + if test "$dir" = "$object"; then + dir= + fi + # FIXME: should be _deps on DOS. + depfile="$dir.deps/$base" +fi + +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> $depfile + echo >> $depfile + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> $depfile + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. This file always lives in the current directory. + # Also, the AIX compiler puts `$object:' at the start of each line; + # $object doesn't have directory information. + stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` + tmpdepfile="$stripped.u" + outname="$stripped.o" + if test "$libtool" = yes; then + "$@" -Wc,-M + else + "$@" -M + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + + if test -f "$tmpdepfile"; then + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Must come before tru64. + + # Intel's C compiler understands `-MD -MF file'. However + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^[^:]*: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + rm -f "$tmpdepfile" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + + if test "$libtool" = yes; then + tmpdepfile1="$dir.libs/$base.lo.d" + tmpdepfile2="$dir.libs/$base.d" + "$@" -Wc,-MD + else + tmpdepfile1="$dir$base.o.d" + tmpdepfile2="$dir$base.d" + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + if test -f "$tmpdepfile1"; then + tmpdepfile="$tmpdepfile1" + else + tmpdepfile="$tmpdepfile2" + fi + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a space and a tab in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for `:' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. + "$@" $dashmflag | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no + for arg in "$@"; do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix="`echo $object | sed 's/^.*\././'`" + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + "$@" || exit $? + IFS=" " + for arg + do + case "$arg" in + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 --- sendmail-8.14.4.orig/debian/build/install-sh +++ sendmail-8.14.4/debian/build/install-sh @@ -0,0 +1,294 @@ +#!/bin/sh +# +# install - install a program, script, or datafile +# +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +transformbasename="" +transform_arg="" +instcmd="$mvprog" +chmodcmd="$chmodprog 0755" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" +dir_arg="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd=$cpprog + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd=$stripprog + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "$0: no input file specified" >&2 + exit 1 +else + : +fi + +if [ x"$dir_arg" != x ]; then + dst=$src + src="" + + if [ -d "$dst" ]; then + instcmd=: + chmodcmd="" + else + instcmd=$mkdirprog + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad +# if $src (and thus $dsttmp) contains '*'. + + if [ -f "$src" ] || [ -d "$src" ] + then + : + else + echo "$0: $src does not exist" >&2 + exit 1 + fi + + if [ x"$dst" = x ] + then + echo "$0: no destination specified" >&2 + exit 1 + else + : + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + + if [ -d "$dst" ] + then + dst=$dst/`basename "$src"` + else + : + fi +fi + +## this sed command emulates the dirname command +dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=' + ' +IFS="${IFS-$defaultIFS}" + +oIFS=$IFS +# Some sh's can't handle IFS=/ for some reason. +IFS='%' +set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS=$oIFS + +pathcomp='' + +while [ $# -ne 0 ] ; do + pathcomp=$pathcomp$1 + shift + + if [ ! -d "$pathcomp" ] ; + then + $mkdirprog "$pathcomp" + else + : + fi + + pathcomp=$pathcomp/ +done +fi + +if [ x"$dir_arg" != x ] +then + $doit $instcmd "$dst" && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" = x ] + then + dstfile=`basename "$dst"` + else + dstfile=`basename "$dst" $transformbasename | + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" = x ] + then + dstfile=`basename "$dst"` + else + : + fi + +# Make a couple of temp file names in the proper directory. + + dsttmp=$dstdir/#inst.$$# + rmtmp=$dstdir/#rm.$$# + +# Trap to clean up temp files at exit. + + trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 + trap '(exit $?); exit' 1 2 13 15 + +# Move or copy the file name to the temp name + + $doit $instcmd "$src" "$dsttmp" && + +# and set any options; do chmod last to preserve setuid bits + +# If any of these fail, we abort the whole thing. If we want to +# ignore errors from any of these, just make sure not to ignore +# errors from the above "$doit $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && + +# Now remove or move aside any old file at destination location. We try this +# two ways since rm can't unlink itself on some systems and the destination +# file might be busy for other reasons. In this case, the final cleanup +# might fail but the new file should still install successfully. + +{ + if [ -f "$dstdir/$dstfile" ] + then + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || + $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || + { + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 + (exit 1); exit + } + else + : + fi +} && + +# Now rename the file to the real destination. + + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" + +fi && + +# The final little trick to "correctly" pass the exit status to the exit trap. + +{ + (exit 0); exit +} --- sendmail-8.14.4.orig/debian/build/missing +++ sendmail-8.14.4/debian/build/missing @@ -0,0 +1,336 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. +# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. +# Originally by Fran,cois Pinard , 1996. + +# 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 2, 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, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=: + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=configure.ac +else + configure_ac=configure.in +fi + +case "$1" in +--run) + # Try to run requested program, and just exit if it succeeds. + run= + shift + "$@" && exit 0 + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case "$1" in + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fails + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flags + yacc create \`y.tab.[ch]', if possible, from existing .[ch]" + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing 0.4 - GNU automake" + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + + aclocal*) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case "$f" in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. + You can get \`$1Help2man' as part of \`Autoconf' from any GNU + archive site." + + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` + fi + if [ -f "$file" ]; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit 1 + fi + ;; + + makeinfo) + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then + # We have makeinfo, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` + fi + touch $file + ;; + + tar) + shift + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + fi + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg="$1" + if shift; then + case "$firstarg" in + *o*) + firstarg=`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case "$firstarg" in + *h*) + firstarg=`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequirements for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 --- sendmail-8.14.4.orig/debian/build/mkinstalldirs +++ sendmail-8.14.4/debian/build/mkinstalldirs @@ -0,0 +1,111 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# Created: 1993-05-16 +# Public domain + +errstatus=0 +dirmode="" + +usage="\ +Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." + +# process command line arguments +while test $# -gt 0 ; do + case $1 in + -h | --help | --h*) # -h for help + echo "$usage" 1>&2 + exit 0 + ;; + -m) # -m PERM arg + shift + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } + dirmode=$1 + shift + ;; + --) # stop option processing + shift + break + ;; + -*) # unknown option + echo "$usage" 1>&2 + exit 1 + ;; + *) # first non-opt arg + break + ;; + esac +done + +for file +do + if test -d "$file"; then + shift + else + break + fi +done + +case $# in + 0) exit 0 ;; +esac + +case $dirmode in + '') + if mkdir -p -- . 2>/dev/null; then + echo "mkdir -p -- $*" + exec mkdir -p -- "$@" + fi + ;; + *) + if mkdir -m "$dirmode" -p -- . 2>/dev/null; then + echo "mkdir -m $dirmode -p -- $*" + exec mkdir -m "$dirmode" -p -- "$@" + fi + ;; +esac + +for file +do + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` + shift + + pathcomp= + for d + do + pathcomp="$pathcomp$d" + case $pathcomp in + -*) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + else + if test ! -z "$dirmode"; then + echo "chmod $dirmode $pathcomp" + lasterr="" + chmod "$dirmode" "$pathcomp" || lasterr=$? + + if test ! -z "$lasterr"; then + errstatus=$lasterr + fi + fi + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# End: +# mkinstalldirs ends here --- sendmail-8.14.4.orig/debian/build/rules.hdr +++ sendmail-8.14.4/debian/build/rules.hdr @@ -0,0 +1,64 @@ +#!/usr/bin/make -f +#------------------------------------------------------------------------------ +# vim: syntax=make +# +# $Sendmail: rules,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. +# +# The only thing to watch for is to make sure the changelog correctly +# reflects the appropriate version and distribution! +# +# To support private builds: +# 1) use the environment variables (defaults shown first): +# CC=gcc|gcc-3.0..........-- choose compiler +# CFLAGS='-O2 -Wall [-g]'.-- choose compile options +# DEFINES=''..............-- additional -Dxxx +# SM_CONF_OPT=''..........-- additional configure options +# SM_BUILD_OPT=''.........-- additional build options +# 2) Build the package using your normal setup: +# A) [fakeroot] debian/rules binary +# B) debuild -rfakeroot +# C) dpkg-buildpackage -rfakeroot -uc -us +# +# DEB_BUILD_OPTIONS (global Debian package build options) +# Debian specific, and common across package options +# noopt - Do *NOT* compile with optimization (force -O0) +# nostrip - Do *NOT* strip binaries (for debugging) +# +# +# SM_CONF_OPT +# Additional configure options and/or overrides may be specified thusly: +# 1) export SM_CONF_OPT='--enable-shm=no' +# dpkg-buildpackage -rfakeroot -uc -us +# 2) SM_CONF_OPT='--enable-shm=no' dpkg-buildpackage +# 3) debuild -e SM_CONF_OPT='--enable-shm=no' +# etc... +# +# SM_BUILD_OPT +# 1) export SM_BUILD_OPT='notls' +# dpkg-buildpackage -rfakeroot -uc -us +# 2) SM_BUILD_OPT='notls' dpkg-buildpackage -rfakeroot -uc -us +# 3) debuild -e SM_BUILD_OPT='notls' -e CLFAGS='-O3 Wall' +# etc... +# +# Supported options values for SM_BUILD_OPT: +# notls Disable STARTTLS (OpenSSL) support +# noauth Disable SMTP AUTH (sasl) support +# nodev Disable generation of libmilter-dev package +# nodoc Disable generation of sendmail-doc package +# +# This make file uses scripts from the DBS (0.8) package! +# +# Richard Nelson @sm_date@ @sm_time@ (@sm_utc@) +#------------------------------------------------------------------------------ --- sendmail-8.14.4.orig/debian/build/site.config.m4.in +++ sendmail-8.14.4/debian/build/site.config.m4.in @@ -0,0 +1,243 @@ +#----------------------------------------------------------------------------- +# $Sendmail: site.config.m4,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# Debian site.config.m4 for sendmail @sm_version@@sm_revision@(@sm_version_math@) +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +#----------------------------------------------------------------------------- +# +#------------------------------------------------------------------ +# Sendmail @sm_version@@sm_revision@(@sm_version_math@) on @sm_date@ at @sm_time@ (@sm_utc@) +#------------------------------------------------------------------ +# +#------------------------------------------------------------------ +# The following sendmail features are included +#------------------------------------------------------------------ +#REGEX: @sm_enable_regex@ +#NDBM: @sm_enable_ndbm@ +#NEWDB: @sm_enable_newdb@ @sm_newdb_lib@ +#NIS: @sm_enable_nis@ +#NISPLUS: @sm_enable_nisplus@ +#LDAP: @sm_enable_ldap@ @sm_ldap_lib@ +#HESIOD: @sm_enable_hesiod@ @sm_hesiod_parms@ +#TCPD: @sm_enable_tcpd@ +#BIND: @sm_enable_bind@ +#IPv6: @sm_enable_ipv6@ +#Maillock: @sm_enable_maillock@ +#MILTER: @sm_enable_milter@ +#SFIO: @sm_enable_sfio@ +#AUTH: @sm_enable_auth@ @sm_auth_lib@ +#TLS: @sm_enable_tls@ +#SHM: @sm_enable_shm@ +#FFRs: @sm_ffr@ +#M4_FFRs: @sm_m4_ffr@ +# +#------------------------------------------------------------------ +# Packages and build dependancies (Debian packages) +#------------------------------------------------------------------ +#Sendmail: sendmail +#Build-Depends: @sm_badepends@ +#Depends: @sm_depends@ +#Recommends: @sm_recommends@ +#Suggests: @sm_suggests@ +# +#------------------------------------------------------------------ +# Build Setup +#------------------------------------------------------------------ +#Autoconf version: @ac_version@ +#Automake version: @am_version@ +#DEBIAN_DH(DebHelper): @DEBIAN_DH@ internal use(not reliable) +# +#DEB_BUILD_ARCH: @DEB_BUILD_ARCH@ +#DEB_BUILD_GNU_CPU: @DEB_BUILD_GNU_CPU@ +#DEB_BUILD_GNU_SYSTEM: @DEB_BUILD_GNU_SYSTEM@ +#DEB_BUILD_GNU_TYPE: @DEB_BUILD_GNU_TYPE@ +#DEB_HOST_ARCH: @DEB_HOST_ARCH@ +#DEB_HOST_GNU_CPU: @DEB_HOST_GNU_CPU@ +#DEB_HOST_GNU_SYSTEM: @DEB_HOST_GNU_SYSTEM@ +#DEB_HOST_GNU_TYPE: @DEB_HOST_GNU_TYPE@ +# +#------------------------------------------------------------------ +# Autoconf variable settings defaults +#------------------------------------------------------------------ +#prefix: @prefix@ /usr/local +#exec_prefix: @exec_prefix@ ${prefix} +#bindir: @bindir@ ${exec_prefix}/bin +#sbindir: @sbindir@ ${exec_prefix}/sbin +#libexecdir: @libexecdir@ ${exec_prefix}/libexec +#datadir: @datadir@ ${prefix}/share +#sysconfdir: @sysconfdir@ ${prefix}/etc +#sharedstatedir: @sharedstatedir@ ${prefix}/com +#localstatedir: @localstatedir@ ${prefix}/var +#libdir: @libdir@ ${exec_prefix}/var +#includedir: @includedir@ ${prefix}/include +#oldincludedir: @oldincludedir@ /usr/include +#infodir: @infodir@ ${prefix}/info +#mandir: @mandir@ ${prefix}/man +#docdir: @docdir@ ${prefix}/doc +#srcdir: @srcdir@ configure or .. +# +#------------------------------------------------------------------ +# Build options for the various pieces parts of sendmail +#------------------------------------------------------------------ +# +# Make sure defaults are sound... +define(`confLIBS', `')dnl # was -ldl +# +# global +APPENDDEF(`confINCDIRS', `@sm_incdirs@') +APPENDDEF(`confMAPDEF', `@sm_mapdef@') +APPENDDEF(`confENVDEF', `@sm_envdef@') +APPENDDEF(`confLIBS', `@sm_libs@') +# +# editmap +APPENDDEF(`conf_editmap_ENVDEF', `@sm_editmap_envdef@') +APPENDDEF(`conf_editmap_LIBS', `@sm_editmap_libs@') +# +# libmilter +APPENDDEF(`conf_libmilter_ENVDEF', `@sm_libmilter_envdef@') +APPENDDEF(`conf_libmilter_LIBS', `@sm_libmilter_libs@') +APPENDDEF(`conf_libmilter_ENVDEF', `-DSM_CONF_POLL=1') +APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_WORKERS_POOL=1') +# +# libsm +APPENDDEF(`conf_libsm_ENVDEF', `@sm_libsm_envdef@') +APPENDDEF(`conf_libsm_LIBS', `@sm_libsm_libs@') +# +# libsmdb +APPENDDEF(`conf_libsmdb_ENVDEF', `@sm_libsmdb_envdef@') +APPENDDEF(`conf_libsmdb_LIBS', `@sm_libsmdb_libs@') +# +# libsmutil +APPENDDEF(`conf_libsmutil_ENVDEF', `@sm_libsmutil_envdef@') +APPENDDEF(`conf_libsmutil_LIBS', `@sm_libsmutil_libs@') +# +# mail.local +APPENDDEF(`conf_mail_local_ENVDEF', `@sm_mail_local_envdef@') +APPENDDEF(`conf_mail_local_LIBS', `@sm_mail_local_libs@') +# +# mailstats +APPENDDEF(`conf_mailstats_ENVDEF', `@sm_mailstats_envdef@') +APPENDDEF(`conf_mailstats_LIBS', `@sm_mailstats_libs@') +# +# makemap +APPENDDEF(`conf_makemap_ENVDEF', `@sm_makemap_envdef@') +APPENDDEF(`conf_makemap_LIBS', `@sm_makemap_libs@') +# +# praliases +APPENDDEF(`conf_praliases_ENVDEF', `@sm_praliases_envdef@') +APPENDDEF(`conf_praliases_LIBS', `@sm_praliases_libs@') +# +# rmail +APPENDDEF(`conf_rmail_ENVDEF', `@sm_rmail_envdef@') +APPENDDEF(`conf_rmail_LIBS', `@sm_rmail_libs@') +# +# sendmail +APPENDDEF(`conf_sendmail_ENVDEF', `@sm_sendmail_envdef@') +APPENDDEF(`conf_sendmail_LIBS', `@sm_sendmail_libs@') +# +# smrsh +APPENDDEF(`conf_smrsh_ENVDEF', `@sm_smrsh_envdef@') +APPENDDEF(`conf_smrsh_LIBS', `@sm_smrsh_libs@') +# +# vacation +APPENDDEF(`conf_vacation_ENVDEF', `@sm_vacation_envdef@') +APPENDDEF(`conf_vacation_LIBS', `@sm_vacation_libs@') +# +#------------------------------------------------------------------ +# Build-time selection not handled by autoconf above +#------------------------------------------------------------------ +# none, for the nonce... +# +#------------------------------------------------------------------ +# Global Build time configuration +#------------------------------------------------------------------ +# compilation/link +define(`confCC', `@CC@')dnl #Compiler +define(`confOPTIMIZE', `@CFLAGS@')dnl #Optimization +define(`confCCOPTS', `')dnl #CC options +define(`confCCOPTS_SO' `-fPIC')dnl #Shared libraries +define(`confLD', confCC)dnl #Linker +define(`confLDOPTS', `@LDFLAGS@')dnl #Linker opts +define(`confLDOPTS_SO', `-shared -fPIC @LDFLAGS@')dnl #linker shared lib +define(`confLIBDIRS', `')dnl #-L linker flags +define(`confMTCCOPTS', `-D_REENTRANT')dnl #Multi-thread cc opts +define(`confMTLDOPTS', `-lpthread')dnl #Multi-thread ld opts +define(`confSHAREDLIB_EXT', `.so')dnl # +define(`confSHAREDLIB_SUFFIX', `')dnl # +define(`confSHAREDLIBDIR', `@libdir@')dnl # +define(`confSONAME',`-soname')dnl # +# +# paths, owners, and modes +# Note: can't use smmsp here, it is dynamically created +# Note: EBINDIR deserves a better home, suggestions? +define(`confEBINDIR', `@libexecdir@')dnl #mail.local,smrsh,etc. +define(`confGBINGRP', `mail')dnl #sgid binary group smmsp +define(`confGBINMODE', `02755')dnl #sgid binary mode +define(`confGBINOWN', `root')dnl #sgid binary owner +define(`confHFDIR', `@sysconfdir@/mail')dnl #helpfile dir +define(`confHFFILE', `helpfile')dnl #helpfile name +define(`confINCGRP', `root')dnl #include group +define(`confINCMODE', `0744')dnl #include mode +define(`confINCOWN', `root')dnl #include owner +ifelse(eval(@sm_version_math@ >= 527363), `1',dnl +`define(`confINCLUDEDIR',`@includedir@')dnl #include target', +`define(`confINCLUDEDIR',`@includedir@/libmilter')dnl #include target' +)dnl +define(`confINST_DEP', `')dnl #submit.cf clientmqueue +define(`confLIBDIR', `@libdir@/libmilter')dnl #library dir +define(`confLIBGRP', `root')dnl #library group +define(`confLIBMODE', `0744')dnl #library mode +define(`confLIBOWN', `root')dnl #library owner +define(`confMANROOT', `@mandir@/man')dnl #man root +define(`confMANROOTMAN',`@mandir@/man')dnl #man root +define(`confMANGRP', `root')dnl #man group +define(`confMANMODE', `0744')dnl #man mode +define(`confMANOWN', `root')dnl #man owner +define(`confMBINDIR', `@libexecdir@')dnl #MTA bindir @sbindir@ +define(`confMBINGRP', `root')dnl #MTA bin grp +define(`confMBINMODE', `0755')dnl #MTA bin mode +define(`confMBINOWN', `root')dnl #MTA bin owner +define(`confMSPQOWN', `mail')dnl #MSP queue owner smmsp +define(`confMSP_QUEUE_DIR', `/var/spool/mqueue-client')dnl +define(`confSBINDIR', `@libexecdir@')dnl #suid bin dir @sbindir@ +define(`confSBINGRP', `root')dnl #suid bin grp +define(`confSBINMODE', `04755')dnl #suid bin mode +define(`confSBINOWN', `root')dnl #suid bin owner +# Note, STDIR in /var/lib/sendmail... default is /var/spool/mqueue +define(`confSTDIR', `@localstatedir@/lib/sendmail')dnl #Statistics dir +define(`confSTFILE', `statistics')dnl #statistics name +define(`confMSP_STFILE',`sm-client.st')dnl #MSP statistics name +define(`confSTMODE', `0660')dnl #statistics mode +define(`confUBINDIR', `@libexecdir@')dnl #usr bin dir @bindir@ +define(`confUBINGRP', `mail')dnl #usr bin grp smmsp +define(`confUBINMODE', `0755')dnl #usr bin mode +define(`confUBINOWN', `root')dnl #usr bin owner +# +# don't provide links, I'll do them myself later +# sigh... must have something in there or $(make install) croaks -- temp file +define(`confLINKS', `sendmail-bin')dnl +define(`confMTA_LINKS')dnl +# +# Force rmail installation +define(`confFORCE_RMAIL')dnl +# +# don't install formatted man pages or sendmail.st +dnl define(`confNO_MAN_INSTALL')dnl +dnl define(`confNO_MAN_BUILD')dnl +define(`confINSTALL_RAWMAN')dnl +define(`confDONT_INSTALL_CATMAN', `')dnl # for 8.12 +define(`confMANDOC', `')dnl # for 8.9.3 +define(`confNROFF', `cat')dnl # for 8.9.3 +define(`confNO_STATISTICS_INSTALL')dnl +# +# flags +# +# Tests (should be temporary) +# --- sendmail-8.14.4.orig/debian/build/update_chaos.in +++ sendmail-8.14.4/debian/build/update_chaos.in @@ -0,0 +1,202 @@ +#!/bin/sh +#----------------------------------------------------------------------------- +# $Sendmail: update_chaos,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 2001-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# Debian script to rationalize builds for Sendmail @sm_version@@sm_revision@(@sm_math@) +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +#----------------------------------------------------------------------------- +set -e; + +#------------------------------------------------------------------ +# Exit, stage left, even... if not needed (private dir, or >= 8.10.0) +#------------------------------------------------------------------ +BUILD_TREE='@srcdir@/../../build-tree/sendmail-@sm_version@'; +if [ ! -d ${BUILD_TREE} ]; then + exit 0; + fi; +if [ -d ${BUILD_TREE}/devtools/bin ]; then + exit 0; + fi; + +echo "Rationalizing Sendmail-@sm_version@ setup..."; + +#------------------------------------------------------------------ +# List of subdirectories to work on +#------------------------------------------------------------------ +SUBDIRS="editmap libmilter mail.local mailstats + makemap praliases rmail sendmail smrsh vacation"; + +#------------------------------------------------------------------ +# Match Sendmail's build directory conventions +#------------------------------------------------------------------ +os=`uname -s | sed -e 's/\//-/g' -e 's/ //g'`; +rel=`uname -r | sed -e 's/(/-/g' -e 's/)//g'`; +arch=`uname -m | sed -e 's/ //g'`; +OBJ_DIR="obj.${os}.${rel}.${arch}"; + +#------------------------------------------------------------------ +# Function to escape quotes (to survive subsequent sed) +#------------------------------------------------------------------ +esq () { + result=$(echo "${1}" | sed -e 's?\"?\\\\\\\"?g'); + }; + +#------------------------------------------------------------------ +# Prior to 8.10.0, sendmail source was in the src directory +# Prior to 8.10.0, devtools was called BuildTools +# Create compatibility links (to look like 8.10.0+) +#------------------------------------------------------------------ +if [ ! -d ${BUILD_TREE}/sendmail ]; then + echo "...Creating \${BUILD_TREE}/sendmail compatibility symlink"; + ln -sf src ${BUILD_TREE}/sendmail; + if [ ! -d ${BUILD_TREE}/devtools ]; then + echo "...Creating \${BUILD_TREE}/devtools compatibility symlink"; + ln -sf BuildTools ${BUILD_TREE}/devtools; + fi; + fi; + +#------------------------------------------------------------------ +# Prior to 8.10.0, objects were in the source directories, not separate +# Create compatibility links (to look like 8.10.0+) +#------------------------------------------------------------------ +echo "...Creating ${OBJ_DIR}/ directories"; +mkdir -p ${BUILD_TREE}/${OBJ_DIR}; +for subdir in $SUBDIRS; do + if [ -d ${BUILD_TREE}/${subdir} ]; then + ln -sf "../${subdir}/${OBJ_DIR}" \ + ${BUILD_TREE}/${OBJ_DIR}/${subdir}; + fi; + done; + +#------------------------------------------------------------------ +# If 8.9.0+, we're done, get the flock outa here... +#------------------------------------------------------------------ +if [ -e ${BUILD_TREE}/sendmail/Build ]; then + echo '...Done.'; + exit 0; + fi; + +#------------------------------------------------------------------ +# Prior to 8.9.0, READ_ME was seen in a few places +# Create compatibility links +#------------------------------------------------------------------ +echo '...Creating READ_ME compatility symlinks'; +for file in $(find ${BUILD_TREE} -name 'READ_ME'); do + ln -sf READ_ME $(echo "${file}" | sed -e 's/READ_ME/README/'); + done; + +#------------------------------------------------------------------ +# Prior to 8.9.0, MAKE was used instead of Build +# We'll install a small wrapper for the earlier releases +# Prior to 8.9.0, Only src directory had an obj.* subdirectory +# Create compatibility links (to look like 8.9.0+) +#------------------------------------------------------------------ +echo "...Creating /${OBJ_DIR}"; +for subdir in $SUBDIRS; do + if [ -d ${BUILD_TREE}/${subdir} ]; then + if [ ! -d ${BUILD_TREE}/${subdir}/Makefiles ]; then + mkdir -p ${BUILD_TREE}/${subdir}/${OBJ_DIR}; + for file in `find ${BUILD_TREE}/${subdir} -type f`; do + cp -a $file ${BUILD_TREE}/${subdir}/${OBJ_DIR}; + done; + fi; + cp -a debian/build/Build ${BUILD_TREE}/${subdir}/; + fi; + done; +# +#------------------------------------------------------------------ +# Kluge the Makefiles to comply with our file locations. +#------------------------------------------------------------------ +echo '...Kluging Makefiles'; +for file in mailstats/Makefile.dist \ + mail.local/Makefile.dist \ + makemap/Makefile.dist \ + praliases/Makefile.dist \ + smrsh/Makefile.dist \ + src/Makefiles/Makefile.Linux \ + ; do + cp -a ${BUILD_TREE}/${file} ${BUILD_TREE}/${file}.save; + # + # Set local variables to allow for quoting... + esq "@sm_incdirs@"; + sm_incdirs=$result; + esq "@sm_mapdef@"; + sm_mapdef=$result; + esq "@sm_envdef@"; + sm_envdef=$result; + esq "@sm_libs@"; + sm_libs=$result; + # + # global + sed \ + -e 's?-I/usr/sww/include??' \ + -e 's?-I/usr/local/include??' \ + -e 's?-L/usr/sww/lib??' \ + -e 's?../src?../../src?g' \ + -e "s?^INCDIRS=\(.*\)\$?INCDIRS=\1 $sm_incdirs?" \ + -e "s?^DBMDEF=.*?DBMDEF=$sm_mapdef?" \ + -e "s?^ENVDEF=\(.*\)\$?ENVDEF=\1 $sm_envdef?" \ + -e "s?^LIBS=.*?LIBS=$sm_libs?" \ + ${BUILD_TREE}/${file} > ${BUILD_TREE}/${file}.new; + mv ${BUILD_TREE}/${file}.new ${BUILD_TREE}/${file}; + # + # compilation/link + sed \ + -e 's?^O=.*?O=@CFLAGS@?' \ + -e 's?^LIBDIRS=.*?LIBDIRS=?' \ + ${BUILD_TREE}/${file} > ${BUILD_TREE}/${file}.new; + mv ${BUILD_TREE}/${file}.new ${BUILD_TREE}/${file}; + + # + # paths, owners, and modes + # Note: EBINDIR deserves a better home, suggestions? + sed \ + -e 's?^BINDIR=.*?BINDIR=${DESTDIR}@sbindir@?' \ + -e 's?^BINMODE=.*?BINMODE=04755?' \ + -e 's?^BINGRP=.*?BINGRP=mail?' \ + -e 's?^BINOWN=.*?BINOWN=root?' \ + -e 's?^HFDIR=.*?HFDIR=${DESTDIR}@sysconfdir@/mail?' \ + -e 's?^STDIR=.*?STDIR=${DESTDIR}@localstatedir@/lib/sendmail?' \ + ${BUILD_TREE}/${file} > ${BUILD_TREE}/${file}.new; + mv ${BUILD_TREE}/${file}.new ${BUILD_TREE}/${file}; + + if [ "${file}" = 'mail.local/Makefile.dist' \ + -o "${file}" = 'smrsh/Makefile.dist' \ + ]; then + sed \ + -e 's?^BINDIR=.*?BINDIR=${DESTDIR}@libexecdir@?' \ + -e 's?^BINMODE=.*?BINMODE=04755?' \ + -e 's?^BINGRP=.*?BINGRP=mail?' \ + -e 's?^BINOWN=.*?BINOWN=root?' \ + ${BUILD_TREE}/${file} > ${BUILD_TREE}/${file}.new; + echo 'force-install: install' >> ${BUILD_TREE}/${file}.new; + mv ${BUILD_TREE}/${file}.new ${BUILD_TREE}/${file}; + + elif [ "${file}" = 'mailstats/Makefile.dist' \ + -o "${file}" = 'makemap/Makefile.dist' \ + -o "${file}" = 'praliases/Makefile.dist' \ + ]; then + sed \ + -e 's?^BINDIR=.*?BINDIR=${DESTDIR}@sbindir@?' \ + -e 's?^BINMODE=.*?BINMODE=0755?' \ + -e 's?^BINGRP=.*?BINGRP=mail?' \ + -e 's?^BINOWN=.*?BINOWN=root?' \ + ${BUILD_TREE}/${file} > ${BUILD_TREE}/${file}.new; + mv ${BUILD_TREE}/${file}.new ${BUILD_TREE}/${file}; + fi; + + # For most directories, replace Makefile with our updated Makefile.dist + if [ "${file}" != 'src/Makefiles/Makefile.Linux' ]; then + cp ${BUILD_TREE}/${file} \ + $(dirname "${BUILD_TREE}/${file}")/${OBJ_DIR}/Makefile; + fi; + done; + +echo '...Done.'; --- sendmail-8.14.4.orig/debian/build/version.c +++ sendmail-8.14.4/debian/build/version.c @@ -0,0 +1,2 @@ +char Version[] = "8.l4.1"; + --- sendmail-8.14.4.orig/debian/cf/Makefile.in +++ sendmail-8.14.4/debian/cf/Makefile.in @@ -0,0 +1,486 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = cf +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/./build/mkinstalldirs +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEBIAN = @DEBIAN@ +DEBIAN_DH = @DEBIAN_DH@ +DEB_BUILD_ARCH = @DEB_BUILD_ARCH@ +DEB_BUILD_GNU_CPU = @DEB_BUILD_GNU_CPU@ +DEB_BUILD_GNU_SYSTEM = @DEB_BUILD_GNU_SYSTEM@ +DEB_BUILD_GNU_TYPE = @DEB_BUILD_GNU_TYPE@ +DEB_HOST_ARCH = @DEB_HOST_ARCH@ +DEB_HOST_GNU_CPU = @DEB_HOST_GNU_CPU@ +DEB_HOST_GNU_SYSTEM = @DEB_HOST_GNU_SYSTEM@ +DEB_HOST_GNU_TYPE = @DEB_HOST_GNU_TYPE@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SM_CPYRT = @SM_CPYRT@ +SM_DATE = @SM_DATE@ +SM_MAXVERS = @SM_MAXVERS@ +SM_MINVERS = @SM_MINVERS@ +SM_VERS = @SM_VERS@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_version = @ac_version@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +am_version = @am_version@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +buildtree = @buildtree@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sm_auth_lib = @sm_auth_lib@ +sm_badepends = @sm_badepends@ +sm_build_arch = @sm_build_arch@ +sm_custom = @sm_custom@ +sm_custom_s = @sm_custom_s@ +sm_databases = @sm_databases@ +sm_date = @sm_date@ +sm_depends = @sm_depends@ +sm_dist_name = @sm_dist_name@ +sm_dist_vers = @sm_dist_vers@ +sm_editmap_envdef = @sm_editmap_envdef@ +sm_editmap_libs = @sm_editmap_libs@ +sm_enable_auth = @sm_enable_auth@ +sm_enable_bind = @sm_enable_bind@ +sm_enable_hesiod = @sm_enable_hesiod@ +sm_enable_ipv6 = @sm_enable_ipv6@ +sm_enable_ldap = @sm_enable_ldap@ +sm_enable_maillock = @sm_enable_maillock@ +sm_enable_milter = @sm_enable_milter@ +sm_enable_ndbm = @sm_enable_ndbm@ +sm_enable_newdb = @sm_enable_newdb@ +sm_enable_nis = @sm_enable_nis@ +sm_enable_nisplus = @sm_enable_nisplus@ +sm_enable_regex = @sm_enable_regex@ +sm_enable_sfio = @sm_enable_sfio@ +sm_enable_shm = @sm_enable_shm@ +sm_enable_tcpd = @sm_enable_tcpd@ +sm_enable_tls = @sm_enable_tls@ +sm_envdef = @sm_envdef@ +sm_features = @sm_features@ +sm_ffr = @sm_ffr@ +sm_hesiod_parms = @sm_hesiod_parms@ +sm_host_arch = @sm_host_arch@ +sm_incdirs = @sm_incdirs@ +sm_ldap_lib = @sm_ldap_lib@ +sm_libmilter_envdef = @sm_libmilter_envdef@ +sm_libmilter_libs = @sm_libmilter_libs@ +sm_libmilter_version = @sm_libmilter_version@ +sm_libs = @sm_libs@ +sm_libsm_envdef = @sm_libsm_envdef@ +sm_libsm_libs = @sm_libsm_libs@ +sm_libsmdb_envdef = @sm_libsmdb_envdef@ +sm_libsmdb_libs = @sm_libsmdb_libs@ +sm_libsmutil_envdef = @sm_libsmutil_envdef@ +sm_libsmutil_libs = @sm_libsmutil_libs@ +sm_m4_ffr = @sm_m4_ffr@ +sm_mail_local_envdef = @sm_mail_local_envdef@ +sm_mail_local_libs = @sm_mail_local_libs@ +sm_mailstats_envdef = @sm_mailstats_envdef@ +sm_mailstats_libs = @sm_mailstats_libs@ +sm_makemap_envdef = @sm_makemap_envdef@ +sm_makemap_libs = @sm_makemap_libs@ +sm_mapdef = @sm_mapdef@ +sm_newdb_lib = @sm_newdb_lib@ +sm_praliases_envdef = @sm_praliases_envdef@ +sm_praliases_libs = @sm_praliases_libs@ +sm_recommends = @sm_recommends@ +sm_revision = @sm_revision@ +sm_rmail_envdef = @sm_rmail_envdef@ +sm_rmail_libs = @sm_rmail_libs@ +sm_sendmail_envdef = @sm_sendmail_envdef@ +sm_sendmail_libs = @sm_sendmail_libs@ +sm_smrsh_envdef = @sm_smrsh_envdef@ +sm_smrsh_libs = @sm_smrsh_libs@ +sm_suggests = @sm_suggests@ +sm_time = @sm_time@ +sm_utc = @sm_utc@ +sm_vacation_envdef = @sm_vacation_envdef@ +sm_vacation_libs = @sm_vacation_libs@ +sm_version = @sm_version@ +sm_version_beta = @sm_version_beta@ +sm_version_major = @sm_version_major@ +sm_version_math = @sm_version_math@ +sm_version_minor = @sm_version_minor@ +sm_version_r = @sm_version_r@ +sm_version_v = @sm_version_v@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ + +#!/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 @sm_date@ @sm_time@ (@sm_utc@) +#------------------------------------------------------------------------------ +# +# Shipped data +# +# Installed cf subdirectories +CF_DIRS = cf debian domain feature hack m4 mailer ostype +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu cf/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu cf/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-data-hook +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-data-am install-strip + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ + install-data-hook 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 maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am uninstall uninstall-am + +# +# Local customisation... not automake friendly +# +install-data-hook: + $(INSTALL) -d ${DESTDIR}${pkgdatadir}/cf; + cp -a ${top_srcdir}/../${buildtree}/cf/* ${DESTDIR}${pkgdatadir}/cf; + chmod a+x ${DESTDIR}${pkgdatadir}/cf/sh/makeinfo.sh; + $(RM) ${DESTDIR}${pkgdatadir}/cf/README; + $(RM) ${DESTDIR}${pkgdatadir}/cf/sendmail.schema; + $(RM) ${DESTDIR}${pkgdatadir}/cf/cf/Build; + $(RM) ${DESTDIR}${pkgdatadir}/cf/cf/Makefile; + $(RM) ${DESTDIR}${pkgdatadir}/cf/cf/*.cf; + for dir in ${CF_DIRS}; do \ + $(INSTALL) -d ${DESTDIR}${pkgdatadir}/cf/$$dir; \ + find $$dir -type f -name '*.mc' -o -name '*.m4' \ + | xargs -ri \ + $(INSTALL_DATA) '{}' ${DESTDIR}${pkgdatadir}/cf/'{}'; \ + done; + if [ -f ${top_srcdir}/../${buildtree}/contrib/domainmap.m4 ]; then \ + $(INSTALL_DATA) ${top_srcdir}/../${buildtree}/contrib/domainmap.m4 \ + ${DESTDIR}${pkgdatadir}/cf/feature; \ + fi; + if [ -f ${top_srcdir}/../${buildtree}/contrib/dnsblaccess.m4 ]; then \ + $(INSTALL_DATA) ${top_srcdir}/../${buildtree}/contrib/dnsblaccess.m4 \ + ${DESTDIR}${pkgdatadir}/cf/hack; \ + fi; +# +# Debian targets, phase out (this needs to be treated as -arch, not -indep) +# +.PHONY: build-indep build-arch +.PHONY: install-indep install-arch +build-indep: +build-arch: +install-indep: install +install-arch: + +# 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: --- sendmail-8.14.4.orig/debian/cf/debian/autoconf.m4.in +++ sendmail-8.14.4/debian/cf/debian/autoconf.m4.in @@ -0,0 +1,60 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: autoconf.m4,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 2001-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# m4 autoconf config file for building Sendmail @sm_version@@sm_revision@ +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +#----------------------------------------------------------------------------- +# +divert(0)dnl +VERSIONID(`$Id: autoconf.m4, v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +dnl # +dnl #--------------------------------------------------------------------- +dnl # Export (from autoconf to m4) some items of dubious value +dnl #--------------------------------------------------------------------- +define(`SM_VERS', `@SM_VERS@')dnl +define(`SM_DATE', `@SM_DATE@')dnl +define(`SM_MINVERS', `@SM_MINVERS@')dnl +define(`SM_MAXVERS', `@SM_MAXVERS@')dnl +define(`SM_CPYRT', `@SM_CPYRT@')dnl +define(`sm_date', `@sm_date@')dnl +define(`sm_time', `@sm_time@')dnl +define(`sm_utc', `@sm_utc@')dnl +define(`sm_version', `@sm_version@')dnl +define(`sm_revision', `@sm_revision@')dnl +define(`sm_version_v', `@sm_version_v@')dnl +define(`sm_version_r', `@sm_version_r@')dnl +define(`sm_version_major', `@sm_version_major@')dnl +define(`sm_version_minor', `@sm_version_minor@')dnl +define(`sm_version_beta', `@sm_version_beta@')dnl +define(`sm_version_math', `@sm_version_math@')dnl +define(`sm_enable_regex', `@sm_enable_regex@')dnl +define(`sm_enable_ndbm', `@sm_enable_ndbm@')dnl +define(`sm_enable_newdb', `@sm_enable_newdb@')dnl +define(`sm_newdb_lib', `@sm_newdb_lib@')dnl +define(`sm_enable_nis', `@sm_enable_nis@')dnl +define(`sm_enable_nisplus', `@sm_enable_nisplus@')dnl +define(`sm_enable_ldap', `@sm_enable_ldap@')dnl +define(`sm_ldap_lib', `@sm_ldap_lib@')dnl +define(`sm_enable_hesiod', `@sm_enable_hesiod@')dnl +define(`sm_hesiod_parms', `@sm_hesiod_parms@')dnl +define(`sm_enable_tcpd', `@sm_enable_tcpd@')dnl +define(`sm_enable_ipv6', `@sm_enable_ipv6@')dnl +define(`sm_enable_maillock',`@sm_enable_maillock@')dnl +define(`sm_enable_milter', `@sm_enable_milter@')dnl +define(`sm_enable_sfio', `@sm_enable_sfio@')dnl +define(`sm_enable_auth', `@sm_enable_auth@')dnl +define(`sm_auth_lib', `@sm_auth_lib@')dnl +define(`sm_enable_tls', `@sm_enable_tls@')dnl +define(`sm_enable_shm', `@sm_enable_shm@')dnl +define(`sm_ffr', `@sm_ffr@')dnl +define(`sm_m4_ffr', `@sm_m4_ffr@')dnl +define(`sm_enable_dev', `@sm_enable_dev@')dnl +define(`sm_enable_doc', `@sm_enable_doc@')dnl --- sendmail-8.14.4.orig/debian/cf/debian/sendmail.mc.in +++ sendmail-8.14.4/debian/cf/debian/sendmail.mc.in @@ -0,0 +1,104 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: debproto.mc,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# sendmail.mc prototype config file for building Sendmail @sm_version@ +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +# This file is used to configure Sendmail for use with Debian systems. +# +# If you modify this file, you will have to regenerate /etc/mail/sendmail.cf +# by running this file through the m4 preprocessor via one of the following: +# * make (or make -C /etc/mail) +# * sendmailconfig +# * m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf +# The first two options are preferred as they will also update other files +# that depend upon the contents of this file. +# +# The best documentation for this .mc file is: +# /usr/share/doc/sendmail-doc/cf.README.gz +# +#----------------------------------------------------------------------------- +divert(0)dnl +# +# Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved. +# +# This file is used to configure Sendmail for use with Debian systems. +# +define(`_USE_ETC_MAIL_')dnl +include(`@datadir@/sendmail/cf/m4/cf.m4')dnl +VERSIONID(`$Id: sendmail.mc, v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +OSTYPE(`debian')dnl +DOMAIN(`debian-mta')dnl +dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE +dnl undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS= +dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE +dnl # +dnl # General defines +dnl # +dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot() +dnl # into this directory before writing files. +dnl # If *all* your user accounts are under /home then use that +dnl # instead - it will prevent any writes outside of /home ! +dnl # define(`confSAFE_FILE_ENV', `')dnl +dnl # +dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!! +dnl # Remove `, Addr=' clauses to receive from any interface +dnl # If you want to support IPv6, switch the commented/uncommentd lines +dnl # +FEATURE(`no_default_msa')dnl +dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl +DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl +dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl +DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl +dnl # +dnl # Be somewhat anal in what we allow +define(`confPRIVACY_FLAGS',dnl +`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl +dnl # +dnl # Define connection throttling and window length +define(`confCONNECTION_RATE_THROTTLE', `15')dnl +define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl +dnl # +dnl # Features +dnl # +dnl # use /etc/mail/local-host-names +FEATURE(`use_cw_file')dnl +dnl # +dnl # The access db is the basis for most of sendmail's checking +FEATURE(`access_db', , `skip')dnl +dnl # +dnl # The greet_pause feature stops some automail bots - but check the +dnl # provided access db for details on excluding localhosts... +FEATURE(`greet_pause', `1000')dnl 1 seconds +dnl # +dnl # Delay_checks allows sender<->recipient checking +FEATURE(`delay_checks', `friend', `n')dnl +dnl # +dnl # If we get too many bad recipients, slow things down... +define(`confBAD_RCPT_THROTTLE',`3')dnl +dnl # +dnl # Stop connections that overflow our concurrent and time connection rates +FEATURE(`conncontrol', `nodelay', `terminate')dnl +FEATURE(`ratecontrol', `nodelay', `terminate')dnl +dnl # +dnl # If you're on a dialup link, you should enable this - so sendmail +dnl # will not bring up the link (it will queue mail for later) +dnl define(`confCON_EXPENSIVE',`True')dnl +dnl # +dnl # Dialup/LAN connection overrides +dnl # +include(`/etc/mail/m4/dialup.m4')dnl +include(`/etc/mail/m4/provider.m4')dnl +dnl # +dnl # Default Mailer setup +MAILER_DEFINITIONS +MAILER(`local')dnl +MAILER(`smtp')dnl + --- sendmail-8.14.4.orig/debian/cf/debian/submit.mc.in +++ sendmail-8.14.4/debian/cf/debian/submit.mc.in @@ -0,0 +1,57 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: submit.mc,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 2000-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# submit.mc prototype config file for building Sendmail @sm_version@ +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +# This file is used to configure Sendmail for use with Debian systems. +# +# If you modify this file, you will have to regenerate /etc/mail/submit.cf +# by running this file through the m4 preprocessor via one of the following: +# * make (or make -C /etc/mail) +# * sendmailconfig +# * m4 /etc/mail/submit.mc > /etc/mail/submit.cf +# The first two options are preferred as they will also update other files +# that depend upon the contents of this file. +# +# The best documentation for this .mc file is: +# /usr/share/doc/sendmail-doc/cf.README.gz +# +#----------------------------------------------------------------------------- +divert(0)dnl +# +# Copyright (c) 2000-2002 Richard Nelson. All Rights Reserved. +# +# This file is used to configure Sendmail for use with Debian systems. +# +define(`_USE_ETC_MAIL_')dnl +include(`@datadir@/sendmail/cf/m4/cf.m4')dnl +VERSIONID(`$Id: submit.mc, v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +OSTYPE(`debian')dnl +DOMAIN(`debian-msp')dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # Masquerading information, if needed, should go here +dnl # You likely will not need this, as the MTA will do it +dnl #--------------------------------------------------------------------- +dnl MASQUERADE_AS()dnl +dnl FEATURE(`masquerade_envelope')dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # The real reason we're here: the FEATURE(msp) +dnl # NOTE WELL: MSA (587) should have M=Ea, so we need to use stock 25 +dnl #--------------------------------------------------------------------- +FEATURE(`msp', `[127.0.0.1]', `25')dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # Some minor cleanup from FEATURE(msp) +dnl #--------------------------------------------------------------------- +dnl # +dnl #--------------------------------------------------------------------- --- sendmail-8.14.4.orig/debian/cf/domain/debian-msp.m4.in +++ sendmail-8.14.4/debian/cf/domain/debian-msp.m4.in @@ -0,0 +1,73 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: debian-msp.m4,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# domain(debian-msp) config file for building Sendmail @sm_version@@sm_revision@ +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +#----------------------------------------------------------------------------- +# +divert(0)dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # Bring in Autoconf results +dnl #--------------------------------------------------------------------- +ifdef(`sm_version', `dnl', +`include(`@datadir@/sendmail/cf/debian/autoconf.m4')dnl') +dnl # +VERSIONID(`$Id: debian-msp.m4, v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +define(`DEBIAN_MSP')dnl +define(`confCF_VERSION', `Submit')dnl +dnl # +dnl # changes made herein *must* be reflected in parse_mc,update_db,debian.m4 +dnl # +define(`MSP_QUEUE_DIR', `@localstatedir@/spool/mqueue-client')dnl +define(`STATUS_FILE', `@localstatedir@/lib/sendmail/sm-client.st')dnl +dnl # +dnl # Since MSP only delivers to MTA, persistant status isn't needed +define(`confHOST_STATUS_DIRECTORY', `')dnl +dnl # +dnl # For FHS, we use a subdirectory in /var/run (multiple files) +dnl # For permissions, we use separate MSP/MTA subdirectories +define(`confPID_FILE', `@localstatedir@/run/sendmail/msp/sendmail.pid')dnl +define(`confCONTROL_SOCKET_NAME', + `@localstatedir@/run/sendmail/msp/smcontrol')dnl +dnl # +dnl # flags +define(`confPROCESS_TITLE_PREFIX', `MSP')dnl +dnl define(`confNO_RCPT_ACTION', `add-to-undisclosed')dnl +define(`confRRT_IMPLIES_DSN', `False')dnl +define(`confSAFE_FILE_ENV', `/')dnl +define(`confSAFE_QUEUE', `True')dnl +define(`confQUEUE_FILE_MODE', `0660')dnl +define(`confTEMP_FILE_MODE', `0640')dnl +dnl # +dnl # Provide some 'more reasonable' timeout values +dnl # See SASL/TLS sections below for more timeout values +dnl # +define(`confTO_ICONNECT', `2s')dnl # rfc min= , def=5m +define(`confTO_MAIL', `2m')dnl # rfc min=5m, def=10m, too long +define(`confTO_DATAINIT', `2m')dnl # rfc min=2m, def=5m +define(`confTO_RSET', `1m')dnl # rfc min= , def=5m +define(`confTO_QUIT', `2m')dnl # rfc min= , def=2m +define(`confTO_COMMAND', `5m')dnl # rfc min=5m, def=1h +define(`confTO_IDENT', `5s')dnl # , def=5s, 0=skip +define(`confTO_HOSTSTATUS',`0')dnl # , def=30m +dnl # +dnl # by default, disable Message Submission Agent (8.10.0+) +ifelse(eval(sm_version_math >= 526848), `1',dnl +`FEATURE(`no_default_msa')') +dnl # +dnl # Mail Submission Program uid/gid +define(`confRUN_AS_USER', `smmsp')dnl +define(`confTRUSTED_USER', confRUN_AS_USER)dnl +dnl # +dnl # Optional items (should be a subset site.config.m4 used for build) +dnl # to prevent sendmail error messages +dnl # --- sendmail-8.14.4.orig/debian/cf/domain/debian-mta.m4.in +++ sendmail-8.14.4/debian/cf/domain/debian-mta.m4.in @@ -0,0 +1,112 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: debian-mta.m4,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# domain(debian-mta) config file for building Sendmail @sm_version@@sm_revision@ +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +#----------------------------------------------------------------------------- +# +divert(0)dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # Bring in Autoconf results +dnl #--------------------------------------------------------------------- +ifdef(`sm_version', `dnl' , +`include(`@datadir@/sendmail/cf/debian/autoconf.m4')dnl') +dnl # +VERSIONID(`$Id: debian-mta.m4, v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +define(`DEBIAN_MTA')dnl +dnl # +dnl # changes made herein *must* be reflected in parse_mc,update_db,debian.m4 +dnl # +define(`STATUS_FILE', `@localstatedir@/lib/sendmail/sendmail.st')dnl +define(`confHOST_STATUS_DIRECTORY', + `@localstatedir@/lib/sendmail/host_status')dnl +dnl # +dnl # For FHS, we use a subdirectory in /var/run (multiple files) +dnl # For permissions, we use separate MSP/MTA subdirectories +define(`confPID_FILE', `@localstatedir@/run/sendmail/mta/sendmail.pid')dnl +define(`confCONTROL_SOCKET_NAME', + `@localstatedir@/run/sendmail/mta/smcontrol')dnl +dnl # +dnl # flags +define(`confPROCESS_TITLE_PREFIX', `MTA')dnl +define(`confMAX_DAEMON_CHILDREN', `0')dnl +dnl define(`confNO_RCPT_ACTION', `add-to-undisclosed')dnl +define(`confRRT_IMPLIES_DSN', `False')dnl +define(`confSAFE_FILE_ENV', `/')dnl +define(`confSAFE_QUEUE', `True')dnl +define(`confQUEUE_FILE_MODE', `0600')dnl +define(`confTEMP_FILE_MODE', `0600')dnl +dnl # +dnl # Provide some 'more reasonable' timeout values +dnl # See SASL/TLS sections below for more timeout values +dnl # +define(`confTO_ICONNECT', `2m')dnl # rfc min= , def=5m +define(`confTO_MAIL', `2m')dnl # rfc min=5m, def=10m, too long +define(`confTO_DATAINIT', `2m')dnl # rfc min=2m, def=5m +define(`confTO_RSET', `1m')dnl # rfc min= , def=5m +define(`confTO_QUIT', `2m')dnl # rfc min= , def=2m +define(`confTO_COMMAND', `5m')dnl # rfc min=5m, def=1h +define(`confTO_IDENT', `5s')dnl # , def=5s, 0=skip +dnl # +dnl RFC 2821 recommends a higher value for max-hop than the default(25) +define(`confMAX_HOP', `100')dnl +dnl # +dnl # Debian users have group writable directories/files by default (8.9.0+) +ifelse(eval(sm_version_math >= 526592), `1',dnl +`define(`confDONT_BLAME_SENDMAIL',dnl + defn(`confDONT_BLAME_SENDMAIL')`,AssumeSafeChown,ForwardFileInGroupWritableDirPath,GroupWritableForwardFileSafe,GroupWritableIncludeFileSafe,IncludeFileInGroupWritableDirPath')dnl' +)dnl +dnl # +dnl # Don't warn for non-existant forward files (8.10.0+) +ifelse(eval(sm_version_math >= 526848), `1',dnl +`define(`confDONT_BLAME_SENDMAIL',dnl + defn(`confDONT_BLAME_SENDMAIL')`,DontWarnForwardFileInUnsafeDirPath,TrustStickyBit,NonRootSafeAddr')dnl' +)dnl +dnl # +dnl # Allow group-writable include files (8.12.0+) +ifelse(eval(sm_version_math >= 527360), `1',dnl +`define(`confDONT_BLAME_SENDMAIL',dnl + defn(`confDONT_BLAME_SENDMAIL')`,GroupWritableIncludeFile,GroupReadableaDefaultAuthInfoFile')dnl' +)dnl +dnl # +dnl # by default, disable Message Submission Agent (8.10.0+) +dnl # except for 8.12.0+, where its needed for MSA ! +ifelse(eval(sm_version_math >= 526848), `1',dnl +`ifelse(eval(sm_version_math < 527360), `1',dnl +`FEATURE(`no_default_msa')',`dnl')') +dnl # +dnl # Allow mailq/hoststat to work with both MSP/MTA queues +ifelse(eval(sm_version_math >= 527360), `1',dnl +`define(`confQUEUE_FILE_MODE', `0640')dnl' +`define(`confTEMP_FILE_MODE', `0640')dnl') +dnl # +dnl # For security, we default to not letting lusers run the queues +dnl # If possible, we prevent sendmail -bv from reading things they shouldn't +dnl # +define(`confPRIVACY_FLAGS', `restrictqrun') +ifelse(eval(sm_version_math >= 527360), `1',dnl +`define(`confPRIVACY_FLAGS',dnl + defn(`confPRIVACY_FLAGS')`,restrictexpand')dnl') +dnl # +dnl # Define trusted user to be the new mta uid (smmta) +dnl # +ifdef(`confTRUSTED_USER',,`define(`confTRUSTED_USER',`smmta')dnl') +dnl # +dnl # Provide a more reasonable default for number of queue-runners +dnl # because many/most? people will not discover this themselves +dnl # and the sendmail default is one! +dnl # +define(`confMAX_RUNNERS_PER_QUEUE', `5')dnl +dnl # +dnl # Optional items (should be a subset site.config.m4 used for build) +dnl # to prevent sendmail error messages +dnl # --- sendmail-8.14.4.orig/debian/cf/feature/rhsbl.m4 +++ sendmail-8.14.4/debian/cf/feature/rhsbl.m4 @@ -0,0 +1,41 @@ +divert(-1) +# +# Copyright (c) 2002 Derek J. Balling +# All rights reserved. +# +# Permission to use granted for all purposes. If modifications are made +# they are requested to be sent to for inclusion in future +# versions +# +# Allows (hopefully) for checking of access.db whitelisting now. This ONLY +# works on sendmail-8.12.x ... use on any other version may require tinkering +# by you the downloader. +# +# Incorporates many changes by Sergey S. Mokryshev +# +# + +divert(0) +ifdef(`_RHSBL_R_',`dnl',`dnl +VERSIONID(`$Id: rhsbl.m4,v 1.4 2002/06/01 14:05:06 dredd Exp $') +define(`_RHSBL_R_',`') +ifdef(`_DNSBL_R_',`dnl',`dnl +LOCAL_CONFIG +# map for DNS based blacklist lookups based on the sender RHS +Kdnsbl host -T')') +divert(-1) +define(`_RHSBL_SRV_', `_ARG_')dnl +define(`_RHSBL_MSG_', `ifelse(len(X`'_ARG2_),`1',`"550 Mail from " $`'&{RHS} " refused by blackhole site '_RHSBL_SRV_`"',`_ARG2_')')dnl +define(`_RHSBL_MSG_TMP_', `ifelse(_ARG3_,`t',`"451 Temporary lookup failure of " $`'&{RHS} " at '_RHSBL_SRV_`"',`_ARG3_')')dnl +divert(8) +# DNS based RHS spam list _RHSBL_SRV_ +R$+ $: <@> $>CanonAddr $&f +R<@> $*<@$+.> $: <@> <@$2.> $| $>SearchList <+ rhs> $| <> +R<@> $* $| <$={Accept}> $: OKSOFAR +R<@> $*<@$+.> $| $* $: $(dnsbl $2._RHSBL_SRV_. $: OK $) $(macro {RHS} $@ $2 $) +R<@> $* $: OKSOFAR +R OK $: OKSOFAR +ifelse(len(X`'_ARG3_),`1', +`R$+ $: TMPOK', +`R$+ $#error $@ 4.7.1 $: _RHSBL_MSG_TMP_') +R$+ $#error $@ 5.7.1 $: _RHSBL_MSG_ --- sendmail-8.14.4.orig/debian/cf/feature/vnet.m4 +++ sendmail-8.14.4/debian/cf/feature/vnet.m4 @@ -0,0 +1,74 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: ./vnet.m4,v 8.12.0 2001/09/24 12:00:00 cowboy Exp $ +# +# Copyright (c) 2001-2004 Richard Nelson. All Rights Reserved. +# +# feature(vnet) config file for building Sendmail +# +#----------------------------------------------------------------------------- +# +divert(0)dnl +dnl +dnl +dnl +LOCAL_CONFIG +###################################################################### +### vnet: support .rscs domain and XAGENT +### +###################################################################### +# +# Support routing of .rscs nodes via XAGENT +# +# Define vnet/rscs node hlq +CAvnet.ibm.com vnet rscs ipnet +# +# Note: you'll have to define your XAGENT node: +#DAlexvmk.lexington.ibm.com +###################################################################### +dnl +dnl +dnl +LOCAL_RULE_3 +###################################################################### +### vnet: support .rscs domain, XAGENT, and Lotus Notes +### +###################################################################### +# +# Support Lotus Notes and VM TCP/IP MTAs +# +# Remove stupid route addressing (%hack) added by VM TCP/IP +R$* % ibmus.rscs < @ $+> $* $: $1 < @ us.ibm.com > $3 # Deprecated +R$* % ibmca.rscs < @ $+> $* $: $1 < @ ca.ibm.com > $3 # Deprecated +R$* % ibmuk.rscs < @ $+> $* $: $1 < @ uk.ibm.com > $3 # Deprecated +R$* % $-.rscs < @ $+> $* $: $1 < @ $2.rscs > $4 # Deprecated +# Now, rewrite those address to user@.vnet +R$* < @ $-.$=A > $* $: $1 < @ $2.vnet . > +# Now, try the domaintable yet again... +#R$* < @ $-.vnet > $* $: $1 < @ $(domaintable $2.vnet $) > $3 +# Finally, allow an override on simply the rscs domain... +#R$* < @ $-.vnet > $* $: $1 < @ $2.$(domaintable vnet $) > $3 +###################################################################### +dnl +dnl +dnl +LOCAL_NET_CONFIG +###################################################################### +### vnet: Handle .rscs domain, deliver to *.ibm.com, etc... +### +###################################################################### +# Skip any local addresses +# (or we'll get a "mail loops back to itself" error +R$* < @ $=w . > $* $@ $1 < @ $2 . > $3 regular local name +R$* < @ $=w > $* $@ $1 < @ $2 . > $3 regular local name + +# Recipients of the form user@node.{vnet,rscs,ipnet} get rewritten to +# user@node.vnet, the message itself is forwarded to +# the VM TCP/IP to RSCS gateway node specified in $A. +R$* < @ $- . vnet . > $* $#relay $@ $A $: $1 < @$2.VNET. > $3 + +# Recipients inside IBM--transfer the mail directly. +R$* < @ $+.ibm.com > $* $#relay $@ $2.ibm.com $: $1 < @$2.ibm.com > $3 +R$* < @ $+.ibm.com. > $* $#relay $@ $2.ibm.com $: $1 < @$2.ibm.com > $3 +###################################################################### +LOCAL_CONFIG --- sendmail-8.14.4.orig/debian/cf/hack/debian_auth.m4.in +++ sendmail-8.14.4/debian/cf/hack/debian_auth.m4.in @@ -0,0 +1,47 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: debian_auth.m4,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 2001-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# debian_trustauth.m4 m4 file for +# * supporting MSP->MTA and MTA->MTA authentication +# * supporting the auth= parameter on the mail from: command. +# +# This file is an extremely simple example that lets *ALL* trusted users +# sendmail, daemon, root, uucp, etc. proxy for any user. +# +# If you've a better idea, please let me know +# +#----------------------------------------------------------------------------- +divert(0)dnl +VERSIONID(`$Id: debian_auth.m4,v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +dnl # +dnl # MTA as Client authentication - only if authinfo/access_db *NOT* used... +define(`confDEF_AUTH_INFO', `MAIL_SETTINGS_DIR`'default-auth-info')dnl +dnl # +dnl # add (fake) uid 'sendmail' to trusted users - it is used as the id +dnl # for MSP->MTA, and MTA->MTA proxying. +ifdef(`confTRUSTED_USERS', + `define(`confTRUSTED_USERS', + defn(`confTRUSTED_USERS')`,sendmail')', + `define(`confTRUSTED_USERS', `sendmail')')dnl +dnl # +dnl # Define local rulesets for trust_auth +LOCAL_RULESETS +# +#----------------------------------------------------------------------------- +# Local_trust_auth: Define who is able to authenticate for whom... +# The sendmail default is to allow *IFF* authen == author +# This ruleset also allows trusted users to authenicate as anyone - needed +# for MSP->MTA and MTA->MTA forwarding of mail from: <...> auth=... +SLocal_trust_auth +R$* $: $&{auth_authen} Put authentication id in the workspace +ifdef(`DEBIAN_DEBUG',dnl +`R$* $: $(log authtype:$&{auth_type} $) $1 +R$* $: $(log authauthen:$&{auth_authen} $) $1 +R$* $: $(log authauthor:$&{auth_author} $) $1') +R$=t $@ $#ok Trusted users... Allow trusted users to auth= as anyone +#----------------------------------------------------------------------------- --- sendmail-8.14.4.orig/debian/cf/hack/msp_nullclient.m4 +++ sendmail-8.14.4/debian/cf/hack/msp_nullclient.m4 @@ -0,0 +1,95 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: ./msp_nullclient.m4,v 8.12.0 2001/05/23 14:30:00 cowboy Exp $ +# +# Copyright (c) 2001-2001 Richard Nelson. All Rights Reserved. +# +# msp_nullclient.m4 m4 file for supporting a nullclient in the MSP +# environment. That is, change the feature(msp) to feature(msp_nullclient) +# in /etc/mail/submit.mc. An MTA listener is now optional, and you can +# run with only MSP mode (setgid mail). +# +# This file is blatantly cut&pasted from nullclient.m4 and msp.m4 !!! +# +# If you've a better idea, please let me know +# +#----------------------------------------------------------------------------- +# +# Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers. +# All rights reserved. +# Copyright (c) 1983 Eric P. Allman. All rights reserved. +# Copyright (c) 1988, 1993 +# The Regents of the University of California. All rights reserved. +# +# By using this file, you agree to the terms and conditions set +# forth in the LICENSE file which can be found at the top level of +# the sendmail distribution. +# +# +ifelse(defn(`_ARG_'), `', `errprint(`Hack "msp_nullclient" requires argument')', + `define(`_NULL_CLIENT_', _ARG_)') + +# +# This is used only for relaying mail from a client to a hub when +# that client does absolutely nothing else -- i.e., it is a "null +# mailer". In this sense, it acts like the "R" option in Sun +# sendmail. +# + +divert(0)dnl +VERSIONID(`$Id: msp_nullclient.m4,v 8.12.0 2001/05/23 14:30:00 cowboy Exp $') +divert(-1)dnl + +dnl # +dnl # This *MUST* be used within the context of MSP +ifdef(`DEBIAN_MSP', `dnl', `DOMAIN(`debian-msp')') +dnl # +dnl # Restrict listening to localhost (to increase security) +ifelse(defn(`_DPO_'), `', +`DAEMON_OPTIONS(`Name=NoMTA, Addr=127.0.0.1, M=E')dnl') + +dnl #-------------------- Now the Nullclient carp --------------------------- +undefine(`ALIAS_FILE') +define(`MAIL_HUB', _NULL_CLIENT_) +define(`SMART_HOST', _NULL_CLIENT_) +define(`confFORWARD_PATH', `') +ifdef(`confFROM_HEADER',, `define(`confFROM_HEADER', `<$g>')') +dnl #-------------------- Now the MSP carp ---------------------------------- +ifdef(`STATUS_FILE', +`define(`_F_', +`define(`_b_', index(STATUS_FILE, `sendmail.st'))ifelse(_b_, `-1', `STATUS_FILE', `substr(STATUS_FILE, 0, _b_)sm-client.st')') +define(`STATUS_FILE', _F_) +undefine(`_b_') undefine(`_F_')', +`define(`STATUS_FILE', `/var/run/sm-client.st')') +define(`confUSE_MSP', `True')dnl +define(`confFORWARD_PATH', `')dnl +define(`confPRIVACY_FLAGS', `goaway,noetrn')dnl +dnl --------------------------------------------- +dnl run as this user (even if called by root) +define(`confRUN_AS_USER', `smmsp')dnl +define(`confTRUSTED_USER', `confRUN_AS_USER')dnl +dnl --------------------------------------------- +dnl This queue directory must have the same group +dnl as sendmail and it must be group-writable. +dnl notice: do not test for QUEUE_DIR, it is set in some ostype/*.m4 files +ifdef(`MSP_QUEUE_DIR', +`define(`QUEUE_DIR', `MSP_QUEUE_DIR')', +`define(`QUEUE_DIR', `/var/spool/clientmqueue')')dnl +dnl --------------------------------------------- +ifdef(`confPID_FILE', `dnl', +`define(`confPID_FILE', QUEUE_DIR`/sm-client.pid')') +define(`confQUEUE_FILE_MODE', `0660')dnl +FEATURE(`no_default_msa')dnl +ifelse(defn(`_DPO_'), `', +`DAEMON_OPTIONS(`Name=NoMTA, Addr=127.0.0.1, M=E')dnl') +dnl #---------------------- Debian MSP fixup ------------------------------- +dnl define(`confHOST_STATUS_DIRECTORY', `/var/lib/sendmail/host_status')dnl +define(`confRUN_AS_USER', `mail')dnl +define(`confTRUSTED_USER', `confRUN_AS_USER')dnl +dnl #---------------------- back to nullclient carp ------------------------ +define(`_DEF_LOCAL_MAILER_FLAGS', `lsDFM5q') +MASQUERADE_AS(_NULL_CLIENT_) +FEATURE(`allmasquerade') +FEATURE(`masquerade_envelope') +MAILER(`local') +MAILER(`smtp') --- sendmail-8.14.4.orig/debian/cf/hack/nodns.m4 +++ sendmail-8.14.4/debian/cf/hack/nodns.m4 @@ -0,0 +1,17 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: ./nodns.m4,v 8.12.0 2001/08/24 12:00:00 cowboy Exp $ +# +# Copyright (c) 1999-2001 Richard Nelson. All Rights Reserved. +# +# hack/nodns.m4 m4 file for omitting DNS queries +# +# If you've a better idea, please let me know +# +#----------------------------------------------------------------------------- +divert(0)dnl +VERSIONID(`$Id: nodns.m4,v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +undefine(`confBIND_OPTS')dnl +define(`confSERVICE_SWITCH_FILE', `/etc/mail/service.switch-nodns')dnl +define(`confDONT_PROBE_INTERFACES', `True')dnl +FEATURE(nocanonify)dnl --- sendmail-8.14.4.orig/debian/cf/hack/spamtrap.m4 +++ sendmail-8.14.4/debian/cf/hack/spamtrap.m4 @@ -0,0 +1,62 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: ./spamtrap.m4,v 8.12.0 2001/09/24 12:00:00 cowboy Exp $ +# +# hack(spamtrap) config file for building Sendmail +# +# Courtesy of jeff@sdsc.edu (Jeff Makey) +# via c.m.s posting Sat, 8 Sep 2001 07:44:26 +0000 (UTC) +# +# Spamtrap addresses go into the access file like this: +# +# To:spamtrap@pandora.orbl.org POISON +# To:Friend@public.com POISON +# +#----------------------------------------------------------------------------- +# +divert(0)dnl +LOCAL_CONFIG +# provide access to macros as a map +Kmacro macro + +LOCAL_RULESETS +###################################################################### +### spamtrap: handle spamtrap(POISON) users +### +###################################################################### +# +# This is not only redundant, but fails with feature(`delay_checks') +# +#SLocal_check_mail +# Clear the "poison recipient" indicator macro for this message. +#R$* $: $(macro {PoisonRecipient} $) $1 + +SLocal_check_rcpt +# +# Spamtrap addresses go into the access file like this: +# To:spamtrap@pandora.orbl.org POISON +# +# Certain recipients are "poison" and cause the +# message to be rejected for all recipients. +R$* $: $1 $| $1 create workspace to right of $| +R$* $| $* <$+> $* $1 $| $3 focus on part in angle brackets +R$* $| $+ $: $1 $| $>SearchList $| <> +R$* $| $: $1 $| $(macro {PoisonRecipient} $@ POISON $) +R$* $| $* $: $1 delete workspace + +Scheck_eoh +R$* $: $&{PoisonRecipient} +RPOISON $#error $@ 5.7.1 $: 550 Mail sent to spam lists is not accepted here + +# +# With a "To:Friend@public.com POISON" entry in the access file the +# following ruleset will block certain types of spam too: +# +# Certain To headers are sure-fire spam signatures. +HTo: $>CheckTo +SCheckTo +R$+ , $+ $@ $1 , $2 do not try to verify complex addresses +R$* $: $1 $| $>SearchList $| <> +R$* $| $#error $@ 5.7.1 $: 550 Mail sent by spamware is not accepted here +R$* $| $* $: $1 delete lookup result + --- sendmail-8.14.4.orig/debian/cf/hack/virthost_by_ip.m4.in +++ sendmail-8.14.4/debian/cf/hack/virthost_by_ip.m4.in @@ -0,0 +1,77 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: virthost_by_ip.m4,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 2001-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# hack(virthost_by_ip) config file for building Sendmail @sm_version@@sm_revision@ +# Note: Also check op.{ps,txt} for the 'b' modifier to daemon_options - it +# extends ip based virtual hosting. +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +#----------------------------------------------------------------------------- +# +divert(0)dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # Bring in Autoconf results +dnl #--------------------------------------------------------------------- +ifdef(`sm_version', `dnl', +`include(`@datadir@/sendmail/cf/debian/autoconf.m4')dnl') +dnl # +VERSIONID(`$Id: virthost_by_ip.m4, v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +dnl # +dnl #--------------------------------------------------------------------- +dnl # Virtual hosting extensions - Login (greeting message) +dnl #--------------------------------------------------------------------- +define(`confSMTP_LOGIN_MSG', `$?{if_name}${if_name}$|$j$. Sendmail $v/$Z; $b; (No UCE/UBE) $?{client_addr}logging access from: ${client_name}(${client_resolve})-$_$.')dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # Virtual hosting extensions - Received-by headers (8.12.0 style) +dnl #--------------------------------------------------------------------- +dnl # 8.7.0+ +ifdef(`_REC_HDR_', `dnl', +`define(`_REC_HDR_', `$?sfrom $s $.$?_($?s$|from $.$_)')dnl' +`define(`_REC_END_', `for $u; $|; + $.$b')dnl' +) +dnl # AUTH(SASL) 8.10.0+ +ifdef(`_REC_AUTH_', `dnl', +`define(`_REC_AUTH_', `$.$?{auth_type}(authenticated')dnl' +`define(`_REC_FULL_AUTH_', `$.$?{auth_type}(user=${auth_authen} $?{auth_author}author=${auth_author} $.mech=${auth_type}')dnl' +) +dnl # TLS(SSL) 8.11.0+ +ifdef(`_REC_BY_', `dnl', +`define(`_REC_BY_', `$.by $j ($v/$Z)$?r with $r$. id $i$?{tls_version}')dnl' +`define(`_REC_TLS_', `(version=${tls_version} cipher=${cipher} bits=${cipher_bits} verify=${verify})$.$?u')dnl' +) +dnl # Now, override default settings for virtual hosting +define(`_REC_BY_', `$.by $?{if_name}${if_name}$|$j$. ($v/$Z)$?r with $r$. id $i$?{tls_version}')dnl +define(`confRECEIVED_HEADER', `_REC_HDR_ + _REC_FULL_AUTH_$?{auth_ssf} bits=${auth_ssf}$.) + _REC_BY_ + _REC_TLS_ + _REC_END_')dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # Virtual hosting extensions - ClientPortOptions (modifier=h) +dnl # -- Use name of interface for HELO command +dnl #--------------------------------------------------------------------- +ifelse(eval(sm_version_math >= 526848), `1',dnl +`ifelse(defn(`_CPO_'), `dnl', +`CLIENT_OPTIONS(`Modifier=h')dnl')dnl') +dnl # +dnl #--------------------------------------------------------------------- +dnl # Virtual hosting extensions - DaemonPortOptions (modifier=b) +dnl # -- Bind to interface mail was received on +dnl # I can't do this for you, because each use of DAEMON_OPTIONS will +dnl # create a new listener ! +dnl #--------------------------------------------------------------------- +dnl ifelse(eval(sm_version_math >= 526848), `1',dnl +dnl `ifelse(defn(`_DPO_'), `dnl', +dnl `DAEMON_OPTIONS(`Modifier=b')dnl')dnl') + --- sendmail-8.14.4.orig/debian/cf/mailer/ssh.m4 +++ sendmail-8.14.4/debian/cf/mailer/ssh.m4 @@ -0,0 +1,42 @@ +PUSHDIVERT(-1) +dnl +dnl By using this file, you agree to the terms and conditions set +dnl forth in the LICENSE file which can be found at the top level of +dnl the sendmail distribution. +dnl +dnl Original version contributed by Andrzej Filip. +dnl +dnl $Log: ssh.m4,v $ +dnl Revision 8.1 2004/03/27 12:54:53 anfi +dnl *** empty log message *** +dnl +VERSIONID(`$Id: ssh.m4,v 8.1 2004/03/27 12:54:53 anfi Exp $') + +ifdef(`SSH_MAILER_PATH',, + `ifdef(`SSH_PATH', + `define(`SSH_MAILER_PATH', SSH_PATH)', + `define(`SSH_MAILER_PATH', `/usr/bin/ssh')')') +ifdef(`SSH_REMOTE_COMMAND',, + `define(`SSH_REMOTE_COMMAND', `/usr/sbin/sendmail -bs')') +define(`_SSH_QGRP', `ifelse(defn(`SSH_MAILER_QGRP'),`',`', ` Q=SSH_MAILER_QGRP,')')dnl +_DEFIFNOT(`_DEF_SSH_MAILER_FLAGS', `mDFMuX') +_DEFIFNOT(`SSH_MAILER_FLAGS',`') +ifdef(`SSH_MAILER_ARGS',, `define(`SSH_MAILER_ARGS', + `ssh -o BatchMode=yes -o EscapeChar=none -- 'SSH_MAILER_HOST` 'SSH_REMOTE_COMMAND)') +ifdef(`SSH_MAILER_HOST',, `define(`SSH_MAILER_HOST',`$h')') +ifdef(`SSH_MAILER_USER',`', +`errprint(`*** SSH_MAILER_USER must be defined before MAILER(`ssh'). +')') +ifdef(`SSH_MAILER_DIR',`', +`errprint(`*** SSH_MAILER_DIR must be defined before MAILER(`ssh'). +')') + +POPDIVERT +######################*****############## +### SSH Mailer specification ### +##################*****################## + +Mssh, P=SSH_MAILER_PATH, F=_MODMF_(CONCAT(_DEF_SSH_MAILER_FLAGS, SSH_MAILER_FLAGS), `SSH'), S=EnvFromSMTP/HdrFromSMTP, R=ifdef(`_ALL_MASQUERADE_', `EnvToSMTP/HdrFromSMTP', `EnvToSMTP'), E=\r\n, L=990, + _OPTINS(`SSH_MAILER_MAX', `M=', `, ')_OPTINS(`SSH_MAILER_MAXMSGS', `m=', `, ')_OPTINS(`SSH_MAILER_MAXRCPTS', `r=', `, ')_OPTINS(`SSH_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/SMTP,_SSH_QGRP + U=SSH_MAILER_USER, D=SSH_MAILER_DIR, + A=SSH_MAILER_ARGS --- sendmail-8.14.4.orig/debian/cf/mailer/xagent.m4 +++ sendmail-8.14.4/debian/cf/mailer/xagent.m4 @@ -0,0 +1,26 @@ +PUSHDIVERT(-1) +# +# Copyright (c) 1998 Sendmail, Inc. All rights reserved. +# Copyright (c) 1983 Eric P. Allman. All rights reserved. +# Copyright (c) 1988, 1993 +# The Regents of the University of California. All rights reserved. +# +# By using this file, you agree to the terms and conditions set +# forth in the LICENSE file which can be found at the top level of +# the sendmail distribution. +# +# + +ifdef(`XAGENT_MAILER_PATH',, `define(`XAGENT_MAILER_PATH', /usr/lib/xagent)') +ifdef(`XAGENT_MAILER_FLAGS',, `define(`XAGENT_MAILER_FLAGS', `DFMueXLn')') +ifdef(`XAGENT_MAILER_ARGS',, `define(`XAGENT_MAILER_ARGS', `xagent $h $u')') +POPDIVERT +#################################### +### XAGENT Mailer specification ### +#################################### + +VERSIONID(`@(#)xagent.m4 0.1 (ISSC) 4/19/1996') + +Mxagent, P=XAGENT_MAILER_PATH, F=XAGENT_MAILER_FLAGS, S=11/31, R=21/31, + _OPTINS(`XAGENT_MAILER_MAX', `M=', `, ')T=DNS/RFC822/X-Unix, + A=XAGENT_MAILER_ARGS, E=\n --- sendmail-8.14.4.orig/debian/cf/ostype/debian.m4.in +++ sendmail-8.14.4/debian/cf/ostype/debian.m4.in @@ -0,0 +1,113 @@ +divert(-1)dnl +#----------------------------------------------------------------------------- +# $Sendmail: debian.m4,v @sm_version@ @sm_date@ @sm_time@ cowboy Exp $ +# +# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson. All Rights Reserved. +# +# @configure_input@ +# +# ostype(debian) config file for building Sendmail @sm_version@@sm_revision@ +# +# Note: the .in file supports @SM_MINVERS@ - @SM_MAXVERS@, but the generated +# file is customized to the version noted above. +# +#----------------------------------------------------------------------------- +# +divert(0)dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # Bring in Autoconf results +dnl #--------------------------------------------------------------------- +ifdef(`sm_version', `dnl', +`include(`@datadir@/sendmail/cf/debian/autoconf.m4')dnl') +dnl # +VERSIONID(`$Id: debian.m4, v @sm_version@@sm_revision@ @sm_date@ @sm_time@ cowboy Exp $') +define(`confCF_VERSION', `Debian@sm_revision@')dnl +dnl # +dnl # changes made herein *must* be reflected in parse_mc,update_db,debian.m4 +dnl # +ifdef(`MAIL_SETTINGS_DIR', `dnl', + `define(`MAIL_SETTINGS_DIR', `@sysconfdir@/mail/')dnl') +dnl # support 8.9.3 migration to 8.10.0 naming convention +dnl # Note: this is too late... needs to be in sendmail.mc - at top +ifdef(`_USE_ETC_MAIL_', `dnl', `define(`_USE_ETC_MAIL_')dnl') +dnl # +dnl # Define default greeting +define(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z; $b; (No UCE/UBE) $?{client_addr}logging access from: ${client_name}(${client_resolve})-$_$.')dnl +dnl # +dnl # Keep dead letter drop, it is the last resort home for abused mail +define(`confDEAD_LETTER_DROP', `@localstatedir@/lib/sendmail/dead.letter')dnl +dnl # +dnl # Put status file in other than /etc/mail (sendmail default) +dnl # Many people run with R/O /etc +define(`STATUS_FILE', `@localstatedir@/lib/sendmail/sendmail.st')dnl +define(`confHOST_STATUS_DIRECTORY', + `@localstatedir@/lib/sendmail/host_status')dnl +dnl # +dnl # Allow scanf extensions for common text files +define(`confCR_FILE', `-o '`MAIL_SETTINGS_DIR`'relay-domains %[^\#]')dnl +define(`confCT_FILE', `MAIL_SETTINGS_DIR`'trusted-users %[^\#]')dnl +define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names %[^\#]')dnl +dnl # +dnl # This *really* needs a better home +define(`confEBINDIR', `@libexecdir@')dnl +dnl # +dnl # add .' to mustquote chars (and match the binary default) +changequote([, ])dnl +define([confMUST_QUOTE_CHARS], [.'])dnl +changequote(`, ')dnl +dnl # +dnl # Default in 8.10+, used to be false (iirc), deprecated +define(`confME_TOO', `True')dnl +dnl # +dnl # Set the default user/group for mailers (mail:mail) +dnl # this should help NIS startup time +dnl # +define(`confDEF_USER_ID', `mail:mail')dnl +dnl # +dnl #--------------------------------------------------------------------- +dnl # mailer paths and options +dnl #--------------------------------------------------------------------- +define(`LOCAL_MAILER_PATH', `@sbindir@/sensible-mda')dnl +define(`LOCAL_MAILER_ARGS', `sensible-mda $g $u $h ${client_addr}')dnl +MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl #do keep root +MODIFY_MAILER_FLAGS(`LOCAL', `-r')dnl #do not munge args +MODIFY_MAILER_FLAGS(`LOCAL', `-m')dnl #do not try LMTP +define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl +define(`PROCMAIL_MAILER_ARGS', `procmail -m $h $f $u')dnl +define(`USENET_MAILER_PATH', `/usr/bin/inews')dnl +define(`UUCP_MAILER_ARGS',`uux - -r -z -a$g -gC $h!rmail ($u)')dnl +dnl define(`confDEF_CHAR_SET', `iso-8859-1')dnl +dnl # +dnl # Optional items (should be a subset site.config.m4 used for build) +dnl # to prevent sendmail error messages +dnl # +dnl #--------------------------------------------------------------------- +dnl # IPv6 support (new option for 8.12+) +dnl # IPv6 causes problems for some DNS servers, work around them +dnl #--------------------------------------------------------------------- +ifelse(sm_enable_ipv6, `yes',dnl +`ifelse(eval(sm_version_math >= 527360), `1',dnl +`define(`confBIND_OPTS', `+WorkAroundBrokenAAAA')dnl')') +dnl # +dnl #--------------------------------------------------------------------- +dnl # Milter (8.10.0-8.11.0) built-in with 8.12.0+ +dnl #--------------------------------------------------------------------- +ifelse(sm_enable_milter, `yes',dnl +`define(`_FFR_MILTER')dnl') +# +#------------------------------------------------------------------------- +# +# Undocumented features are available in Debian Sendmail @sm_version@@sm_revision@. +# * none +# +# _FFR_ features are available in Debian Sendmail @sm_version@@sm_revision@. +ifelse(sm_enable_milter, `yes',dnl +`# * milter') +# * sm_ffr +#------------------------------------------------------------------------- +# +# These _FFR_ features are for sendmail.mc processing +# +@sm_m4_ffr@ +#------------------------------------------------------------------------- --- sendmail-8.14.4.orig/debian/changelog +++ sendmail-8.14.4/debian/changelog @@ -0,0 +1,736 @@ +sendmail (8.14.4-4.1ubuntu1) trusty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - debian/examples/checksendmail/checksendmail.8, + debian/examples/checksendmail/harker/checksendmail.8: + + Some man page corrections. + - debian/patches/8.14/8.14.4/conf.c-ipv6.patch: + + Fix A-only MX CNAME interface binding issues when using IPv6. + * Dropped following patches, already applied in Debian: + - debian/patches/8.14/8.14.4/ld_as_needed -> fix_linkage + - debian/patches/8.14/8.14.4/raise-max-daemons.patch + + -- Artur Rona Wed, 05 Feb 2014 23:11:58 +0100 + +sendmail (8.14.4-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix infinite loop in update_db, thanks to Flo. (Closes: #717951) + * Do not ship duplicate sendmail.8 manpage. (Closes: #709895, #597781) + * Use [linux-any] instead of hardcoded list. (Closes: #634378) + * Fix FTBFS with ld --as-needed, thanks to Firas Kraiem. + (Closes: #608011, #609606) + * sendmailconfig: Add missing quoting, thanks to Stuart Sheldon. + (Closes: #692047) + * Raise MAXDAEMONS from 10 to 64, thanks to Kees Cook. (Closes: #720435) + * Enable all hardening flags, thanks to Simon Ruderich. (Closes: #687708) + * Fix FTBFS on HURD, thanks to Samuel Thibault. (Closes: #608525) + * Drop obsolete NEWS entries. + * Use canonical Vcs-* URLs. + * Fix duplicate and incorrect Section and Homepage settings. + * Add missing ${misc:Depends} and predepends. + * Update Lintian overrides. + + -- Andreas Beckmann Fri, 13 Sep 2013 09:58:41 +0200 + +sendmail (8.14.4-4) unstable; urgency=low + + * New maintainer. (Closes: #699117) + * New patch: lock-mail-local (thanks to Tim Marston) + - fix order of fcntl and dotlock in mail.local. (Closes: #684645) + + -- Jakub Safarik Wed, 06 Feb 2013 17:33:44 +0100 + +sendmail (8.14.4-3) unstable; urgency=low + + * QA upload. + * Set maintainer to Debian QA Group. (See: #699117) + + [ Tobias Hansen ] + * Directories in /usr/share/doc can only be symlinks for packages + depending on the package they link to. (Policy 12.5) + This source package builds six sets of packages that can all be + installed independently (libmilter1.0.1, rmail, sendmail-base, + sendmail-cf, sendmail-doc, sensible-mda and respective dependencies). + So using symlinks at all is not practicable. + Make all /usr/share/doc/package directories real directories and + ship mandatory files (they were already shipped in all packages). + Put additional documentation into /usr/share/doc/sendmail-doc + and libmilters README.Debian into /usr/share/doc/libmilter-dev. + (Closes: #681147, #336391, #211518, #597779) + + [ Andreas Beckmann ] + * debian/rules clean: Run maintainer-clean and stop shipping a lot of + generated files in debian/ in the source package. Do not preserve + debian/build/autoconf.mk, it's regenerated as well. + * debian/build/debian/control.m4.in: Add libdb-dev dependency to preserve it + during regeneration, this is no longer picked up automatically. + * debian/rules: Add rebuild-debian-configure target. + * debian/configure.ac: Remove the deleted maintainer scripts. + * Cleanup /usr/share/doc/sendmail after upgrades where possible. + * sendmail-base: Remove obsolete conffile + /etc/dhcp3/dhclient-exit-hooks.d/sendmail on upgrades. + * sendmail-base: Remove /etc/mail/{sendmail,submit}.cf.old on purge. + * Cleanup symlinks in /usr/share/bug, too, and ship bug-{control,script} in + all packages. (Closes: #587944) + * sendmail: add Breaks/Replaces: sendmail-base (<< 8.14.4-2.2~) because of + moved bug-{control,script}. + * Fix the names of README.Debian.* for installation with dh_installdocs. + * debian/configure: Regenerated (via debian/rules refresh-debian-configure). + * Import packaging history into a GIT repository on alioth: + git://git.debian.org/git/collab-maint/sendmail.git + and set Vcs-{Git,Browser} accordingly. (Closes: #689379) + + -- Andreas Beckmann Tue, 29 Jan 2013 03:37:54 +0100 + +sendmail (8.14.4-2.1ubuntu5) trusty; urgency=low + + * No change rebuild against db 5.3. + + -- Dmitrijs Ledkovs Sat, 02 Nov 2013 19:44:31 +0000 + +sendmail (8.14.4-2.1ubuntu4) saucy; urgency=low + + * conf.c-ipv6.patch: fix A-only MX CNAME interface binding issues + when using IPv6 (LP: #1223633). + + -- Kees Cook Tue, 10 Sep 2013 19:30:55 -0700 + +sendmail (8.14.4-2.1ubuntu3) saucy; urgency=low + + * raise-max-daemons.patch: raise the hard-coded limit to the number of + listening daemons. Without this, IPv6 is hard. + + -- Kees Cook Wed, 21 Aug 2013 12:05:01 -0700 + +sendmail (8.14.4-2.1ubuntu2) raring; urgency=low + + * Some man page corrections, thanks to + Bjarnig Ingi Gislason for the patch. + (LP: #1077714) + + -- David Henningsson Wed, 14 Nov 2012 09:49:03 +0100 + +sendmail (8.14.4-2.1ubuntu1) quantal; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Fix FTBFS with ld --as-needed. + + -- Colin Watson Tue, 22 May 2012 15:21:02 +0100 + +sendmail (8.14.4-2.1) unstable; urgency=low + + * Non-maintainer upload + * Depend and use generic -ldb to allow binNMUs (Closes: #621447) + * Hard code fcntl style locking to mail.local (Closes: #513298) + + -- Ondřej Surý Wed, 09 May 2012 10:30:18 +0200 + +sendmail (8.14.4-2ubuntu2) oneiric; urgency=low + + * Rebuild for OpenSSL 1.0.0. + + -- Colin Watson Sun, 14 Aug 2011 10:14:59 +0100 + +sendmail (8.14.4-2ubuntu1) natty; urgency=low + + * Fix FTBFS with ld --as-needed. + + -- Matthias Klose Mon, 10 Jan 2011 22:25:00 +0100 + +sendmail (8.14.4-2) unstable; urgency=high + + * Actually get the DHCP config files installed :( Closes: #602252 + + -- Richard A Nelson (Rick) Wed, 03 Nov 2010 22:05:00 -0000 + +sendmail (8.14.4-1) unstable; urgency=high + + * Long past due + + * Re-enable libdb-dev, db4.8 working again + + * New upstream + + Null checking in certificate CN (CVE-2009-4565) + + Queue identifier int overflow + + Handle malformed DNS replies + + milter segfault/Dos fixes + + * Acknowledge NMUs - thanks ! + + rmail conflicts with masqmail + + move dhcp hooks from /etc/dhcp3 to /etc/dhcp + + CVE-2009-4565 + + * Correct issues with NMUs + + Differing buildinfo.gz (all the same file) Closes: #597779 + + * Outstanding bugs: + + Milter segfaults/Remote DoS? Closes: #527862 + + invoke.rc conditional Closes: #553135 + + We already harden Closes: #542739 + + Queue aging Closes: #583108 + + mail.local use of lockf Closes: #513298 + + init.d use of ps Closes: #510679 + + remove access on purge Closes: #589810 + + -- Richard A Nelson (Rick) Mon, 11 Sep 2010 17:53:00 -0000 + +sendmail (8.14.4-0) private; urgency=low + + * Start of another round of lintian cleanups + + remove /var/run files from package (they're created as needed) + * Drop back to db4.7 - 4.8 is broken + + * New upstream + + Null checking in certificate CN + + Queue identifier int overflow + + Handle malformed DNS replices + + DSA/DH parm length increase (Debian did that long ago) + + -- Richard A Nelson (Rick) Thu, 31 Dec 2009 00:20:00 -0000 + +sendmail (8.14.3-10) unstable; urgency=low + + * Support parms on runq (Now, Verbose, or any valid sendmail option: -v) + * Remove old & uneeded patch ldap_url_search + * remove obsolete crap from /usr/share/bug/sendmail/script Closes: #530992 + + -- Richard A Nelson (Rick) Mon, 09 Mar 2009 18:25:00 -0000 + +sendmail (8.14.3-9) unstable; urgency=low + + * Batting 1000, build-depend on quilt Closes: #517676 + + -- Richard A Nelson (Rick) Sun, 01 Mar 2009 18:45:00 -0000 + +sendmail (8.14.3-8) unstable; urgency=low + + * Sigh, move some defines so the patches actually apply + + -- Richard A Nelson (Rick) Sun, 01 Mar 2009 06:15:00 -0000 + +sendmail (8.14.3-7) unstable; urgency=low + + * Use quilt for patch management + * Support db2 4.7 + * Support null: maps (thanks to Yiorgos [George] Adamopoulos) + + -- Richard A Nelson (Rick) Sun, 01 Mar 2009 06:15:00 -0000 + +sendmail (8.14.3-6) unstable; urgency=high + + * Properly support GSSAPI auth (keep KRB5_KTNAME) + * Correct crontab entries for queue aging (-s