%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 10 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 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/Configuration/Networking %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 chmod +rw -R . # lib64 fix perl -pi -e "s|/lib/security\b|/%{_lib}/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 rm -rf %{buildroot} mkdir -p %{buildroot}/sbin mkdir -p %{buildroot}%{_sbindir} 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}/sbin/$i done install -m755 ipxdump/ipxdump ipxdump/ipxparse %{buildroot}%{_bindir}/ 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 > /tmp/.modules.conf \ && mv -f /tmp/.modules.conf %{_sysconfdir}/modules.conf fi fi fi %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) /sbin/mount.ncp* /sbin/nwmsg %{_bindir}/n* %{_bindir}/p* %{_bindir}/slist %{_sbindir}/nwmsg %{_mandir}/man1/* %{_mandir}/man3/* %{_mandir}/man5/* %{_mandir}/man8/* %doc BUGS Changes FAQ README %files -n ipxutils %defattr(-,root,root) %doc ipx-1.0/COPYING ipx-1.0/README %doc ipxdump/README.ipxdump /sbin/ipx_* %{_bindir}/ipx* %{_mandir}/*/ipx* %files -n %{libname} %defattr(-,root,root) /%{_lib}/security/* %{_libdir}/libncp.so.* %files -n %{develname} %defattr(-,root,root) %doc Changes %{_libdir}/lib*.so %{_libdir}/lib*.a %{_includedir}/* %changelog * 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