summaryrefslogtreecommitdiff
path: root/debian/sensible_mda
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sensible_mda')
-rw-r--r--debian/sensible_mda/Makefile587
-rw-r--r--debian/sensible_mda/sensible-mda.c350
2 files changed, 0 insertions, 937 deletions
diff --git a/debian/sensible_mda/Makefile b/debian/sensible_mda/Makefile
deleted file mode 100644
index c712768..0000000
--- a/debian/sensible_mda/Makefile
+++ /dev/null
@@ -1,587 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# sensible_mda/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 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.
-
-
-
-
-pkgdatadir = $(datadir)/sendmail
-pkglibdir = $(libdir)/sendmail
-pkgincludedir = $(includedir)/sendmail
-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 = x86_64-pc-linux-gnu
-host_triplet = x86_64-pc-linux-gnu
-target_triplet = x86_64-pc-linux-gnu
-sbin_PROGRAMS = sensible-mda$(EXEEXT)
-subdir = sensible_mda
-DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
- $(srcdir)/Makefile.in $(srcdir)/sensible-mda.c.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 = sensible-mda.c
-am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)"
-sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
-PROGRAMS = $(sbin_PROGRAMS)
-am_sensible_mda_OBJECTS = sensible-mda.$(OBJEXT)
-sensible_mda_OBJECTS = $(am_sensible_mda_OBJECTS)
-sensible_mda_LDADD = $(LDADD)
-DEFAULT_INCLUDES = -I.
-depcomp = $(SHELL) $(top_srcdir)/./build/depcomp
-am__depfiles_maybe = depfiles
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-SOURCES = $(sensible_mda_SOURCES)
-DIST_SOURCES = $(sensible_mda_SOURCES)
-man8dir = $(mandir)/man8
-NROFF = nroff
-MANS = $(dist_man_MANS)
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /home/src/sendmail/sendmail-8.14.2/debian/build/missing --run aclocal-1.10
-AMTAR = ${SHELL} /home/src/sendmail/sendmail-8.14.2/debian/build/missing --run tar
-AUTOCONF = ${SHELL} /home/src/sendmail/sendmail-8.14.2/debian/build/missing --run autoconf
-AUTOHEADER = ${SHELL} /home/src/sendmail/sendmail-8.14.2/debian/build/missing --run autoheader
-AUTOMAKE = ${SHELL} /home/src/sendmail/sendmail-8.14.2/debian/build/missing --run automake-1.10
-AWK = gawk
-CC = cc
-CCDEPMODE = depmode=none
-CFLAGS = -g -Wall -O2 -fPIC -fstack-protector-all
-CPP = cc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBIAN = yes
-DEBIAN_DH = 4.1
-DEB_BUILD_ARCH = amd64
-DEB_BUILD_GNU_CPU = x86_64
-DEB_BUILD_GNU_SYSTEM = linux-gnu
-DEB_BUILD_GNU_TYPE = x86_64-linux-gnu
-DEB_HOST_ARCH = amd64
-DEB_HOST_GNU_CPU = x86_64
-DEB_HOST_GNU_SYSTEM = linux-gnu
-DEB_HOST_GNU_TYPE = x86_64-linux-gnu
-DEFS = -DPACKAGE_NAME=\"Sendmail\" -DPACKAGE_TARNAME=\"sendmail\" -DPACKAGE_VERSION=\"8.14.1\" -DPACKAGE_STRING=\"Sendmail\ 8.14.1\" -DPACKAGE_BUGREPORT=\"bug/reportbug\ or\ sendmail@packages.debian.org\" -DPACKAGE=\"sendmail\" -DVERSION=\"8.14.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_REGEX_H=1 -DHAVE_DB_H=1 -DHAVE_DB_185_H=1 -DHAVE_RPCSVC_YPCLNT_H=1 -DHAVE_RPCSVC_NIS_H=1 -DHAVE_LDAP_H=1 -DHAVE_RESOLV_H=1 -DHAVE_TCPD_H=1 -DHAVE_NETINET_IP6_H=1 -DHAVE_GETADDRINFO=1 -DHAVE_MAILLOCK_H=1 -DHAVE_SASL_SASL_H=1 -DHAVE_OPENSSL_SSL_H=1
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GREP = /bin/grep
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS = -pie -Wl,-z,noexecstack,-z,relro,-z,now -Wl,--warn-shared-textrel
-LIBOBJS =
-LIBS =
-LN_S = ln -s
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /home/src/sendmail/sendmail-8.14.2/debian/build/missing --run makeinfo
-MKDIR_P = /bin/mkdir -p
-OBJEXT = o
-PACKAGE = sendmail
-PACKAGE_BUGREPORT = bug/reportbug or sendmail@packages.debian.org
-PACKAGE_NAME = Sendmail
-PACKAGE_STRING = Sendmail 8.14.2
-PACKAGE_TARNAME = sendmail
-PACKAGE_VERSION = 8.14.2
-PATH_SEPARATOR = :
-SET_MAKE =
-SHELL = /bin/sh
-SM_CPYRT = 2007
-SM_DATE = 2007-10-04 21:42:00
-SM_MAXVERS = 9.0.0
-SM_MINVERS = 8.7.6
-SM_VERS = 8.14.1
-STRIP =
-VERSION = 8.14.1
-abs_builddir = /home/src/sendmail/sendmail-8.14.2/debian/sensible_mda
-abs_srcdir = /home/src/sendmail/sendmail-8.14.2/debian/sensible_mda
-abs_top_builddir = /home/src/sendmail/sendmail-8.14.2/debian
-abs_top_srcdir = /home/src/sendmail/sendmail-8.14.2/debian
-ac_ct_CC = cc
-ac_version = 2.61
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = ${AMTAR} chof - "$$tardir"
-am__untar = ${AMTAR} xf -
-am_version = 1.10
-bindir = /usr/bin
-build = x86_64-pc-linux-gnu
-build_alias = x86_64-linux-gnu
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = pc
-builddir = .
-buildtree = build-tree/sendmail-8.14.2
-datadir = /usr/share
-datarootdir = /usr/share
-docdir = /usr/share/doc
-dvidir = ${docdir}
-exec_prefix = /usr
-host = x86_64-pc-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = pc
-htmldir = ${docdir}
-includedir = /usr/include
-infodir = /usr/share/info
-install_sh = $(SHELL) /home/src/sendmail/sendmail-8.14.2/debian/build/install-sh
-libdir = /usr/lib
-libexecdir = /usr/lib/sm.bin
-localedir = ${datarootdir}/locale
-localstatedir = /var
-mandir = /usr/share/man
-mkdir_p = /bin/mkdir -p
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = /usr/sbin
-sharedstatedir = /usr/com
-sm_auth_lib = 2
-sm_badepends = , libdb4.6-dev, libldap2-dev, libwrap0-dev, liblockfile-dev, libsasl2-dev, libssl-dev
-sm_build_arch = amd64
-sm_custom =
-sm_custom_s =
-sm_databases = REGEX, DB, NIS, NIS+, LDAP, DNS
-sm_date = 2007-11-02
-sm_depends =
-sm_dist_name = Debian
-sm_dist_vers = lenny/sid
-sm_editmap_envdef =
-sm_editmap_libs = -ldb-4.6 -lldap -llber
-sm_enable_auth = yes
-sm_enable_bind = no
-sm_enable_hesiod = no
-sm_enable_ipv6 = yes
-sm_enable_ldap = yes
-sm_enable_maillock = yes
-sm_enable_milter = yes
-sm_enable_ndbm = no
-sm_enable_newdb = yes
-sm_enable_nis = yes
-sm_enable_nisplus = yes
-sm_enable_regex = yes
-sm_enable_sfio = no
-sm_enable_shm = yes
-sm_enable_tcpd = yes
-sm_enable_tls = yes
-sm_envdef = -DHASFCHMOD=1 -DHASSETRLIMIT=1 -DHASFLOCK=0 -DUSESETEUID=1 -DHASGETUSERSHELL=1 -DNETINET6
-sm_features = TCPWrappers, IPv6, LockFile, SMTP AUTH(SASL), STARTTLS(SSL)
-sm_ffr = -D_FFR_QUEUE_SCHED_DBG -D_FFR_SKIP_DOMAINS -D_FFR_GROUPREADABLEAUTHINFOFILE -D_FFR_DAEMON_NETUNIX -D_FFR_NO_PIPE -D_FFR_SHM_STATUS -D_FFR_RHS -D_FFR_MAIL_MACRO -D_FFR_QUEUEDELAY=1 -D_FFR_RESET_MACRO_GLOBALS -D_FFR_TLS_1 -D_FFR_DEAL_WITH_ERROR_SSL
-sm_hesiod_parms =
-sm_host_arch = amd64
-sm_incdirs =
-sm_ldap_lib = -lldap -llber
-sm_libmilter_envdef = -fPIC -DSM_CONF_POLL=1 -D_FFR_MULTILINE -D_FFR_SMFI_PROGRESS
-sm_libmilter_libs =
-sm_libmilter_version = 1
-sm_libs =
-sm_libsm_envdef = -fPIC -DHAVE_NANOSLEEP=1 -D_LDAP_EXAMPLE_ -DLDAP_REFERRALS -D_FFR_LDAP_URI -D_FFR_LDAP_SETVERSION -DSM_CONF_LDAP_MEMFREE
-sm_libsm_libs = -lldap -llber
-sm_libsmdb_envdef =
-sm_libsmdb_libs =
-sm_libsmutil_envdef = -fPIC
-sm_libsmutil_libs =
-sm_m4_ffr = define(`_FFR_MAIL_MACRO')
-sm_mail_local_envdef = -DCONTENTLENGTH -DMAILLOCK
-sm_mail_local_libs = -lldap -llber -llockfile
-sm_mailstats_envdef =
-sm_mailstats_libs = -lldap -llber
-sm_makemap_envdef =
-sm_makemap_libs = -ldb-4.6 -lldap -llber
-sm_mapdef = -DSOCKETMAP -DMAP_REGEX -DNEWDB -DNIS -DNISPLUS -DLDAPMAP
-sm_newdb_lib = -ldb-4.6
-sm_praliases_envdef =
-sm_praliases_libs = -ldb-4.6 -lldap -llber
-sm_recommends =
-sm_revision = -1
-sm_rmail_envdef =
-sm_rmail_libs = -lldap -llber
-sm_sendmail_envdef = -D_PATH_SENDMAILPID=\"/var/run/sendmail/mta/sendmail.pid\" -DIP_SRCROUTE=1 -DLDAP_REFERRALS -D_FFR_LDAP_URI -D_FFR_LDAP_SETVERSION -DTCPWRAPPERS -DSASL -I/usr/include/sasl -DSTARTTLS -D_FFR_QUEUE_SCHED_DBG -D_FFR_SKIP_DOMAINS -D_FFR_GROUPREADABLEAUTHINFOFILE -D_FFR_DAEMON_NETUNIX -D_FFR_NO_PIPE -D_FFR_SHM_STATUS -D_FFR_RHS -D_FFR_MAIL_MACRO -D_FFR_QUEUEDELAY=1 -D_FFR_RESET_MACRO_GLOBALS -D_FFR_TLS_1 -D_FFR_DEAL_WITH_ERROR_SSL
-sm_sendmail_libs = -ldb-4.6 -lnsl -lldap -llber -lresolv -lwrap -lsasl2 -lcrypto -lssl
-sm_smrsh_envdef = -DCMDDIR=\"/etc/mail/smrsh\" -DPATH=\"/usr/bin:/bin\"
-sm_smrsh_libs = -lldap -llber
-sm_suggests = , sasl2-bin, libsasl2-modules | libsasl2-modules-plain | libsasl2-digestmd5-plain | libsasl2-digestmd5-des, openssl
-sm_time = 22:20:56
-sm_utc = +0000
-sm_vacation_envdef =
-sm_vacation_libs = -ldb-4.6 -lldap -llber
-sm_version = 8.14.2
-sm_version_beta =
-sm_version_major = 8.14
-sm_version_math = 527874
-sm_version_minor = 2
-sm_version_r = 14
-sm_version_v = 8
-srcdir = .
-sysconfdir = /etc
-target = x86_64-pc-linux-gnu
-target_alias =
-target_cpu = x86_64
-target_os = linux-gnu
-target_vendor = pc
-top_builddir = ..
-top_srcdir = ..
-#
-# Shipped manpages
-#
-dist_man_MANS = sensible-mda.8
-#
-# Program sources
-#
-sensible_mda_SOURCES = sensible-mda.c
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sensible_mda/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu sensible_mda/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: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-sensible-mda.c: $(top_builddir)/config.status $(srcdir)/sensible-mda.c.in
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-install-sbinPROGRAMS: $(sbin_PROGRAMS)
- @$(NORMAL_INSTALL)
- test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
- p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- if test -f $$p \
- ; then \
- f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
- $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
- else :; fi; \
- done
-
-uninstall-sbinPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(sbin_PROGRAMS)'; for p in $$list; do \
- f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
- rm -f "$(DESTDIR)$(sbindir)/$$f"; \
- done
-
-clean-sbinPROGRAMS:
- -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
-sensible-mda$(EXEEXT): $(sensible_mda_OBJECTS) $(sensible_mda_DEPENDENCIES)
- @rm -f sensible-mda$(EXEEXT)
- $(LINK) $(sensible_mda_OBJECTS) $(sensible_mda_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-#include ./$(DEPDIR)/sensible-mda.Po
-
-.c.o:
-# $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-# mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# source='$<' object='$@' libtool=no
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp)
- $(COMPILE) -c $<
-
-.c.obj:
-# $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-# mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# source='$<' object='$@' libtool=no
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp)
- $(COMPILE) -c `$(CYGPATH_W) '$<'`
-install-man8: $(man8_MANS) $(man_MANS)
- @$(NORMAL_INSTALL)
- test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
- @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
- for i in $$l2; do \
- case "$$i" in \
- *.8*) list="$$list $$i" ;; \
- esac; \
- done; \
- for i in $$list; do \
- if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
- else file=$$i; fi; \
- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
- case "$$ext" in \
- 8*) ;; \
- *) ext='8' ;; \
- esac; \
- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
- inst=`echo $$inst | sed -e 's/^.*\///'`; \
- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
- echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
- $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
- done
-uninstall-man8:
- @$(NORMAL_UNINSTALL)
- @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
- for i in $$l2; do \
- case "$$i" in \
- *.8*) list="$$list $$i" ;; \
- esac; \
- done; \
- for i in $$list; do \
- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
- case "$$ext" in \
- 8*) ;; \
- *) ext='8' ;; \
- esac; \
- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
- inst=`echo $$inst | sed -e 's/^.*\///'`; \
- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
- echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
- rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
- 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; } \
- END { for (i in files) print i; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- 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; } \
- END { for (i in files) print i; }'`; \
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique; \
- fi
-ctags: CTAGS
-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- 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; } \
- END { for (i in files) print i; }'`; \
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-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 $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$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 $(PROGRAMS) $(MANS)
-installdirs:
- for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-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)
-
-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 clean-sbinPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am: install-man
-
-install-dvi: install-dvi-am
-
-install-exec-am: install-sbinPROGRAMS
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man: install-man8
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-man uninstall-sbinPROGRAMS
-
-uninstall-man: uninstall-man8
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
- clean-sbinPROGRAMS ctags distclean distclean-compile \
- distclean-generic distclean-tags distdir 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-man8 install-pdf \
- install-pdf-am install-ps install-ps-am install-sbinPROGRAMS \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
- tags uninstall uninstall-am uninstall-man uninstall-man8 \
- uninstall-sbinPROGRAMS
-
-#
-# Debian targets, phase out
-#
-.PHONY: build-indep build-arch
-.PHONY: install-indep install-arch
-build-indep:
-build-arch: sensible-mda
-install-indep:
-install-arch: install
-# 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:
diff --git a/debian/sensible_mda/sensible-mda.c b/debian/sensible_mda/sensible-mda.c
deleted file mode 100644
index edea6b4..0000000
--- a/debian/sensible_mda/sensible-mda.c
+++ /dev/null
@@ -1,350 +0,0 @@
-/*
- * $Sendmail: sensible-mda.c,v 8.14.2 2007-11-02 22:20:56 cowboy Exp $
- *
- * sensible-mda.c
- * Copyright (c) 1998, Johnie Ingram.
- * Copyright (c) 1998-2007 Richard Nelson <cowboy@debian.org>.
- *
- * 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 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., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- */
-
-#ifndef lint
-static const char id[] = "@(#)$Id: sensible-mda.c,v 8.14.2 2007-11-02 22:20:56 cowboy Exp $";
-#endif /* ! lint */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <limits.h>
-#include <unistd.h>
-#include <pwd.h>
-#include <grp.h>
-#include <sysexits.h>
-#include <string.h>
-#include <syslog.h>
-
-// TODO: declare -x TCPREMOTEIP="$3"
-
-# define min(a, b) ((a) < (b) ? (a) : (b))
-
-#ifndef DEBUG
- #define DEBUG 0
- #endif
-#ifndef TESTING
- #define TESTING 0
- #endif
-
-#define PROCMAIL "/etc/mail/smrsh/procmail"
-#define MAILDROP "/etc/mail/smrsh/maildrop"
-#define DELIVER "/etc/mail/smrsh/deliver"
-#define MAIL_LOCAL "/etc/mail/smrsh/mail.local"
-
-#define PROCMAILRCS "/etc/procmailrcs/"
-
-static void help(void);
-static int drop_privs(char *, uid_t, gid_t);
-static void show_privs(void);
-static unsigned char program[PATH_MAX];
-
-static uid_t RealUid, RunAsUid;
-static gid_t RealGid, RunAsGid;
-
-int
-main (int argc, char *argv[]) {
-
- struct stat MDA_stat;
- int done = 1;
- struct passwd* passwd_entry;
-
- char *str_pos;
- int exec_rc = EX_OK;
-
- #if DEBUG
- int arg_index;
- int str_len;
- #endif
-
- (void) openlog( "sensible-mda", LOG_PID+LOG_PERROR, LOG_MAIL );
-
- /*----------------------------------------------------------------
- * Obtain program name
- *----------------------------------------------------------------*/
- str_pos = strrchr(argv[0], '/');
- if ( str_pos )
- str_pos++;
- else
- str_pos = argv[0];
- (void) strncpy(program, str_pos,
- min(strlen(str_pos), sizeof(program)-1));
- program[sizeof(program)-1] = '\0';
-
- #if DEBUG
- str_len = 0;
- for ( arg_index = 0; arg_index < argc; arg_index++ )
- str_len += strlen( argv[arg_index] ) + 1;
- str_pos = malloc( str_len + 1);
- str_pos[0] = '\0';
- for ( arg_index = 0; arg_index < argc; arg_index++ ) {
- (void) strcat( str_pos, argv[arg_index] );
- (void) strcat( str_pos, " " );
- };
- (void) syslog( LOG_INFO, "Parms: %s\n", str_pos );
- (void) free(str_pos);
- #endif
-
- /*----------------------------------------------------------------
- * Parse input to determine to whom to speak and who we are...
- * Must have at least three parameters unless first is ?,-?,/?.
- *----------------------------------------------------------------*/
- if (argc >= 2 &&
- (strcmp(argv[1],"?") == 0 || strcmp(argv[1],"-?") == 0 ||
- strcmp(argv[1],"/?") == 0 || strcmp(argv[1],"\\?") == 0 ||
- strcmp(argv[1],"-h") == 0 || strcmp(argv[1],"--help") == 0)) {
- (void) printf( "%s - Help\n", program );
- help();
- (void) closelog();
- return (EX_USAGE);
- };
- if (argc < 3) {
- (void) syslog( LOG_ERR, "%s - Required parameters elided.\n",
- program );
- help();
- (void) closelog();
- return (EX_USAGE);
- };
-
- /*----------------------------------------------------------------
- * Determine to whom we are delivering mail to, and set that
- * as our real, effective, and saved {u,g}ids
- *----------------------------------------------------------------*/
- RealUid = RunAsUid = geteuid();
- RealGid = RunAsGid = getegid();
- passwd_entry=getpwnam(argv[2]);
- if (passwd_entry) {
- RunAsUid = passwd_entry->pw_uid;
- RunAsGid = passwd_entry->pw_gid;
- }
- else {
- (void) syslog( LOG_ERR, "User(%s) does not exist!\n",
- argv[2]);
- (void) closelog();
- return (EX_TEMPFAIL);
- };
-
- /*----------------------------------------------------------------
- * 1st: try delivery via PROCMAIL (Keep SUID, works better that way)
- *----------------------------------------------------------------*/
- if (!stat(PROCMAIL, &MDA_stat)) {
- done = 0;
- #if DEBUG
- (void) syslog( LOG_INFO, "MDA: %s -t -f %s"
- " -a %s -d %s\n",
- PROCMAIL, argv[1], argv[3], argv[2]);
- #endif
- #if ! TESTING
- exec_rc = execl (PROCMAIL, PROCMAIL, "-t",
- "-f", argv[1],
- "-a", argv[3],
- "-d", argv[2], NULL);
- (void) syslog( LOG_ERR, "%s did not execute %i,%i\n",
- PROCMAIL, exec_rc, errno);
- (void) closelog();
- return (EX_TEMPFAIL);
- #endif
- done = 1;
- };
-
- /*----------------------------------------------------------------
- * 2nd: try delivery via MAILDROP
- *----------------------------------------------------------------*/
- if (done && !stat(MAILDROP, &MDA_stat)) {
- done = 0;
- #if DEBUG
- (void) syslog( LOG_INFO, "MDA: %s -f %s -d %s %s\n",
- MAILDROP, argv[1], argv[2], argv[3]);
- #endif
- if (drop_privs( argv[2], RunAsUid, RunAsGid )) {
- (void) closelog();
- return (EX_TEMPFAIL);
- };
- #if ! TESTING
- exec_rc = execl (MAILDROP, MAILDROP,
- "-f", argv[1], "-d", argv[2], argv[3], NULL);
- (void) syslog( LOG_ERR, "%s did not execute %i,%i\n",
- MAILDROP, exec_rc, errno);
- (void) closelog();
- return (EX_TEMPFAIL);
- #endif
- done = 1;
- };
-
- /*----------------------------------------------------------------
- * 3rd: try delivery via DELIVER
- *----------------------------------------------------------------*/
- if (done && !stat(DELIVER, &MDA_stat)) {
- done = 0;
- #if DEBUG
- (void) syslog( LOG_INFO, "MDA: %s -r %s %s\n",
- DELIVER, argv[1], argv[2]);
- #endif
- if (drop_privs( argv[2], RunAsUid, RunAsGid )) {
- (void) closelog();
- return (EX_TEMPFAIL);
- };
- #if ! TESTING
- exec_rc = execl (DELIVER, DELIVER,
- "-r", argv[1], argv[2], NULL);
- (void) syslog( LOG_ERR, "%s did not execute %i,%i\n",
- DELIVER, exec_rc, errno);
- (void) closelog();
- return (EX_TEMPFAIL);
- #endif
- done = 1;
- };
-
- /*----------------------------------------------------------------
- * 4th: try delivery via MAIL.LOCAL (Needs SUID because of LMTP)
- *----------------------------------------------------------------*/
- if (done && !stat(MAIL_LOCAL, &MDA_stat)) {
- done = 0;
- #if DEBUG
- (void) syslog( LOG_INFO, "MDA: %s -f %s %s\n",
- MAIL_LOCAL, argv[1], argv[2]);
- #endif
- #if ! TESTING
- exec_rc = execl (MAIL_LOCAL, MAIL_LOCAL,
- "-f", argv[1], argv[2], NULL);
- (void) syslog( LOG_ERR, "%s did not execute %i,%i\n",
- MAIL_LOCAL, exec_rc, errno);
- (void) closelog();
- return (EX_TEMPFAIL);
- #endif
- done = 1;
- };
-
- (void) syslog( LOG_ERR, "No MDA was found! Tried: "
- "%s, %s, %s, and %s.\n",
- PROCMAIL, MAILDROP, DELIVER, MAIL_LOCAL );
-
- (void) closelog();
- return (EX_TEMPFAIL);
- };
-
-/*-------------------------------------------------------------------
- * drop_privs...
- *-------------------------------------------------------------------*/
-static int
-drop_privs(char * luser, uid_t new_uid, gid_t new_gid) {
- gid_t emptygidset[1];
- uid_t EffUid;
- gid_t EffGid;
- int rval;
-
- rval = EX_OK;
- EffUid = geteuid();
- EffGid = getegid();
-
- /* reset group permissions; these can be set later */
- emptygidset[0] = (RunAsGid != 0) ? RunAsGid : EffGid;
- if (setgroups(1, emptygidset) == -1 && EffUid == 0) {
- (void) syslog( LOG_ERR, "drop_privs: setgroups(1, %d) failed\n",
- (int) emptygidset[0]);
- rval = EX_OSERR;
- };
-
- /* reset primary group id */
- if ((RunAsGid != 0) && EffGid != RunAsGid && setgid(RunAsGid) < 0) {
- (void) syslog( LOG_ERR, "drop_privs: setgid(%d) failed\n",
- (int) RunAsGid);
- rval = EX_OSERR;
- };
-
- /* reset primary user id */
- if ((RunAsUid != 0) && EffUid != RunAsUid && setuid(RunAsUid) < 0) {
- (void) syslog( LOG_ERR, "drop_privs: setuid(%d) failed\n",
- (int) RunAsUid);
- rval = EX_OSERR;
- };
-
- #if DEBUG
- show_privs();
- (void) syslog( LOG_INFO, "drop_privs: rval = %d\n", rval);
- #endif
-
- if (rval) {
- (void) syslog( LOG_ERR,
- "Can not setreuid to %d:%d for user(%s)!\n",
- RunAsUid, RunAsGid, luser);
- show_privs();
- };
-
- return rval;
- };
-
-/*-------------------------------------------------------------------
- * show_privs...
- *-------------------------------------------------------------------*/
-static void
-show_privs(void) {
-
- (void) syslog( LOG_INFO, "show_privs: RealUser = %d:%d\n",
- (int) RealUid, (int) RealGid);
- (void) syslog( LOG_INFO, "show_privs: "
- "get[ug]id=%d:%d, gete[ug]id=%d:%d\n",
- (int) getuid(), (int) getgid(),
- (int) geteuid(), (int) getegid());
- (void) syslog( LOG_INFO, "show_privs: RunAsUser = %d:%d\n",
- (int) RunAsUid, (int) RunAsGid);
- return;
- };
-
-/*-------------------------------------------------------------------
- * Help...
- *-------------------------------------------------------------------*/
-static void
-help(void) {
-
- (void) printf("\n%s - Help information.\n\n"
- "%s:\n"
- "\tA general MTA->MDA wrapper to isolate the MTA from\n"
- "\tthe vagaries of MDA installation and invocation.\n"
- "\nSupported MTAs:\n"
- "\tsendmail\n"
- "\nSupported MDAs:\n"
- "\tprocmail, maildrop, deliver, mail.local\n"
- "\nCalled by:\n"
- "\tSendmail: \n"
- "\tYou: "
- "Go directly to jail, do not pass GO, "
- "do not collect $200!\n"
- "\nSyntax:\n"
- "\t%s <from:$g> <user:$u> [<detail:$h>]"
- "[<client:${client_addr}>]\n"
- "\nCalls:\n"
- "\tprocmail:\t procmail -t"
- " -f <from>"
- " -a <detail> -d <to>\n"
- "\tmaildrop:\t maildrop -f <from> -d <to> <detail>\n"
- "\tdeliver:\t deliver -r <from> <to>\n"
- "\tmail.local:\t mail.local -f <from> <to>\n"
- "\n"
- ,program, program, program
- );
- return;
- };
-