%define initdir /etc/rc.d/init.d Summary: AppleTalk networking programs Name: netatalk Version: 2.0.3 Release: 4.1 Epoch: 4 License: GPL Group: System Environment/Daemons Source0: http://download.sourceforge.net/netatalk/netatalk-%{version}.tar.bz2 Source1: atalk.init #Source2: netatalk.config #Source3: AppleVolumes.system Source4: ICDumpSuffixMap Source5: netatalk.pam-system-auth #Patch0: netatalk-1.6.3-norc.patch #Patch1: netatalk-1.5.5-openssl097.patch #Patch2: netatalk-1.5.5-pathcat.patch Patch0: netatalk-2.0.2-db4_3.patch Patch1: netatalk-2.0.2-db4_2-db4_3.patch Patch2: netatalk-2.0.2-uams_no_pie.patch Patch3: netatalk-2.0.2-extern_ucreator.patch Patch4: netatalk-2.0.3-nodefault.patch Url: http://netatalk.sourceforge.net/ Prereq: /sbin/chkconfig, /sbin/service Requires: pam >= 0.56, /etc/pam.d/system-auth, tcp_wrappers, openssl, cracklib BuildRequires: cracklib openssl-devel pam quota libtool automake autoconf db4-devel pam-devel BuildRoot: %{_tmppath}/%{name}-root %description This package enables Linux to talk to Macintosh computers via the AppleTalk networking protocol. It includes a daemon to allow Linux to act as a file server over EtherTalk or IP for Mac's. %package devel Summary: Headers and static libraries for Appletalk development Group: Development/Libraries %description devel This package contains the header files, and static libraries for building Appletalk networking programs. %prep %setup -q #%patch0 -p 1 -b .norc #%patch1 -p 1 -b .openssl097 #%patch2 -p1 -b .pathcat %patch0 -p1 -b .db4_3 %patch1 -p1 -b .db4_2-db4_3 %patch2 -p1 -b .uams_no_pie %patch3 -p1 -b .extern_ucreator %patch4 -p1 ln -s ./NEWS ChangeLog %build touch AUTHORS libtoolize --force aclocal -I macros automake --add-missing autoconf autoheader export CFLAGS="$RPM_OPT_FLAGS" %ifnarch x86_64 # XXX : enable for x86_64 when glibc bug 149284 is fixed! export CFLAGS="$CFLAGS -fPIE" export LDFLAGS="-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen" %endif %ifarch ppc ppc64 s390 s390x export CFLAGS="$CFLAGS -fsigned-char" %endif %configure \ --with-pkgconfdir=/etc/atalk/ \ --with-cracklib \ --with-pam \ --with-shadow \ --with-tcp-wrappers \ --with-ssl \ --with-flock-locksi \ --with-uams-path=%{_libdir}/atalk \ --enable-shared \ --enable-krbV-uam \ --enable-overwrite \ --with-gnu-ld \ --enable-redhat # Grrrr. Fix broken libtool/autoFOO Makefiles. if [ "%{_lib}" != lib ]; then find . -name Makefile | xargs perl -pi \ -e 's,-L/usr/lib,-L%{_libdir},g' find . -name Makefile | xargs perl -pi \ -e 's,-L/lib,-L/%{_lib},g' fi make all %install rm -rf $RPM_BUILD_ROOT #mkdir -p $RPM_BUILD_ROOT/etc/pam.d #mkdir -p $RPM_BUILD_ROOT%{initdir} #mkdir -p $RPM_BUILD_ROOT/usr/include/{netatalk,atalk} make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install # # netatalk now installs its own config files, which are more # appropriate for v2.0 than the ones we used to ship. # #install -m644 config/AppleVolumes.default $RPM_BUILD_ROOT/etc/atalk/AppleVolumes.default #install -m644 config/afpd.conf $RPM_BUILD_ROOT/etc/atalk/afpd.conf #install -m644 config/atalkd.conf $RPM_BUILD_ROOT/etc/atalk/atalkd.conf #install -m644 config/papd.conf $RPM_BUILD_ROOT/etc/atalk/papd.conf #install -m644 config/netatalk.pamd $RPM_BUILD_ROOT/etc/pam.d/netatalk # # Use netatalk's redhat initscript # #install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{initdir}/atalk #cp include/atalk/*.h $RPM_BUILD_ROOT/usr/include/atalk/ #cp sys/netatalk/*.h $RPM_BUILD_ROOT/usr/include/netatalk/ chmod a-x bin/afile/acleandir.rc rm -f $RPM_BUILD_ROOT/usr/bin/acleandir.rc $RPM_BUILD_ROOT/usr/share/man/man1/acleandir* install -m644 %{SOURCE4} . # # install example config files in doc mkdir config.example cp -fp `ls config/* | egrep -v 'tmpl$|Makefile' | tr '\n' ' '` config.example cp -fp %{SOURCE5} config.example # XXX bad hack until this file is updated in glibc-headers: rm -f $RPM_BUILD_ROOT/usr/include/netatalk/at.h %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add atalk %preun if [ "$1" = "0" ] ; then /sbin/service atalk stop > /dev/null 2>&1 /sbin/chkconfig --del atalk fi %postun if [ "$1" -ge "1" ]; then /sbin/service atalk condrestart > /dev/null 2>&1 || : fi %files %defattr(-,root,root) %doc COPYRIGHT ChangeLog README* TODO VERSION NEWS %doc ICDumpSuffixMap doc %doc bin/afile/acleandir.rc %doc config.example %dir /etc/atalk %attr(755,root,root) %config %{initdir}/atalk %config(noreplace) /etc/atalk/AppleVolumes.default %config(noreplace) /etc/atalk/AppleVolumes.system %config(noreplace) /etc/atalk/netatalk.conf %config(noreplace) /etc/atalk/afpd.conf %config(noreplace) /etc/atalk/atalkd.conf %config(noreplace) /etc/atalk/papd.conf %config(noreplace) /etc/pam.d/netatalk %{_sbindir}/* %{_bindir}/* %{_mandir}/man*/* %{_datadir}/netatalk %{_libdir}/atalk/*.so %{_libexecdir}/* %files devel %defattr(-,root,root) %dir %{_includedir}/atalk %{_libdir}/*.a %{_libdir}/*.la %attr(0644,root,root) %{_includedir}/atalk/* %attr(0644,root,root) %{_includedir}/netatalk/* %{_datadir}/aclocal/netatalk.m4 %{_libdir}/atalk/*.a %{_libdir}/atalk/*.la %changelog * 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) * Wed 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 - rebuild * 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. * Thu 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. * Mon Sep 8 1998 INOUE Koichi - Use pre-asun2.1.0-7 source. Rename atalk.init to atalk. * Mon 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