# $Id$ %define initdir /etc/rc.d/init.d Summary: AppleTalk networking programs Name: netatalk Version: 2.0.3 Release: 6%{?dist} 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 Patch0: netatalk-%{version}.rh.init.patch Epoch: 3 Obsoletes: netatalk-1.5.5 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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(id -u -n)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 0 %build touch AUTHORS #libtoolize --force #aclocal -I macros #automake --add-missing #autoconf #autoheader CFLAGS="$RPM_OPT_FLAGS" %configure \ --enable-redhat \ --disable-cups \ --with-mutex="x86/gcc-assembly" \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ --sysconfdir=/etc \ --with-uams-path=%{_libdir} \ --with-pkgconfdir=/etc/atalk/ # --with-pkgconfdir=/etc/atalk/ --with-cracklib --with-pam \ # --with-shadow --with-tcp-wrappers --with-ssl --with-flock-locksi \ # --with-uams-path=%{_libdir} # 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/atalk/{uams,nls} 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 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 install -m644 %{SOURCE4} . #install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/atalk/AppleVolumes.system #install -m644 %{SOURCE2} $RPM_BUILD_ROOT/etc/atalk/netatalk.conf install -m755 distrib/initscripts/rc.atalk.redhat $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/ rm -f $RPM_BUILD_ROOT/usr/include/netatalk/at.h || : cd $RPM_BUILD_ROOT/etc/atalk/nls $RPM_BUILD_ROOT/usr/bin/makecode || true # Remove .la files in buildroot rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_bindir}/acleandir.rc \ $RPM_BUILD_ROOT%{_mandir}/man1/acleandir.1* %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 AUTHORS CONTRIBUTORS COPYING COPYRIGHT README TODO VERSION NEWS %doc ICDumpSuffixMap doc %dir /etc/atalk %dir /etc/atalk/nls #%config /etc/atalk/nls/* %{_libdir}/*.so %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 %attr(755,root,root) %config %{initdir}/atalk %config(noreplace) /etc/pam.d/netatalk %{_sbindir}/* %{_bindir}/* %{_mandir}/man*/* %{_datadir}/netatalk %{_libexecdir}/* %files devel %defattr(-,root,root) %dir %{_includedir}/atalk %{_libdir}/*.a %attr(0644,root,root) %{_includedir}/atalk/* %attr(0644,root,root) %{_includedir}/netatalk/* %{_datadir}/aclocal/netatalk.m4 %changelog * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Tue Jun 21 2005 Charlie Brady 2.0.3-5es - Bump release for CentOS 4 rebuild. * Wed Jun 15 2005 Charlie Brady 2.0.3-4es - Bump Epoch to trump version from 6.x. * Fri May 27 2005 Charlie Brady 2.0.3-3es - A few small fixes to init script. * Thu May 19 2005 Charlie Brady 2.0.3-2es - Use bundled init script rather than 1.6.x version. - Remove norc patch - IOW, include acleandir.rc file. * Thu May 19 2005 Charlie Brady - Update to version 2.0.3. * Sat Apr 30 2005 Charlie Brady - Remove "-fsigned-char" from configure call. * Tue Apr 12 2005 Charlie Brady - Change configure options to those used with better success by Roger Buck (but with a few small changes, for better backwards compatibility. * Wed Jan 12 2005 Charlie Brady - Update to 2.0.2. - Delete /etc/atalk/nls/* from filelist. - Add %{_libexecdir}/* to filelist * Thu Nov 4 2004 Charles Bennett 2:1.6.4-4 - patch security vulnerability in e2ps - see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=137966 * 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