%global pkgver $(rpm -qls tracker-devel | grep sparql | grep pc | cut -d"-" -f3 | cut -d"." -f1-2) %global xslver $(rpm -q --queryformat "%%{VERSION}" docbook-style-xsl) %global _hardened_build 1 %global with_acls 1 %global with_bdb 1 %global with_cracklib 1 %global with_docbook 1 %global with_dtrace 1 %global with_mysql 1 %global with_mysql 1 %global with_openafs 0 %global with_quota 1 %if 0%{?fedora} >= 15 || 0%{?el} >= 7 %global with_systemd 1 %else %global with_systemd 0 %endif %global with_tcp_wrappers 1 %global with_tracker 1 Name: netatalk Epoch: 4 Version: 3.1.3 Release: 1%{?dist} Summary: Open Source Apple Filing Protocol(AFP) fileserver License: GPLv2+ URL: http://netatalk.sourceforge.net/ Source0: http://download.sourceforge.net/netatalk/netatalk-%{version}.tar.bz2 Source1: netatalk.pam-system-auth #Patch2: netatalk-2.0.4-extern_ucreator.patch BuildRequires: avahi-devel BuildRequires: bison %if 0%{?with_cracklib} BuildRequires: cracklib-devel %endif %if 0%{?with_dbus} BuildRequires: dbus-devel BuildRequires: dbus-glib-devel %endif %if 0%{?with_docbook} BuildRequires: docbook-style-xsl %endif BuildRequires: flex %if 0%{?with_acls} BuildRequires: libacl-devel %endif BuildRequires: libattr-devel %if 0%{?with_bdb} BuildRequires: libdb-devel %endif BuildRequires: libevent-devel BuildRequires: libgcrypt-devel %if 0%{?with_docbook} BuildRequires: libxslt %endif BuildRequires: krb5-devel %if 0%{?with_mysql} BuildRequires: mysql-devel %endif %if 0%{?with_openafs} BuildRequires: openafs-devel %endif %if 0%{?with_ldap} BuildRequires: openldap-devel %endif BuildRequires: openssl-devel BuildRequires: procps-ng BuildRequires: pam-devel %if 0%{?with_quota} BuildRequires: quota-devel %endif %if 0%{?with_systemd} BuildRequires: systemd %endif %if 0%{?with_dtrace} BuildRequires: systemtap-sdt-devel %endif %if 0%{?with_tcp_wrappers} BuildRequires: tcp_wrappers-devel %endif BuildRequires: libtdb-devel %if 0%{?with_tracker} BuildRequires: tracker-devel %endif Requires: dbus-python %if 0%{?with_systemd} Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %else Requires(post): chkconfig Requires(preun): chkconfig Requires(preun): initscripts Requires(postun): initscripts %endif %description Netatalk is a freely-available Open Source AFP fileserver. It also provides a kernel level implementation of the AppleTalk Protocol Suite. A *NIX/*BSD system running Netatalk is capable of serving many Macintosh clients simultaneously as an AppleShare file server (AFP), AppleTalk router, *NIX/*BSD print server, and for accessing AppleTalk printers via Printer Access Protocol (PAP). Included are a number of minor printing and debugging utilities. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. %prep %setup -q rm -frv libevent/ #patch2 -p1 -b .extern_ucreator %build %ifarch ppc ppc64 s390 s390x export CFLAGS="$CFLAGS -fsigned-char" %endif %configure \ %if 0%{?with_acls} --with-acl \ %endif %if 0%{?with_cracklib} --with-cracklib \ %endif %if 0%{?with_docbook} --with-docbook=%{_datadir}/sgml/docbook/xsl-stylesheets-%{xslver} \ %endif --with-kerberos \ --with-libgcrypt \ --with-pam \ --with-pkgconfdir=%{_sysconfdir}/netatalk/ \ --with-shadow \ --with-spotlight \ --with-tbd=no \ --with-uams-path=%{_libdir}/atalk \ --enable-pgp-uam \ --enable-shared \ --enable-krbV-uam \ --enable-overwrite \ %if 0%{?with_systemd} --with-init-style=redhat-systemd \ %else --with-init-style=redhat-sysv \ %endif %if 0%{?with_tracker} --with-tracker-pkgconfig-version=%{pkgver} \ %endif --without-libevent \ --without-tdb \ --with-bdb \ --with-libevent-header=%{_includedir} \ --with-libevent-lib=%{_libdir} \ --disable-silent-rules \ --disable-static %make_build # Build the local docs. make -C doc/manual html-local %install %make_install # Ghost lock dir. mkdir -p %{buildroot}%{_localstatedir}/lock/netatalk # Use specific pam conf. install -pm644 %{S:1} %{buildroot}%{_sysconfdir}/pam.d/netatalk find %{buildroot} -name '*.la' -delete -print %check sh test/afpd/test.sh %post %if 0%{?with_systemd} %systemd_post netatalk.service %else chkconfig --add netatalk %endif %preun %if 0%{?with_systemd} %systemd_preun netatalk.service %else if [ $1 -eq 0 ] ; then service netatalk stop &> /dev/null chkconfig --del netatalk &> /dev/null %endif %postun %if 0%{?with_systemd} %systemd_postun_with_restart netatalk.service %else if [ "$1" -ge "1" ] ; then service netatalk condrestart >/dev/null 2>&1 || : fi %endif %files %doc AUTHORS CONTRIBUTORS COPYING COPYRIGHT NEWS %doc doc/manual/*.html %config %{_sysconfdir}/dbus-1/system.d/netatalk-dbus.conf %dir %{_sysconfdir}/netatalk %config(noreplace) %{_sysconfdir}/netatalk/afp.conf %config(noreplace) %{_sysconfdir}/netatalk/dbus-session.conf %config(noreplace) %{_sysconfdir}/netatalk/extmap.conf %config(noreplace) %{_sysconfdir}/pam.d/netatalk %{_bindir}/* %exclude %{_bindir}/netatalk-config %{_libdir}/atalk/ %{_libdir}/libatalk.so.* %{_mandir}/man*/* %exclude %{_mandir}/man*/netatalk-config* %{_sbindir}/* %if 0%{?with_systemd} %{_unitdir}/netatalk.service %else %{_initrddir}/netatalk %endif %ghost %dir %{_localstatedir}/lock/netatalk %{_localstatedir}/netatalk/ %files devel %doc COPYRIGHT COPYING %{_bindir}/netatalk-config %{_datadir}/aclocal/netatalk.m4 %{_includedir}/atalk/ %{_libdir}/libatalk.so %{_mandir}/man*/netatalk-config.1* %changelog * Fri Jul 04 2014 Christopher Meng - 4:3.1.3-1 - Update to 3.1.3 * Sat Jun 07 2014 Fedora Release Engineering - 4:2.2.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Apr 24 2014 Tomáš Mráz - 4:2.2.3-10 - Rebuild for new libgcrypt * Sat Aug 03 2013 Fedora Release Engineering - 4:2.2.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 4:2.2.3-8 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 4:2.2.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Aug 23 2012 Lukáš Nykrýn - 4:2.2.3-6 - Scriptlets replaced with new systemd macros * Fri Jul 27 2012 Lukáš Nykrýn - 4:2.2.3-5 - fixed build issue on f18 * Fri Jul 20 2012 Fedora Release Engineering - 4:2.2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jul 16 2012 Lukáš Nykrýn - 4:2.2.3-3 - fixes: #835714 - Netatalk 2.2.2-1: Unable to unmount afpd share from OSX client, crashes Finder netatalk-2.2.2-1 * Tue Jun 12 2012 Lukáš Nykrýn - 4:2.2.3-2 - fixes: #831001 - netatalk pam configuration has invalid entry * Mon Jun 04 2012 Lukas Nykryn 4:2.2.3-1 - fixes #828205 - update to latest upstream netatalk-2.2.3 * Mon Jan 16 2012 Jiri Skala - 4:2.2.2-1 - fixes #782049 - update to latest upstream netatalk-2.2.2 * Fri Jan 13 2012 Fedora Release Engineering - 4:2.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Nov 29 2011 Jiri Skala - 4:2.2.1-2 - fixes #501144 - updated and redirected pam config * Tue Nov 29 2011 Jiri Skala - 4:2.2.1-1 - update to latest upstream netatalk-2.2.1 * Fri Aug 19 2011 Jiri Skala - 4:2.2.0-4 - fixes #726928 - BuildRequires: avahi-devel libacl-devel openldap-devel * Fri Aug 05 2011 Jiri Skala - 4:2.2.0-3 - fixed missing epoch in sysvinit subpackage and triggers * Thu Aug 04 2011 Jiri Skala - 4:2.2.0-2 - fixes #714448 - systemd-service - moves SysV initscript to subpackage * Fri Jul 29 2011 Jiri Skala - 4:2.2.0-1 - update to latest upstream netatalk-2.2.0 * Tue Feb 08 2011 Fedora Release Engineering - 4:2.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 03 2011 Jiri Skala - 4:2.1.5-1 - updated to latest upstream version netatalk-2.1.5 * Mon Oct 18 2010 Jiri Skala - 4:2.1.4-1 - updated to latest upstream version * Mon Jul 12 2010 Jiri Skala - 4:2.1.3-1 - updated to latest upstream version - added license texts to devel subpackage * Wed Jun 30 2010 Jiri Skala - 4:2.1.2-1 - updated to latest upstream version * Fri May 28 2010 Jiri Skala - 4:2.1.1-1 - updated to latest upstream version - fixes #594999 - Summary and Description are old-fashioned - renamed initscript - initscript modified to be POSIX compliant * Wed May 12 2010 Jiri Skala - 4:2.1-1 - updated to latest upstream version * Tue Nov 24 2009 Jiri Skala - 4:2.0.5-2 - oops forgot upload new sources => shifted release number * Tue Nov 24 2009 Jiri Skala - 4:2.0.5-1 - updated to latest upstream version * Mon Nov 23 2009 Jiri Skala - 4:2.0.4-5 - added BuildRequires: ... libgcrypt-devel - removed outdated atalk.init * Tue Sep 15 2009 Jiri Skala - 4:2.0.4-4 - fixed #473943 * Fri Aug 21 2009 Tomas Mraz - 4:2.0.4-3 - rebuilt with new openssl * Sat Jul 25 2009 Fedora Release Engineering - 4:2.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Jul 14 2009 Jiri Skala - 4:2.0.4-1 - updated to latest upstream version * Wed Feb 25 2009 Fedora Release Engineering - 4:2.0.3-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 16 2009 Jiri Skala -4:2.0.3-26 - Resolves #480641 - CVE-2008-5718 netatalk: papd command injection vulnerability * Tue Jan 27 2009 Jiri Skala -4:2.0.3-25 - fixed epoch in the subpackage requires * Fri Jan 23 2009 Jiri Skala -4:2.0.3-24 - fix #473186 conflict timeout with coreutils * Sat Jan 17 2009 Tomas Mraz - 4:2.0.3-23 - rebuild with new openssl * Wed Dec 03 2008 Jiri Skala -4:2.0.3-22 - fix #473939 netatalk-2.0.3-21.fc10 disable quota * Mon Oct 13 2008 Jiri Skala - 4:2.0.3-21 - fix #465050 - FTBFS netatalk-2.0.3-19 - regenerated patches * Mon Aug 11 2008 Tom "spot" Callaway - 4:2.0.3-20 - fix license tag * Thu Mar 06 2008 Martin Nagy - 4:2.0.3-19 - fix chmod o+x (#225085) - increase the maximum number of cnid_dbd processes to 512 (#232805) - papd now writes debugging output to stderr when invoked with -d (#150021) - fix multiarch conflict for netatalk-devel (#342681) * Mon Feb 25 2008 Martin Nagy - 4:2.0.3-18 - make init script LSB compliant (#246993) * Mon Feb 25 2008 Martin Nagy - 4:2.0.3-17 - fix unowned directories (#233889) * Mon Feb 11 2008 Martin Nagy - 4:2.0.3-16 - rebuild for gcc-4.3 * Tue Dec 04 2007 Martin Nagy - 4:2.0.3-15.1 - rebuild * Wed Sep 12 2007 Maros Barabas -4:2.0.3-15 - patch to build on FC, bad open call * Tue Sep 11 2007 Maros Barabas - 4:2.0.3-13 - rebuild * Wed Aug 29 2007 Fedora Release Engineering - 4:2.0.3-12 - Rebuild for selinux ppc32 issue. * Thu May 10 2007 Maros Barabas - 4:2.0.4-11 - fix from merge review - Resolves #226190 * Tue Apr 17 2007 Maros Barabas - 4:2.0.3-10 - fix fiew problems in spec * Tue Jan 23 2007 Jindrich Novy - 4:2.0.3-9 - rebuild against new db4 * Mon Dec 04 2006 Maros Barabas - 4:2.0.3-8 - BuildRequires changed from cracklib to cracklib-devel * Fri Aug 18 2006 Jesse Keating - 4:2.0.3-7 - rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc* (#203001) - Add dist tag * Wed Jul 12 2006 Jesse Keating - 4:2.0.3-6.fc6.1 - rebuild * Fri Jun 09 2006 Jason Vas Dias - 4:2.0.3-6.fc6 - rebuild for broken libgssapi deps and brew build * Fri Feb 10 2006 Jesse Keating - 4:2.0.3-4.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jason Vas Dias - rebuild for new gcc, glibc, glibc-kernheaders * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Nov 09 2005 Jason Vas Dias - Rebuild for new openssl dependencies * Thu Oct 13 2005 Tomas Mraz - use include instead of pam_stack in pam config * Wed Jul 20 2005 Bill Nottingham - don't run by default * Thu Jun 16 2005 Jason Vas Dias - Upgrade to upstream version 2.0.3 - fix bug 160486: use netatalk's initscript * Wed Mar 30 2005 Florian La Roche - quick fix: rm -f /usr/include/netatalk/at.h until this is resolved the correct way * Mon Mar 07 2005 Jason Vas Dias - Fix for gcc4 compilation: extern_ucreator.patch * Mon Feb 21 2005 Jason Vas Dias - Upgraded to upstream version 2.0.2 . * Tue Jun 15 2004 Elliot Lee - rebuilt * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Wed Jan 07 2004 Florian La Roche - 1.6.4 * Fri Aug 1 2003 Charlie Bennett - Update with 1.6.3 upstream sources * Tue Jul 29 2003 Elliot Lee - Rebuild - Fix perl multilib path editing - Add pathcat patch * Thu May 1 2003 Elliot Lee 1.5.5-7 - Make multilib generic - Add builddep on quota (for rpcsvc/rquota.h) * Tue Feb 18 2003 Bill Nottingham 1.5.5-5 - fix initscript error (#82118) * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Jan 7 2003 Nalin Dahyabhai 1.5.5-3 - patch for compile errors with new ssl libs - rebuildfedora * Mon Dec 02 2002 Florian La Roche - postun should never fail * Thu Nov 28 2002 Phil Knirsch 1.5.5-1 - Updated to 1.5.5 * Tue Jun 25 2002 Phil Knirsch 1.5.3.1-4 - Fixed dependancy problem on /usr/bin/rc by removing acleandir.[1|rc] (#67243) - Fixed missing /usr/share/netatalk dir (#67222) * Fri Jun 21 2002 Tim Powers 1.5.3.1-2 - automated rebuild * Tue Jun 18 2002 Phil Knirsch 1.5.3.1-1 - Updated to latest version 1.5.3.1. - Fixed bug for nls file lookup (#66300). * Mon May 27 2002 Phil Knirsch 1.5.2-4 - Fixed initscript bug where you can't use blanks inside of names (#64926). * Wed Apr 10 2002 Phil Knirsch 1.5.2-3 - Fixed initscript to use correct config files from /etc/atalk (#62803) - Changed initscript to use $0 instead of direct string (#61734) - Change Copyright to Licencse and switch from BSD to GPL (#61746) * Thu Mar 14 2002 Bill Nottingham - don't run by default * Wed Mar 13 2002 Bill Nottingham - it's back * Fri Mar 2 2001 Tim Powers - rebuilt against openssl-0.9.6-1 * Sun Feb 25 2001 Tim Powers - fixed bug 29370. This package is trying to include a file glibc already includes * Tue Jan 23 2001 Tim Powers - updated initscript * Thu Jan 04 2001 Than Ngo - fixed uams-path - added noreplace to %%config * Mon Nov 20 2000 Tim Powers - rebuilt to fix bad dir perms * Fri Nov 10 2000 Than Ngo - update to 1.5pre2 (bug #19737, #20397) - update Url and ftp site - clean up specfile - netatalk-1.4b2+asun obsolete * Mon Aug 07 2000 Than Ngo - fix dependency with glibc-devel (Bug #15589) - fix typo in description (Bug #15479) * Wed Aug 2 2000 Tim Powers - fix symlinks not being relative. * Fri Jul 28 2000 Than Ngo - add missing restart function in startup script * Fri Jul 28 2000 Tim Powers - fixed initscripts so that condrestart doesn't return 1 when the test fails * Mon Jul 24 2000 Prospector - rebuilt * Sun Jul 23 2000 Tim Powers - rebuilt * Mon Jul 17 2000 Tim Powers - inits back to rc.d/init.d, using service to start inits * Wed Jul 12 2000 Than Ngo - rebuilt * Thu Jul 06 2000 Tim Powers - fixed broken PreReq, now PreReq's /etc/init.d * Tue Jun 27 2000 Than Ngo - remove prereq initscripts, add requires initscripts - clean up specfile * Mon Jun 26 2000 Than Ngo - /etc/rc.d/init.d -> /etc/init.d - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 * Tue Jun 20 2000 Tim Powers - fixed bug 11420 concerning the building with -O2. * Thu Jun 8 2000 Tim Powers - fix bug #11978 - fix man page locations to be FHS compliant * Thu Jun 1 2000 Nalin Dahyabhai - modify PAM setup to use system-auth * Thu Dec 16 1999 Tim Powers - renewed source so it is pristine, delete the problematic files in spec file instead - general spec file cleanups, create buildroot and dirs in the %%install section - strip binaries - gzip man pages - fixed netatalk-asun.librpcsvc.patch, -lnss_nis too - changed group - added %%defattr to %%files section * Tue Aug 3 1999 iNOUE Koich! - rpm-3.0 needs to remove vogus files from source. Removed files: etc/papd/.#magics.c, etc/.#diff * Fri Jul 30 1999 iNOUE Koich! - Change Copyright tag to BSD. Add /usr/bin/adv1tov2. * Thu Apr 22 1999 iNOUE Koich! - Correct librpcsvc.patch. Move %%changelog section last. Uncomment again -DNEED_QUOTA_WRAPPER in sys/linux/Makefile since LinuxPPC may need. * Wed Mar 31 1999 iNOUE Koich! - Comment out -DNEED_QUOTA_WRAPPER in sys/linux/Makefile. * Sat Mar 20 1999 iNOUE Koich! - Correct symbolic links to psf. Remove asciize function from nbplkup so as to display Japanese hostname. * Thu Mar 11 1999 iNOUE Koich! - Included MacPerl 5 script ICDumpSuffixMap which dumps suffix mapping containd in Internet Config Preference. * Tue Mar 2 1999 iNOUE Koich! - [asun2.1.3] * Mon Feb 15 1999 iNOUE Koich! - [pre-asun2.1.2-8] * Sun Feb 7 1999 iNOUE Koich! - [pre-asun2.1.2-6] * Mon Jan 25 1999 iNOUE Koichi - [pre-asun2.1.2-3] * Thu Dec 17 1998 INOUE Koichi - [pre-asun2.1.2] Remove crlf patch. It is now a server's option. * Thu Dec 3 1998 INOUE Koichi - Use stable version source netatalk-1.4b2+asun2.1.1.tar.gz Add uams directory * Sat Nov 28 1998 INOUE Koichi - Use pre-asun2.1.1-3 source. * Mon Nov 23 1998 INOUE Koichi - Use pre-asun2.1.1-2 source. * Mon Nov 16 1998 INOUE Koichi - Fix rcX.d's symbolic links. * Wed Oct 28 1998 INOUE Koichi - Use pre-asun2.1.0a-2 source. Remove '%%exclusiveos linux' line. * Sat Oct 24 1998 INOUE Koichi - Use stable version source netatalk-1.4b2+asun2.1.0.tar.gz. * Mon Oct 5 1998 INOUE Koichi - Use pre-asun2.1.0-10a source. * Sat Sep 19 1998 INOUE Koichi - Use pre-asun2.1.0-8 source. Add chkconfig support. * Sat Sep 12 1998 INOUE Koichi - Comment out -DCRLF. Use RPM_OPT_FLAGS. * Tue Sep 8 1998 INOUE Koichi - Use pre-asun2.1.0-7 source. Rename atalk.init to atalk. * Sat Aug 22 1998 INOUE Koichi - Use pre-asun2.1.0-6 source. * Mon Jul 27 1998 INOUE Koichi - Use pre-asun2.1.0-5 source. * Tue Jul 21 1998 INOUE Koichi - Use pre-asun2.1.0-3 source. * Tue Jul 7 1998 INOUE Koichi - Add afpovertcp entries to /etc/services - Remove BuildRoot in man8 pages * Mon Jun 29 1998 INOUE Koichi - Use modified sources 1.4b2+asun2.1.0 produced by Adrian Sun to provide an AppleShareIP file server - Included AppleVolumes.system file maintained by Johnson * Mon Aug 25 1997 David Gibson - Used a buildroot - Use RPM_OPT_FLAGS - Moved configuration parameters/files from atalk.init to /etc/atalk - Separated devel package - Built with shared libraries * Sun Jul 13 1997 Paul H. Hargrove - Updated sources from 1.3.3 to 1.4b2 - Included endian patch for Linux/SPARC - Use all the configuration files supplied in the source. This has the following advantages over the ones in the previous rpm release: + The printer 'lp' isn't automatically placed in papd.conf + The default file conversion is binary rather than text. - Automatically add and remove DDP services from /etc/services - Placed the recommended /etc/services in the documentation - Changed atalk.init to give daemons a soft kill - Changed atalk.init to make configuration easier * Wed May 28 1997 Mark Cornick - Updated for /etc/pam.d