1 Star 0 Fork 19

haochen/sendmail

forked from src-openEuler/sendmail 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sendmail.spec 20.67 KB
一键复制 编辑 原始数据 按行查看 历史
haochen 提交于 2022-03-21 16:51 . update sendmail to 8.17.1
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
Name: sendmail
Version: 8.17.1
Release: 1
Summary: A classic mail transfer agent from the Unix world
License: Sendmail
URL: http://www.sendmail.org/
Source0: http://ftp.sendmail.org/sendmail.%{version}.tar.gz
Source1: sendmail.service
Source2: sendmail.nm-dispatcher
Source3: sendmail.etc-mail-make
Source4: sendmail.sysconfig
Source5: sendmail.etc-mail-Makefile
Source6: sm-client.service
Source7: sendmail.pam
Source8: Sendmail-sasl2.conf
Source9: sendmail-redhat.mc
Source10: sendmail-etc-mail-virtusertable
Source11: sendmail-etc-mail-access
Source12: sendmail-etc-mail-domaintable
Source13: sendmail-etc-mail-local-host-names
Source14: sendmail-etc-mail-mailertable
Source15: sendmail-etc-mail-trusted-users
BuildRequires: openssl-devel openldap-devel libnsl2-devel
BuildRequires: cyrus-sasl-devel groff ghostscript m4 systemd setup >= 2.5.31-1
BuildRequires: gcc
Requires: bash >= 2.0 setup >= 2.5.31-1 %{_sbindir}/saslauthd
Requires(pre): shadow-utils
Requires(post): systemd systemd-sysv coreutils %{_sbindir}/alternatives openssl
Requires(preun): systemd %{_sbindir}/alternatives
Requires(postun): systemd coreutils %{_sbindir}/alternatives
Provides: MTA smtpdaemon server(smtp)
Provides: sendmail-cf
Obsoletes: sendmail-cf
Patch0001: backport-sendmail-8.14.4-makemapman.patch
Patch0002: backport-sendmail-8.14.9-pid.patch
Patch0003: backport-sendmail-8.17.1-manpage.patch
Patch0004: backport-sendmail-8.17.1-dynamic.patch
Patch0005: backport-sendmail-8.13.0-cyrus.patch
Patch0006: backport-sendmail-8.17.1-aliases_dir.patch
Patch0007: backport-sendmail-8.14.9-noversion.patch
Patch0008: backport-sendmail-8.17.1-localdomain.patch
Patch0009: backport-sendmail-8.14.3-sharedmilter.patch
Patch0010: backport-sendmail-8.17.1-switchfile.patch
Patch0011: backport-sendmail-8.17.1-sasl2-in-etc.patch
Patch0012: backport-sendmail-8.17.1-qos.patch
Patch0013: backport-sendmail-8.17.1-libmilter-socket-activation.patch
%description
Sendmail is a general purpose internetwork email routing facility that
supports many kinds of mail-transfer and delivery methods, including
the Simple Mail Transfer Protocol (SMTP) used for email transport over
the Internet. It also includes the configuration files you need to generate
the sendmail.cf file distributed with the sendmail package.
%package help
Summary: Help document for the Sendmail Mail Transport Agent program
BuildArch: noarch
Requires: sendmail = %{version}-%{release}
Provides: sendmail-doc
Obsoletes: sendmail-doc
%description help
This package contains the Sendmail Installation and Operation Guide,
text files containing configuration documentation, plus a number of
scripts and tools for using with Sendmail.
%package -n libmilter
Summary: The sendmail milter library
Provides: sendmail-milter sendmail-devel = %{version}-%{release}
Obsoletes: sendmail-milter sendmail-devel < 8.15.2-8
%description -n libmilter
The Sendmail Content Management API (Milter) is designed to allow third-party
programs access to mail messages as they are being processed in order to
filter meta-information and content. It includes the milter shared library.
%package -n libmilter-devel
Summary: Sendmail milter development libraries and headers
Requires: libmilter = %{version}-%{release}
Provides: sendmail-milter-devel
Obsoletes: sendmail-milter-devel
%description -n libmilter-devel
Include development libraries and headers for the milter add-ons as part of sendmail.
%prep
%setup -q
cp devtools/M4/UNIX/library.m4 devtools/M4/UNIX/sharedlibrary.m4
%autopatch -p1
%build
export CFLAGS="${RPM_OPT_FLAGS}"
cat << EOF > config.m4
define(\`confMAPDEF', \`-DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
define(\`confOPTIMIZE', \`\`\`\`${RPM_OPT_FLAGS}'''')
define(\`confLIBS', \`-lnsl -lcrypt -lresolv')
define(\`confSTDIR', \`%{_localstatedir}/log/mail')
define(\`confLDOPTS', \`-Xlinker -z -Xlinker relro -Xlinker -z -Xlinker now')
define(\`confMANOWN', \`root')
define(\`confMANGRP', \`root')
define(\`confENVDEF', \`-I/usr/kerberos/include -Wall -DXDEBUG=0')
define(\`confLIBDIRS', \`-L/usr/kerberos/%{_lib}')
define(\`confMANMODE', \`644')
define(\`confMAN1SRC', \`1')
define(\`confMAN5SRC', \`5')
define(\`confMAN8SRC', \`8')
define(\`STATUS_FILE', \`%{_localstatedir}/log/mail/statistics')
define(\`confLIBSEARCH', \`resolv 44bsd')
EOF
#'
cat << EOF >> config.m4
APPENDDEF(\`confLIBS', \`-pie')
APPENDDEF(\`confLIBS', \`-lsasl2 -lcrypto')dnl
APPENDDEF(\`confLIBS', \`-lldap -llber -lssl -lcrypto')dnl
APPENDDEF(\`confENVDEF', \`-DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_LINUX_MHNLi')dnl
APPENDDEF(\`confENVDEF', \`-D_FFR_QOS -D_FILE_OFFSET_BITS=64')dnl
APPENDDEF(\`confENVDEF', \`-DSASL=2')dnl
APPENDDEF(\`confENVDEF', \`-D_FFR_MILTER_CHECK_REJECTIONS_TOO')dnl
APPENDDEF(\`confMAPDEF', \`-DLDAPMAP -DLDAP_DEPRECATED')dnl
APPENDDEF(\`confENVDEF', \`-DSM_CONF_LDAP_MEMFREE=1')dnl
APPENDDEF(\`confOPTIMIZE', \`')
APPENDDEF(\`confOPTIMIZE', \`-fpie')
APPENDDEF(\`conf_sendmail_ENVDEF', \`-DMILTER')dnl
APPENDDEF(\`conf_sendmail_ENVDEF', \`-DSTARTTLS -D_FFR_TLS_1 -D_FFR_TLS_EC -D_FFR_TLS_USE_CERTIFICATE_CHAIN_FILE')dnl
APPENDDEF(\`conf_sendmail_LIBS', \`-lssl -lcrypto')dnl
EOF
for dir in libsmutil sendmail mailstats rmail praliases smrsh makemap editmap libmilter; do
cd $dir
sh ./Build -f ../config.m4
cd ..
done
make -C doc/op op.pdf
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/mail
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/mail
mkdir -p $RPM_BUILD_ROOT%{_datadir}/sendmail-cf
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/spool/{clientmqueue,mqueue}
mkdir -p $RPM_BUILD_ROOT%{_docdir}/sendmail/contrib
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{smrsh,sysconfig,pam.d,sasl2}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
mkdir -p $RPM_BUILD_ROOT%{_includedir}/libmilter
%define USER `id -nu`
%define GROUP `id -ng`
sendmail_make() {
make $@ \
DESTDIR=$RPM_BUILD_ROOT \
LIBDIR=%{_libdir} \
MANROOT=%{_mandir}/man \
LIBMODE=0755 INCMODE=0644 \
MSPQOWN=%{USER} CFMODE=0644 \
CFOWN=%{USER} CFGRP=%{GROUP} \
SBINOWN=%{USER} SBINGRP=%{GROUP} \
UBINOWN=%{USER} UBINGRP=%{GROUP} \
MANOWN=%{USER} MANGRP=%{GROUP} \
INCOWN=%{USER} INCGRP=%{GROUP} \
LIBOWN=%{USER} LIBGRP=%{GROUP} \
GBINOWN=%{USER} GBINGRP=%{GROUP}
}
MAKEDIR=obj.$(uname -s).$(uname -r).$(uname -m)
sendmail_make -C $MAKEDIR/rmail force-install
for dir in sendmail mailstats praliases smrsh makemap editmap libmilter ; do
sendmail_make -C $MAKEDIR/$dir install
done
ln -sf ../sbin/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
ln -sf ../sbin/sendmail.sendmail $RPM_BUILD_ROOT/usr/lib/sendmail.sendmail
for dir in hoststat mailq newaliases purgestat ; do
ln -sf ../sbin/sendmail.sendmail $RPM_BUILD_ROOT%{_bindir}/$dir
done
install -p -m 644 {FAQ,KNOWNBUGS,LICENSE,RELEASE_NOTES} $RPM_BUILD_ROOT%{_docdir}/sendmail
install -p -m 644 {README,doc/op/op.pdf,sendmail/SECURITY} $RPM_BUILD_ROOT%{_docdir}/sendmail
install -p -m 644 sendmail/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.sendmail
install -p -m 644 smrsh/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.smrsh
install -p -m 644 libmilter/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.libmilter
install -p -m 644 cf/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.cf
install -p -m 644 contrib/* $RPM_BUILD_ROOT%{_docdir}/sendmail/contrib
gzip -9 $RPM_BUILD_ROOT%{_docdir}/sendmail/RELEASE_NOTES
cp -ar cf/* $RPM_BUILD_ROOT%{_datadir}/sendmail-cf
rm -rf $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/{README,Build.*}
rm -rf $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/*/*.m{c,4}.*
install -p -m 644 cf/cf/submit.mc $RPM_BUILD_ROOT%{_sysconfdir}/mail/submit.mc
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}
install -p -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_unitdir}
install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d/10-sendmail
install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/sendmail
install -p -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/smtp.sendmail
install -p -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/sasl2/Sendmail.conf
install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/mail/make
install -p -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mail/Makefile
install -p -m 644 %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.mc
install -p -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mail/virtusertable
install -p -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/mail/access
install -p -m 644 %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/mail/domaintable
install -p -m 644 %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mail/local-host-names
install -p -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/mail/mailertable
install -p -m 644 %{SOURCE15} $RPM_BUILD_ROOT%{_sysconfdir}/mail/trusted-users
sed -i -e 's|@@PATH@@|%{_datadir}/sendmail-cf|' $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.mc
sed -i -e 's|@@PATH@@|cf|' %{SOURCE9}
m4 %{SOURCE9} > $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.cf
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.cf
for map in virtusertable access domaintable mailertable ; do
touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}.db
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}.db
done
touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/aliasesdb-stamp
touch $RPM_BUILD_ROOT%{_localstatedir}/spool/clientmqueue/sm-client.st
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/mail/helpfile
chmod 755 $RPM_BUILD_ROOT%{_sbindir}/{mailstats,makemap,editmap,praliases,sendmail,smrsh}
chmod 755 $RPM_BUILD_ROOT%{_bindir}/rmail
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/sasl2
mv $RPM_BUILD_ROOT%{_sbindir}/sendmail $RPM_BUILD_ROOT%{_sbindir}/sendmail.sendmail
mv $RPM_BUILD_ROOT%{_sbindir}/makemap $RPM_BUILD_ROOT%{_sbindir}/makemap.sendmail
mv $RPM_BUILD_ROOT%{_sbindir}/editmap $RPM_BUILD_ROOT%{_sbindir}/editmap.sendmail
mv $RPM_BUILD_ROOT%{_bindir}/mailq $RPM_BUILD_ROOT%{_bindir}/mailq.sendmail
mv $RPM_BUILD_ROOT%{_bindir}/rmail $RPM_BUILD_ROOT%{_bindir}/rmail.sendmail
mv $RPM_BUILD_ROOT%{_bindir}/newaliases $RPM_BUILD_ROOT%{_bindir}/newaliases.sendmail
touch $RPM_BUILD_ROOT%{_sbindir}/sendmail
touch $RPM_BUILD_ROOT%{_sbindir}/makemap
touch $RPM_BUILD_ROOT%{_sbindir}/editmap
touch $RPM_BUILD_ROOT%{_bindir}/mailq
touch $RPM_BUILD_ROOT%{_bindir}/rmail
touch $RPM_BUILD_ROOT%{_bindir}/newaliases
mv $RPM_BUILD_ROOT%{_mandir}/man1/mailq.1 $RPM_BUILD_ROOT%{_mandir}/man1/mailq.sendmail.1
mv $RPM_BUILD_ROOT%{_mandir}/man1/newaliases.1 $RPM_BUILD_ROOT%{_mandir}/man1/newaliases.sendmail.1
mv $RPM_BUILD_ROOT%{_mandir}/man5/aliases.5 $RPM_BUILD_ROOT%{_mandir}/man5/aliases.sendmail.5
mv $RPM_BUILD_ROOT%{_mandir}/man8/sendmail.8 $RPM_BUILD_ROOT%{_mandir}/man8/sendmail.sendmail.8
mv $RPM_BUILD_ROOT%{_mandir}/man8/rmail.8 $RPM_BUILD_ROOT%{_mandir}/man8/rmail.sendmail.8
mv $RPM_BUILD_ROOT%{_mandir}/man8/makemap.8 $RPM_BUILD_ROOT%{_mandir}/man8/makemap.sendmail.8
mv $RPM_BUILD_ROOT%{_mandir}/man8/editmap.8 $RPM_BUILD_ROOT%{_mandir}/man8/editmap.sendmail.8
touch $RPM_BUILD_ROOT%{_mandir}/man1/mailq.1
touch $RPM_BUILD_ROOT%{_mandir}/man1/newaliases.1
touch $RPM_BUILD_ROOT%{_mandir}/man5/aliases.5
touch $RPM_BUILD_ROOT%{_mandir}/man8/sendmail.8
touch $RPM_BUILD_ROOT%{_mandir}/man8/rmail.8
touch $RPM_BUILD_ROOT%{_mandir}/man8/makemap.8
touch $RPM_BUILD_ROOT%{_mandir}/man8/editmap.8
touch $RPM_BUILD_ROOT/usr/lib/sendmail
touch $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/smtp
for m in man8/hoststat.8 man8/purgestat.8; do
[ -f %{buildroot}%{_mandir}/$m ] ||
echo ".so man8/sendmail.8" > %{buildroot}%{_mandir}/$m
done
%check
%pre
getent group mailnull > /dev/null || %{_sbindir}/groupadd -g 47 -r mailnull > /dev/null 2>&1
getent group smmsp > /dev/null || %{_sbindir}/groupadd -g 51 -r smmsp > /dev/null 2>&1
getent passwd mailnull > /dev/null || \
%{_sbindir}/useradd -u 47 -g mailnull -d %{_localstatedir}/spool/mqueue -r -s /sbin/nologin mailnull > /dev/null 2>&1
getent passwd smmsp > /dev/null || \
%{_sbindir}/useradd -u 51 -g smmsp -d %{_localstatedir}/spool/mqueue -r -s /sbin/nologin smmsp > /dev/null 2>&1
[ -h %{_sbindir}/makemap ] || rm -f %{_sbindir}/makemap || :
[ -h %{_mandir}/man8/makemap.8.gz ] || rm -f %{_mandir}/man8/makemap.8.gz || :
exit 0
%preun
%systemd_preun sendmail.service sm-client.service
if [ $1 = 0 ]; then
%{_sbindir}/alternatives --remove mta %{_sbindir}/sendmail.sendmail
fi
exit 0
%post
%systemd_post sendmail.service sm-client.service
%{_sbindir}/alternatives --install %{_sbindir}/sendmail mta %{_sbindir}/sendmail.sendmail 90 \
--slave %{_sbindir}/makemap mta-makemap %{_sbindir}/makemap.sendmail \
--slave %{_sbindir}/editmap mta-editmap %{_sbindir}/editmap.sendmail \
--slave %{_bindir}/mailq mta-mailq %{_bindir}/mailq.sendmail \
--slave %{_bindir}/newaliases mta-newaliases %{_bindir}/newaliases.sendmail \
--slave %{_bindir}/rmail mta-rmail %{_bindir}/rmail.sendmail \
--slave /usr/lib/sendmail mta-sendmail /usr/lib/sendmail.sendmail \
--slave %{_sysconfdir}/pam.d/smtp mta-pam %{_sysconfdir}/pam.d/smtp.sendmail \
--slave %{_mandir}/man8/sendmail.8.gz mta-sendmailman %{_mandir}/man8/sendmail.sendmail.8.gz \
--slave %{_mandir}/man1/mailq.1.gz mta-mailqman %{_mandir}/man1/mailq.sendmail.1.gz \
--slave %{_mandir}/man1/newaliases.1.gz mta-newaliasesman %{_mandir}/man1/newaliases.sendmail.1.gz \
--slave %{_mandir}/man5/aliases.5.gz mta-aliasesman %{_mandir}/man5/aliases.sendmail.5.gz \
--slave %{_mandir}/man8/rmail.8.gz mta-rmailman %{_mandir}/man8/rmail.sendmail.8.gz \
--slave %{_mandir}/man8/makemap.8.gz mta-makemapman %{_mandir}/man8/makemap.sendmail.8.gz \
--slave %{_mandir}/man8/editmap.8.gz mta-editmapman %{_mandir}/man8/editmap.sendmail.8.gz \
--initscript sendmail > /dev/null 2>&1
{
chown root \
%{_sysconfdir}/aliases.db \
%{_sysconfdir}/mail/access.db \
%{_sysconfdir}/mail/mailertable.db \
%{_sysconfdir}/mail/domaintable.db \
%{_sysconfdir}/mail/virtusertable.db
SM_FORCE_DBREBUILD=1 %{_sysconfdir}/mail/make
SM_FORCE_DBREBUILD=1 %{_sysconfdir}/mail/make aliases
} > /dev/null 2>&1
if [ ! -f %{_localstatedir}/spool/clientmqueue/sm-client.st ]; then
touch %{_localstatedir}/spool/clientmqueue/sm-client.st
chown smmsp:smmsp %{_localstatedir}/spool/clientmqueue/sm-client.st
chmod 0660 %{_localstatedir}/spool/clientmqueue/sm-client.st
fi
if [ ! -f %{_sysconfdir}/pki/tls/private/sendmail.key ]; then
umask 077
%{_bindir}/openssl genrsa 4096 > %{_sysconfdir}/pki/tls/private/sendmail.key 2> /dev/null
fi
if [ ! -f %{_sysconfdir}/pki/tls/certs/sendmail.pem ]; then
FQDN=`hostname`
if [ "x${FQDN}" = "x" ]; then
FQDN=localhost.localdomain
fi
%{_bindir}/openssl req -new -key %{_sysconfdir}/pki/tls/private/sendmail.key -x509 -sha256 \
-days 365 -set_serial $RANDOM -out %{_sysconfdir}/pki/tls/certs/sendmail.pem \
-subj "/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=${FQDN}/emailAddress=root@${FQDN}"
chmod 644 %{_sysconfdir}/pki/tls/certs/sendmail.pem
fi
exit 0
%postun
%systemd_postun_with_restart sendmail.service sm-client.service
if [ $1 -ge 1 ] ; then
mta=`readlink %{_sysconfdir}/alternatives/mta`
if [ "$mta" == "%{_sbindir}/sendmail.sendmail" ]; then
%{_sbindir}/alternatives --set mta %{_sbindir}/sendmail.sendmail
fi
fi
exit 0
%post -n libmilter
/sbin/ldconfig
%postun -n libmilter
/sbin/ldconfig
%files
%doc %{_docdir}/sendmail/{FAQ,KNOWNBUGS,LICENSE,README,RELEASE_NOTES.gz}
%doc %{_datadir}/sendmail-cf/README
%{_bindir}/hoststat
%{_bindir}/makemap
%{_bindir}/purgestat
%{_sbindir}/mailstats
%{_sbindir}/makemap.sendmail
%{_sbindir}/editmap.sendmail
%{_sbindir}/praliases
%{_bindir}/rmail.sendmail
%{_bindir}/newaliases.sendmail
%{_bindir}/mailq.sendmail
%{_sbindir}/smrsh
%attr(2755,root,smmsp) %{_sbindir}/sendmail.sendmail
/usr/lib/sendmail.sendmail
%ghost %attr(0755,-,-) %{_sbindir}/sendmail
%ghost %attr(0755,-,-) %{_sbindir}/makemap
%ghost %attr(0755,-,-) %{_sbindir}/editmap
%ghost %attr(0755,-,-) %{_bindir}/mailq
%ghost %attr(0755,-,-) %{_bindir}/newaliases
%ghost %attr(0755,-,-) %{_bindir}/rmail
%ghost %attr(0755,-,-) /usr/lib/sendmail
%ghost %{_sysconfdir}/pam.d/smtp
%dir %{_localstatedir}/log/mail
%dir %{_sysconfdir}/smrsh
%dir %{_sysconfdir}/mail
%attr(0770,smmsp,smmsp) %dir %{_localstatedir}/spool/clientmqueue
%attr(0700,root,mail) %dir %{_localstatedir}/spool/mqueue
%config(noreplace) %verify(not size mtime md5) %{_localstatedir}/log/mail/statistics
%config(noreplace) %{_sysconfdir}/mail/Makefile
%config(noreplace) %{_sysconfdir}/mail/make
%config(noreplace) %{_sysconfdir}/mail/sendmail.cf
%config(noreplace) %{_sysconfdir}/mail/submit.cf
%config(noreplace) %{_sysconfdir}/mail/helpfile
%config(noreplace) %{_sysconfdir}/mail/sendmail.mc
%config(noreplace) %{_sysconfdir}/mail/submit.mc
%config(noreplace) %{_sysconfdir}/mail/access
%config(noreplace) %{_sysconfdir}/mail/domaintable
%config(noreplace) %{_sysconfdir}/mail/local-host-names
%config(noreplace) %{_sysconfdir}/mail/mailertable
%config(noreplace) %{_sysconfdir}/mail/trusted-users
%config(noreplace) %{_sysconfdir}/mail/virtusertable
%ghost %{_sysconfdir}/mail/aliasesdb-stamp
%ghost %{_sysconfdir}/mail/virtusertable.db
%ghost %{_sysconfdir}/mail/access.db
%ghost %{_sysconfdir}/mail/domaintable.db
%ghost %{_sysconfdir}/mail/mailertable.db
%ghost %{_localstatedir}/spool/clientmqueue/sm-client.st
%{_unitdir}/sendmail.service
%{_unitdir}/sm-client.service
%config(noreplace) %{_sysconfdir}/sysconfig/sendmail
%config(noreplace) %{_sysconfdir}/pam.d/smtp.sendmail
%config(noreplace) %{_sysconfdir}/sasl2/Sendmail.conf
%{_sysconfdir}/NetworkManager/dispatcher.d/10-sendmail
%{_datadir}/sendmail-cf/cf
%{_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/sendmail.schema
%{_datadir}/sendmail-cf/sh
%{_datadir}/sendmail-cf/siteconfig
%files -n libmilter
%doc LICENSE
%{_docdir}/sendmail/README.libmilter
%{_libdir}/libmilter.so.*
%files -n libmilter-devel
%doc libmilter/docs/*
%{_includedir}/libmilter/*.h
%{_libdir}/libmilter.so
%files help
%{_mandir}/man{8,5,1}
%exclude %{_mandir}/man1/mailq.1.gz
%exclude %{_mandir}/man1/newaliases.1.gz
%exclude %{_mandir}/man5/aliases.5.gz
%exclude %{_mandir}/man8/sendmail.8.gz
%exclude %{_mandir}/man8/rmail.8.gz
%exclude %{_mandir}/man8/makemap.8.gz
%exclude %{_mandir}/man8/editmap.8.gz
%{_docdir}/sendmail/README.cf
%{_docdir}/sendmail/README.sendmail
%{_docdir}/sendmail/README.smrsh
%{_docdir}/sendmail/SECURITY
%{_docdir}/sendmail/op.pdf
%attr(0644,root,root) %{_docdir}/sendmail/contrib/*
%changelog
* Mon Mar 21 2022 xihaochen<xihaochen@h-partner.com> - 8.17.1-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC:update sendmail to 8.17.1
* Wed Feb 23 2022 xihaochen<xihaochen@h-partner.com> - 8.16.1-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:remove libdb dependency
* Thu May 27 2021 lijingyuan <lijingyuan3@huawei.com> - 8.16.1-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Add the compilation dependency of gcc.
* Mon Mar 15 2021 Aichun Li <liaichun@huawei.com> - 8.16.1-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add ExecStartPost in sm-client.service
* Thu Sep 03 2020 zengwefeng <zwfeng@huawei.com> - 8.16.1-3
- Type:NA
- ID:NA
- SUG:NA
- DESC:add yaml file
* Wed Aug 05 2020 zengwefeng <zwfeng@huawei.com> - 8.16.1-2
- Type:requirement
- ID:NA
- SUG:NA
- DESC:drop hesiod support
* Mon Aug 03 2020 gaihuiying <gaihuiying1@huawei.com> - 8.16.1-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update sendmail to 8.16.1
* Thu Jul 30 2020 gaihuiying <gaihuiying1@huawei.com> - 8.15.2-34
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix build fail with glibc new version
* Sat Feb 29 2020 openEuler Buildteam <buildteam@openeuler.org> - 8.15.2-33
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 8.15.2-32
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 8.15.2-31
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:adjust the location of requires
* Sat Sep 21 2019 Huiming Xie <xiehuiming@huawei.com> - 8.15.2-30
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/haochenstar/sendmail.git
git@gitee.com:haochenstar/sendmail.git
haochenstar
sendmail
sendmail
master

搜索帮助