%define major 2.3 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d Summary: Utilities for the ncpfs filesystem, a NetWare client for Linux Name: ncpfs Version: 2.2.6 Release: %mkrel 18 License: GPLv2+ Group: Networking/Other URL: ftp://platan.vc.cvut.cz/pub/linux/ncpfs/ Source0: ftp://platan.vc.cvut.cz/pub/linux/ncpfs/%{name}-%{version}/%{name}-%{version}.tar.bz2 Patch0: ncpfs-2.2.3-fix.patch Patch1: ncpfs-2.2.3-array.patch Patch3: ncpfs-2.2.4-pie.patch Patch5: ncpfs-2.2.6-getuid.patch Patch6: ncpfs-2.2.4-gcc4.patch Patch7: ncpfs-2.2.6-ldconfig.patch Patch8: ncpfs-2.2.6-align.patch Patch9: ncpfs-2.2.6-add-missing-header.patch # From Fedora: fixes compilation failure (see Debian bug 428937) # - AdamW 2007/12 Patch10: ncpfs-2.2.6-offsetof.patch Patch11: ncpfs-2.2.6-LDFLAGS.diff Patch12: ncpfs-2.2.6-CVE-2010-0788.diff Patch13: ncpfs-2.2.6-CVE-2010-0790,0791.diff Patch14: ncpfs-2.2.6-CVE-2011-1679,1680.diff Requires(pre): filesystem >= 2.1.9-18 Requires: ipxutils Requires: %{libname} = %{version}-%{release} BuildRequires: pam-devel %description Ncpfs is a filesystem which understands the Novell NetWare(TM) NCP protocol. Functionally, NCP is used for NetWare the way NFS is used in the TCP/IP world. For a Linux system to mount a NetWare filesystem, it needs a special mount program. The ncpfs package contains such a mount program plus other tools for configuring and using the ncpfs filesystem. Install the ncpfs package if you need to use the ncpfs filesystem to use Novell NetWare files or services. %package -n ipxutils Summary: Tools for configuring and debugging IPX interfaces and networks Group: System/Networking Requires(pre): filesystem >= 2.1.9-18 %description -n ipxutils The ipxutils package includes utilities (ipx_configure, ipx_internal_net, ipx_interface, ipx_route) necessary for configuring and debugging IPX interfaces and networks under Linux. IPX is the low-level protocol used by Novell's NetWare file server system to transfer data. Install ipxutils if you need to configure IPX networking on your network. %package -n %{libname} Summary: Library associated with ncpfs Group: System/Libraries %description -n %{libname} This library is mandatory for ncpfs and ipxutils to run. %package -n %{develname} Summary: Development package with static libs and headers Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{mklibname ncpfs 2.3 -d} %description -n %{develname} Static libraries and header files required for compiling xmms plugins. %prep %setup -q %patch0 -p1 -b .fix %patch1 -p1 -b .array %patch3 -p1 -b .pie %patch5 -p1 -b .getuid %patch6 -p1 -b .gcc4 %patch7 -p1 -b .ld %patch8 -p1 -b .align %patch9 -p1 -b .header %patch10 -p1 -b .offset %patch11 -p1 -b .LDFLAGS %patch12 -p1 -b .CVE-2010-0788 %patch13 -p1 -b .CVE-2010-0790,0791 %patch14 -p1 -b .CVE-2011-1679,1680 chmod +rw -R . # lib64 fix perl -pi -e "s|/lib/security\b|%{_libdir}/security|g" configure* %build chmod -R u+w po CFLAGS="%{optflags} -fPIC" \ LDFLAGS="%{ldflags}" \ %configure2_5x \ --disable-rpath \ --enable-pam %make clean %make %make -C ipxdump mv ipxdump/README ipxdump/README.ipxdump %install mkdir -p %{buildroot}%{_libdir} %makeinstall_std install-dev # Move ipx_configure/ipx_internal_net to permit /usr from NFS for i in ipx_configure ipx_internal_net ipx_interface ; do mv %{buildroot}%{_bindir}/$i %{buildroot}%{_sbindir}/$i done install -m755 ipxdump/ipxdump ipxdump/ipxparse %{buildroot}%{_bindir}/ ln -sf %{_bindir}/ncpmount %{buildroot}%{_sbindir}/mount.ncp ln -sf %{_bindir}/ncpmount %{buildroot}%{_sbindir}/mount.ncpfs ln -sf ncpmount.8 %{buildroot}%{_mandir}/man8/mount.ncp.8 %find_lang %{name} #rm -f %{buildroot}/usr/share/locale/locale.alias %post -n ipxutils if [ -f %{_sysconfdir}/modules.conf ];then if ! grep -q -E "^alias.*net-pf-4.*ipx" %{_sysconfdir}/modules.conf;then echo "alias net-pf-4 ipx" >> %{_sysconfdir}/modules.conf fi else echo "alias net-pf-4 ipx" >> %{_sysconfdir}/modules.conf fi %postun -n ipxutils if [ "$1" = "0" ];then if [ -f %{_sysconfdir}/modules.conf ];then if grep -q -E "^alias.*net-pf-4.*ipx" %{_sysconfdir}/modules.conf;then sed 's/^alias net-pf-4 ipx//' %{_sysconfdir}/modules.conf > %{_sysconfdir}/.modules.conf.ipx \ && mv -f %{_sysconfdir}/.modules.conf.ipx %{_sysconfdir}/modules.conf fi fi fi %files -f %{name}.lang %{_bindir}/n* %{_bindir}/p* %{_bindir}/slist %{_sbindir}/mount.ncp* %{_sbindir}/nwmsg %{_mandir}/man1/* %{_mandir}/man3/* %{_mandir}/man5/* %{_mandir}/man8/* %doc BUGS Changes FAQ README %files -n ipxutils %doc ipx-1.0/COPYING ipx-1.0/README %doc ipxdump/README.ipxdump %{_sbindir}/ipx_* %{_bindir}/ipx* %{_mandir}/*/ipx* %files -n %{libname} %{_libdir}/security/* %{_libdir}/libncp.so.* %files -n %{develname} %doc Changes %{_libdir}/lib*.so %{_libdir}/lib*.a %{_includedir}/* %changelog * Wed Oct 15 2014 umeabot <umeabot> 2.2.6-18.mga5 + Revision: 746884 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 2.2.6-17.mga5 + Revision: 682816 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 2.2.6-16.mga4 + Revision: 521561 - Mageia 4 Mass Rebuild * Wed Jan 23 2013 fwang <fwang> 2.2.6-15.mga3 + Revision: 391199 - update rpm group + umeabot <umeabot> - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Jul 21 2012 colin <colin> 2.2.6-13.mga3 + Revision: 273158 - Update for usrmove * Tue May 29 2012 luigiwalser <luigiwalser> 2.2.6-12.mga3 + Revision: 249319 - do not use /tmp in postun - fix CVE-2011-1679 and CVE-2011-1680 (from opensuse) * Sun Feb 06 2011 spuhler <spuhler> 2.2.6-10.mga1 + Revision: 47703 - removed the if mdkversion lines - removed buildroot definition from .spec - imported package ncpfs * Fri Dec 03 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-10mdv2011.0 + Revision: 606814 - rebuild * Thu Mar 11 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-9mdv2010.1 + Revision: 518074 - P12: security fix for CVE-2010-0788 (was CVE-2009-3297) (redhat) - P13: security fix for CVE-2010-0790,0791 (Dan Rosenberg) * Tue Feb 23 2010 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-8mdv2010.1 + Revision: 510348 - P12: security fix for CVE-2009-3297 (redhat) * Mon Dec 22 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-7mdv2009.1 + Revision: 317509 - use %%ldflags * Wed Jul 23 2008 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-6mdv2009.0 + Revision: 242622 - lib64 fixes * Tue Jun 17 2008 Thierry Vignaud <tv@mandriva.org> 2.2.6-5mdv2009.0 + Revision: 223337 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Fri Dec 21 2007 Adam Williamson <awilliamson@mandriva.org> 2.2.6-4mdv2008.1 + Revision: 136087 - add offsetof.patch (from Fedora; fixes build failure, see Debian bug #428937) - rebuild for new era - don't package unnecessary COPYING - new library policy - new license policy (pending discussion with Spot about Caldera IPX license) + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Wed Mar 07 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-3mdv2007.0 + Revision: 134439 - Import ncpfs * Wed Mar 07 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.6-3mdv2007.1 - bunzip patches * Tue Aug 29 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 2.2.6-2mdv2007.0 - compile with -fPIC to fix build on x86_64 * Fri Jun 09 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 2.2.6-1mdv2007.0 - add missing syslog header (P9) - fix prereq-use - sync with fedora patches (P0-P8) - %%mkrel * Tue Feb 08 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.2.6-1mdk - 2.2.6 * Wed Dec 29 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.2.5-3mdk - revert latest "lib64 fixes" * Wed Dec 29 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.2.5-2mdk - lib64 fixes * Fri Dec 03 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 2.2.5-1mdk - 2.2.5 - use %%configure macro * Tue Jul 13 2004 Olivier Blin <blino@mandrake.org> 2.2.4-2mdk - package missing symlinks, to fix bug 8400 * Thu May 06 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.2.4-1mdk - 2.2.4