Hello community,
here is the log from the commit of package sendmail.2861 for openSUSE:12.3:Update checked in at 2014-06-17 14:51:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.3:Update/sendmail.2861 (Old)
and /work/SRC/openSUSE:12.3:Update/.sendmail.2861.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sendmail.2861"
Changes:
--------
New Changes file:
--- /dev/null 2014-06-12 08:28:52.960034756 +0200
+++ /work/SRC/openSUSE:12.3:Update/.sendmail.2861.new/sendmail.changes 2014-06-17 14:51:53.000000000 +0200
@@ -0,0 +1,1606 @@
+-------------------------------------------------------------------
+Wed Jun 4 11:58:42 UTC 2014 - werner@suse.de
+
+- Add patch sendmail-CVE-2014-3956.patch to fix CVE-2014-3956 of
+ bnc#881284 - Not properly closing file descriptors before executing programs
+
+-------------------------------------------------------------------
+Fri Oct 26 15:02:19 UTC 2012 - coolo@suse.com
+
+- explicit buildrequire on groff, called from spec file
+
+-------------------------------------------------------------------
+Thu Oct 11 09:24:38 UTC 2012 - coolo@suse.com
+
+- buildrequire netcfg explicitly
+
+-------------------------------------------------------------------
+Fri Jul 13 16:22:57 UTC 2012 - werner@suse.de
+
+- Make if build even with older distributions
+
+-------------------------------------------------------------------
+Fri Jul 13 15:27:54 UTC 2012 - werner@suse.de
+
+- Use UTF-8 messages
+
+-------------------------------------------------------------------
+Fri Jul 13 14:52:55 UTC 2012 - werner@suse.de
+
+- Do not depend on broken umask in rpm scriptlets
+
+-------------------------------------------------------------------
+Tue Jun 19 15:05:38 UTC 2012 - werner@suse.de
+
+- Make SuSEconfig.sendmail a standalone update script (fate#313548)
+
+-------------------------------------------------------------------
+Fri May 25 15:37:22 UTC 2012 - werner@suse.de
+
+- Help to do systemctl the obvoisly (bnc#754544)
+
+-------------------------------------------------------------------
+Thu Feb 9 13:31:50 UTC 2012 - cfarrell@suse.com
+
+- license update: SUSE-Sendmail
+ SUSE- proprietary prefix added until Sendmail is accepted as valid SPDX
+ license at http://www.spdx.org/licenses
+
+-------------------------------------------------------------------
+Mon Nov 21 10:55:39 UTC 2011 - werner@suse.de
+
+- Allow sendmail to authenticate as client to various mail servers
+ in TLS mode even if servers send 2 headers (bnc#731658)
+
+-------------------------------------------------------------------
+Thu Aug 18 13:32:41 UTC 2011 - werner@suse.de
+
+- Expand systemd configuration at build time
+
+-------------------------------------------------------------------
+Fri Aug 12 14:47:38 UTC 2011 - werner@suse.de
+
+- Use Pre exec files for configuration on the fly
+
+-------------------------------------------------------------------
+Thu Aug 11 15:17:58 UTC 2011 - werner@suse.de
+
+- Socket activation does not work for sendmail even with -bs
+ on the command line of sendmail and StandardInput=socket
+
+-------------------------------------------------------------------
+Mon Aug 8 15:14:52 UTC 2011 - werner@suse.de
+
+- The approach of using makefiles requires make for sendmail
+
+-------------------------------------------------------------------
+Fri Aug 5 12:23:05 UTC 2011 - werner@suse.de
+
+- Make /var/run a ghost entry in spec as this is a tmpfs now and
+ create it at start of sendmail if it does not exist (bnc#710279)
+- First try of using systemd unit configration files for both
+ sendmail MTA and sendmail MT client. Try to start them on
+ demand using systemd unit socket files for both local and remote
+ network as well as systemd unit path file for local mail queue
+
+-------------------------------------------------------------------
+Tue May 31 11:44:31 CEST 2011 - werner@suse.de
+
+- Update to sendmail 8.14.5
+ * Do not cache SMTP extensions across connections as the cache is
+ based on hostname which may not be a unique identifier for a
+ server, i.e., different machines may have the same hostname but
+ provide different SMTP extensions. Problem noted by Jim Hermann.
+ * Avoid an out-of-bounds access in case a resolver reply for a DNS
+ map lookup returns a size larger than 1K. Based on a patch
+ from Dr. Werner Fink of SuSE.
+ * If a job is aborted using the interrupt signal (e.g., control-C
+ from the keyboard), perform minimal cleanup to avoid invoking
+ functions that are not signal-safe. Note: in previous versions
+ the mail might have been queued up already and would be
+ delivered subsequently, now an interrupt will always remove the
+ queue files and thus prevent delivery.
+ * Per RFC 6176, when operating as a TLS client, do not offer SSLv2.
+ * Since TLS session resumption is never used as a client, disable
+ use of RFC 4507-style session tickets.
+ * Work around gcc4 versions which reverse 25 years of history and
+ no longer align char buffers on the stack, breaking calls to
+ resolver functions on strict alignment platforms.
+ Found by Stuart Henderson of OpenBSD.
+ * Read at most two AUTH lines from a server greeting (up to two
+ lines are read because servers may use "AUTH mechs" and
+ "AUTH=mechs"). Otherwise a malicious server may exhaust the
+ memory of the client. Bug report by Nils of MWR InfoSecurity.
+ * Avoid triggering an assertion in the OpenLDAP code when the
+ connection to an LDAP server is lost while making a query.
+ Problem noted and patch provided by Andy Fiddaman.
+ * If ConnectOnlyTo is set and sendmail is compiled with NETINET6
+ it would try to use an IPv6 address if an IPv4 (or unparseable)
+ address is specified.
+ * If SASLv2 is used, make sure that the macro {auth_authen} is
+ stored in xtext format to avoid problems with parsing it.
+ Problem noted by Christophe Wolfhugel.
+ * CONFIG: FEATURE(`ldap_routing') in 8.14.4 tried to add a missing
+ -T<TMPF> that is required, but failed for some cases that did
+ not use LDAP. This change has been undone until a better
+ solution can be implemented. Problem found by Andy Fiddaman.
+ * CONTRIB: qtool.pl: Deal with H entries that do not have a letter
+ between the question marks. Patch from Stefan Christensen.
+ * DOC: Use a better description for the -i option in sendmail.
+ Patch from Mitchell Berger.
+- Add defines for nanaosleep and socklen_t for linux in conf.h
+
+-------------------------------------------------------------------
+Tue Dec 7 21:23:06 UTC 2010 - coolo@novell.com
+
+- prereq init scripts network and syslog
+
+-------------------------------------------------------------------
+Thu Sep 30 11:45:28 UTC 2010 - rhafer@novell.com
+
+- Removed version-specific libdb-4_5-devel from BuildRequires to be
+ able to build against newer libdb Versions.
+
+-------------------------------------------------------------------
+Fri Jul 16 17:22:27 CEST 2010 - werner@suse.de
+
+- Newer killproc sends only SIGTERM as required by LSB if -TERM is
+ specified on the command line. Use the default which is SIGTERM
+ followed by SIGKILL if the timeout of 5 seconds is reached.
+
+-------------------------------------------------------------------
+Fri Feb 5 19:12:40 CET 2010 - werner@suse.de
+
+- Use upstream patch for bnc#559517
+
+-------------------------------------------------------------------
+Wed Jan 27 14:36:13 CET 2010 - werner@suse.de
+
+- Update to bug fix release sendmail 8.14.4
+ * Handle bogus certificates containing NUL characters
+ in CNs by placing a string indicating a bad certificate
+ in the {cn_subject} or {cn_issuer} macro. Patch inspired
+ by Matthias Andree's changes for fetchmail.
+ * During the generation of a queue identifier an integer overflow
+ could occur which might result in bogus characters
+ being used. Based on patch from John Vannoy of
+ Pepperdine University.
+ * Prevent a crash when a hostname lookup returns a seemingly
+ valid result which contains a NULL pointer (this seems
+ to be happening on some Linux versions).
+ * Fix overflow of an internal array when parsing some replies
+ from a milter. Problem found by Scott Rotondo
+ * Fix handling of `b' modifier for DaemonPortOptions on little
+ endian machines for loopback address. Patch from
+ John Beck of Sun Microsystems.
+ * Fix a potential memory leak in libsmdb/smdb1.c found by parfait.
+ Based on patch from Jonathan Gray of OpenBSD.
+ * Fix memory leak that occurred when smfi_setsymlist()
+ was used. Based on patch by Dan Lukes.
+- Add patch to avoid overflow of buffer for DNS resolver (bnc#559517)
+
+-------------------------------------------------------------------
+Tue Nov 11 17:10:11 CET 2008 - ro@suse.de
+
+- drop klogd prereq (prereq cycle)
+
+-------------------------------------------------------------------
+Mon Nov 10 15:42:31 CET 2008 - ro@suse.de
+
+- drop sysconfig prereq
+
+-------------------------------------------------------------------
+Tue Sep 30 15:18:11 CEST 2008 - werner@suse.de
+
+- Use -fPIC for libraries (bnc#428289)
+
+-------------------------------------------------------------------
++++ 1409 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.3:Update/.sendmail.2861.new/sendmail.changes
New Changes file:
--- /dev/null 2014-06-12 08:28:52.960034756 +0200
+++ /work/SRC/openSUSE:12.3:Update/.sendmail.2861.new/uucp.changes 2014-06-17 14:51:53.000000000 +0200
@@ -0,0 +1,278 @@
+-------------------------------------------------------------------
+Fri May 25 15:00:21 UTC 2012 - werner@suse.de
+
+- Job creation scheme (bnc#764107)
+
+-------------------------------------------------------------------
+Tue Mar 13 11:31:21 UTC 2012 - mweckbecker@suse.com
+
+- Add missing linkerflags to make it build w/ -fPIE properly
+
+-------------------------------------------------------------------
+Tue Jan 24 17:17:07 UTC 2012 - werner@suse.de
+
+- Use -fPIE due bnc#743147
+
+-------------------------------------------------------------------
+Tue Jan 17 10:40:22 UTC 2012 - aj@suse.de
+
+- Remove suse_update_config usage.
+- Add autoconf and automake as build requirements.
+
+-------------------------------------------------------------------
+Thu Mar 10 13:32:16 CET 2011 - werner@suse.de
+
+- Change owner ship of /var/log/uucp to root and touch the log
+ files if not exists for user uucp (bnc#678432)
+
+-------------------------------------------------------------------
+Tue Mar 9 16:03:15 UTC 2010 - lnussel@suse.de
+
+- use lockdev (FATE#308360)
+
+-------------------------------------------------------------------
+Fri Dec 18 00:42:37 CET 2009 - jengelh@medozas.de
+
+- Enable parallel building
+
+-------------------------------------------------------------------
+Wed Jun 13 15:06:56 CEST 2007 - werner@suse.de
+
+- Recommend stunnel package (bug #254613)
+
+-------------------------------------------------------------------
+Fri Feb 16 16:10:27 CET 2007 - werner@suse.de
+
+- Split off uucp spec file from sendmail spec file
+- Require new rmail sub packages of sendmail
+
+-------------------------------------------------------------------
+Mon Feb 12 17:22:04 CET 2007 - werner@suse.de
+
+- Make it build nonroot
+
+-------------------------------------------------------------------
+Fri Jan 19 17:04:16 CET 2007 - werner@suse.de
+
+- Add uucp over ssh protocol and example to be able to use uucp
+ even with dynamic IP addresses on the client side.
+
+-------------------------------------------------------------------
+Thu Jun 22 16:13:51 CEST 2006 - werner@suse.de
+
+- Add a few manual pages missed (bug #187356)
+
+-------------------------------------------------------------------
+Tue Mar 14 16:47:09 CET 2006 - werner@suse.de
+
+- Remove contrib/uucomp.shar due broken license (bug #157791)
+
+-------------------------------------------------------------------
+Thu Oct 13 14:51:17 CEST 2005 - lmuelle@suse.de
+
+- Install example config files call and passwd with read write permissions for
+ user root, read only for group uucp, and non access at all for others.
+- Add pipe-stunnel port and stunnel example config files to
+ cfg_example/taylor_config/port.
+
+-------------------------------------------------------------------
+Mon Jun 20 14:07:19 CEST 2005 - werner@suse.de
+
+- In passwd example to not mix-up uucp host and uucp user
+
+-------------------------------------------------------------------
+Mon Jun 20 13:24:07 CEST 2005 - werner@suse.de
+
+- Make the comments in the taylor configurationb files more clear
+ and add a comment on the passwd file and add also an example for
+ the passwd file used for incomming calls.
+
+-------------------------------------------------------------------
+Tue Aug 31 18:14:39 CEST 2004 - werner@suse.de
+
+- Remove update message
+
+-------------------------------------------------------------------
+Tue Aug 31 14:18:49 CEST 2004 - werner@suse.de
+
+- Move forward to new update messages scheme
+
+-------------------------------------------------------------------
+Thu Jul 29 18:17:40 CEST 2004 - werner@suse.de
+
+- Fix autoconfig function definition
+
+-------------------------------------------------------------------
+Wed Sep 17 12:11:43 CEST 2003 - werner@suse.de
+
+- Change owner and permission of /var/spool/uucppublic (bug #31119)
+
+-------------------------------------------------------------------
+Mon Jun 30 16:28:38 CEST 2003 - werner@suse.de
+
+- Update to uucp 1.07
+
+-------------------------------------------------------------------
+Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de
+
+- fix install_info --delete call and move from preun to postun
+
+-------------------------------------------------------------------
+Mon Apr 14 17:52:49 CEST 2003 - werner@suse.de
+
+- Add /etc/uucp with user uucp and group uucp to file list of uucp
+ (bug #26301)
+
+-------------------------------------------------------------------
+Wed Mar 5 19:07:29 CET 2003 - werner@suse.de
+
+- Fix bug #24685: provide an xinetd config file for uucico
+
+-------------------------------------------------------------------
+Wed Feb 26 14:09:11 CET 2003 - werner@suse.de
+
+- Fix initial port struct settings by zero the mem area.
+
+-------------------------------------------------------------------
+Tue Feb 11 17:33:03 CET 2003 - werner@suse.de
+
+- Fix bug #23466: use install_info macro in spec
+
+-------------------------------------------------------------------
+Tue Jan 14 18:41:49 CET 2003 - werner@suse.de
+
+- Use BuildRoot
+
+-------------------------------------------------------------------
+Fri Aug 16 14:03:11 CEST 2002 - werner@suse.de
+
+- Add PreReq (bug #18012)
+
+-------------------------------------------------------------------
+Mon Aug 12 17:06:26 CEST 2002 - werner@suse.de
+
+- Move logrotate configure for uucp logs to new format
+
+-------------------------------------------------------------------
+Wed May 8 19:10:07 CEST 2002 - werner@suse.de
+
+- Add logrotate entry for uucp to /etc/logrotate.d/ (bug #15944)
+
+-------------------------------------------------------------------
+Fri Apr 5 01:52:54 CEST 2002 - ro@suse.de
+
+- autoconf: LIBOBJS vs AC_LIBOBJ
+
+-------------------------------------------------------------------
+Thu Oct 25 17:17:14 CEST 2001 - werner@suse.de
+
+- UUCP: Fix exploit in uuxqt
+
+-------------------------------------------------------------------
+Wed Jun 6 17:07:58 CEST 2001 - werner@suse.de
+
+- Make it work with new autoconf
+
+-------------------------------------------------------------------
+Wed Mar 21 19:19:31 CET 2001 - werner@suse.de
+
+- It's GNU source
+
+-------------------------------------------------------------------
+Thu Mar 15 01:08:35 CET 2001 - ro@suse.de
+
+- fixed neededforbuild for openldap
+
+------------------------------------------------------------------
+Tue Mar 13 15:11:08 CET 2001 - werner@suse.de
+
+- Fix manual page: do not handle CVS a pre processor
+
+------------------------------------------------------------------
+Tue Nov 28 16:31:39 CET 2000 - werner@suse.de
+
+- Set permissions and owner ship of /var/log/uucp/ to
+ 0755 and uucp.uucp.
+
+------------------------------------------------------------------
++++ 81 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.3:Update/.sendmail.2861.new/uucp.changes
New:
----
FAQ.sendmail-8.14.bz2
sendmail-8.13.5-select.dif
sendmail-8.14.5-auth2.patch0
sendmail-8.14.5.dif
sendmail-8.14.5.tar.bz2
sendmail-CVE-2014-3956.patch
sendmail-client.path
sendmail-client.service
sendmail-client.systemd
sendmail-rpmlintrc
sendmail.changes
sendmail.service
sendmail.spec
sendmail.systemd
suucp.xinetd
uucp-1.07-contrib.dif
uucp-1.07-cu.patch
uucp-1.07-grade.patch
uucp-1.07-lockdev.patch
uucp-1.07.dif
uucp-1.07.tar.bz2
uucp.changes
uucp.spec
uucp.xinetd
uucpcfg.tar.bz2
uucpman.sh
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ sendmail.spec ++++++
#
# spec file for package sendmail
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: sendmail
BuildRequires: db-devel
BuildRequires: groff
BuildRequires: mailx
BuildRequires: netcfg
BuildRequires: openldap2-devel
BuildRequires: procmail
BuildRequires: tcpd-devel
BuildRequires: vacation
%if 0%{?suse_version} > 1140
BuildRequires: pkg-config
BuildRequires: systemd-devel
%endif
Url: http://www.sendmail.org/
%define SUBDIRS libsmutil libsmdb sendmail mail.local mailstats makemap praliases rmail smrsh libmilter libsm editmap
Provides: sendcf
Provides: sendmail-tls
Provides: smailcfg
Provides: smtp_daemon
Requires: /bin/fuser
Requires: coreutils
Requires: filesystem
Requires: findutils
Requires: m4
Requires: make
Requires: netcfg
Requires: procmail
Requires(prereq): sysvinit(network)
Requires(prereq): sysvinit(syslog)
Requires(post): %fillup_prereq
Requires(post): %insserv_prereq
Requires(post): coreutils
Requires(post): permissions
Requires(postun): %insserv_prereq
Requires(posttrans): coreutils
Requires(posttrans): findutils
Requires(posttrans): m4
Requires(verify): permissions
Conflicts: smail postfix postfix-tls
Obsoletes: sendmail-tls
Version: 8.14.5
Release: 0
Summary: BSD Sendmail
License: SUSE-Sendmail
Group: Productivity/Networking/Email/Servers
Source0: ftp://ftp.sendmail.org/pub/sendmail/sendmail-%{version}.tar.bz2
Source1: FAQ.sendmail-8.14.bz2
Source2: sendmail-rpmlintrc
Source3: sendmail-client.path
Source4: sendmail.service
Source5: sendmail-client.service
Source6: sendmail.systemd
Source7: sendmail-client.systemd
Patch0: sendmail-%{version}.dif
Patch1: sendmail-8.13.5-select.dif
Patch2: sendmail-8.14.5-auth2.patch0
Patch3: sendmail-CVE-2014-3956.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _sysconfdir %{_sysconfdir}
%global _mailcnfdir %{_sysconfdir}/mail
%global _localstatedir %{_localstatedir}
%if 0%{?suse_version} > 1140
%{expand: %%global sysdsysunitdir %(pkg-config systemd --variable=systemdsystemunitdir)}
%{expand: %%global sysdsysconfdir %(pkg-config systemd --variable=systemdsystemconfdir)}
%endif
%if 0%{?suse_version} < 1120
%global _libexecdir %{_exec_prefix}/lib
%endif
%description
The "Unix System Administration Handbook" calls sendmail "The most
complex and complete mail delivery system in common use..." .
Ready-made configuration files are included for systems connected by
TCP/IP (with or without a name server) and for systems using UUCP.
'procmail' is used as a local mail agent.
"sendmail" is a trademark of Sendmail, Inc.
Authors:
--------
Eric Allman
%package -n sendmail-devel
Summary: BSD Sendmail Development Kit
Group: Development/Libraries/Other
%description -n sendmail-devel
This package includes libraries and header files for building tools to
access sendmail features.
"sendmail" is a trademark of Sendmail, Inc.
Authors:
--------
Eric Allman
%package -n rmail
Version: 8.14.3
Release: 0
Summary: Rmail of the BSD Sendmail
Group: Productivity/Networking/Email/Servers
%description -n rmail
Rmail interprets incoming mail received via uucp and passing the
processed mail on to the MTA (e.g. sendmail).
Authors:
--------
Eric Allman
%prep
%setup
%patch -P 1 -p 0 -b .select
%patch -P 2 -p 0 -b .auth2
%patch -P 3 -p 0 -b .2014-3956
%patch -P 0 -p 0 -b .p0
set -f
cat <<-EOF > file-list
%%defattr(-,root,root)
%%ghost %%dir %%attr(1750,root,root) %{_localstatedir}/run/sendmail
%%dir %%attr(0750,root,root) %{_localstatedir}/lib/sendmail
%%attr(0600,root,root) %{_localstatedir}/lib/sendmail/statistics
%%attr(0600,root,root) %{_mailcnfdir}/statistics
%%dir %%attr(0700,root,root) %{_localstatedir}/spool/mqueue
%%dir %%attr(0700,root,root) %{_localstatedir}/spool/mqueue/.hoststat
# Part of filesystem RPM
# %%dir %%attr(0770,root,mail) %{_localstatedir}/spool/clientmqueue
%%attr(0660,root,mail) %{_localstatedir}/spool/clientmqueue/sm-client.st
%%config %%attr(0644,root,root) %{_sysconfdir}/permissions.d/sendmail
%%config %%attr(0644,root,root) %{_sysconfdir}/permissions.d/sendmail.paranoid
EOF
set +f
%build
#
ID=$(id -u)
RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"
ARCH_LIB=%{_lib}
export ARCH_LIB
make clean
# ingnore vacation (we have our own)
make %{?jobs:-j%jobs} SUBDIRS="%{SUBDIRS}"
%install
ID=$(id -u)
ARCH_LIB=%{_lib}
export ARCH_LIB
doc=%{buildroot}%{_defaultdocdir}/sendmail
if test "$ID" -ne 0 ; then
mkdir bin
PATH=${PWD}/bin:$PATH
(cat > bin/install)<<-EOF
#!/bin/bash
argv=""
while test \$# -gt 0; do
case "\$1" in
-o) shift 2;;
-g) shift 2;;
*) argv="\${argv:+"\$argv "}\$1"
shift
esac
done
set -- \$(echo \${argv})
exec -a install %{_bindir}/install \${1+"\$@"}
EOF
chmod 755 bin/install
type -p install
fi
mkdir -p ${doc}
mkdir -p %{buildroot}/sbin/conf.d
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mailcnfdir}/certs
mkdir -p %{buildroot}%{_mailcnfdir}/auth
mkdir -p %{buildroot}%{_sysconfdir}/init.d
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_libexecdir}/sendmail.d/bin
mkdir -p %{buildroot}%{_datadir}/sendmail
mkdir -p %{buildroot}%{_includedir}/sm
mkdir -p %{buildroot}%{_includedir}/sm/os
chmod 0750 %{buildroot}%{_mailcnfdir}/certs
chmod 0750 %{buildroot}%{_mailcnfdir}/auth
mkdir -p %{buildroot}%{_sysconfdir}/permissions.d
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
%if 0%{?suse_version} > 1140
mkdir -p %{buildroot}%{sysdsysunitdir}
mkdir -p %{buildroot}/%{_mailcnfdir}/system
%endif
make \
DESTDIR=%{buildroot} \
SUBDIRS="%{SUBDIRS}" \
MANROOTMAN=%{_mandir}/man \
MANROOT=%{_mandir}/cat \
install
# needed to be able to comple a milter which uses libsm, i.e. amavis-milter
cd include/sm
ln -s os/sm_os_linux.h sm_os.h
cd ../../
cd include/sm/os
ln -s sm_os_linux.h sm_os.h
cd ../../../
cp -pr include/sm %{buildroot}%{_includedir}/
test "$ID" -ne 0 || \
chown root:root %{buildroot}%{_mailcnfdir}/submit.cf
chmod 0644 %{buildroot}%{_mailcnfdir}/submit.cf
test "$ID" -ne 0 || \
chown root:mail %{buildroot}%{_sbindir}/sendmail
ln -sf %{_sbindir}/sendmail %{buildroot}%{_prefix}/lib/sendmail
mv %{buildroot}%{_sbindir}/praliases \
%{buildroot}%{_bindir}/praliases
mkdir -p %{buildroot}%{_localstatedir}/spool/mqueue/.hoststat
test "$ID" -ne 0 || \
chown -R root:root %{buildroot}%{_localstatedir}/spool/mqueue
chmod 0700 %{buildroot}%{_localstatedir}/spool/mqueue
chmod 0700 %{buildroot}%{_localstatedir}/spool/mqueue/.hoststat
mkdir -p %{buildroot}%{_localstatedir}/run/sendmail
chmod 1750 %{buildroot}%{_localstatedir}/run/sendmail
mkdir -p %{buildroot}%{_localstatedir}/lib/sendmail
chmod 0750 %{buildroot}%{_localstatedir}/lib/sendmail
touch %{buildroot}%{_localstatedir}/lib/sendmail/statistics
test "$ID" -ne 0 || \
chown -R root:root %{buildroot}%{_localstatedir}/lib/sendmail/statistics
chmod 0600 %{buildroot}%{_localstatedir}/lib/sendmail/statistics
ln -sf %{_localstatedir}/lib/sendmail/statistics %{buildroot}%{_mailcnfdir}/statistics
mkdir -p %{buildroot}%{_localstatedir}/spool/clientmqueue
test "$ID" -ne 0 || \
chown -R root:mail %{buildroot}%{_localstatedir}/spool/clientmqueue
chmod 0770 %{buildroot}%{_localstatedir}/spool/clientmqueue
touch %{buildroot}%{_localstatedir}/spool/clientmqueue/sm-client.st
test "$ID" -ne 0 || \
chown -R root:mail %{buildroot}%{_localstatedir}/spool/clientmqueue/sm-client.st
chmod 0660 %{buildroot}%{_localstatedir}/spool/clientmqueue/sm-client.st
chmod 0755 %{buildroot}%{_libexecdir}/sendmail.d
chmod 0755 %{buildroot}%{_libexecdir}/sendmail.d/bin
chmod 0644 %{buildroot}%{_libdir}/*.a
ln -sf %{_bindir}/vacation %{buildroot}%{_libexecdir}/sendmail.d/bin/
ln -sf %{_bindir}/mail %{buildroot}%{_libexecdir}/sendmail.d/bin/
ln -sf %{_bindir}/procmail %{buildroot}%{_libexecdir}/sendmail.d/bin/
install -m 0644 K* README RELE* doc/op/op.ps sendmail/SECURITY \
sendmail/TRACEFLAGS suse/README.SuSE \
contrib/{e*,re-*,sm*,passwd*}.pl \
contrib/etrn.0 ${doc}
install -m 0644 %{SOURCE1} ${doc}/FAQ.sendmail.bz2
GROFF_NO_SGR=1 groff -pe -me -mtty-char -Tlatin1 doc/op/op.me > ${doc}/op.txt
install -m 0644 smrsh/README ${doc}/README.smrsh
install -m 0644 libmilter/README ${doc}/README.libmilter
bzip2 -9f ${doc}/*.ps
bzip2 -9f ${doc}/*.txt
bzip2 -9f ${doc}/RELEASE_NOTES
tar cfC - cf . | tar xfC - %{buildroot}%{_datadir}/sendmail/
test "$ID" -ne 0 || \
chown root:root -R %{buildroot}%{_datadir}/sendmail/
chmod 0755 %{buildroot}%{_datadir}/sendmail/sh/makeinfo.sh
rm -f %{buildroot}%{_datadir}/sendmail/cf/Build
rm -f %{buildroot}%{_datadir}/sendmail/cf/README
rm -f %{buildroot}%{_datadir}/sendmail/cf/Makefile
rm -f %{buildroot}%{_datadir}/sendmail/cf/*.cf
rm -fr %{buildroot}%{_datadir}/sendmail/*/*~ ${doc}/*~
find %{buildroot}%{_datadir}/sendmail/ ${doc}/ %{buildroot}%{_includedir}/ \
-name '*.ldap' -o -name '*.mime' -o \
-name '*.mrbl' -o -name '*.util' -o \
-name '*.p0' -o -name '*.auth2' -o \
-name '*.dif' -o -name '*.orig' | xargs -r rm -f
cd suse/
# etc/aliases and %{_sysconfdir}/aliases.d are in other packages
#install -m 0644 aliases %{buildroot}%{_sysconfdir}/
#install -d -m 0750 %{buildroot}%{_sysconfdir}/aliases.d
install -m 0644 README Makefile mailertable genericstable userdb domaintable \
virtusertable access linux.mc linux.submit.mc \
linux.nullclient.mc service-nodns.switch \
service.switch relay-domains trusted-users \
local-host-names %{buildroot}%{_mailcnfdir}/
install -m 0600 auth-info %{buildroot}%{_mailcnfdir}/auth/
install -m 0755 sendmail.nissl %{buildroot}%{_sbindir}/
install -m 0644 permissions %{buildroot}%{_sysconfdir}/permissions.d/sendmail
install -m 0644 permissions.paranoid %{buildroot}%{_sysconfdir}/permissions.d/sendmail.paranoid
install -m 0755 rc %{buildroot}%{_sysconfdir}/init.d/sendmail
install -m 0644 smtp %{buildroot}%{_sysconfdir}/pam.d/smtp
install -m 0644 fw %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/sendmail
install update.sendmail %{buildroot}%{_libexecdir}/sendmail.d/update
install -m 0644 sysconfig.sendmail %{buildroot}%{_localstatedir}/adm/fillup-templates/
install -m 0644 sysconfig.mail-sendmail %{buildroot}%{_localstatedir}/adm/fillup-templates/
> ${doc}/README.sendmail-local-only
for m in messages/sendmail-local-only.[a-z][a-z]; do
l=${m##*.}
n=${m##*/}
n=${n%.*}
cat $m >> ${doc}/README.sendmail-local-only
echo >> ${doc}/README.sendmail-local-only
done
cd ../
if test -n "%{buildroot}" ; then
cat %{buildroot}%{_mailcnfdir}/linux.mc | \
sed "s@include(\`@include(\`%{buildroot}@" | \
m4 | \
sed "s@%{buildroot}@@g" > %{buildroot}%{_sysconfdir}/sendmail.cf
cat %{buildroot}%{_mailcnfdir}/linux.submit.mc | \
sed "s@include(\`@include(\`%{buildroot}@" | \
m4 | \
sed "s@%{buildroot}@@g" > %{buildroot}%{_mailcnfdir}/submit.cf
chmod 0644 %{buildroot}%{_sysconfdir}/sendmail.cf
chmod 0644 %{buildroot}%{_mailcnfdir}/submit.cf
else
m4 < %{_mailcnfdir}/linux.mc > %{_sysconfdir}/sendmail.cf
m4 < %{_mailcnfdir}/linux.submit.mc > %{_mailcnfdir}/submit.cf
chmod 0644 %{_sysconfdir}/sendmail.cf
chmod 0644 %{_mailcnfdir}/submit.cf
fi
ln -sf %{_sysconfdir}/init.d/sendmail %{buildroot}%{_sbindir}/rcsendmail
ln -sf ../aliases %{buildroot}%{_mailcnfdir}/aliases
pushd %{buildroot}%{_mailcnfdir}/
OPATH=$PATH
PATH="${OPATH}:%{buildroot}%{_sbindir}:%{buildroot}%{_bindir}"
make DESTDIR=%{buildroot} short
PATH=$OPATH
popd
%if 0%{?suse_version} > 1140
#
# systemd unit conf files
install -m 0644 %{S:3} %{buildroot}%{sysdsysunitdir}/
install -m 0644 %{S:4} %{buildroot}%{sysdsysunitdir}/
install -m 0644 %{S:5} %{buildroot}%{sysdsysunitdir}/
install -m 0644 %{S:6} %{buildroot}/%{_mailcnfdir}/system/sm.pre
install -m 0644 %{S:7} %{buildroot}/%{_mailcnfdir}/system/sm-client.pre
chmod 0755 %{buildroot}/%{_mailcnfdir}/system/sm.pre
chmod 0755 %{buildroot}/%{_mailcnfdir}/system/sm-client.pre
%endif
#
# Remove some files we don't wish to package
#
rm -f %{buildroot}%{_sysconfdir}/aliases %{buildroot}%{_mailcnfdir}/*.db
rm -f %{buildroot}%{_mailcnfdir}/*/*.db
%clean
rm -rf %{buildroot}
%if %{defined verify_permissions}
%verifyscript
%verify_permissions -e %{_localstatedir}/run/sendmail/
%verify_permissions -e %{_localstatedir}/spool/mqueue/
%verify_permissions -e %{_sysconfdir}/sendmail.cf
%verify_permissions -e %{_sysconfdir}/init.d/sendmail
%verify_permissions -e %{_mailcnfdir}/auth/
%verify_permissions -e %{_mailcnfdir}/certs/
%verify_permissions -e %{_libexecdir}/sendmail.d/bin/
%verify_permissions -e %{_libexecdir}/sendmail.d/bin/mail.local
%verify_permissions -e %{_libexecdir}/sendmail.d/bin/smrsh
%verify_permissions -e %{_sbindir}/sendmail
%endif
%post
# Trigger rebuild of old db's
for db in /etc/aliases.db /etc/aliases.d/*.db /etc/mail/*.db /etc/mail/*/*.db ; do
test -e "$db" || continue
test -e "${db%.db}" || continue
touch "${db%.db}"
done
# Update from newer SuSE releases or new installation
if test -f /etc/sysconfig/mail ; then
. /etc/sysconfig/mail
fi
%{fillup_and_insserv -nY sendmail sendmail}
%{fillup_only -an mail}
if test -x bin/systemctl ; then
bin/systemctl enable sendmail.service >/dev/null 2>&1 || :
bin/systemctl enable sendmail-client.service >/dev/null 2>&1 || :
bin/systemctl enable sendmail-client.path >/dev/null 2>&1 || :
fi
%if %{defined set_permissions}
%set_permissions %{_localstatedir}/run/sendmail/
%set_permissions %{_localstatedir}/spool/mqueue/
%set_permissions %{_sysconfdir}/sendmail.cf
%set_permissions %{_sysconfdir}/init.d/sendmail
%set_permissions %{_mailcnfdir}/auth/
%set_permissions %{_mailcnfdir}/certs/
%set_permissions %{_libexecdir}/sendmail.d/bin/
%set_permissions %{_libexecdir}/sendmail.d/bin/mail.local
%set_permissions %{_libexecdir}/sendmail.d/bin/smrsh
%set_permissions %{_sbindir}/sendmail
%endif
%preun
%{stop_on_removal sendmail}
if test -x bin/systemctl ; then
bin/systemctl disable sendmail.service >/dev/null 2>&1 || :
bin/systemctl disable sendmail-client.service >/dev/null 2>&1 || :
bin/systemctl disable sendmail-client.path >/dev/null 2>&1 || :
fi
%postun
if test $1 = 0; then
%{restart_on_update sendmail}
rm -rf %{_localstatedir}/lib/sendmail
exit 0
fi
%{insserv_cleanup}
%posttrans
if test -x %{_libexecdir}/sendmail.d/update ; then
VERBOSE=false %{_libexecdir}/sendmail.d/update
fi
%files -f file-list
%defattr(-,root,root)
%dir %{_mailcnfdir}
# %{_sysconfdir}/aliases.d is part of aaa_dir
# %dir %attr(0750,root,mail) %{_sysconfdir}/aliases.d
%dir %attr(0750,root,root) %{_mailcnfdir}/auth
%dir %attr(0750,root,root) %{_mailcnfdir}/certs
%if 0%{?suse_version} > 1140
%dir %attr(0750,root,root) %{_mailcnfdir}/system
%endif
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sendmail.cf
# %{_sysconfdir}/aliases is part of netcfg
# %config(noreplace) %{_sysconfdir}/aliases
%doc %{_mailcnfdir}/README
%config(noreplace) %{_mailcnfdir}/Makefile
# this is a link
%config(noreplace) %{_mailcnfdir}/aliases
%config(noreplace) %verify(not md5 size mtime) %attr(0600,root,root) %{_mailcnfdir}/auth/auth-info
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/linux.mc
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/linux.submit.mc
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/linux.nullclient.mc
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/mailertable
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/genericstable
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/domaintable
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/virtusertable
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/access
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/userdb
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/relay-domains
%config(noreplace) %{_mailcnfdir}/service.switch
%config(noreplace) %{_mailcnfdir}/service-nodns.switch
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/trusted-users
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/local-host-names
%config(noreplace) %verify(not md5 size mtime) %{_mailcnfdir}/submit.cf
%doc %{_defaultdocdir}/sendmail
%{_datadir}/sendmail
%{_localstatedir}/adm/fillup-templates/sysconfig.sendmail
%{_localstatedir}/adm/fillup-templates/sysconfig.mail-sendmail
%config %attr(0644,root,root) %{_sysconfdir}/pam.d/smtp
%config %attr(0644,root,root) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/sendmail
%config %attr(0744,root,root) %{_sysconfdir}/init.d/sendmail
%attr(0755,root,root) %{_libexecdir}/sendmail.d/update
%if 0%{?suse_version} > 1140
%config %attr(0644,root,root) %{sysdsysunitdir}/sendmail-client.path
%config %attr(0644,root,root) %{sysdsysunitdir}/sendmail.service
%config %attr(0644,root,root) %{sysdsysunitdir}/sendmail-client.service
%config %attr(0755,root,root) %{_mailcnfdir}/system/sm.pre
%config %attr(0755,root,root) %{_mailcnfdir}/system/sm-client.pre
%endif
%{_bindir}/hoststat
%{_bindir}/mailq
%{_bindir}/newaliases
%{_bindir}/praliases
%{_bindir}/purgestat
#%{_bindir}/rmail
%{_prefix}/lib/sendmail
%dir %attr(0755,root,root) %{_libexecdir}/sendmail.d/
%dir %attr(0755,root,root) %{_libexecdir}/sendmail.d/bin/
%{_libexecdir}/sendmail.d/bin/mail
%attr(0511,root,root) %{_libexecdir}/sendmail.d/bin/mail.local
%{_libexecdir}/sendmail.d/bin/procmail
%attr(0511,root,root) %{_libexecdir}/sendmail.d/bin/smrsh
%{_libexecdir}/sendmail.d/bin/vacation
%{_libexecdir}/sendmail.d/helpfile
%doc %{_mandir}/man1/mailq.1.gz
%doc %{_mandir}/man1/newaliases.1.gz
%doc %{_mandir}/man5/aliases.5.gz
%doc %{_mandir}/man8/editmap.8.gz
%doc %{_mandir}/man8/makemap.8.gz
#%doc %{_mandir}/man8/rmail.8.gz
%doc %{_mandir}/man8/sendmail.8.gz
%doc %{_mandir}/man8/smrsh.8.gz
%doc %{_mandir}/man8/mail.local.8.gz
%doc %{_mandir}/man8/mailstats.8.gz
%doc %{_mandir}/man8/praliases.8.gz
%{_sbindir}/editmap
%{_sbindir}/mailstats
%{_sbindir}/makemap
# Should we do 6555??
%attr(2555,root,mail) %{_sbindir}/sendmail
%{_sbindir}/sendmail.nissl
%{_sbindir}/rcsendmail
%files -n sendmail-devel
%defattr(-,root,root)
%dir %{_includedir}/libmilter
%{_includedir}/libmilter/*.h
%dir %{_includedir}/sm
%{_includedir}/sm/*.h
%dir %{_includedir}/sm/os
%{_includedir}/sm/os/*.h
%{_libdir}/libmilter.a
%{_libdir}/libsmutil.a
%{_libdir}/libsm.a
%files -n rmail
%defattr(-,root,root)
%{_bindir}/rmail
%doc %{_mandir}/man8/rmail.8.gz
%changelog
++++++ uucp.spec ++++++
#
# spec file for package uucp
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: uucp
PreReq: fileutils %install_info_prereq
Requires: /usr/bin/rmail
Requires: filesystem
Requires: logrotate
Requires: netcfg
Requires(verify): permissions
Requires(post): permissions
Recommends: stunnel
Version: 1.07
Release: 0
Summary: Taylor UUCP
License: GPL-2.0+
Group: Productivity/Networking/Other
Source0: uucp-1.07.tar.bz2
Source1: uucpcfg.tar.bz2
Source2: uucp.xinetd
Source3: suucp.xinetd
Source4: uucpman.sh
Patch0: uucp-1.07.dif
Patch1: uucp-1.07-contrib.dif
Patch2: uucp-1.07-grade.patch
Patch3: uucp-1.07-cu.patch
Patch4: uucp-1.07-lockdev.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: lockdev-devel
BuildRequires: pkg-config
%description
Ian Taylor's Unix to Unix copy: mail and news over modem lines. This is
the standard UUCP package from the Free Software Foundation. It is
configured to use HoneyDanBer or Taylor configuration files. With
version 6.0 of SuSE Linux, the configuration directory has been moved
to %{_sysconfdir}/uucp. Exactly: Taylor config: %{_sysconfdir}/uucp HoneyDanBer
config: %{_sysconfdir}/uucp/hdb_config If you have your own setup under
%{_localstatedir}/lib/uucp, please move it to %{_sysconfdir}/uucp. Example configurations can
be found in /usr/share/doc/packages/uucp.
We did not include a uucp guest account. If you want to create a guest
account, make sure the directory %{_localstatedir}/spool/uucppublic exists.
Authors:
--------
Ian Lance Taylor
%prep
%setup
%patch -P 1 -b .cont
%patch -P 2 -p0 -b .grad
%patch -P 3 -p0 -b .cu
%patch -P 4 -p0 -b .lockdev
%patch -P 0
%build
#
ID=$(id -u)
RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIE"
#
autoreconf
CFLAGS="-Wall ${RPM_OPT_FLAGS} -pipe -D_GNU_SOURCE" \
./configure \
--with-newconfigdir=%{_sysconfdir}/uucp \
--with-oldconfigdir=%{_sysconfdir}/uucp/hdb_config \
--prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir}
make CFLAGS="-Wall ${RPM_OPT_FLAGS} -pipe -D_GNU_SOURCE" LDFLAGS="-pie"
%install
ID=$(id -u)
if test "$ID" -ne 0 ; then
mkdir bin
PATH=${PWD}/bin:$PATH
(cat > bin/install)<<-EOF
#!/bin/bash
argv=""
while test \$# -gt 0; do
case "\$1" in
-o) shift 2;;
-g) shift 2;;
*) argv="\${argv:+"\$argv "}\$1"
shift
esac
done
set -- \$(echo \${argv})
exec -a install %{_bindir}/install \${1+"\$@"}
EOF
chmod 755 bin/install
type -p install
fi
#
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/uucp/hdb_config
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 logrotate %{buildroot}%{_sysconfdir}/logrotate.d/uucp
make DESTDIR=%{buildroot} install install-info
mkdir -p -m 755 %{buildroot}%{_localstatedir}/spool/uucp %{buildroot}%{_localstatedir}/spool/uucppublic
test "$ID" -ne 0 || \
chown uucp:uucp %{buildroot}%{_localstatedir}/spool/uucp
install -m 644 README.suse %{buildroot}%{_localstatedir}/spool/uucppublic/README
mkdir -p -m 755 %{buildroot}%{_libexecdir}/uucp
mv %{buildroot}%{_sbindir}/uu* %{buildroot}%{_libexecdir}/uucp/
for x in %{buildroot}%{_libexecdir}/uucp/* ; do
echo ${x##*/}
ln -fs %{_libexecdir}/uucp/${x##*/} %{buildroot}%{_sbindir}/
done
rm -rf %{buildroot}%{_defaultdocdir}/uucp
mkdir -p %{buildroot}%{_defaultdocdir}/uucp
mkdir -p %{buildroot}%{_localstatedir}/log/uucp
test "$ID" -ne 0 || \
chown root:root %{buildroot}%{_localstatedir}/log/uucp
chmod 1755 %{buildroot}%{_localstatedir}/log/uucp
tar jxvfpC %{SOURCE1} %{buildroot}%{_defaultdocdir}/uucp
chmod -R u+r,o+r,g+r %{buildroot}%{_defaultdocdir}/uucp/
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/xinetd.d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/xinetd.d/uucp
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/xinetd.d/suucp
%if %{defined verify_permissions}
%verifyscript
%verify_permissions -e %{_localstatedir}/spool/uucp/
%verify_permissions -e %{_localstatedir}/spool/uucppublic/
%verify_permissions -e %{_bindir}/uucp
%verify_permissions -e %{_bindir}/uuname
%verify_permissions -e %{_bindir}/uustat
%verify_permissions -e %{_bindir}/uux
%verify_permissions -e %{_libexecdir}/uucp/uucico
%verify_permissions -e %{_libexecdir}/uucp/uuxqt
%endif
%post
%install_info --info-dir=%{_infodir} %{_infodir}/uucp.info.gz
for log in Log Stats Debug ; do
if test -e %{_localstatedir}/log/uucp/$log ; then
continue
fi
touch %{_localstatedir}/log/uucp/$log
chown uucp:uucp %{_localstatedir}/log/uucp/$log
chmod 0640 %{_localstatedir}/log/uucp/$log
done
chown root:root var/log/uucp
chmod 1755 var/log/uucp
%if %{defined set_permissions}
%set_permissions %{_localstatedir}/spool/uucp/
%set_permissions %{_localstatedir}/spool/uucppublic/
%set_permissions %{_bindir}/uucp
%set_permissions %{_bindir}/uuname
%set_permissions %{_bindir}/uustat
%set_permissions %{_bindir}/uux
%set_permissions %{_libexecdir}/uucp/uucico
%set_permissions %{_libexecdir}/uucp/uuxqt
%endif
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/uucp.info.gz
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/logrotate.d/uucp
%config(noreplace) %{_sysconfdir}/xinetd.d/uucp
%config(noreplace) %{_sysconfdir}/xinetd.d/suucp
#%dir %attr(0750,uucp,uucp) %{_sysconfdir}/uucp
%dir %attr(0750,uucp,uucp) %{_sysconfdir}/uucp/hdb_config
%dir %{_libexecdir}/uucp
%dir %attr(1755,root,root) %{_localstatedir}/log/uucp
%verify(not mode group) %dir %attr(1770,root,uucp) %{_localstatedir}/spool/uucppublic
#%dir %attr(0700,uucp,uucp) %{_localstatedir}/spool/uucp
%attr(755,root,root) %{_bindir}/cu
%verify(not mode) %attr(6555,uucp,uucp) %{_bindir}/uucp
%{_bindir}/uulog
%verify(not mode) %attr(6555,uucp,uucp) %{_bindir}/uuname
%{_bindir}/uupick
%verify(not mode) %attr(6555,uucp,uucp) %{_bindir}/uustat
%{_bindir}/uuto
%verify(not mode) %attr(6555,uucp,uucp) %{_bindir}/uux
%doc %{_infodir}/uucp.info*.gz
%{_libexecdir}/uucp/uuchk
%verify(not mode) %attr(6555,uucp,uucp) %{_libexecdir}/uucp/uucico
%{_libexecdir}/uucp/uuconv
%{_libexecdir}/uucp/uusched
%verify(not mode) %attr(6555,uucp,uucp) %{_libexecdir}/uucp/uuxqt
%{_sbindir}/uuchk
%{_sbindir}/uucico
%{_sbindir}/uuconv
%{_sbindir}/uusched
%{_sbindir}/uuxqt
%doc %{_mandir}/man1/cu.1.gz
%doc %{_mandir}/man1/uucp.1.gz
%doc %{_mandir}/man1/uustat.1.gz
%doc %{_mandir}/man1/uux.1.gz
%doc %{_mandir}/man8/uucico.8.gz
%doc %{_mandir}/man8/uuxqt.8.gz
%{_localstatedir}/spool/uucppublic/README
%doc %{_defaultdocdir}/uucp
%attr(0640,root,uucp) %{_defaultdocdir}/uucp/cfg_example/taylor_config/call
%attr(0640,root,uucp) %{_defaultdocdir}/uucp/cfg_example/taylor_config/passwd
%changelog
++++++ sendmail-8.13.5-select.dif ++++++
--- libmilter/comm.c
+++ libmilter/comm.c 2006-03-20 14:05:17.000000000 +0100
@@ -80,8 +80,11 @@
i = 0;
for (;;)
{
+ struct timeval tv;
+ tv.tv_sec = timeout->tv_sec;
+ tv.tv_usec = timeout->tv_usec;
FD_RD_INIT(sd, rds, excs);
- ret = FD_RD_READY(sd, rds, excs, timeout);
+ ret = FD_RD_READY(sd, rds, excs, &tv);
if (ret == 0)
break;
else if (ret < 0)
@@ -153,8 +156,11 @@
i = 0;
for (;;)
{
+ struct timeval tv;
+ tv.tv_sec = timeout->tv_sec;
+ tv.tv_usec = timeout->tv_usec;
FD_RD_INIT(sd, rds, excs);
- ret = FD_RD_READY(sd, rds, excs, timeout);
+ ret = FD_RD_READY(sd, rds, excs, &tv);
if (ret == 0)
break;
else if (ret < 0)
@@ -253,6 +259,8 @@
written = 0;
for (;;)
{
+ struct timeval tv;
+
while (iovcnt > 0 && iov[0].iov_len == 0)
{
iov++;
@@ -269,8 +277,10 @@
** FD_SETSIZE is checked when socket is created.
*/
+ tv.tv_sec = timeout->tv_sec;
+ tv.tv_usec = timeout->tv_usec;
FD_WR_INIT(fd, wrs);
- i = FD_WR_READY(fd, wrs, timeout);
+ i = FD_WR_READY(fd, wrs, &tv);
if (i == 0)
return MI_FAILURE;
if (i < 0)
--- libmilter/listener.c
+++ libmilter/listener.c 2006-03-20 14:02:03.000000000 +0100
@@ -670,12 +670,12 @@
int rs = 0; \
struct timeval st; \
\
- st.tv_sec = (s); \
- st.tv_usec = 0; \
- if (st.tv_sec > 0) \
+ if ((s) > 0) \
{ \
for (;;) \
{ \
+ st.tv_sec = (s); \
+ st.tv_usec = 0; \
rs = select(0, NULL, NULL, NULL, &st); \
if (rs < 0 && errno == EINTR) \
continue; \
--- libsm/local.h
+++ libsm/local.h 2006-03-20 14:02:03.000000000 +0100
@@ -255,8 +255,11 @@
return SM_IO_EOF; \
do \
{ \
+ struct timeval tv; \
+ tv.tv_sec = sm_io_to.tv_sec; \
+ tv.tv_usec = sm_io_to.tv_usec; \
sm_io_to_sel = select((fd) + 1, NULL, &sm_io_to_mask, \
- &sm_io_x_mask, &sm_io_to); \
+ &sm_io_x_mask, &tv); \
} while (sm_io_to_sel < 0 && errno == EINTR); \
if (sm_io_to_sel < 0) \
{ \
--- libsm/refill.c
+++ libsm/refill.c 2006-03-20 14:02:03.000000000 +0100
@@ -78,8 +78,11 @@
return SM_IO_EOF; \
do \
{ \
+ struct timeval tv; \
+ tv.tv_sec = (to)->tv_sec; \
+ tv.tv_usec = (to)->tv_usec; \
(sel_ret) = select((fd) + 1, &sm_io_to_mask, NULL, \
- &sm_io_x_mask, (to)); \
+ &sm_io_x_mask, &tv); \
} while ((sel_ret) < 0 && errno == EINTR); \
if ((sel_ret) < 0) \
{ \
--- sendmail/sfsasl.c
+++ sendmail/sfsasl.c 2006-03-20 14:02:03.000000000 +0100
@@ -601,8 +601,6 @@
left = timeout - (now - tlsstart);
if (left <= 0)
return 0; /* timeout */
- tv.tv_sec = left;
- tv.tv_usec = 0;
if (LogLevel > 14)
{
@@ -635,6 +633,8 @@
FD_SET(rfd, &ssl_maskx);
do
{
+ tv.tv_sec = left;
+ tv.tv_usec = 0;
ret = select(rfd + 1, &ssl_maskr, NULL, &ssl_maskx,
&tv);
} while (ret < 0 && errno == EINTR);
@@ -651,6 +651,8 @@
FD_SET(rfd, &ssl_maskx);
do
{
+ tv.tv_sec = left;
+ tv.tv_usec = 0;
ret = select(wfd + 1, NULL, &ssl_maskw, &ssl_maskx,
&tv);
} while (ret < 0 && errno == EINTR);
++++++ sendmail-8.14.5-auth2.patch0 ++++++
--- libsmdb/smdb.c
+++ libsmdb/smdb.c 2011-05-31 09:54:58.539925664 +0000
@@ -198,11 +198,15 @@ smdb_open_database(database, db_name, mo
SMDB_USER_INFO *user_info;
SMDB_DBPARAMS *params;
{
+#if defined(NDBM) && defined(NEWDB)
bool type_was_default = false;
+#endif
if (type == SMDB_TYPE_DEFAULT)
{
+#if defined(NDBM) && defined(NEWDB)
type_was_default = true;
+#endif
#ifdef NEWDB
type = SMDB_TYPE_HASH;
#else /* NEWDB */
--- sendmail/sendmail.h
+++ sendmail/sendmail.h Tue May 24 16:25:29 2011
@@ -721,9 +721,9 @@
#if STARTTLS
#define MCIF_TLS 0x00100000 /* STARTTLS supported */
#define MCIF_TLSACT 0x00200000 /* STARTTLS active */
-#define MCIF_EXTENS (MCIF_EXPN | MCIF_SIZE | MCIF_8BITMIME | MCIF_DSN | MCIF_8BITOK | MCIF_AUTH | MCIF_ENHSTAT | MCIF_TLS)
#else /* STARTTLS */
-#define MCIF_EXTENS (MCIF_EXPN | MCIF_SIZE | MCIF_8BITMIME | MCIF_DSN | MCIF_8BITOK | MCIF_AUTH | MCIF_ENHSTAT)
+#define MCIF_TLS 0
+#define MCIF_TLSACT 0
#endif /* STARTTLS */
#define MCIF_DLVR_BY 0x00400000 /* DELIVERBY */
#if _FFR_IGNORE_EXT_ON_HELO
@@ -732,6 +732,8 @@
#define MCIF_INLONGLINE 0x01000000 /* in the middle of a long line */
#define MCIF_AUTH2 0x02000000 /* got 2 AUTH lines */
#define MCIF_ONLY_EHLO 0x10000000 /* use only EHLO in smtpinit */
+
+#define MCIF_EXTENS (MCIF_EXPN | MCIF_SIZE | MCIF_8BITMIME | MCIF_DSN | MCIF_8BITOK | MCIF_AUTH | MCIF_ENHSTAT | MCIF_TLS | MCIF_AUTH2)
/* states */
#define MCIS_CLOSED 0 /* no traffic on this connection */
++++++ sendmail-8.14.5.dif ++++++
++++ 4789 lines (skipped)
++++++ sendmail-CVE-2014-3956.patch ++++++
--- sendmail/conf.c
+++ sendmail/conf.c 2014-06-04 11:50:41.582236123 +0000
@@ -5256,8 +5256,8 @@ closefd_walk(lowest, fd)
*/
void
-sm_close_on_exec(highest, lowest)
- int highest, lowest;
+sm_close_on_exec(lowest, highest)
+ int lowest, highest;
{
#if HASFDWALK
(void) fdwalk(closefd_walk, &lowest);
++++++ sendmail-client.path ++++++
# This file is part of package sendmail.
#
# Copyright (c) 2011 SuSE LINUX Products GmbH, Germany.
# Author: Werner Fink
# Please send feedback to http://www.suse.de/feedback
#
# Description:
#
# Watch out if any mail will be stored below the
# directory /var/spool/clientmqueue/ and start the
# sendmail client service if any.
#
[Unit]
Description=Sendmail Client Mail Queue Watcher
Before=mail-transfer-agent.target
[Path]
DirectoryNotEmpty=/var/spool/clientmqueue
[Install]
WantedBy=multi-user.target
++++++ sendmail-client.service ++++++
# This file is part of package sendmail.
#
# Copyright (c) 2011 SuSE LINUX Products GmbH, Germany.
# Author: Werner Fink
# Please send feedback to http://www.suse.de/feedback
#
# Description:
#
# Used to start the sendmail Mail Transport Client service
# which handles all mails stored at /var/spool/clientmqueue/
#
[Unit]
Description=Sendmail Mail Transport Client
Requires=sendmail.service
After=sendmail.service
Before=mail-transfer-agent.target
ConditionDirectoryNotEmpty=|/var/spool/clientmqueue
[Service]
Type=forking
PIDFile=/var/spool/clientmqueue/sm-client.pid
ExecStartPre=-/etc/mail/system/sm-client.pre
Environment=SENDMAIL_CLIENT_ARGS=-L sendmail-client -Ac -qp30m
EnvironmentFile=-/etc/sysconfig/mail
EnvironmentFile=-/etc/sysconfig/sendmail
ExecStart=/usr/sbin/sendmail $SENDMAIL_CLIENT_ARGS
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
++++++ sendmail-client.systemd ++++++
#!/bin/bash
#
# /etc/mail/system/sm-client.pre
#
# Author: Werner Fink
# Please send feedback to http://www.suse.de/feedback/
#
# Description:
#
# Helper script to set up the environment for sendmail
# Mail Transport Client if started by systemd
#
pidfile=/var/spool/clientmqueue/sm-client.pid
typeset -i timeout=1000
typeset -i port=25
for cfg in /etc/sendmail.cf /etc/mail/sendmail.cf ; do
test -s $cfg && break
done
for sed in /bin/sed /usr/bin/sed ; do
test -x $sed && break
done
for fuser in /bin/fuser /usr/bin/fuser ; do
test -x $fuser && break
done
for usleep in /bin/usleep /usr/bin/usleep ; do
test -x $usleep && break
done
#
# Make sure that configuration is uptodate
#
if test -x /usr/bin/make ; then
/usr/bin/make -C /etc/mail > /dev/null 2>&1
fi
#
# Create /var/run/sendmail if not exit
#
test -d /var/run || /bin/mkdir --mode 0755 /var/run
test -d /var/run/sendmail || /bin/mkdir --mode 1750 /var/run/sendmail
#
# Some default permissions
#
/bin/touch $pidfile
/bin/chown mail:mail $pidfile
/bin/chmod 0600 $pidfile
#
# Check for DaemonPortOptions
#
PortOpts=$($sed -rn '/^O[[:blank:]]+DaemonPortOptions=.*Name=MTA.*$/I {
s/[[:blank:]]+//g
s/^O[^=]+=(.*)/\1/p
}' $cfg)
#
# Seek for port beside 25 aka smtp
#
for opt in ${PortOpts//,/ } ; do
case "${opt%=*}" in
[Pp]ort) port=${opt#*=}
esac
done
unset opt
#
# Now wait that sendmail MTA is becoming ready
#
while ! $fuser -sn tcp $port > /dev/null 2>&1 ; do
((timeout-- <= 0)) && break
$usleep 10000
done
#
# end of /etc/mail/system/sm-client.pre
++++++ sendmail-rpmlintrc ++++++
addFilter(".*hidden-file-or-dir.*/var/spool/mqueue/\.hoststat.*")
addFilter(".*executable-sourced-script.*/sbin/conf\.d/SuSEconfig\.sendmail.*")
addFilter(".*non-etc-or-var-file-marked-as-conffile.*/sbin/conf\.d/SuSEconfig\.sendmail.*")
addFilter(".*non-etc-or-var-file-marked-as-conffile.*/lib/systemd/system/.*")
addFilter(".*sourced-script-with-shebang.*/sbin/conf\.d/SuSEconfig\.sendmail.*")
addFilter(".*zero-length.*/var/spool/clientmqueue/sm-client\.st.*")
addFilter(".*zero-length.*/var/lib/sendmail/statistics.*")
addFilter(".*no-manual-page-for-binary.*hoststat.*")
addFilter(".*no-manual-page-for-binary.*rcsendmail.*")
addFilter(".*no-manual-page-for-binary.*purgestat.*")
addFilter(".*no-manual-page-for-binary.*sendmail.nissl.*")
addFilter(".*macro-in-comment.*")
++++++ sendmail.service ++++++
# This file is part of package sendmail.
#
# Copyright (c) 2011 SuSE LINUX Products GmbH, Germany.
# Author: Werner Fink
# Please send feedback to http://www.suse.de/feedback
#
# Description:
#
# Used to start the sendmail Mail Transport Agent service
# which handles all mails stored at /var/spool/mqueue/ and
# all connections on port 25 aka smtp at localhost as well
# as on all other network interfaces.
#
[Unit]
Description=Sendmail Mail Transport Agent
Requires=var-run.mount nss-lookup.target network.target remote-fs.target syslog.target time-sync.target
After=var-run.mount nss-lookup.target network.target remote-fs.target syslog.target time-sync.target
Wants=amavis.service cyrus.service ldap.service nscd.service ypbind.service sendmail-client.service
After=amavis.service cyrus.service ldap.service nscd.service ypbind.service
Before=sendmail-client.service mail-transfer-agent.target
Conflicts=postfix.service exim.service
[Service]
Type=forking
PIDFile=/var/run/sendmail.pid
ExecStartPre=-/bin/echo 'Initializing SMTP port (sendmail)'
ExecStartPre=-/etc/mail/system/sm.pre
Environment=SENDMAIL_ARGS=-L sendmail -Am -bd -q30m -om
Environment=SENDMAIL_PORT_OPTS=
EnvironmentFile=-/etc/sysconfig/mail
EnvironmentFile=-/etc/sysconfig/sendmail
EnvironmentFile=-/var/run/sendmail/port
ExecStart=/usr/sbin/sendmail $SENDMAIL_PORT_OPTS $SENDMAIL_ARGS
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
++++++ sendmail.systemd ++++++
#!/bin/bash
#
# /etc/mail/system/sm.pre
#
# Author: Werner Fink
# Please send feedback to http://www.suse.de/feedback/
#
# Description:
#
# Helper script to set up the environment for sendmail
# Mail Transport Agent (MTA) if started by systemd
#
sysconf=/etc/sysconfig/mail
port=/var/run/sendmail/port
for cfg in /etc/sendmail.cf /etc/mail/sendmail.cf ; do
test -s $cfg && break
done
for sed in /bin/sed /usr/bin/sed ; do
test -x $sed && break
done
#
# Make sure that configuration is uptodate
#
if test -x /usr/bin/make ; then
/usr/bin/make -C /etc/mail > /dev/null 2>&1
fi
#
# Create /var/run/sendmail if not exit
#
test -d /var/run || /bin/mkdir --mode 0755 /var/run
test -d /var/run/sendmail || /bin/mkdir --mode 1750 /var/run/sendmail
#
# Handle SMTPD_LISTEN_REMOTE from /etc/sysconfig/sendmail
# that is write out environment file to be read by the
# systemd service unit file for sendmail MTA.
#
if test ! -s $port -o $cfg -nt $port -o $sysconf -nt $port ; then
. $sysconf
umask 066
if test "$SMTPD_LISTEN_REMOTE" != "yes" ; then
PortOpts=$($sed -rn '/^O[[:blank:]]+DaemonPortOptions=.*Name=MTA.*$/I {
s/[[:blank:]]+//g
s/^O[^=]+=(.*)/\1/p
}' $cfg)
PortOpts="${PortOpts:+${PortOpts},}Addr=127.0.0.1"
echo SENDMAIL_PORT_OPTS="\"-O DaemonPortOptions=${PortOpts}\""
else
echo SENDMAIL_PORT_OPTS="\"\""
fi > $port
fi
#
# end of /etc/mail/system/sm.pre
++++++ suucp.xinetd ++++++
#
# The Internet secure UUCP service.
#
# Find UUCP config examples at
# /usr/share/doc/packages/uucp/cfg_example/taylor_config/
# There are also the suucp-*.conf files required for a stunnel
# driven SUUCP client and server configuration.
#
# This xinetd configuration file covers the servers side with
# suucp-server.conf as argument for the stunnel exectuable.
#
service suucp
{
disable = yes
socket_type = stream
protocol = tcp
wait = no
user = uucp
server = /usr/sbin/stunnel
server_args = /etc/uucp/suucp-server.conf
}
++++++ uucp-1.07-contrib.dif ++++++
--- contrib/Makefile.uurt
+++ contrib/Makefile.uurt Thu Jun 26 16:47:59 2003
@@ -3,7 +3,7 @@
#
# Prefix directory for installation directories.
-prefix = /usr/local
+prefix = /usr
# Directory where the needed .h files are installed (uucp.h ...).
uucpsrcs = ../
--- contrib/Makefile.xchat
+++ contrib/Makefile.xchat Thu Jun 26 16:47:59 2003
@@ -5,7 +5,7 @@
#
CC=cc
SHELL=/bin/sh
-BIN=/usr/local/lib/uucp
+BIN=/usr/lib/uucp
PROGS=xchat
#-----------
--- contrib/amiga.c
+++ contrib/amiga.c Thu Jun 26 16:51:06 2003
@@ -30,7 +30,7 @@
int main(int argc,char *argv[],char *envp)
{
struct passwd *pw;
- char *name = {"/usr/lib/uucp/uucico.real"};
+ char *name = {"/usr/lib/uucp/uucico"};
if (sysm68k(_m68k_LIMUSER,EUA_GET_LIC) == 0 ) { /* are we unlicensed? */
if (sysm68k(_m68k_LIMUSER,EUA_UUCP) == -1) { /* yes, get a "uucp"
--- contrib/stats.sh
+++ contrib/stats.sh Thu Jun 26 16:47:59 2003
@@ -8,7 +8,7 @@
# (since baud is not really the correct name for it and bits/s actually
# depends on the number of start and stop bits etc)
-grep bytes /usr/spool/uucp/Stats | grep -v 'bytes 0.00 secs' | grep -v 'failed after' | tail -80 | \
+grep bytes /var/log/uucp/Stats | grep -v 'bytes 0.00 secs' | grep -v 'failed after' | tail -80 | \
gawk '
BEGIN {
printf(" UUCP transmission history:\n");
--- contrib/uuclean
+++ contrib/uuclean Thu Jun 26 16:47:59 2003
@@ -3,8 +3,8 @@
# Do whatever you like with this script.
#
# Set some variables
-bindir=/usr/local/bin
-spooldir=/usr/spool/uucp
+bindir=/usr/bin
+spooldir=/var/spool/uucp
#
# Warn about all mail over two days old
$(bindir)/uustat -c rmail -o 48 -N -Q -W"Unable to deliver; will try up to one week"
--- contrib/uudemon.shar
+++ contrib/uudemon.shar Thu Jun 26 16:47:59 2003
@@ -43,7 +43,7 @@
X# change LIBDIR to where UUCP library/conf. files are
X# change SPOOLDIR to the UUCP spool directory. It must be HDB-ish.
XLIBDIR=/usr/lib/uucp; export LIBDIR
-XSPOOLDIR=/usr/spool/uucp; export SPOOLDIR
+XSPOOLDIR=/var/spool/uucp; export SPOOLDIR
X
X### no changes needed past here ###
X
--- contrib/uupoll.shar
+++ contrib/uupoll.shar Thu Jun 26 16:47:59 2003
@@ -33,7 +33,7 @@
# borrowed and hacked from Taylor UUCP 1.04
X
# Prefix directory for installation directories.
-prefix = /usr/local
+prefix = /usr
X
# The user name/group that should own the resulting executables.
# Both should run suid.
@@ -174,7 +174,7 @@
started by an entry in the crontab tables in just the same way uucico is
started (it will start uucico):
X
-05 5 * * * uucp /usr/local/lib/uucp/autopoll -r1 >>/tmp/poll.log 2>&1
+05 5 * * * uucp /usr/lib/uucp/autopoll -r1 >>/tmp/poll.log 2>&1
X
Any messages go to stderr or a file (if compiled with that option); in case
the file could not be opened it will use stdout to tell you just that and quit.
@@ -384,12 +384,10 @@
a failing call.
.SH FILES
.nf
-/usr/local/lib/uucp UUCP internal utilities
-/usr/lib/uucp
-/usr/local/bin UUCP internal utilities
-/usr/bin
-/usr/spool/uucp/.Status/ Status files for each site
-/usr/spool/uucp/ UUCP spool area. one of its sub-
+/usr/lib/uucp UUCP internal utilities
+/usr/bin UUCP internal utilities
+/var/log/uucp/Stats Status file for each site
+/var/spool/uucp/ UUCP spool area. one of its sub-
X directories will hold the null jobs.
/tmp/poll.log This file is present only if autopoll
X has been compiled to place the messages
@@ -1672,15 +1670,15 @@
/* Define the complete path to the uuname program.
X * If undefined we'll use just the name 'uuname' to call it
X * */
-#define UNAME_DIR "/usr/local/bin/uuname"
+#define UNAME_DIR "/usr/bin/uuname"
X
/* define the path to the directory which does contain uucico */
-#define CICO_DIR "/usr/local/lib/uucp/uucico"
+#define CICO_DIR "/usr/lib/uucp/uucico"
X
/* define the path to the directory which holds all the uucp files.
X * We'll place the poll file in one of it's subdirectories
X * */
-#define SPOOL_DIR "/usr/spool/uucp"
+#define SPOOL_DIR "/var/spool/uucp"
X
/* at least one of the follwing must be defined To use the second or
X * third set of definitions, change the ``#if 1'' to ``#if 0''
@@ -1724,7 +1722,7 @@
X * This will assure that we get the one we want
X * The path must be the same as given in Makefile (lbindir)
X * */
-#define AUTO_DIR "/usr/local/lib/uucp/autopoll"
+#define AUTO_DIR "/usr/lib/uucp/autopoll"
X
/* define the path to the directory which is to contain the
X * message log created by autopoll and the file name itself.
@@ -1737,11 +1735,11 @@
/* define the full path to the directory which holds the status files
X * The name should be given *except* the sitename. A trailing `/' if any
X * must be given.
-X * Example: /usr/spool/uucp/.Status/sys.sitename
+X * Example: /var/spool/uucp/.Status/sys.sitename
X * then specify STATUS_DIR as
-X * "/usr/spool/uucp/.Status/sys."
+X * "/var/spool/uucp/.Status/sys."
X * */
-#define STATUS_DIR "/usr/spool/uucp/.Status/"
+#define STATUS_DIR "/var/spool/uucp/.Status/"
#endif
SHAR_EOF
chmod 0444 uupoll/conf.h ||
@@ -1906,10 +1904,10 @@
.IR all
sites given. That may lead to a `No port available' condition.
.SH FILES
-.ta \w'/usr/spool/uucp/ 'u
+.ta \w'/var/spool/uucp/ 'u
.nf
/etc/uucp/ UUCP internal files/utilities
-/usr/spool/uucp/ Spool directory
+/var/spool/uucp/ Spool directory
/tmp/poll.log This file is present only if uupoll has been
X compiled to place the messages into a file.
X Otherwise all messages will go to stderr.
--- contrib/uuq.sh
+++ contrib/uuq.sh Thu Jun 26 16:47:59 2003
@@ -4,7 +4,7 @@
# note - uses the uuname script or similar functionality.
# Zacharias Beckman
-SPOOLDIR="/usr/spool/uucp"
+SPOOLDIR="/var/spool/uucp"
SYSTEMS=`uuname`
TMPFILE="/tmp/uuq.tmp"
FORSYSTEM=""
--- contrib/uurate.c
+++ contrib/uurate.c Thu Jun 26 16:47:59 2003
@@ -307,6 +307,7 @@
int sent, called = IN;
int report = 0; /* if <= 0 give msg that no report was avail. */
int junk;
+ extern int getopt();
/* --------------------------------------------------------------------
* P r o l o g
--- contrib/uurate.man
+++ contrib/uurate.man Thu Jun 26 16:47:59 2003
@@ -1,4 +1,4 @@
-''' $Id: uurate.man,v 1.4 1993/09/28 17:38:31 kdburg Rel $
+'\" $Id: uurate.man,v 1.4 1993/09/28 17:38:31 kdburg Rel $
.TH uurate 1
.SH NAME
uurate \- Report Taylor UUCP statistics
@@ -252,8 +252,8 @@
.nf
.in +.3in
.ta 2.2i
-.IR "/usr/spool/uucp/Log " "V2/Taylor format call/execution log,"
-.IR "/usr/spool/uucp/Stats " "V2/Taylor format file transfer log."
+.IR "/var/log/uucp/Log " "V2/Taylor format call/execution log,"
+.IR "/var/log/uucp/Stats " "V2/Taylor format file transfer log."
.SS "SEE ALSO"
.IR uucico "(8)"
.SS BUGS
--- contrib/uureroute.perl
+++ contrib/uureroute.perl Thu Jun 26 16:54:33 2003
@@ -34,7 +34,7 @@
#
";
-$UUSTAT = "uustat";
+$UUSTAT = "/usr/bin/uustat";
$SHELL = "/bin/sh";
$SMAIL = "/bin/smail";
@@ -61,7 +61,7 @@
while ($system = shift)
{
$sysprefix = substr ($system, 0, 7);
- $directory = "/usr/spool/uucp/$sysprefix";
+ $directory = "/var/spool/uucp/$sysprefix";
open (UUSTAT, "$UUSTAT -s $system -c rmail |");
print "set -ex\n";
while (<UUSTAT>)
--- contrib/uusnap.c
+++ contrib/uusnap.c Thu Jun 26 16:48:01 2003
@@ -11,7 +11,7 @@
At the moment it only works with taylor config and taylor dirs
compile it form the Makefile or:
- cc -c -g -pipe -O -I. -I. -DNEWCONFIGLIB=\"/usr/local/lib/uucp\" uusnap.c
+ cc -c -g -pipe -O -I. -I. -DNEWCONFIGLIB=\"/usr/lib/uucp\" uusnap.c
cc -o uusnap uusnap.o
For this, uusnap.[ch] must be in the same directory as uucp.h and so.
--- contrib/uutraf
+++ contrib/uutraf Thu Jun 26 16:48:01 2003
@@ -52,21 +52,21 @@
}
if ( $uucp_type eq "taylor" || $uucp_type eq "gnu" ) {
- @ARGV = ("/usr/local/spool/uucp/Stats") unless $#ARGV >= 0;
+ @ARGV = ("/var/log/uucp/Stats") unless $#ARGV >= 0;
$pat = "^[^ ]+ ([^ ]+) \\(([-0-9:\\/ .]+)\\) " .
"(sent|received) (\\d+) bytes in (\\d+)\\.(\\d+) seconds";
$uucp_type = 0;
$recv = "received";
}
elsif ( $uucp_type eq "hdb" || $uucp_type eq "bnu" ) {
- @ARGV = ("/usr/spool/uucp/.Admin/xferstats") unless $#ARGV >= 0;
+ @ARGV = ("/var/spool/uucp/.Admin/xferstats") unless $#ARGV >= 0;
$pat = "^([^!]+)![^(]+\\(([-0-9:\\/]+)\\).+([<>])-? " .
"(\\d+) \\/ (\\d+)\\.(\\d+) secs";
$uucp_type = 1;
$recv = "<";
}
elsif ( $uucp_type eq "bsd" || $uucp_type eq "v7" ) {
- @ARGV = ("/usr/spool/uucp/SYSLOG") unless $#ARGV >= 0;
+ @ARGV = ("/var/spool/uucp/SYSLOG") unless $#ARGV >= 0;
$pat = "^[^ ]+ ([^ ]+) \\(([-0-9:\\/]+)\\) \\([^)]+\\) " .
"(sent|received) (\\d+) b (\\d+) secs";
$uucp_type = 2;
--- contrib/uutry
+++ contrib/uutry Thu Jun 26 16:48:01 2003
@@ -14,10 +14,11 @@
# The following variables should be gropped from the configuration
# files rather then being hard coded here.
#
-Spool=/usr/spool/uucp
-Lib=/usr/local/lib/uucp
-Status=$Spool/.Status
-Debug=$Spool/Debug
+Spool=/var/spool/uucp
+Lib=/usr/lib/uucp
+Log=/var/log
+Status=$Log/Stats
+Debug=$Log/Debug
Uucico=$Lib/uucico
#
# Default option values
--- contrib/xc-conf.h-dist
+++ contrib/xc-conf.h-dist Thu Jun 26 16:48:01 2003
@@ -26,7 +26,7 @@
* executed. Normally, this is the same place you put your config
* and system files for UUCP.
*/
-#define SCRIPT_DIR "/usr/local/conf/uucp/" /* MUST HAVE TRAILING "/" */
+#define SCRIPT_DIR "/etc/uucp/" /* MUST HAVE TRAILING "/" */
/*
* The following definition establishes the default path to the
@@ -34,5 +34,5 @@
* this is the same location you configured Taylor UUCP to put its
* log files.
*/
-#define LOG_DIR "/usr/spool/uucp/" /* MUST HAVE TRAILING "/" */
+#define LOG_DIR "/var/log/uucp/" /* MUST HAVE TRAILING "/" */
--- contrib/xchat.man
+++ contrib/xchat.man Thu Jun 26 16:48:01 2003
@@ -14,7 +14,7 @@
begins with ``/'', then it is assumed to be a full path name for the
script file. If not, a configuration-dependent default directory path
(usually
-.B "/usr/local/conf/uucp/"
+.B "/etc/uucp/"
) is prepended to the script file name. Normally, the default path
is the same as that for the Taylor UUCP configuration files.
.SH DESCRIPTION
@@ -163,7 +163,7 @@
begins with ``/'', it is assumed to be an absolute path name for the
debugging file. If not, then a configuration-dependent default directory
path (usually
-.B "/usr/spool/uucp"
+.B "/var/spool/uucp"
) is prepended to
.I xstr.
Normally the default path is that of the directory where Taylor UUCP
++++++ uucp-1.07-cu.patch ++++++
--- cu.c
+++ cu.c Thu Jun 26 18:39:05 2003
@@ -565,6 +565,11 @@
sinfo.zline = zline;
if (zport != NULL || zline != NULL || ibaud != 0L)
{
+ /* Make sure _everything_ is initialized to zero.
+ * Otherwise some fields (such as uuconf_fcarrier)
+ * will be random. */
+ memset(&sport, 0, sizeof(sport));
+
iuuconf = uuconf_find_port (puuconf, zport, ibaud, 0L,
icuport_lock, (pointer) &sinfo,
&sport);
++++++ uucp-1.07-grade.patch ++++++
--- uucico.8
+++ uucico.8 Thu Jun 26 18:29:36 2003
@@ -145,6 +145,9 @@
.B \-f, \-\-force
Ignore any required wait for any systems to be called.
.TP 5
+.B \-g, \-\-grade
+Limit outgoing call to a given grade.
+.TP 5
.B \-l, \-\-prompt
Prompt for login name and password using "login: " and "Password:".
This allows
--- uucico.c
+++ uucico.c Thu Jun 26 18:29:58 2003
@@ -125,6 +125,9 @@
struct sconnection *qconn;
};
+/* min. grade set on commandline */
+static char cmdlgrade = '\0';
+
/* Local functions. */
static void uusage P((void));
@@ -175,6 +178,7 @@
{ "nodetach", no_argument, NULL, 'D' },
{ "loop", no_argument, NULL, 'e' },
{ "force", no_argument, NULL, 'f'},
+ { "grade", required_argument, NULL, 'g'},
{ "stdin", required_argument, NULL, 'i' },
{ "prompt", no_argument, NULL, 'l' },
{ "port", required_argument, NULL, 'p' },
@@ -249,9 +253,9 @@
++zProgram;
#if COHERENT_C_OPTION
- zopts = "c:CDefi:I:lp:qr:s:S:u:x:X:vwz";
+ zopts = "c:CDefg:i:I:lp:qr:s:S:u:x:X:vwz";
#else
- zopts = "cCDefi:I:lp:qr:s:S:u:x:X:vwz";
+ zopts = "cCDefg:i:I:lp:qr:s:S:u:x:X:vwz";
#endif
while ((iopt = getopt_long (argc, argv, zopts,
@@ -292,6 +296,14 @@
failed call. */
fforce = TRUE;
break;
+
+ case 'g':
+ /* Force a grade */
+ if (isalpha(optarg[0]))
+ cmdlgrade = optarg[0];
+ else
+ fprintf (stderr, "%s: invalid grade \n", zProgram);
+ break;
case 'i':
/* Type of port to use for standard input. Only TLI is
@@ -796,6 +808,7 @@
printf ("Usage: %s [options]\n", zProgram);
printf (" -s,-S,--system system: Call system (-S implies -f)\n");
printf (" -f,--force: Force call despite system status\n");
+ printf (" -g,--grade: Limit outgoing call to a given grade\n");
printf (" -r state: 1 for master, 0 for slave (default)\n");
printf (" --master: Act as master\n");
printf (" --slave: Act as slave (default)\n");
@@ -1369,12 +1382,18 @@
boolean fret;
/* Determine the grade we should request of the other system. A
- '\0' means that no restrictions have been made. */
- if (! ftimespan_match (qsys->uuconf_qcalltimegrade, &ival,
- (int *) NULL))
- bgrade = '\0';
+ '\0' means that no restrictions have been made.
+ If a grade is set on the command line, the calltimegrade-value
+ is overwritten. */
+
+ if (cmdlgrade != '\0')
+ bgrade = cmdlgrade;
else
- bgrade = (char) ival;
+ if (! ftimespan_match (qsys->uuconf_qcalltimegrade, &ival,
+ (int *) NULL))
+ bgrade = '\0';
+ else
+ bgrade = (char) ival;
/* Determine the name we will call ourselves. */
if (qsys->uuconf_zlocalname != NULL)
++++++ uucp-1.07-lockdev.patch ++++++
Index: unix/serial.c
===================================================================
--- unix/serial.c.orig
+++ unix/serial.c
@@ -126,6 +126,10 @@ const char serial_rcsid[] = "$Id: serial
#include
#endif
+#if HAVE_LOCKDEV
+#include
+#endif
+
/* Get definitions for both O_NONBLOCK and O_NDELAY. */
#ifndef O_NDELAY
#ifdef FNDELAY
@@ -623,6 +627,18 @@ fsserial_lockfile (flok, qconn)
z = zalc;
}
#else /* ! HAVE_QNX_LOCKFILES */
+#if HAVE_LOCKDEV
+ {
+ int rc;
+
+ if (flok)
+ rc = ttylock(qsysdep->zdevice);
+ else
+ rc = ttyunlock(qsysdep->zdevice);
+ fret = (rc == 0 ? TRUE : FALSE);
+ return fret;
+ }
+#else /* ! HAVE_LOCKDEV */
#if ! HAVE_SVR4_LOCKFILES
{
const char *zbase;
@@ -660,6 +676,7 @@ fsserial_lockfile (flok, qconn)
z = zalc;
}
#endif /* HAVE_SVR4_LOCKFILES */
+#endif /* ! HAVE_LOCKDEV */
#endif /* ! HAVE_QNX_LOCKFILES */
}
Index: Makefile.am
===================================================================
--- Makefile.am.orig
+++ Makefile.am
@@ -25,7 +25,7 @@ endif
AM_CFLAGS = $(WARN_CFLAGS) $(UUDIRFLAGS)
-LDADD = unix/libunix.a uuconf/libuuconf.a lib/libuucp.a
+LDADD = unix/libunix.a uuconf/libuuconf.a lib/libuucp.a $(LOCKDEV_LIBS)
UUHEADERS = uucp.h uudefs.h uuconf.h policy.h system.h sysdep.h getopt.h
Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -787,4 +787,6 @@ else
AC_SYS_LONG_FILE_NAMES
fi
dnl
+PKG_CHECK_MODULES([LOCKDEV], [lockdev], AC_DEFINE([HAVE_LOCKDEV],[1],[Define if you have lockdev]))
+dnl
AC_OUTPUT(Makefile uuconf/Makefile lib/Makefile unix/Makefile)
++++++ uucp-1.07.dif ++++++
++++ 1201 lines (skipped)
++++++ uucp.xinetd ++++++
#
# The Internet UUCP service.
#
# Find UUCP config examples at
# /usr/share/doc/packages/uucp/cfg_example/taylor_config/
#
service uucp
{
disable = yes
socket_type = stream
protocol = tcp
# Activate the bind statement if you use the secure UUCP (SUUCP) service. In
# this case you do not need to bind uucp on any external interface.
# bind = localhost
wait = no
user = uucp
server = /usr/lib/uucp/uucico
server_args = -l
}
++++++ uucpman.sh ++++++
#!/bin/bash
for man in uucp.1 uux.1 uustat.1 uuname.1 uulog.1 uuto.1 uupick.1 \
cu.1 uucico.8 uuxqt.8 uuchk.1 uuconv.1 uusched.8
do
test -e $man && continue
touch .#$man
( echo NAME
echo "${man%.[0-9]} - "
echo SYNOPSIS
info -f ./uucp.info "Invoking ${man%.[0-9]}" | tail -n +5 ) | \
rman -n ${man%.[0-9]} -s ${man#*.} -K -f roff > $man
echo $man
done
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org