File uucp.spec of Package uucp
#
# spec file for package uucp (Version 1.07)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: uucp
License: GPL v2 or later
Group: Productivity/Networking/Other
PreReq: fileutils %install_info_prereq
Requires: /usr/bin/rmail filesystem netcfg
Recommends: stunnel
AutoReqProv: on
Version: 1.07
Release: 425
Summary: Taylor UUCP
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 /etc/uucp. Exactly: Taylor config: /etc/uucp HoneyDanBer
config: /etc/uucp/hdb_config If you have your own setup under
/var/lib/uucp, please move it to /etc/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 /var/spool/uucppublic exists.
Authors:
--------
Ian Lance Taylor <ian@cygnus.com>
%prep
%setup
%patch -P 1 -b .cont
%patch -P 2 -p0 -b .grad
%patch -P 3 -p0 -b .cu
%patch -P 0
%build
#
ID=$(id -u)
RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"
#
%{?suse_update_config:%{suse_update_config -f}}
aclocal
automake
autoconf
CFLAGS="-Wall ${RPM_OPT_FLAGS} -pipe -D_GNU_SOURCE" \
./configure \
--with-newconfigdir=/etc/uucp \
--with-oldconfigdir=/etc/uucp/hdb_config \
--prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir}
make CFLAGS="-Wall ${RPM_OPT_FLAGS} -pipe -D_GNU_SOURCE"
%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 /usr/bin/install \${1+"\$@"}
EOF
chmod 755 bin/install
type -p install
fi
#
mkdir -p -m 755 ${RPM_BUILD_ROOT}/etc/uucp/hdb_config
mkdir -p -m 755 ${RPM_BUILD_ROOT}/etc/logrotate.d
install -m 644 logrotate ${RPM_BUILD_ROOT}/etc/logrotate.d/uucp
make DESTDIR=${RPM_BUILD_ROOT} install install-info
mkdir -p -m 755 ${RPM_BUILD_ROOT}/var/spool/uucp ${RPM_BUILD_ROOT}/var/spool/uucppublic
test "$ID" -ne 0 || \
chown uucp:uucp ${RPM_BUILD_ROOT}/var/spool/uucp
install -m 644 README.suse ${RPM_BUILD_ROOT}/var/spool/uucppublic/README
mkdir -p -m 755 ${RPM_BUILD_ROOT}/usr/lib/uucp
mv ${RPM_BUILD_ROOT}/usr/sbin/uu* ${RPM_BUILD_ROOT}/usr/lib/uucp/
for x in ${RPM_BUILD_ROOT}/usr/lib/uucp/* ; do
echo ${x##*/}
ln -fs /usr/lib/uucp/${x##*/} ${RPM_BUILD_ROOT}/usr/sbin/
done
rm -rf ${RPM_BUILD_ROOT}%{_defaultdocdir}/uucp
mkdir -p ${RPM_BUILD_ROOT}%{_defaultdocdir}/uucp
mkdir -p ${RPM_BUILD_ROOT}/var/log/uucp
test "$ID" -ne 0 || \
chown uucp:uucp ${RPM_BUILD_ROOT}/var/log/uucp
tar jxvfpC %{SOURCE1} ${RPM_BUILD_ROOT}%{_defaultdocdir}/uucp
chmod -R u+r,o+r,g+r ${RPM_BUILD_ROOT}%{_defaultdocdir}/uucp/
mkdir -p -m 755 ${RPM_BUILD_ROOT}/etc/xinetd.d
install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/etc/xinetd.d/uucp
install -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/etc/xinetd.d/suucp
%post
%install_info --info-dir=%{_infodir} %{_infodir}/uucp.info.gz
%run_permissions
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/uucp.info.gz
%verifyscript
%verify_permissions -e /var/spool/uucppublic
%files
%defattr(-,root,root)
%config(noreplace) /etc/logrotate.d/uucp
%config(noreplace) /etc/xinetd.d/uucp
%config(noreplace) /etc/xinetd.d/suucp
#%dir %attr(0750,uucp,uucp) /etc/uucp
%dir %attr(0750,uucp,uucp) /etc/uucp/hdb_config
%dir /usr/lib/uucp
%dir %attr(0755,uucp,uucp) /var/log/uucp
%verify(not mode group) %dir %attr(1770,root,uucp) /var/spool/uucppublic
#%dir %attr(0700,uucp,uucp) /var/spool/uucp
%attr(755,root,root) /usr/bin/cu
%attr(6555,uucp,uucp) /usr/bin/uucp
/usr/bin/uulog
%attr(6555,uucp,uucp) /usr/bin/uuname
/usr/bin/uupick
%attr(6555,uucp,uucp) /usr/bin/uustat
/usr/bin/uuto
%attr(6555,uucp,uucp) /usr/bin/uux
%doc %{_infodir}/uucp.info*.gz
/usr/lib/uucp/uuchk
%attr(6555,uucp,uucp) /usr/lib/uucp/uucico
/usr/lib/uucp/uuconv
/usr/lib/uucp/uusched
%attr(6555,uucp,uucp) /usr/lib/uucp/uuxqt
/usr/sbin/uuchk
/usr/sbin/uucico
/usr/sbin/uuconv
/usr/sbin/uusched
/usr/sbin/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
/var/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
* Wed Jun 13 2007 werner@suse.de
- Recommend stunnel package (bug #254613)
* Fri Feb 16 2007 werner@suse.de
- Split off uucp spec file from sendmail spec file
- Require new rmail sub packages of sendmail
* Mon Feb 12 2007 werner@suse.de
- Make it build nonroot
* Fri Jan 19 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 2006 werner@suse.de
- Add a few manual pages missed (bug #187356)
* Tue Mar 14 2006 werner@suse.de
- Remove contrib/uucomp.shar due broken license (bug #157791)
* Thu Oct 13 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 2005 werner@suse.de
- In passwd example to not mix-up uucp host and uucp user
* Mon Jun 20 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 2004 werner@suse.de
- Remove update message
* Tue Aug 31 2004 werner@suse.de
- Move forward to new update messages scheme
* Thu Jul 29 2004 werner@suse.de
- Fix autoconfig function definition
* Wed Sep 17 2003 werner@suse.de
- Change owner and permission of /var/spool/uucppublic (bug #31119)
* Mon Jun 30 2003 werner@suse.de
- Update to uucp 1.07
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Mon Apr 14 2003 werner@suse.de
- Add /etc/uucp with user uucp and group uucp to file list of uucp
(bug #26301)
* Wed Mar 05 2003 werner@suse.de
- Fix bug #24685: provide an xinetd config file for uucico
* Wed Feb 26 2003 werner@suse.de
- Fix initial port struct settings by zero the mem area.
* Tue Feb 11 2003 werner@suse.de
- Fix bug #23466: use install_info macro in spec
* Tue Jan 14 2003 werner@suse.de
- Use BuildRoot
* Fri Aug 16 2002 werner@suse.de
- Add PreReq (bug #18012)
* Mon Aug 12 2002 werner@suse.de
- Move logrotate configure for uucp logs to new format
* Wed May 08 2002 werner@suse.de
- Add logrotate entry for uucp to /etc/logrotate.d/ (bug #15944)
* Fri Apr 05 2002 ro@suse.de
- autoconf: LIBOBJS vs AC_LIBOBJ
* Thu Oct 25 2001 werner@suse.de
- UUCP: Fix exploit in uuxqt
* Wed Jun 06 2001 werner@suse.de
- Make it work with new autoconf
* Wed Mar 21 2001 werner@suse.de
- It's GNU source
* Thu Mar 15 2001 ro@suse.de
- fixed neededforbuild for openldap
* Tue Mar 13 2001 werner@suse.de
- Fix manual page: do not handle CVS a pre processor
* Tue Nov 28 2000 werner@suse.de
- Set permissions and owner ship of /var/log/uucp/ to
0755 and uucp.uucp.
* Tue May 09 2000 werner@suse.de
- Revisited uucpcfg
* Add english comments
* Add UUCP over TCP/IP example
* Comment out the examples (security: no backdoor)
* Add some speed ranges for port serial1
* Fri Apr 07 2000 werner@suse.de
- Changes for uucp
* Avoid FPE error if baud rate is zero (uucico.c)
* Add some higher baud rates (i386, mostly ppc) (uucico.c)
* Avoid stall connection due ignored "CYM" command (trans.c)
* Avoid root owned stale locks
* Add grade patch for uucico from Debian
* Some minor and unchecked changes of the contrib's
* Use /var/log/uucp for logging (Tayler configuration)
* Change paths in manual pages and info files
* Thu Mar 16 2000 werner@suse.de
- Make UUCP docs readable for all
* Tue Feb 29 2000 schwab@suse.de
- Fix size_t vs. socklen_t.
* Mon Feb 14 2000 ro@suse.de
- removed Makefile.Linux
- updated configure
- move man,info to /usr/share using macro
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Feb 17 1999 ro@suse.de
- added rmail and rmail.8 built from sendmail-sources
- build from sendmail.spec
* Fri Jan 08 1999 bs@suse.de
- incorporated uucpcfg
* Mon Dec 14 1998 bs@suse.de
- created notify mail
* Sun Dec 13 1998 florian@suse.de
do not use "-" to start options for "ps"
move config dir to /etc/uucp
cu is not suid uucp
compiler falgs are set to sane values
* Thu Jan 02 1997 bs@suse.de
var/spool/uucppublic/README changed
Mon Sep 2 03:06:07 MET DST 1996
don't use public writable directories
* Thu Jan 02 1997 bs@suse.de
change from binary to ascii lockfiles